Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 97e83ac

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /