상세 컨텐츠

본문 제목

Spring Security 인증 흐름

Spring Security

by Wanderer Kim 2025. 4. 27. 10:50

본문

728x90
반응형

spring security 에서 인증 흐름이 어떻게 이루어지는지 알아보자.

 

위의 그림은 spring security의 인증 흐름을 나타내고 있다.

  1.  Authentication filter에서 request를 가로챈다.
  2. Authentication manager으로 인증 책임이 위임된다.
  3. Authentication manager는 Authentication provider를 이용해서 인증 논리를 구현한다.
  4. Authentication provider는 User details service를 이용해서 사용자를 찾고 Password encoder로 암호를 검증한다.
  5. Security context에 인증된 entity에 관한 세부 정보가 저장된다.

 

728x90

관련글 더보기

댓글 영역