-
Notifications
You must be signed in to change notification settings - Fork 3
refactor : 랭킹 조회 인증 경로 세분화 #174
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
Conversation
Walkthrough보안 설정이 변경되어 문제 및 랭킹 관련 API 엔드포인트의 접근 제어 규칙이 수정되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant SecurityConfig
participant API
Client->>SecurityConfig: GET /api/rankings/weekly
SecurityConfig-->>API: 인증 없이 요청 허용
Client->>SecurityConfig: GET /api/rankings/me/around
SecurityConfig-->>API: 인증 필요, 인증 검사
Client->>SecurityConfig: GET /api/problems/123
SecurityConfig-->>API: 인증 없이 요청 허용
Client->>SecurityConfig: GET /api/admin/...
SecurityConfig-->>API: ADMIN 권한 필요
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learningssrc/main/java/org/ezcode/codetest/common/security/config/SecurityConfig.java (1)Learnt from: NCookies ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
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
CodeRabbit Configuration File (
|
로그인 없이 랭킹 조회 가능하도록 get 요청으로 들어오는 하단 경로를 시큐리티에서 열어줌
하지만 로그인한 유저의 경우, 유저의 정보를 가져와서 본인 랭킹을 확인해야하므로 필터 단계는 검증하도록 설정
필터는 거치고, 시큐리티는 넘어가게
/api/rankings/me/around-> 이 경로는 인증이 필요함 (본인 랭킹 조회용)코드 리뷰 전 확인 체크리스트
type :)Summary by CodeRabbit
/api/rankings/me/around)는 로그인한 사용자만 접근할 수 있도록 조정되었습니다.