diff --git a/src/main/java/com/amorgakco/backend/global/config/SecurityConfig.java b/src/main/java/com/amorgakco/backend/global/config/SecurityConfig.java index b07a09d..1bec6bc 100644 --- a/src/main/java/com/amorgakco/backend/global/config/SecurityConfig.java +++ b/src/main/java/com/amorgakco/backend/global/config/SecurityConfig.java @@ -52,11 +52,8 @@ public SecurityFilterChain securityFilterChain(final HttpSecurity http) throws E .sessionManagement(c -> c.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) .oauth2Login( oauth -> - { - oauth.userInfoEndpoint(c -> c.userService(oauth2UserService)) - .successHandler(oauth2SuccessHandler); - oauth.authorizationEndpoint(c->c.baseUri("/api/auth/callback")); - }) + oauth.userInfoEndpoint(c -> c.userService(oauth2UserService)) + .successHandler(oauth2SuccessHandler)) .addFilterBefore( jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class) .addFilterBefore(jwtExceptionHandlingFilter, JwtAuthenticationFilter.class)