Skip to content

Commit

Permalink
feat: OAuth支持客户端模式 #1252
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan committed Oct 13, 2023
1 parent d9602eb commit 8d121cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data class TOauthToken(
val expireSeconds: Long?,
val type: String,
val accountId: String,
val userId: String,
var userId: String,
var scope: Set<ResourceType>?,
var issuedAt: Instant,
var idToken: IdToken?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class OauthAuthorizationServiceImpl(
if (client.scope != tOauthToken.scope) {
tOauthToken.scope = client.scope!!
}
tOauthToken.userId = userId
tOauthToken.accessToken = idToken.toJwtToken()
tOauthToken.idToken = if (openId) idToken else null
tOauthToken.issuedAt = Instant.now(Clock.systemDefaultZone())
Expand Down

0 comments on commit 8d121cd

Please sign in to comment.