From 56a0688a8d16a38d00afda6bac98fccac566052b Mon Sep 17 00:00:00 2001 From: sdw504512 Date: Fri, 15 Mar 2024 11:38:46 +0900 Subject: [PATCH] Fix: add login redirection url permission --- .../java/com/senity/waved/base/config/WebSecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/senity/waved/base/config/WebSecurityConfig.java b/src/main/java/com/senity/waved/base/config/WebSecurityConfig.java index cde225b..f29615c 100644 --- a/src/main/java/com/senity/waved/base/config/WebSecurityConfig.java +++ b/src/main/java/com/senity/waved/base/config/WebSecurityConfig.java @@ -42,6 +42,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti }) .authorizeHttpRequests(authorizeHttpRequests -> authorizeHttpRequests .requestMatchers( "/oauth2/**").permitAll() + .requestMatchers("/login/oauth2/code/**").permitAll() .anyRequest().authenticated() ) .sessionManagement(sessionManagement -> @@ -54,7 +55,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .redirectionEndpoint(redirection -> redirection .baseUri("/login/oauth2/code/**") ) - .userInfoEndpoint(userInfo -> userInfo.userService(customOAuth2UserService)) .successHandler(oAuth2AuthenticationSuccessHandler) );