Skip to content

Commit 9d995ca

Browse files
committed
/oauth/token_key
1 parent 45e6f1c commit 9d995ca

File tree

1 file changed

+10
-4
lines changed
  • forsrc-springboot-gwt-authorization/src/main/java/com/forsrc/boot/authorization/config

1 file changed

+10
-4
lines changed

forsrc-springboot-gwt-authorization/src/main/java/com/forsrc/boot/authorization/config/LoginConfig.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,19 @@ protected void configure(HttpSecurity http) throws Exception {
3131
.logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
3232
.logoutSuccessUrl("/login?logout")
3333
.permitAll()
34-
//.and()
35-
//.requestMatchers()
36-
//.antMatchers("/", "/login", "/logout", "/oauth/authorize", "/oauth/confirm_access", "/test")
3734
.and()
35+
.requestMatchers()
36+
.antMatchers("/login", "/logout", "/oauth/authorize", "/oauth/confirm_access", "/test")
37+
.and()
38+
.antMatcher("/**")
3839
.authorizeRequests()
39-
.antMatchers("/test", "/oauth/token")
40+
.antMatchers("/oauth/token_key")
4041
.permitAll()
42+
.and()
43+
.antMatcher("/**")
44+
.authorizeRequests()
45+
.anyRequest()
46+
.authenticated()
4147
.and()
4248
.csrf()
4349
.ignoringAntMatchers("/test", "/oauth/token")

0 commit comments

Comments
 (0)