|
|
@ -208,9 +208,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
|
|
|
|
|
|
|
|
.oauth2Login()
|
|
|
|
.oauth2Login()
|
|
|
|
.authorizationEndpoint()
|
|
|
|
.authorizationEndpoint()
|
|
|
|
.baseUri("/oauth2/authorization")
|
|
|
|
.baseUri("/oauth2/authorize")
|
|
|
|
.authorizationRequestRepository(oAuth2AuthorizationRequestBasedOnCookieRepository())
|
|
|
|
.authorizationRequestRepository(oAuth2AuthorizationRequestBasedOnCookieRepository())
|
|
|
|
|
|
|
|
.and()
|
|
|
|
|
|
|
|
.redirectionEndpoint()
|
|
|
|
|
|
|
|
.baseUri("/oauth2/callback/*")
|
|
|
|
.and()
|
|
|
|
.and()
|
|
|
|
.userInfoEndpoint()
|
|
|
|
.userInfoEndpoint()
|
|
|
|
.userService(customOAuth2UserService)
|
|
|
|
.userService(customOAuth2UserService)
|
|
|
|