Skip to content

Commit

Permalink
Merge pull request #63 from devocean-finut/fix/issue
Browse files Browse the repository at this point in the history
#60 Fix accessToken : accessToken 인코딩 제거
  • Loading branch information
plum-king authored Nov 14, 2024
2 parents d0c5d26 + 3a51f0e commit fea12a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public ResponseEntity<?> getTokens(@AuthenticationPrincipal OidcUser oidcUser,

HttpHeaders headers = new HttpHeaders();
// accessToken을 Base64로 인코딩
String encodedAccessToken = Base64.getEncoder().encodeToString(accessToken.getBytes());
headers.setLocation(URI.create(redirectUri + "?email=" + user.getEmail() + "&accessToken=" + encodedAccessToken));
// String encodedAccessToken = Base64.getEncoder().encodeToString(accessToken.getBytes());
headers.setLocation(URI.create(redirectUri + "?email=" + user.getEmail() + "&accessToken=" + accessToken));
return new ResponseEntity<>(headers, HttpStatus.FOUND); // 302 Redirect
}
// @Operation(summary = "로그인 성공", description = "로그인 성공시 해당 api에 리다이렉션 되어 수행됩니다")
Expand Down

0 comments on commit fea12a3

Please sign in to comment.