mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-22 00:31:21 +00:00
fix(auth): send client token in CAS ticket validation request
The SSO server requires the registered application token (clientToken) to authenticate the ticket validation request. Include it in the POST body.
This commit is contained in:
parent
8759388960
commit
cbe675e98d
1 changed files with 2 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ public class SsoClient {
|
|||
public SsoUser validateTicket(String ticket) {
|
||||
var request = Map.of(
|
||||
"Ticket", ticket,
|
||||
"Url", properties.getClientUrl()
|
||||
"Url", properties.getClientUrl(),
|
||||
"Token", properties.getClientToken()
|
||||
);
|
||||
var validateUrl = UriComponentsBuilder.fromHttpUrl(properties.getBaseUrl())
|
||||
.path(properties.getValidatePath())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue