diff --git a/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java b/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java index 5b356d3..df6d17e 100644 --- a/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java +++ b/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java @@ -67,7 +67,7 @@ public class OAuth2ServerConfiguration { .requestMatchers().antMatchers("/unity/**") .and() .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/**") .and() .authorizeRequests() - .antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('ROLE_MOBILE')"); + .antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('MOBILE')"); }