Sfoglia il codice sorgente

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

tags/v2.4.1
xiaoying 1 anno fa
parent
commit
6003ad7c41
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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 Vedi 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…
Annulla
Salva