Skip to content

Commit

Permalink
fix: [Bug fixed] fix SSO login bug
Browse files Browse the repository at this point in the history
when use sso login type, refresh login page and click sso login button,
will dialog a error tips: State or code entered incorrectly.
  • Loading branch information
mzxc committed Sep 26, 2024
1 parent c0f70b8 commit e63cda9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public Result ssoLogin(HttpServletRequest request) {
if (session.getAttribute(Constants.SSO_LOGIN_USER_STATE) == null) {
session.setAttribute(Constants.SSO_LOGIN_USER_STATE, randomState);
}
return Result.success(((AbstractSsoAuthenticator) authenticator).getSignInUrl(randomState));
return Result.success(((AbstractSsoAuthenticator) authenticator)
.getSignInUrl(session.getAttribute(Constants.SSO_LOGIN_USER_STATE).toString()));
}
return Result.success();
}
Expand Down

0 comments on commit e63cda9

Please sign in to comment.