|
@@ -50,10 +50,14 @@ public class OauthAuthorizationServerConfiguration extends AuthorizationServerCo
|
|
|
clients.inMemory() // 内存方式
|
|
|
.withClient("simulation-oauth-client") // 客户端 id
|
|
|
.secret("hPT7zVteEXvRzS41NhJXoQYqtGmai3W0") // 客户端密钥
|
|
|
- .resourceIds("simulation-resource-scheduler") // 客户端拥有的资源列表
|
|
|
+ .resourceIds(
|
|
|
+ "simulation-resource-common",
|
|
|
+ "simulation-resource-scheduler",
|
|
|
+ "simulation-resource-sever"
|
|
|
+ ) // 客户端拥有的资源列表
|
|
|
.authorizedGrantTypes("password", "refresh_token") // 允许的授权方式
|
|
|
.scopes("all") // 授权范围划分
|
|
|
- .autoApprove(false); // 是否自动通过,即是否跳过 scope 选择界面,跳过的话代表将所有 scope 授权范围赋予该 client
|
|
|
+ .autoApprove(true); // 是否自动通过,即是否跳过 scope 选择界面,跳过的话代表将所有 scope 授权范围赋予该 client
|
|
|
}
|
|
|
|
|
|
/**
|