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

Feat(#6): 카카오 로그인 #7

Merged
merged 13 commits into from
Jul 13, 2024
Merged

Feat(#6): 카카오 로그인 #7

merged 13 commits into from
Jul 13, 2024

Conversation

dainshon
Copy link
Contributor

@dainshon dainshon commented Jul 11, 2024

[로직 설명]

  1. 카카오계정으로 로그인
  2. 받은 유저정보(email)로 가입된 회원인지 찾음
    2.1 회원 -> 로그인처리
    - accessToken, refreshToken(Redis에 저장되어있던), email 리턴

2.2 비회원 -> 회원가입
- 정보 Member 테이블에 저장
- refreshToken은 redis에 저장
- accessToken, refreshToken, email 리턴
[테스트 결과]
https://kauth.kakao.com/oauth/authorize?client_id={KAKAO_API_KEY}&redirect_uri={KAKAO_REDIRECT_URI}&response_type=code

  1. 여기 주소로 접속해서 로그인
  2. DB에 잘 들어옴
  3. redis에 refreshToken도 잘 저장됨
    -> ec2에 ssh로 접속하고
    -> redis-cli 입력
    -> 'auth inandout' 입력
    -> 'get {이메일}'

image

image

image

** 근데 Spring Security 때문인지 url 접속하면 자꾸 뭐가 다운됨,,ㅎ 그래서 주석처리하고 테스트했어욥

@dainshon dainshon linked an issue Jul 11, 2024 that may be closed by this pull request
7 tasks
@dainshon dainshon changed the title Feat(#6): 폴더 생성 Feat(#6): 카카오 로그인 Jul 13, 2024
@dainshon dainshon merged commit 17b5b0f into dev Jul 13, 2024
2 checks 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.

카카오 로그인
2 participants