Skip to content

Defining And Managing Users#

User Detail Service And Password Encoder#

  • User detail service and password encoder are important interfaces that help maintaining the user details and validating them. That means if someone provides some credentials, these two user detail services and password encoder will take the responsibility of validating whether the username and password entered by user is correct or not.

 #zoom

Summary#

  • Look at how to configure users inside memory of the application using inMemoryAuthentication and InMemoryUserDetailsManager
  • Look at the important interfaces and classes present in the spring security regarding defining and managing the UserDetails for performing authentication.
    • org.springframework.security.core.userdetails.UserDetails
    • org.springframework.security.core.userdetails.User
    • org.springframework.security.core.userdetails.UserDetailsService
    • org.springframework.security.provisioning.InMemoryUserDetailsManager
    • org.springframework.security.provisioning.JdbcUserDetailsManager
  • Implement custom implementation of UserDetailsService (See Custom UserDetailsService Of Spring Security) to perform authentication using our own tables and column present inside the application database.

See Also#

References#