weblog-spring security workflow
2024-04-28 16:47:11 0 举报
spring security workflow in weblog
作者其他创作
大纲/内容
....
PasswordEncoder encode password in authentication and compare with userDetails persist in DB
AuthenticationManager assign the athenticate task to AbstractUserDetailsAuthenticationProvider
HttpServletRequest is passed from Servlet such as Tomcat embeded in Spring
Generate UsernamePasswordAuthenticationToken by username and password parsed from request
authentication failed ...
createSuccessAuthentication
User send request to POST \"/login\" api with username and password in the body
DaoAuthenticationProvider load user details by UserDetailServiceImplementation
AbstractUserDetailsAuthenticationProvider.authenticate(Authentication authentication)
HttpServletRequest contains username and password inside request.getInputStream()
AuthenticationManager authenticate generated usernamePasswordAuthenticationToken
0 条评论
下一页