This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 8b785173fa Rename method parameter to make usage clearer
8b785173fa is described below
commit 8b785173fade932eff2cf7c21b7485cae24be0bc
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 b580ba2c5c..76c8feb9a2 100644
--- a/java/org/apache/catalina/authenticator/AuthenticatorBase.java
+++ b/java/org/apache/catalina/authenticator/AuthenticatorBase.java
@@ -877,13 +877,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();
@@ -902,7 +904,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]