fix(WebSecurityConfig):公钥接口放行

This commit is contained in:
haoxr 2020-11-17 10:14:33 +08:00
parent 2b87d5b1c1
commit c4b2dee1d7

View File

@ -19,7 +19,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http
.authorizeRequests().requestMatchers(EndpointRequest.toAnyEndpoint()).permitAll()
.and()
.authorizeRequests().antMatchers("/rsa/publicKey","/oauth/logout").permitAll().anyRequest().authenticated()
.authorizeRequests().antMatchers("/oauth/public_key","/oauth/logout").permitAll().anyRequest().authenticated()
.and()
.csrf().disable();
}