This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 9793a94659 Rename method parameter to make usage clearer
9793a94659 is described below
commit 9793a9465985579845690f944b6e4e90f46bf530
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jan 9 18:12:56 2026 +0000
Rename method parameter to make usage clearer
---
.../org/apache/catalina/authenticator/AuthenticatorBase.java | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/java/org/apache/catalina/authenticator/AuthenticatorBase.java
b/java/org/apache/catalina/authenticator/AuthenticatorBase.java
index 5fe03bd65e..23d34efd11 100644
--- a/java/org/apache/catalina/authenticator/AuthenticatorBase.java
+++ b/java/org/apache/catalina/authenticator/AuthenticatorBase.java
@@ -878,13 +878,15 @@ public abstract class AuthenticatorBase extends ValveBase
implements Authenticat
* Check to see if the user has already been authenticated earlier in the
processing chain or if there is enough
* information available to authenticate the user without requiring
further user interaction.
*
- * @param request The current request
- * @param response The current response
- * @param useSSO Should information available from SSO be used to
attempt to authenticate the current user?
+ * @param request The current request
+ * @param response The current response
+ * @param useSsoCachedUserAndPassword Should the user and password
available from SSO be used to attempt to
+ * authenticate the current user?
*
* @return <code>true</code> if the user was authenticated via the cache,
otherwise <code>false</code>
*/
- protected boolean checkForCachedAuthentication(Request request,
HttpServletResponse response, boolean useSSO) {
+ protected boolean checkForCachedAuthentication(Request request,
HttpServletResponse response,
+ boolean useSsoCachedUserAndPassword) {
// Has the user already been authenticated?
Principal principal = request.getUserPrincipal();
@@ -903,7 +905,7 @@ public abstract class AuthenticatorBase extends ValveBase
implements Authenticat
}
// Is there an SSO session against which we can try to reauthenticate?
- if (useSSO && ssoId != null) {
+ if (useSsoCachedUserAndPassword && ssoId != null) {
if (log.isDebugEnabled()) {
log.debug(sm.getString("authenticator.check.sso", ssoId));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]