修改RoLE的错误配置

pull/2/MERGE
monkeyk7 2019-05-10 11:07:20 +08:00
parent a730515f29
commit abcab1e980
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ public class OAuth2ServerConfiguration {
.requestMatchers().antMatchers("/unity/**") .requestMatchers().antMatchers("/unity/**")
.and() .and()
.authorizeRequests() .authorizeRequests()
.antMatchers("/unity/**").access("#oauth2.hasScope('read') and hasRole('ROLE_UNITY')"); .antMatchers("/unity/**").access("#oauth2.hasScope('read') and hasRole('UNITY')");
} }
@ -93,7 +93,7 @@ public class OAuth2ServerConfiguration {
.requestMatchers().antMatchers("/m/**") .requestMatchers().antMatchers("/m/**")
.and() .and()
.authorizeRequests() .authorizeRequests()
.antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('ROLE_MOBILE')"); .antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('MOBILE')");
} }