Repository navigation
feat: Phase 4 - authentication - #7
Merged
Merged
Conversation
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.
Phase 4 — 인증 (회원가입/로그인/세션/소유권)
세션 기반 인증을 구현하고, Article에 소유자 개념 추가
완료한 작업
spring-security-crypto의존성 추가 (Security 스타터 전체 미사용)PasswordEncoderBean 등록 (BCryptPasswordEncoder)User도메인 +UserRepository(memory) + 순수 JUnit 테스트passwordEncoder.matches()로 검증, 세션 저장)session.invalidate())LoginCheckInterceptor+WebConfig로 인증 검사 (로그인/회원가입 경로 제외 처리)@Valid+BindingResult로 회원가입 폼 검증, 에러 메시지 표시Article에userId연결, 등록 시 로그인 사용자 id 세팅학습 개념
HttpSession,PasswordEncoderBean 등록, BCryptencode/matches,HandlerInterceptor+WebMvcConfigurer,@Valid+BindingResult, DTO(폼 객체), Thymeleafth:field/th:object검증 방법
/articles접근 시/login으로 리다이렉트 확인완료 기준 (DoD)
참고
rpi/article-vocab-tracker/plan/PLAN.md(Phase 4)