Skip to content

Commit 97e83ac

Browse files
authored
Update OAuth2ServerConfiguration.java
1 parent 64cb526 commit 97e83ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gabrielczar/springrestoauth2jwt/configurations/OAuth2ServerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public void configure(HttpSecurity http) throws Exception {
6262
.invalidateHttpSession(true)
6363
.clearAuthentication(true)
6464
.and().authorizeRequests()
65-
.antMatchers("/api/**").hasAnyRole("ADMIN", "USER")
6665
.antMatchers("/api/public/**").permitAll()
66+
.antMatchers("/api/**").hasAnyRole("ADMIN", "USER")
6767
.antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
6868
.anyRequest().denyAll();
6969
}

0 commit comments

Comments
 (0)