Loading src/main/java/es/redmic/api/config/Oauth2SecurityConfiguration.java +2 −4 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ public class Oauth2SecurityConfiguration { http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/utils/geo/convert2geojson").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/activitycategories").access( "#oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')"); Loading Loading @@ -103,10 +105,6 @@ public class Oauth2SecurityConfiguration { "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')"); http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR')"); http.authorizeRequests().antMatchers("/**/convert2redmic/**").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR')"); Loading Loading
src/main/java/es/redmic/api/config/Oauth2SecurityConfiguration.java +2 −4 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ public class Oauth2SecurityConfiguration { http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/utils/geo/convert2geojson").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/activitycategories").access( "#oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')"); Loading Loading @@ -103,10 +105,6 @@ public class Oauth2SecurityConfiguration { "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR')"); http.authorizeRequests().antMatchers(HttpMethod.GET, "/sitemap.xml").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR')"); http.authorizeRequests().antMatchers("/**/convert2redmic/**").access( "#oauth2.hasScope('read') or #oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR')"); Loading