老师app模块为什么还要引用form表单配置
来源:6-11 基于JWT实现SSO单点登录2

慕仰4458995
2018-08-05
@Override
public void configure(HttpSecurity http) throws Exception {
// 就是这里,form表单配置不是基于brower模块的吗,app这里还要???
formAuthenticationConfig.configure(http);
http.apply(validateCodeSecurityConfig)
.and()
.apply(smsCodeAuthenticationSecurityConfig)
.and()
.apply(imoocSocialSecurityConfig)
.and()
.apply(openIdAuthenticationSecurityConfig)
.and()
.csrf().disable();
authorizeConfigManager.config(http.authorizeRequests());
}
写回答
1回答
-
JoJo
2018-08-07
这里配的是一个基于用户名密码登录的服务。页面和APP都可以调这个服务。
112018-08-07
Spring Security技术栈开发企业级认证与授权
Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全
2662 学习 · 1561 问题
相似问题