Skip to content

Commit

Permalink
Merge branch 'feature/SINIC' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
shiido committed Dec 26, 2021
2 parents 49e1ea8 + 6086cd6 commit 0fac29c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.ai.st.zuul</groupId>
<artifactId>st-zuul-server</artifactId>
<version>1.5.0</version>
<version>1.9.4</version>
<name>st-zuul-server</name>
<description>Sistema Transición - Servidor Perimetral</description>

Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/ai/st/zuul/oauth/ResourceServerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 0fac29c

Please sign in to comment.