We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64cb526 commit 97e83acCopy full SHA for 97e83ac
src/main/java/com/gabrielczar/springrestoauth2jwt/configurations/OAuth2ServerConfiguration.java
@@ -62,8 +62,8 @@ public void configure(HttpSecurity http) throws Exception {
62
.invalidateHttpSession(true)
63
.clearAuthentication(true)
64
.and().authorizeRequests()
65
- .antMatchers("/api/**").hasAnyRole("ADMIN", "USER")
66
.antMatchers("/api/public/**").permitAll()
+ .antMatchers("/api/**").hasAnyRole("ADMIN", "USER")
67
.antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
68
.anyRequest().denyAll();
69
}
0 commit comments