优化授权认证配置,授权服务器关闭basic认证

This commit is contained in:
zlt
2019-07-27 22:37:32 +08:00
parent ff2b195335
commit 177d8ec060
4 changed files with 7 additions and 18 deletions
@@ -78,9 +78,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers( securityProperties.getIgnore().getUrls())
.anyRequest()
//授权服务器关闭basic认证
.permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage(SecurityConstants.LOGIN_PAGE)