From b19558b4d7f5aff8af1cd28565cd0756e48317f3 Mon Sep 17 00:00:00 2001 From: Xi Minghui Date: Mon, 26 Aug 2024 11:53:59 +0800 Subject: [PATCH] Corrected Reference to HttpServletRequest#authenticate --- docs/modules/ROOT/pages/servlet/integrations/servlet-api.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/integrations/servlet-api.adoc b/docs/modules/ROOT/pages/servlet/integrations/servlet-api.adoc index 0644efea80a..96d9d0a8bbd 100644 --- a/docs/modules/ROOT/pages/servlet/integrations/servlet-api.adoc +++ b/docs/modules/ROOT/pages/servlet/integrations/servlet-api.adoc @@ -90,8 +90,8 @@ The following section describes the Servlet 3 methods with which Spring Security [[servletapi-authenticate]] -=== HttpServletRequest.authenticate(HttpServletRequest,HttpServletResponse) -You can use the https://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#authenticate%28javax.servlet.http.HttpServletResponse%29[`HttpServletRequest.authenticate(HttpServletRequest,HttpServletResponse)`] method to ensure that a user is authenticated. +=== HttpServletRequest.authenticate(HttpServletResponse) +You can use the https://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#authenticate%28javax.servlet.http.HttpServletResponse%29[`HttpServletRequest.authenticate(HttpServletResponse)`] method to ensure that a user is authenticated. If they are not authenticated, the configured `AuthenticationEntryPoint` is used to request the user to authenticate (redirect to the login page).