Skip to content

Commit

Permalink
feat: 支持PKCE模式OAuth认证 #1124
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Sep 7, 2023
1 parent 7403177 commit 9c1b846
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,12 @@ class OauthAuthorizationServiceImpl(
)
}

private fun checkClientSecret(clientId: String, clientSecret: String?, code: String?, codeVerifier: String?): TAccount {
private fun checkClientSecret(
clientId: String,
clientSecret: String?,
code: String?,
codeVerifier: String?
): TAccount {
val client = accountRepository.findById(clientId)
.orElseThrow { ErrorCodeException(AuthMessageCode.AUTH_CLIENT_NOT_EXIST) }

Expand Down

0 comments on commit 9c1b846

Please sign in to comment.