SSO、autoApprove设置

This commit is contained in:
冷冷 2018-03-22 20:39:15 +08:00
parent 96174ddcdc
commit 6fa53f0c99
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ public class PigAuthorizationConfig extends AuthorizationServerConfigurerAdapter
.withClient(authServerConfig.getClientId()) .withClient(authServerConfig.getClientId())
.secret(authServerConfig.getClientSecret()) .secret(authServerConfig.getClientSecret())
.authorizedGrantTypes(SecurityConstants.REFRESH_TOKEN, SecurityConstants.PASSWORD,SecurityConstants.AUTHORIZATION_CODE) .authorizedGrantTypes(SecurityConstants.REFRESH_TOKEN, SecurityConstants.PASSWORD,SecurityConstants.AUTHORIZATION_CODE)
.scopes(authServerConfig.getScope()); .scopes(authServerConfig.getScope())
.autoApprove(true);
} }
@Override @Override