Commit 367210e7 authored by Noel Alonso's avatar Noel Alonso
Browse files

Modifica config de seguridad

parent 480b9b12
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ public class Oauth2SecurityConfiguration {
		public void configure(HttpSecurity http) throws Exception {
			// @formatter:off
			
			http.cors();
			http.cors().and().anonymous().and().authorizeRequests()
				.antMatchers(HttpMethod.GET, "/actuator/**").permitAll();
			
			http.authorizeRequests().antMatchers(HttpMethod.GET, "/**/settings/_suggest").access(
					"#oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')");
@@ -48,8 +49,6 @@ public class Oauth2SecurityConfiguration {
			http.authorizeRequests().antMatchers("/**/settings/**").access(
					"#oauth2.hasScope('write') and hasAnyRole('ROLE_ADMINISTRATOR', 'ROLE_OAG', 'ROLE_COLLABORATOR', 'ROLE_USER')");
			
			http.authorizeRequests().antMatchers(HttpMethod.GET, "/actuator/**").permitAll();
			
			http.authorizeRequests().antMatchers(HttpMethod.GET, "/**").permitAll();
			
			http.authorizeRequests().antMatchers(HttpMethod.POST, "/**/_search").permitAll();