https://github.com/codingspecialist/Springboot-Security-JWT-Easy/blob/master/src/main/java/com/cos/jwtex01/config/jwt/JwtAuthorizationFilter.java
검색하다 찾은 오픈소스인데
인증 단계에서 UsernamePassword 필터로 로그인하고 성공하면 응답 헤더에 토큰 설정
인가 단계에서 Security Context에 존재하는 Authentication으로 인가하고 Authentication 없으면 강제 생성
이렇게 하거든? 보통 이렇게 함?
딴지 걸려는게 아니고 그냥 보통 어떻게 구현하는지 몰라서 묻는거
댓글 0