Browse Source

Updated files

master
adiao 3 years ago
parent
commit
aa032930fe
  1. 10
      v.md

10
v.md

@ -560,8 +560,8 @@ public ResponseResult<User> login(User user){ @@ -560,8 +560,8 @@ public ResponseResult<User> login(User user){
流程说明:
1. 输入用户名、密码提交登录,登录请求会被UsernamePasswordAuthenticationFilter处理,构建预认证对象UsernamePasswordAuthenticationToken
调用AuthenticationManager(实现类是ProviderManager)进行认证
ProviderManager查询所有认证提供者,DaoAuthenticationProvider符合当前认证类型
DaoAuthenticationProvider查询用户,校验密码
身份验证成功,存储会话、发布事件、调用成功处理器
身份验证失败,清除SecurityContext,调用失败处理器
2. 调用AuthenticationManager(实现类是ProviderManager)进行认证
3. ProviderManager查询所有认证提供者,DaoAuthenticationProvider符合当前认证类型
4. DaoAuthenticationProvider查询用户,校验密码
5. 身份验证成功,存储会话、发布事件、调用成功处理器
6. 身份验证失败,清除SecurityContext,调用失败处理器

Loading…
Cancel
Save