提交 82bc864d 编写于 作者: zhouweidong's avatar zhouweidong

放行登录请求

上级 3949b763
......@@ -40,8 +40,11 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
@Value("${ibiz.auth.path:v7/login}")
private String loginPath;
@Value("${ibiz.auth.clientloginpath:uaa/login}")
private String clientLoginPath;
@Value("${ibiz.auth.uaaloginpath:uaa/login}")
private String uaaLoginPath;
@Value("${ibiz.auth.uaaloginpath2:uaa/loginbyusername}")
private String uaaLoginPath2;
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
......@@ -96,7 +99,8 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/uaa/permission/**").permitAll()
//放行登录请求
.antMatchers( HttpMethod.POST,"/"+loginPath).permitAll()
.antMatchers( HttpMethod.POST,"/"+clientLoginPath).permitAll()
.antMatchers( HttpMethod.POST,"/"+uaaLoginPath).permitAll()
.antMatchers( HttpMethod.POST,"/"+uaaLoginPath2).permitAll()
.anyRequest().authenticated()
// 防止iframe 造成跨域
.and().headers().frameOptions().disable();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册