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

[IDLE-67] 센터 로그인 API 및 JWT 토큰 발급 로직 구현 #45

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

wonjunYou
Copy link
Contributor

@wonjunYou wonjunYou commented Jul 9, 2024

Backgrounds

센터 관리자의 회원 가입을 위해 로그인 API가 필요합니다.

Goals & Non-Goals

Goals

  • 센터 관리자는 ID, PW로 로그인을 진행합니다.
    • ID, PW에 대한 DB 검증이 이루어져야 합니다.
    • 인증된 사용자의 경우, access token과 refresh token을 발급하여 반환합니다.
  • 로그인에는 jwt token을 이용합니다.

Non goals

  • 인증이 필요한 API에 대해 토큰을 검증하는 로직은 해당 API에서 제외합니다.

Methodology & Design(Proposal)

API

  • API
    • [🆕 Sample] POST /api/v1/auth/center/login
      • request

        • method & path: POST /api/v1/auth/center/login

        • body

          {
            "identifier": "string", (required & not null)
            "password": "string", (required & not null)
          }
      • response

        • 정상 처리된 경우

          • status code: 200 OK

          • body

            {
              "accessToken": "string",
              "refreshToken": "string"
            }
        • 가입되지 않은 사용자인 경우

          • status code: 401 UnAuthorized

Schedule

  • 설계 및 문서 작성
  • 로그인 API 명세 및 구현
  • Access, Refresh Token 생성 로직 구현
  • Refresh Token 저장 로직 구현
  • 1차 dev 배포 및 QA

@wonjunYou wonjunYou added the ✨기능 기능 개발 및 구현 label Jul 9, 2024
@wonjunYou wonjunYou self-assigned this Jul 9, 2024
Copy link

sonarqubecloud bot commented Jul 9, 2024

@wonjunYou wonjunYou merged commit 5b8b354 into develop Jul 9, 2024
3 checks passed
@wonjunYou wonjunYou deleted the feat/IDLE-67 branch July 9, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨기능 기능 개발 및 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant