Skip to content

Commit

Permalink
fix: authorized url
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Jul 29, 2024
1 parent 2214dda commit 86c4fe5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class KakaoOAuthService(
private val config: KakaoOAuthClientConfig.Config
) {
suspend fun getOAuthLoginLinkDev(): String {
return config.url + "?client_id=${config.restApiKey}&redirect_uri=${config.redirectUrl}&response_type=code"
return config.url + String.format(config.redirectUrl, config.restApiKey, config.redirectUrl)
}

suspend fun getOAuthAuthorizeCode(redirectUrl: String? = null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ class KakaoOAuthClientConfig {
var clientSecretCode: String = "",
@field:NotBlank
var redirectUrl: String = "",
@field:NotBlank
var authorizedUrl: String = "",
)
}
1 change: 1 addition & 0 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ oauth:
rest-api-key:
client-secret-code:
# redirect url for get OAuth Authorize Code
authorized-url: /authorize?client_id=%s&redirect_uri=%s&response_type=code
redirect-url: https://api.alignlab.site/api/dev/v1/oauth/kakao/token

encrypt:
Expand Down

0 comments on commit 86c4fe5

Please sign in to comment.