提交 c4b2dee1 编写于 作者: H haoxr

fix(WebSecurityConfig):公钥接口放行

上级 2b87d5b1
...@@ -19,7 +19,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -19,7 +19,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http http
.authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll() .authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()
.and() .and()
.authorizeRequests().antMatchers("/rsa/publicKey","/oauth/logout").permitAll().anyRequest().authenticated() .authorizeRequests().antMatchers("/oauth/public_key","/oauth/logout").permitAll().anyRequest().authenticated()
.and() .and()
.csrf().disable(); .csrf().disable();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册