Browse Source

first commit

tags/v2.4.1
chenjiandong 1 year ago
parent
commit
78753d4694
1 changed files with 3 additions and 1 deletions
  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 View File

@@ -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())

Loading…
Cancel
Save