diff --git a/src/main/kotlin/com/wafflestudio/csereal/common/config/CustomAuthenticationSuccessHandler.kt b/src/main/kotlin/com/wafflestudio/csereal/common/config/CustomAuthenticationSuccessHandler.kt index 94a5495d..52d1d027 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/common/config/CustomAuthenticationSuccessHandler.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/common/config/CustomAuthenticationSuccessHandler.kt @@ -13,7 +13,7 @@ class CustomAuthenticationSuccessHandler( response: HttpServletResponse, authentication: Authentication ) { - val redirectUrl = "http://localhost:3000/login/success" + val redirectUrl = "${frontendEndpoint}/login/success" response.sendRedirect(redirectUrl) } diff --git a/src/main/kotlin/com/wafflestudio/csereal/common/config/SecurityConfig.kt b/src/main/kotlin/com/wafflestudio/csereal/common/config/SecurityConfig.kt index 88c34783..bee84ad8 100644 --- a/src/main/kotlin/com/wafflestudio/csereal/common/config/SecurityConfig.kt +++ b/src/main/kotlin/com/wafflestudio/csereal/common/config/SecurityConfig.kt @@ -57,7 +57,7 @@ class SecurityConfig( response: HttpServletResponse?, authentication: Authentication? ) { - val redirectUrl = "http://localhost:3000/logout/success" + val redirectUrl = "${endpointProperties.frontend}/logout/success" super.setDefaultTargetUrl(redirectUrl) super.onLogoutSuccess(request, response, authentication) }