Spring Security
Spring Security 인증 흐름
Wanderer Kim
2025. 4. 27. 10:50
반응형
spring security 에서 인증 흐름이 어떻게 이루어지는지 알아보자.
위의 그림은 spring security의 인증 흐름을 나타내고 있다.
- Authentication filter에서 request를 가로챈다.
- Authentication manager으로 인증 책임이 위임된다.
- Authentication manager는 Authentication provider를 이용해서 인증 논리를 구현한다.
- Authentication provider는 User details service를 이용해서 사용자를 찾고 Password encoder로 암호를 검증한다.
- Security context에 인증된 entity에 관한 세부 정보가 저장된다.
728x90