스프링1 JWT + Spring Security를 이용한 로그인 구현(1) Spring Security 의 구조 1. 클라이언트의 요청이 들어오면 AuthenticationFilter에서 이를 가로챈다. 2-3. 전달받은 클라이언트의 아이디 / 비밀번호 를 UsernamePasswordAuthenticationToken에 담는다. (인증 객체 생성) 4. 이를 AutenticationManager를 이용하여 실제 인증을 구현하는 ProviderManager에 전달한다. 5. ProviderManager에 있는 AuthenticationProvider의 여러 인증 메서드 중 적절한 것을 사용 ( 별도 설정이 없을땐 Spring Security의 기본 설정에 의해 DaoAuthenticationProvider를 사용한다.) 6. DaoAuthenticationProvider가 Us.. 2023. 8. 31. 이전 1 다음