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