[Feature] #1 세션 기반 인증 API 구현 - #4
Open
ethan0587 wants to merge 4 commits into
Open
Conversation
Open
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈
Closes #1
🛠 작업 내용
/auth/signup//auth/login//auth/logout//auth/session/csrftoken발급{ code, message }포맷 통일session뷰에@ensure_csrf_cookie적용 → 진입 시csrftoken쿠키 발급🔍 테스트 결과 (curl 검증 완료)
has_profile반영)sessionid파기is_authenticated:falseINVALID_INPUTINVALID_CREDENTIALSNOT_AUTHENTICATEDsessionid→HttpOnly적용 /csrftoken→ 미적용 확인csrftokenrotate 동작 확인📸 스크린샷 (UI 변경 시)
✅ 체크리스트
SessionAuthentication은인증된 세션이 있을 때만 CSRF를 검사한다. → 비로그인 로그인 요청이 CSRF 없이 통과됨.
명세를 완화할지 확정 필요.
📎 참고
requirements.txt에djangorestframework반영됨