This commit is contained in:
lu7213 committed 2026-07-09 15:03:36 +08:00
1 parent 6ac13817a4
commit 4bf3e66a3a
2 files changed
+15 -5

No files matched your search

@@ -36,7 +36,7 @@ public class OAuth2AuthorizationServerConfig extends AuthorizationServerConfigur
.secret(passwordEncoder.encode("123456")) // 客户端密钥(加密)
.authorizedGrantTypes("client_credentials") // 授权类型:client_credentials
.scopes("openapi") // 授权范围
.accessTokenValiditySeconds(3600) // token有效期(秒)
.accessTokenValiditySeconds(31536000) // token有效期(秒)
.and()
.withClient("luqj-client") // 额外的客户端
.secret(passwordEncoder.encode("luqj-secret"))