Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron committed Jan 7, 2024
1 parent c7a5b1c commit 1659374
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public void handleAuthorization(@PathVariable("registrationId") String registrat
String clientId = oAuthRegistration.getClientId();
String responseType = AUTHORIZATION_CODE;
String state = DEFAULT_STATE_GENERATOR.generateKey();
String redirectUri = expandRedirectUri(
registrationId,
request,
oAuthRegistration,
"bind");
// String redirectUri = expandRedirectUri(
// registrationId,
// request,
// oAuthRegistration,
// "bind");


/**
Expand Down Expand Up @@ -175,6 +175,7 @@ public BaseResponse<String> receiveAuthorizationCode(
*/
IOAuthBindHandler bindHandler = this.bindHandlers.get(registrationId);
Assert.notNull(bindHandler, "bindHandler not found:"+registrationId);
log.info("");
bindHandler.bind(UserSecurityUtils.getUserLogin().getAddress(), userInfo);

response.addCookie(new Cookie("oauth_"+registrationId, userInfo.getUsername()));
Expand Down

0 comments on commit 1659374

Please sign in to comment.