123
This commit is contained in:
1 parent
6ac13817a4
commit
4bf3e66a3a
2 files changed
+15
-5
No files matched your search
+1
-1
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user