WebSecurityConfiguration.passwordEncoder()
AccessDeniedHandler exception handler
Implement authentication exception custom return format content to front endAuthenticationEntryPoint implement class
The default implementation class of AuthenticationEntryPoint provided by ApiBootSecurityStoreDelegate default implement
Query UserDetails according to the agreed default table structureDataSource with constructorUserDetails implement classAccessDeniedHandler implementation class IOC instance from the project
If the implementation class does not return an instance,
the default DefaultSecurityAccessDeniedHandler is used to return
UserDetails
Query the user information in the "api_boot_user_info" table by defaultUserDetails from the database according to the UserDetails.getUsername()
If oauth2 is integrated, it corresponds to the UserDetails.getUsername() and UserDetails.getPassword()
of "grant_type=password" authorization mode
It should be noted that:
do not use this method in memory modeUserDetails
Use DefaultSecurityStoreDelegate by defaultUserDetailsService implement class
ApiBoot integrates spring security user query logic implementationCopyright © 2020. All rights reserved.