Skip to content

Commit

Permalink
fix: 구글로그인 auth code <-> accessToken 교환 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
daeunkwak committed Jul 31, 2023
1 parent fcc2b23 commit 62a9d39
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public class OauthLoginController {
public ResponseEntity<ResponseJwtTokenDto> loginOauth(HttpServletRequest httpServletRequest) {
log.info("=== Oauth login start ===");

final String accessToken = oauthLoginService.getAccessToken(httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); // access token 발급
//final String accessToken = oauthLoginService.getAccessToken(httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); // access token 발급

log.info("authorizationnnn :::::::::::::::: " + httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION));
//log.info("authorizationnnn :::::::::::::::: " + httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION));

oauthLoginService.validateLoginParams("GOOGLE", accessToken);
//oauthLoginService.validateLoginParams("GOOGLE", accessToken);

final SocialType socialType = SocialType.GOOGLE;

final ResponseJwtTokenDto jwtTokenDto = oauthLoginService.login(socialType, accessToken);
final ResponseJwtTokenDto jwtTokenDto = oauthLoginService.login(socialType, httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION));

log.info("=== Oauth login end ===");
return ResponseEntity.ok(jwtTokenDto);
Expand Down

0 comments on commit 62a9d39

Please sign in to comment.