Loading src/main/java/es/redmic/api/config/Oauth2SecurityConfiguration.java +25 −21 Original line number Diff line number Diff line Loading @@ -78,6 +78,10 @@ public class Oauth2SecurityConfiguration { http.authorizeRequests().antMatchers("/**/_selection/**").permitAll(); http.authorizeRequests().antMatchers("/**/_selections/**").access( "#oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')"); http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/_search/_schema").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/utils/geo/convert2geojson").permitAll(); Loading Loading
src/main/java/es/redmic/api/config/Oauth2SecurityConfiguration.java +25 −21 Original line number Diff line number Diff line Loading @@ -78,6 +78,10 @@ public class Oauth2SecurityConfiguration { http.authorizeRequests().antMatchers("/**/_selection/**").permitAll(); http.authorizeRequests().antMatchers("/**/_selections/**").access( "#oauth2.hasScope('write') and " + "hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')"); http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/_search/_schema").permitAll(); http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/utils/geo/convert2geojson").permitAll(); Loading