99import jakarta .servlet .ServletException ;
1010import jakarta .servlet .http .HttpServletRequest ;
1111import jakarta .servlet .http .HttpServletResponse ;
12+ import java .io .IOException ;
13+ import java .util .List ;
1214import lombok .RequiredArgsConstructor ;
1315import lombok .extern .slf4j .Slf4j ;
1416import org .springframework .security .core .Authentication ;
1719import org .springframework .stereotype .Component ;
1820import org .springframework .web .filter .OncePerRequestFilter ;
1921
20- import java .io .IOException ;
21- import java .util .List ;
22- import software .amazon .awssdk .services .s3 .endpoints .internal .Value .Str ;
23-
2422@ RequiredArgsConstructor
2523@ Slf4j
2624@ Component
@@ -35,7 +33,8 @@ protected boolean shouldNotFilter(HttpServletRequest request) {
3533 }
3634
3735 @ Override
38- protected void doFilterInternal (HttpServletRequest request , HttpServletResponse response , FilterChain filterChain ) throws ServletException , IOException {
36+ protected void doFilterInternal (HttpServletRequest request , HttpServletResponse response ,
37+ FilterChain filterChain ) throws ServletException , IOException {
3938 EncodedToken accessToken = getAccessToken (request );
4039 jwtUseCase .processAccessToken (accessToken , response );
4140
@@ -57,7 +56,8 @@ private EncodedToken getAccessToken(HttpServletRequest request) {
5756 return new EncodedToken (accessToken );
5857 }
5958
60- private JwtAuthenticationToken createAuthenticationToken (Claims claims , EncodedToken accessToken ) {
59+ private JwtAuthenticationToken createAuthenticationToken (Claims claims ,
60+ EncodedToken accessToken ) {
6161 String userId = claims .get ("id" , String .class );
6262 UserRole role = UserRole .valueOf (claims .get ("role" , String .class ));
6363
0 commit comments