diff --git a/src/main/java/com/xit/core/config/SecurityConfig.java b/src/main/java/com/xit/core/config/SecurityConfig.java index 1b3e95f..48e3f9c 100644 --- a/src/main/java/com/xit/core/config/SecurityConfig.java +++ b/src/main/java/com/xit/core/config/SecurityConfig.java @@ -208,10 +208,12 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { .oauth2Login() .authorizationEndpoint() - .baseUri("/oauth2/authorization") - .authorizationRequestRepository(oAuth2AuthorizationRequestBasedOnCookieRepository()) - - .and() + .baseUri("/oauth2/authorize") + .authorizationRequestRepository(oAuth2AuthorizationRequestBasedOnCookieRepository()) + .and() + .redirectionEndpoint() + .baseUri("/oauth2/callback/*") + .and() .userInfoEndpoint() .userService(customOAuth2UserService) .and()