1. Spring Security란?

Spring Security는 스프링 기반 애플리케이션의보안(인증과 권한, 인가 등)을 담당하는 스프링 프레임워크입니다. Spring Security는인증과 권한에 대한 부분을Filter의 흐름에 따라 처리합니다.

보안과 관련해서 체계적으로 많은 옵션을 제공해주기 때문에 개발자가 일일이 보안 관련 로직을 작성하지 않아도 된다는 장점이 있습니다.

간단하게 말해서 Spring 진영의 보안 관련 프레임워크이다.


2. Spring Security의 동작원리

https://chathurangat.files.wordpress.com/2017/08/blogpost-spring-security-architecture.png

일반적인 Form Login 절차

1. 요청 수신

2. 토큰 생성

3. Authentication Manager에게 처리 위임

4. Token을 처리할 수 있는 Authentication Provider 선택