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