https://galid1.tistory.com/576 (추천)
SpringSecurity - SpringSecurity 간단한 설정과 예제
SpringSecurity sample 공식 문서 _ https___spring SpringSecurity 란 : https://postitforhooney.tistory.com/entry/SpringSecurity-%EC%B4%88%EB%B3%B4%EC%9E%90%EA%B0%80-%EC%9D%B4%ED%95%B4%ED%95%98%EB%8A%..
galid1.tistory.com
https://developerbee.tistory.com/200
Spring Security 로그인 구현하기
Spring Security를 사용하여 로그인과 회원가입 기능을 구현하는 방법을 알아보겠습니다. 간단하게 Spring Security를 적용한 프로젝트는 다음 깃 레포지토리를 통해 확인할 수 있습니다. 해당 프로젝트
developerbee.tistory.com
https://mangkyu.tistory.com/77
[SpringBoot] Spring Security 처리 과정 및 구현 예제
이번에는 Spring Security가 어떤 과정으로 Authentication 처리를 하는지, 그리고 실제로 어떻게 구현하는지 알아보도록 하자. 1. Spring Security 처리 과정 Spring Security 아키텍쳐는 위와 같으며 각각의 처..
mangkyu.tistory.com
WebSecurityConfigurerAdapter (인증 필터링) -> 기존 인터셉터같은 역할 ; 필터링 옵션 (권한체크경로 , redirect 경로 등)
UserDetailsService 상속 (로그인 : loadUserByUserName() 재정의 ) - >
로그인 proccess -> 로그인 필터 -> 로그인 성공
특정 param 으로 계정 유니크값 get / 해당계정 권한값 get (리스트)
-> User class 인스턴스에 해당 스레드 account 정보 담기 -> SecurityContext 에 해당 스레드 account Authentication 정보 저장
AuthenticationSuccessHandler CLASS -> 로그인 성공시 실행 ) -> 세션 저장 (야물파일에 옵션설정시 세션값 model 담지 않아도됨)
PasswordEncoder -> 패스워드 암호화 ( DB 저장시 == sign up )
'BACK-END' 카테고리의 다른 글
페이징 처리 (0) | 2022.09.15 |
---|---|
JAVA REFLECTION ANNOTATION (@interface) (0) | 2022.09.02 |