index.adoc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [[servlet-authentication]]
  2. = Authentication
  3. Spring Security provides comprehensive support for <<authentication>>.
  4. This section discusses:
  5. [[servlet-authentication-architecture]]
  6. *Architecture Components*
  7. This section describes the main architectural components of Spring Security's used in Servlet authentication.
  8. If you need concrete flows that explain how these pieces fit together, look at the <<servlet-authentication-mechanisms,Authentication Mechanism>> specific sections.
  9. * <<servlet-authentication-securitycontextholder>> - the `SecurityContextHolder` is where Spring Security stores the details of who is <<authentication,authenticated>>.
  10. * <<servlet-authentication-securitycontext>> - is obtained from the `SecurityContextHolder` and contains the `Authentication` of the currently authenticated user.
  11. * <<servlet-authentication-authentication>> - can be the input to `AuthenticationManager` to provide the credentials a user has provided to authenticate or the current user from the `SecurityContext`.
  12. * <<servlet-authentication-granted-authority>> - an authority that is granted to the principal on the `Authentication` (i.e. roles, scopes, etc.)
  13. * <<servlet-authentication-authenticationmanager>> - the API that defines how Spring Security's Filters perform <<authentication,authentication>>.
  14. * <<servlet-authentication-providermanager>> - the most common implementation of `AuthenticationManager`.
  15. * <<servlet-authentication-authenticationprovider>> - used by `ProviderManager` to perform a specific type of authentication.
  16. * <<servlet-authentication-authenticationentrypoint>> - used for requesting credentials from a client (i.e. redirecting to a log in page, sending a `WWW-Authenticate` response, etc.)
  17. * <<servlet-authentication-abstractprocessingfilter>> - a base `Filter` used for authentication.
  18. This also gives a good idea of the high level flow of authentication and how pieces work together.
  19. [[servlet-authentication-mechanisms]]
  20. *Authentication Mechanisms*
  21. // FIXME: brief description
  22. * <<servlet-authentication-unpwd,Username and Password>> - how to authenticate with a username/password
  23. * <<oauth2login,OAuth 2.0 Login>> - OAuth 2.0 Log In with OpenID Connect and non-standard OAuth 2.0 Login (i.e. GitHub)
  24. * <<servlet-saml2,SAML 2.0 Login>> - SAML 2.0 Log In
  25. * <<servlet-cas,Central Authentication Server (CAS)>> - Central Authentication Server (CAS) Support
  26. * <<servlet-rememberme, Remember Me>> - how to remember a user past session expiration
  27. * <<servlet-jaas, JAAS Authentication>> - authenticate with JAAS
  28. * <<servlet-openid,OpenID>> - OpenID Authentication (not to be confused with OpenID Connect)
  29. * <<servlet-preauth>> - authenticate with an external mechanism such as https://www.siteminder.com/[SiteMinder] or Java EE security but still use Spring Security for authorization and protection against common exploits.
  30. * <<servlet-x509,X509 Authentication>> - X509 Authentication
  31. // FIXME: Add other mechanisms
  32. // We intentionally do not increase leveloffset, this is just for organization vs document structure
  33. include::architecture/index.adoc[]
  34. include::unpwd/index.adoc[leveloffset=+1]
  35. include::session-management.adoc[]
  36. include::rememberme.adoc[]
  37. include::openid.adoc[]
  38. include::anonymous.adoc[]
  39. include::preauth.adoc[]
  40. include::jaas.adoc[]
  41. include::cas.adoc[]
  42. include::x509.adoc[]
  43. include::runas.adoc[]
  44. include::logout.adoc[]
  45. include::events.adoc[]