https://github.com/codingspecialist/Springboot-Security-JWT-Easy/blob/master/src/main/java/com/cos/jwtex01/config/jwt/JwtAuthorizationFilter.java

https://github.com/codingspecialist/Springboot-Security-JWT-Easy/blob/master/src/main/java/com/cos/jwtex01/config/jwt/JwtAuthorizationFilter.java

Springboot-Security-JWT-Easy/JwtAuthorizationFilter.java at master · codingspecialist/Springboot-Security-JWT-EasyContribute to codingspecialist/Springboot-Security-JWT-Easy development by creating an account on GitHub.github.com


검색하다 찾은 오픈소스인데

인증 단계에서 UsernamePassword 필터로 로그인하고 성공하면 응답 헤더에 토큰 설정

인가 단계에서 Security Context에 존재하는 Authentication으로 인가하고 Authentication 없으면 강제 생성

이렇게 하거든? 보통 이렇게 함?


딴지 걸려는게 아니고 그냥 보통 어떻게 구현하는지 몰라서 묻는거