security核心流程
2023-07-11 22:06:59 1 举报
security核心流程
作者其他创作
大纲/内容
SecurityContextHolder.getContext().setAuthentication(authResult);
用户登录表单请求
successfulAuthentication
AuthenticationManager认证管理器
preAuthenticationChecks.check(user)
dofilter()
AbstractAuthenticationProcessingFilter
UsernamePasswordAuthenticationFilter
additionalAuthenticationChecks
ProviderManager.authenticate(Authentication authentication)AbstractUserDetailsAuthenticationProvider
核心
AuthenticationSuccessHandler
校验用户是否过期、锁定等
成功
UsernamePasswordAuthenticationToken原始信息封装成对象
AuthenticationProvider.authenticate(Authentication authentication)
authenticate(Authentication authentication)
失败
UserDetailsService.loadUserByUsername(String username)
UserDetails loadedUser = this.getUserDetailsService().loadUserByUsername(username);
AuthenticationFailureHandler
0 条评论
下一页