From cb4a85a74c31515c7b357ff30c997c7a5de22843 Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 13 Sep 2024 22:11:01 +0330 Subject: [PATCH] Clarify UsernamePasswordAuthenticationFilter Workflow --- .../ROOT/pages/servlet/authentication/passwords/form.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/authentication/passwords/form.adoc b/docs/modules/ROOT/pages/servlet/authentication/passwords/form.adoc index 207ddb7654..5b708524c9 100644 --- a/docs/modules/ROOT/pages/servlet/authentication/passwords/form.adoc +++ b/docs/modules/ROOT/pages/servlet/authentication/passwords/form.adoc @@ -26,7 +26,7 @@ image:{icondir}/number_4.png[] The browser requests the login page to which it w image:{icondir}/number_5.png[] Something within the application, must <>. [[servlet-authentication-usernamepasswordauthenticationfilter]] -When the username and password are submitted, the `UsernamePasswordAuthenticationFilter` authenticates the username and password. +When the username and password are submitted, the `UsernamePasswordAuthenticationFilter` creates a `UsernamePasswordAuthenticationToken` which is a type of https://docs.spring.io/spring-security/reference/servlet/authentication/architecture.html#servlet-authentication-authentication[Authentication], by extracting the username and password from the `HttpServletRequest` instance. The `UsernamePasswordAuthenticationFilter` extends xref:servlet/authentication/architecture.adoc#servlet-authentication-abstractprocessingfilter[AbstractAuthenticationProcessingFilter], so the following diagram should look pretty similar: .Authenticating Username and Password