Skip to content

Commit

Permalink
feat: redirect url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GGHDMS committed Dec 18, 2023
1 parent ea07cdc commit 770ed51
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ class SecurityConfig(
if (oAuth2User.authorities.any { it.authority == "ROLE_GUEST" }) {
val oauthName = oAuth2User.name

val targetUrl = buildRedirectUrl(frontProperties.url, mapOf("oauthName" to oauthName))
val targetUrl =
buildRedirectUrl(frontProperties.url + "/kakaoRedirect", mapOf("oauthName" to oauthName))

redirectStrategy.sendRedirect(request, response, targetUrl)
} else {
Expand All @@ -104,7 +105,7 @@ class SecurityConfig(
refreshTokenService.saveTokenInfo(oauthName = oAuth2User.name, refreshToken = refreshToken)

val targetUrl = buildRedirectUrl(
frontProperties.url + "/register",
frontProperties.url,
mapOf("accessToken" to accessToken, "refreshToken" to refreshToken)
)
redirectStrategy.sendRedirect(request, response, targetUrl)
Expand Down

0 comments on commit 770ed51

Please # to comment.