Authentication

Spring Security 为 authentication提供全面支持。身份验证就是我们验证谁试图访问特定资源的方式。一种常见的用户身份验证方式是要求用户输入用户名和密码。一旦执行了身份验证,我们就知道了身份并可以执行授权。

Spring Security provides comprehensive support for authentication. Authentication is how we verify the identity of who is trying to access a particular resource. A common way to authenticate users is by requiring the user to enter a username and password. Once authentication is performed we know the identity and can perform authorization.

Spring Security 为用户身份验证提供内置支持。本节专门介绍在 Servlet 和 WebFlux 环境中都适用的通用身份验证支持。请参阅针对 ServletWebFlux 的身份验证章节,以了解对每堆栈的支持详细信息。

Spring Security provides built-in support for authenticating users. This section is dedicated to generic authentication support that applies in both Servlet and WebFlux environments. Refer to the sections on authentication for Servlet and WebFlux for details on what is supported for each stack.