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

[LINKER-X] 비회원 로그인시 일단 무조건 회원가입 #30

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

ktj1997
Copy link
Contributor

@ktj1997 ktj1997 commented Jan 27, 2024

📍 작업 배경 #

  • issue : #
    AS-IS: Kakao에서 받아온 정보를 모두 파라미터에 담아서 Client에 Redirect처리
    TO-BE: 비회원일 경우 회원가입을 진행, 그 이후 access와 refresh를 파라미터에 담아서 내림

📝 작업 내용 #

💬 코멘트 #

@ktj1997 ktj1997 requested a review from 9keyyyy January 27, 2024 06:22
Comment on lines +10 to +11
Optional<User> findByOAuthVendorAndOAuthIdentifier(
OAuthVendor oAuthVendor, String oAuthIdentifier);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

이메일은 변경 가능한 값이기 떄문에, kakao에서 내려주는 id(oAuthIdentifier)와
oAuthVendor(kakao, ...)를 통해서 회원 여부를 판단했습니다

Comment on lines +74 to +77
String redirectUri =
String.format(
"%s?accessToken=%s&refreshToken=%s", clientOriginHost, accessToken, refreshToken);
getRedirectStrategy().sendRedirect(request, response, redirectUri);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

최종적으로 비회원도 회원가입 진행후 동일하게 accessToken과 refreshToken을 내립니다

@ktj1997 ktj1997 merged commit b7590de into dev Jan 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant