mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-30 00:32:14 +00:00
mkdir -p docs/modules/ROOT/ mkdir -p docs/modules/ROOT/pages/ git checkout antora-2.x docs/antora.yml git checkout antora-2.x docs/modules/ROOT/nav.adoc mv docs/manual/src/docs/asciidoc/images docs/modules/ROOT/ mv docs/manual/src/docs/asciidoc/_includes/* docs/modules/ROOT/pages/ cp ~/code/rwinch/spring-reference/*antora* ~/code/spring-projects/spring-security/ mv docs/modules/ROOT/pages/about docs/modules/ROOT/pages/overview
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
[[servlet-authentication-unpwd]]
|
|
= Username/Password Authentication
|
|
:figures: images/servlet/authentication/unpwd
|
|
:icondir: images/icons
|
|
|
|
One of the most common ways to authenticate a user is by validating a username and password.
|
|
As such, Spring Security provides comprehensive support for authenticating with a username and password.
|
|
|
|
[[servlet-authentication-unpwd-input]]
|
|
== Reading the Username & Password
|
|
|
|
Spring Security provides the following built in mechanisms for reading a username and password from the `HttpServletRequest`:
|
|
|
|
* <<servlet-authentication-form,Form Login>>
|
|
* <<servlet-authentication-basic,Basic Authentication>>
|
|
* <<servlet-authentication-digest,Digest Authentication>>
|
|
|
|
[[servlet-authentication-unpwd-storage]]
|
|
== Storage Mechanisms
|
|
|
|
Each of the supported mechanisms for reading a username and password can leverage any of the supported storage mechanisms:
|
|
|
|
* Simple Storage with <<servlet-authentication-inmemory>>
|
|
* Relational Databases with <<servlet-authentication-jdbc>>
|
|
* Custom data stores with <<servlet-authentication-userdetailsservice>>
|
|
* LDAP storage with <<servlet-authentication-ldap>>
|
|
|