mirror of https://gitee.com/maxjhandsome/pig
SSO、autoApprove设置
This commit is contained in:
parent
96174ddcdc
commit
6fa53f0c99
|
@ -52,7 +52,8 @@ public class PigAuthorizationConfig extends AuthorizationServerConfigurerAdapter
|
|||
.withClient(authServerConfig.getClientId())
|
||||
.secret(authServerConfig.getClientSecret())
|
||||
.authorizedGrantTypes(SecurityConstants.REFRESH_TOKEN, SecurityConstants.PASSWORD,SecurityConstants.AUTHORIZATION_CODE)
|
||||
.scopes(authServerConfig.getScope());
|
||||
.scopes(authServerConfig.getScope())
|
||||
.autoApprove(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue