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

[fix] Spring security + JWT를 이용한 OAuth2 구글 로그인 API 구현 #15

Closed
7 tasks done
RumosZin opened this issue Feb 12, 2024 · 0 comments
Closed
7 tasks done

Comments

@RumosZin
Copy link
Collaborator

RumosZin commented Feb 12, 2024

📌 Issue 내용

  • Spring security + JWT를 이용해 OAuth2 구글 로그인 API를 구현합니다.

📝 TO DO

  • User 클래스 수정
  • JWT 관련 클래스 생성 (JWT 인증 로직 확인)
  • 자체 JSON 로그인 커스텀하기
  • OAuth 2.0 로그인 구현 사전 설정
  • OAuth 2.0 로그인 관련 클래스 생성
  • SecurityConfig 설정 클래스 생성
  • OAuth2 login 동작 테스트
RumosZin added a commit to RumosZin/FTIsland-BE that referenced this issue Feb 12, 2024
- User의 경우 ERD에 나온 내용 그대로 반영하도록 필드 수정
- Role의 경우 admin, guest, user 세 필드가 존재하도록 수정 + title 없이 key만으로 구분 가능하므로 title 삭제
- spring security에서는 권한(ROLE) 코드에 항상 접두사 "ROLE_"이 앞에 붙어야 함

GDSC-CAU#15
RumosZin added a commit to RumosZin/FTIsland-BE that referenced this issue Feb 12, 2024
- User entity에 ERD 내용 반영하여 설정
- 소셜 로그인 구글 제외 여러 소셜 추가를 위한 socialtype 설정
- 자체 로그인 기능 발생 시 DTO
- user controller에 /sign-up, /jwt-test URL 등록
- user repository에 email과 isParent로 중복된 사용자 확인 필요 -> 추후 2명의 유저가 로그인하도록 설정해야 함
- 자체 로그인 기능에서 userservice 생성

GDSC-CAU#15
RumosZin added a commit to RumosZin/FTIsland-BE that referenced this issue Feb 13, 2024
RumosZin added a commit that referenced this issue Feb 14, 2024
[fix] Spring security + JWT를 이용한 OAuth2 구글 로그인 API 구현
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

No branches or pull requests

1 participant