개발환경
front : vue3 port3000
back : springboot 3.3.1, spring security 6.3.1 port8080
예전 Spring Security를 했을 때는 발생하지 않았던 문제들이나 바뀐 것 때문에 설정에 대해서 애를 먹었다.
현재 구글링을 해도 Spring Security 6 버전에 대한 설명이 나와있는 경우도 별로 없어서 정리해야겠다.

우선 내가 설정한 클래스들이다. 기존의 SpringSecurity를 이용하는게 아니라 커스텀
(내가 다시 재정의해서 사용하는 것)했다.
흐름
SecurityConfig → CustomAuthenticationEntryPoint → CustomAccessDeniedHandler → CustomAuthenticationProvider
CustomUsernamePasswordAuthenticationFilter → CustomUserDetailsService → CustomUserDetail →
CustomAuthenticationSuccessHandler, CustomAuthenticationFailuerHandler
'Spring_SpringBoot > 코드' 카테고리의 다른 글
[ Spring Security 6 ] - 4 , UsernamePasswordAuthenticationFilter (0) | 2024.07.07 |
---|---|
[ Spring Security 6 ] - 3 , AccessDeniedHandler, AuthenticationEntryPoint (0) | 2024.07.07 |
[ Spring Security 6 ] - 2 , SecurityConfig (0) | 2024.07.07 |
빈 순환참조, 필드 주입, 생성자 주입 (0) | 2024.06.27 |
JWT(JSON Web Token) (0) | 2024.06.24 |