Corrected Reference to HttpServletRequest#authenticate

This commit is contained in:
Xi Minghui 2024-08-26 11:53:59 +08:00 committed by Josh Cummings
parent d2e8c19789
commit e39b39dada
1 changed files with 2 additions and 2 deletions

View File

@ -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).