Skip to content

OAuth 로그인 auth 도메인과 계정 연결 구성 #83

Description

@tnals0924

어떤 기능인가요?

상위 이슈: #82

OAuth 로그인의 auth 도메인 구조를 세운다. provider별 로직을 전략 인터페이스 OAuthClient로 분리하고, 요청의 provider로 구현체를 고르는 레지스트리를 둔다. provider 계정과 회원의 연결은 auth 도메인의 oauth_accounts 테이블이 가진다.

📝 작업 상세 내용

  • core:domain:auth Gradle 좌표·jar 이름을 gateway:auth와 분리 (둘 다 kr.ac.kookmin:auth로 잡혀 한쪽이 치환되는 문제)
  • OAuthProvider·OAuthLoginCommand·OAuthUserInfo·OAuthErrorCode, 전략 OAuthClient, OAuthClientRegistry, OAuthService
  • OAuthAccount·OAuthAccountRepository, Flyway V13__create_oauth_accounts_table.sql, JPA Entity·RepositoryImpl
  • ErrorStatus.BAD_GATEWAY 추가
  • coding-style.md 2-12: 요청마다 구현체를 고르는 포트(레지스트리) 컨벤션

📁 참고 자료 (선택)

  • 머지 순서: 이 이슈 → 회원 가입·갱신(member) → KConnect 클라이언트 → 로그인 API

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions