You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2020/01/20 21:49:52 UTC

[juneau-petstore] 43/48: spring security allow posting pets

This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau-petstore.git

commit e95aa369ceb56d37f2c2530b57a46f5abf14a0b6
Author: rasa <fi...@gmail.com>
AuthorDate: Sun Dec 29 21:35:35 2019 +0200

    spring security allow posting pets
---
 .../java/org/apache/juneau/petstore/config/SpringSecurityConfig.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juneau-petstore-server/src/main/java/org/apache/juneau/petstore/config/SpringSecurityConfig.java b/juneau-petstore-server/src/main/java/org/apache/juneau/petstore/config/SpringSecurityConfig.java
index 37218b4..a07b6f9 100644
--- a/juneau-petstore-server/src/main/java/org/apache/juneau/petstore/config/SpringSecurityConfig.java
+++ b/juneau-petstore-server/src/main/java/org/apache/juneau/petstore/config/SpringSecurityConfig.java
@@ -29,7 +29,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter{
                 .httpBasic()
                 .and()
                 .authorizeRequests()
-                .antMatchers(HttpMethod.POST, "/petstore/pet").hasRole("ADMIN")
+               // .antMatchers(HttpMethod.POST, "/petstore/pet").hasRole("ADMIN")
                 .antMatchers(HttpMethod.PUT, "/petstore/pet/**").hasRole("ADMIN")
                 .antMatchers(HttpMethod.DELETE, "/petstore/pet/**").hasRole("ADMIN")
                 .and()