Core Components
About
Spring Security authentication consists of several key components that work together to authenticate users and manage security contexts. Below are the core components -
Security Filter Chain
Handles security filters like authentication and authorization.
AuthenticationManager
Central component for handling authentication.
AuthenticationProvider
Validates authentication requests.
UserDetailsService
Loads user information from the database.
UserDetails
Represents authenticated user details.
PasswordEncoder
Hashes and validates passwords.
SecurityContextHolder
Stores authentication details of the current user.
GrantedAuthority
Represents roles and permissions.
Authentication Token
Stores authentication requests or responses.
Security Configuration
Defines security rules and authentication mechanisms.
Last updated
Was this helpful?