diff --git a/server/src/main/java/com/talkka/server/config/SecurityConfig.java b/server/src/main/java/com/talkka/server/config/SecurityConfig.java index d9ffb9f2..81fd89de 100644 --- a/server/src/main/java/com/talkka/server/config/SecurityConfig.java +++ b/server/src/main/java/com/talkka/server/config/SecurityConfig.java @@ -27,7 +27,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .requestMatchers("/auth/**", "/login/**").permitAll() .anyRequest().authenticated() ) - .addFilterBefore(new UnregisteredUserFilter(), BasicAuthenticationFilter.class) + .addFilterAfter(new UnregisteredUserFilter(), BasicAuthenticationFilter.class) .oauth2Login(oauth -> oauth .userInfoEndpoint(userInfo -> userInfo.userService(customOAuth2Service)) .defaultSuccessUrl("/")