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

[Feature/#2] 소셜 로그인 구현 #4

Merged
merged 18 commits into from
Aug 12, 2023
Merged

[Feature/#2] 소셜 로그인 구현 #4

merged 18 commits into from
Aug 12, 2023

Commits on Aug 10, 2023

  1. feat: BaseEntity 작성

    global/entity 폴더에 created_at, updated_at 필드를 넣는 BaseEntity 클래스를 작성하였습니다.
    Mingyum-Kim committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    fde7784 View commit details
    Browse the repository at this point in the history
  2. feat: User Entity 생성 (#2)

    DB에 매핑될 User 객체를 생성하였습니다. Kakao, Apple 두 개의 소셜 타입을 구분할 SocialType 필드를 enum Type으로 추가하였습니다.
    Mingyum-Kim committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    06c234b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    73d3e7f View commit details
    Browse the repository at this point in the history
  4. feat: OAuthController 생성 및 콜백 메서드 생성

    1. 클라이언트가 AccessToken을 전달할 때 접근하는 'POST /auth' 콜백 주소를 연결할 메서드를 생성하였습니다.
    2. 컨트롤러 메서드의 request, response dto를 record 클래스로 정의하였습니다.
    Mingyum-Kim committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    96cf857 View commit details
    Browse the repository at this point in the history
  5. feat: login 로직을 구현한 OAuthService 생성

    1. 팩토리 메서드 패턴을 적용하여 OAuthClient 인터페이스를 provider에 따라 구현체를 매핑하도록 설정하였습니다.
    2. OAuthClient에서 소셜 사용자의 정보를 불러오고 User 객체로 변환하였습니다.
    3. User가 기 가입한 회원이라면 바로 반환, 그렇지 않다면 DB에 등록 후 반환하기 위해 UserService에서 로직을 구현하였습니다.
    4. 마지막으로 회원에 대한 JWT 를 발급하여 반환하였습니다.
    Mingyum-Kim committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    fe524c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a5b2c0d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b269a29 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f2e9c2b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. feat: WebClient를 이용해 카카오 인증서버에서 사용자 추출 (#2)

    KakaoClient 구현체에서 WebClient 라이브러리를 사용해 kapi.kakao.com 서버에 접근하여 사용자 정보 (KakaoUserInfo)를 추출하는 코드입니다.
    Mingyum-Kim committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    e2cb482 View commit details
    Browse the repository at this point in the history
  2. feat: JwtProvider 클래스 생성

    1. createToken 메서드
    2. validateToken 메서드
    Mingyum-Kim committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    3856b6f View commit details
    Browse the repository at this point in the history
  3. chore: .gitignore 수정

    Mingyum-Kim committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    2ed31b0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d03c52a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7aedf4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1942876 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2023

  1. Configuration menu
    Copy the full SHA
    65b86e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c04716 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c7b187b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31fa951 View commit details
    Browse the repository at this point in the history