From 28f002a7105ccbafc3216b25701286f69f5faa84 Mon Sep 17 00:00:00 2001 From: toychip Date: Tue, 2 Jan 2024 03:04:31 +0900 Subject: [PATCH] fix: Login url, redirect url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 잘못된 로그인, 로그인 성공 후 경로 수정 --- .../com/api/TaveShot/global/config/SecurityConfig.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/api/TaveShot/global/config/SecurityConfig.java b/src/main/java/com/api/TaveShot/global/config/SecurityConfig.java index 333e387..ce32269 100644 --- a/src/main/java/com/api/TaveShot/global/config/SecurityConfig.java +++ b/src/main/java/com/api/TaveShot/global/config/SecurityConfig.java @@ -56,8 +56,12 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .anyRequest().permitAll()); http .oauth2Login() - .authorizationEndpoint().baseUri("/login/oauth/authorize") - .and() + .authorizationEndpoint() + .baseUri("/login") + .and() + .redirectionEndpoint() + .baseUri("/login/oauth/authorize/github") + .and() .userInfoEndpoint() .userService(customOAuth2UserService) .and()