Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor : 인가 코드 요청 및 토큰 요청 로직 #147

Merged
merged 9 commits into from
Apr 28, 2024

Conversation

Leehunil
Copy link
Collaborator

resolved : #146

작업 내용

  • 카카오, 구글 인가 코드 요청 URI 생성
  • 인가 코드를 통해 카카오, 구글 서버에 accessToken, idToken 요청

전달 사항

  • 회원 탈퇴 기능 추가 예정

@Leehunil Leehunil self-assigned this Apr 28, 2024
@Leehunil Leehunil linked an issue Apr 28, 2024 that may be closed by this pull request

@Override
public OauthTokenInfoDto getOauthToken(String code) {
String decodedCode = URLDecoder.decode(code, StandardCharsets.UTF_8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLDecoder.decode를 사용하신 이유가 어떻게 되나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

인가 코드는 일회성으로 바로 보내게 되면 보안상 위험할 수 있습니다. 그래서 인가 코드를 한번 디코딩하여 보안성을 높였습니다.

@Leehunil Leehunil merged commit f4b81fc into develop Apr 28, 2024
1 check passed
@Leehunil Leehunil deleted the refactor/authorize_code branch April 28, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Backend] 소셜 로그인 기능 리팩토링
2 participants