Everyday Dev System

Spring Security 본문

내배캠 주요 학습/TIL : Today I Learned

Spring Security

chaeyoung- 2023. 7. 7. 20:39

 

Spring Security 는 필터 모임이라고 보면 됩니다.

SecurityFliterChain을 Proxy 레이어로 감싸고 있습니다.



DelegatingFilterProxy가 FilterChainProxy를 감싸고 있고,
FilterChainProxy가 시큐리티 필터들을 모두 묶음으로 관리합니다.

 

 

 

 

 

UsernamePasswordAuthenticationFilter는 AbstractAuthenticationProcessingFilter를 상속한 필터입니다.



여러개의 인증 방법이 있을 수 있음.
그러므로 AuthenticationProvider를 list로 갖고 있고
어덴케이션 매니저가 해당 요청에 맞는 provider를 맵핑해줌.

UserDetails 
인증된 정보를 가져오기 위함

User Entity
엔티티는 DB에 저장하기 위해 맵핑되는 클래스임

 

 

 

 

 

 

여러개의 인증 방법이 있을 수 있음.
그러므로 AuthenticationProvider를 list로 갖고 있고
어덴케이션 매니저가 해당 요청에 맞는 provider를 맵핑해줌.

UserDetails 
인증된 정보를 가져오기 위함

User Entity
엔티티는 DB에 저장하기 위해 맵핑되는 클래스임

 

 

 


references :

https://teamsparta.notion.site/3-52550b9e4f5140e9975d51f9b97223ce