diff --git a/pom.xml b/pom.xml index 28771b6..6dc904a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.ai.st.zuul st-zuul-server - 1.5.0 + 1.9.4 st-zuul-server Sistema TransiciĆ³n - Servidor Perimetral diff --git a/src/main/java/com/ai/st/zuul/oauth/ResourceServerConfig.java b/src/main/java/com/ai/st/zuul/oauth/ResourceServerConfig.java index b65702a..85300e7 100644 --- a/src/main/java/com/ai/st/zuul/oauth/ResourceServerConfig.java +++ b/src/main/java/com/ai/st/zuul/oauth/ResourceServerConfig.java @@ -235,6 +235,21 @@ public void configure(HttpSecurity http) throws Exception { .antMatchers(HttpMethod.PUT, "/api/quality/v1/products/{productId}").hasAnyRole(ROLE_MANAGER) .antMatchers(HttpMethod.DELETE, "/api/quality/v1/products/{productId}").hasAnyRole(ROLE_MANAGER) + // microservice sinic + .antMatchers(HttpMethod.POST, "/api/sinic/v1/deliveries").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.GET, "/api/sinic/v1/deliveries").hasAnyRole(ROLE_MANAGER, ROLE_ADMINISTRATOR) + .antMatchers(HttpMethod.GET, "/api/sinic/v1/deliveries/{deliveryId}").hasAnyRole(ROLE_MANAGER, ROLE_ADMINISTRATOR) + .antMatchers(HttpMethod.DELETE, "/api/sinic/v1/deliveries/{deliveryId}").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.PUT, "/api/sinic/v1/deliveries/{deliveryId}").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.PATCH, "/api/sinic/v1/deliveries/{deliveryId}/status/delivered").hasAnyRole(ROLE_MANAGER) + + .antMatchers(HttpMethod.POST, "/api/sinic/v1/deliveries/{deliveryId}/files").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.GET, "/api/sinic/v1/deliveries/{deliveryId}/files").hasAnyRole(ROLE_MANAGER, ROLE_ADMINISTRATOR) + .antMatchers(HttpMethod.GET, "/api/sinic/v1/deliveries/{deliveryId}/files/{fileId}/download").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.GET, "/api/sinic/v1/deliveries/{deliveryId}/files/{fileId}/log/download").hasAnyRole(ROLE_MANAGER) + .antMatchers(HttpMethod.DELETE, "/api/sinic/v1/deliveries/{deliveryId}/files/{fileId}").hasAnyRole(ROLE_MANAGER) + + /* * Services V2 */