commit | e95aa369ceb56d37f2c2530b57a46f5abf14a0b6 | [log] [tgz] |
---|---|---|
author | rasa <fiammara@gmail.com> | Sun Dec 29 21:35:35 2019 +0200 |
committer | rasa <fiammara@gmail.com> | Sun Dec 29 21:35:35 2019 +0200 |
tree | 56752cc750fe22e7ce1a16f70aeae3b0e102a05b | |
parent | e63b584e30a30baf5b8f8a909f762e6d131f373e [diff] |
spring security allow posting pets
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 @@ .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()