From 6b3efde8bc486a18a8a893dbef88b56a68e75e6d Mon Sep 17 00:00:00 2001 From: minuk926 Date: Wed, 19 Jan 2022 20:54:42 +0900 Subject: [PATCH] =?UTF-8?q?social=20login=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xit/core/config/SecurityConfig.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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()