Commit 55a23879 authored by Noel Alonso's avatar Noel Alonso
Browse files

Deslimita métodos de acceso a healthcheck

parent 5d19532d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ public class Oauth2SecurityConfiguration {
			// @formatter:off

			http.cors().and().anonymous().and().authorizeRequests()
				.antMatchers(HttpMethod.GET, "/actuator/**").permitAll();
				.antMatchers("/actuator/**").permitAll();

			http.authorizeRequests()
				.antMatchers(HttpMethod.POST, "/discover-layers/**").permitAll();
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ 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("/actuator/**").permitAll();

			http.authorizeRequests().antMatchers(HttpMethod.GET, "/**").permitAll();