浏览代码

Merge remote-tracking branch 'origin/develop' into develop

tags/v2.4.1
xiaoying 1年前
父节点
当前提交
6003ad7c41
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      tuoheng_oidc_server/src/main/java/com/tuoheng/until/RegisteredClientUtil.java

+ 3
- 1
tuoheng_oidc_server/src/main/java/com/tuoheng/until/RegisteredClientUtil.java 查看文件

@@ -32,6 +32,8 @@ public class RegisteredClientUtil {
})
.authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE)
.authorizationGrantType(AuthorizationGrantType.REFRESH_TOKEN)
.authorizationGrantType(AuthorizationGrantType.CLIENT_CREDENTIALS)
.authorizationGrantType(AuthorizationGrantType.PASSWORD)
.redirectUri("http://www.baidu.com")
.scope(OidcScopes.OPENID)
.scope(OidcScopes.PROFILE)
@@ -42,7 +44,7 @@ public class RegisteredClientUtil {
.tokenSettings(TokenSettings.builder()
.accessTokenFormat(OAuth2TokenFormat.SELF_CONTAINED)
.idTokenSignatureAlgorithm(SignatureAlgorithm.RS256)
.accessTokenTimeToLive(Duration.ofMinutes(30))
.accessTokenTimeToLive(Duration.ofDays(1))
.refreshTokenTimeToLive(Duration.ofDays(7))
.reuseRefreshTokens(true)
.build())

正在加载...
取消
保存