-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #88
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
Develop #88
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough이 변경 사항은 인증 컨트롤러에 로그아웃 엔드포인트를 추가하고, 오류 코드 Enum에 새로운 상수를 도입하며, 로그인 서비스에서 탈퇴 회원에 대한 검증 로직을 추가합니다. 로그아웃은 토큰 형식만 확인하고, 서버 측 세션 무효화는 수행하지 않습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AuthController
participant AuthService
participant MemberRepository
Client->>AuthController: POST /login (email, password)
AuthController->>AuthService: login(email, password)
AuthService->>MemberRepository: findByEmail(email)
MemberRepository-->>AuthService: Member
AuthService->>AuthService: isDeleted 체크
alt isDeleted == true
AuthService-->>AuthController: throw USER_DELETED 예외
AuthController-->>Client: 403 Forbidden, "탈퇴한 회원입니다."
else isDeleted == false
AuthService->>AuthService: 비밀번호 검증 및 토큰 생성
AuthService-->>AuthController: 토큰 등 반환
AuthController-->>Client: 로그인 성공 응답
end
sequenceDiagram
participant Client
participant AuthController
Client->>AuthController: POST /logout (Authorization 헤더)
alt Authorization 헤더가 "Bearer "로 시작
AuthController-->>Client: 200 OK, "로그아웃이 정상적으로 처리되었습니다."
else
AuthController-->>Client: 400 Bad Request, UNAUTHORIZED 메시지
end
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
이슈 번호
작업 내용
기타
Summary by CodeRabbit