引入会议

This commit is contained in:
zjf committed 2025-03-24 17:59:42 +08:00
1 parent 48c80d4b44
commit 545396db4a
20 files changed
+946 -32

No files matched your search

@@ -111,7 +111,7 @@ public class PjcloudTokenEndpoint {
RegisteredClient registeredClient = RegisteredClient.withId(SecurityConstants.FROM).clientId(SecurityConstants.FROM)
.authorizationGrantType(AuthorizationGrantType.PASSWORD)
.tokenSettings(TokenSettings.builder()
.accessTokenTimeToLive(Duration.ofHours(24)) // token 有效期 24 小时
.accessTokenTimeToLive(Duration.ofDays(7)) // token 有效期 7 天
.refreshTokenTimeToLive(Duration.ofDays(7)) // refresh token 有效期 7 天
.accessTokenFormat(OAuth2TokenFormat.REFERENCE)
.build())