index.adoc 1.5 KB

123456789101112131415161718192021222324252627
  1. [[servlet-authentication-unpwd]]
  2. = Username/Password Authentication
  3. :figures: images/servlet/authentication/unpwd
  4. :icondir: images/icons
  5. One of the most common ways to authenticate a user is by validating a username and password.
  6. As such, Spring Security provides comprehensive support for authenticating with a username and password.
  7. [[servlet-authentication-unpwd-input]]
  8. == Reading the Username & Password
  9. Spring Security provides the following built in mechanisms for reading a username and password from the `HttpServletRequest`:
  10. * xref:servlet/authentication/passwords/form.adoc#servlet-authentication-form[Form Login]
  11. * xref:servlet/authentication/passwords/basic.adoc#servlet-authentication-basic[Basic Authentication]
  12. * xref:servlet/authentication/passwords/digest.adoc#servlet-authentication-digest[Digest Authentication]
  13. [[servlet-authentication-unpwd-storage]]
  14. == Storage Mechanisms
  15. Each of the supported mechanisms for reading a username and password can leverage any of the supported storage mechanisms:
  16. * Simple Storage with xref:servlet/authentication/passwords/in-memory.adoc#servlet-authentication-inmemory[In-Memory Authentication]
  17. * Relational Databases with xref:servlet/authentication/passwords/jdbc.adoc#servlet-authentication-jdbc[JDBC Authentication]
  18. * Custom data stores with xref:servlet/authentication/passwords/user-details-service.adoc#servlet-authentication-userdetailsservice[UserDetailsService]
  19. * LDAP storage with xref:servlet/authentication/passwords/ldap.adoc#servlet-authentication-ldap[LDAP Authentication]