index.adoc 1.1 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. * <<servlet-authentication-form,Form Login>>
  11. * <<servlet-authentication-basic,Basic Authentication>>
  12. * <<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 <<servlet-authentication-inmemory>>
  17. * Relational Databases with <<servlet-authentication-jdbc>>
  18. * Custom data stores with <<servlet-authentication-userdetailsservice>>
  19. * LDAP storage with <<servlet-authentication-ldap>>