From 71e9459507c76c40405f9ff45814e50f2278d73e Mon Sep 17 00:00:00 2001 From: MaxKey Date: Mon, 23 Aug 2021 11:27:24 +0800 Subject: [PATCH] v2.9.0 GA & CAS FIX --- .../SavedRequestAwareAuthenticationSuccessHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/SavedRequestAwareAuthenticationSuccessHandler.java b/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/SavedRequestAwareAuthenticationSuccessHandler.java index f3db94b7c..4a6b5a370 100644 --- a/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/SavedRequestAwareAuthenticationSuccessHandler.java +++ b/maxkey-authentications/maxkey-authentication-core/src/main/java/org/maxkey/authn/SavedRequestAwareAuthenticationSuccessHandler.java @@ -108,11 +108,11 @@ public class SavedRequestAwareAuthenticationSuccessHandler // Use the DefaultSavedRequest URL String targetUrl = savedRequest.getRedirectUrl(); - // is cas login , with service parameter - logger.info("CAS " + request.getParameter(WebConstants.CAS_SERVICE_PARAMETER)); + // is cas login , with service parameter + logger.trace("CAS " + request.getParameter(WebConstants.CAS_SERVICE_PARAMETER)); if (request.getParameter(WebConstants.CAS_SERVICE_PARAMETER) != null && request.getParameter(WebConstants.CAS_SERVICE_PARAMETER).startsWith("http")) { - targetUrl = WebContext.getHttpContextPath() + "/authorize/cas/login?service=" + targetUrl = WebContext.getHttpContextPath() + "/authz/cas/login?service=" + request.getParameter(WebConstants.CAS_SERVICE_PARAMETER); } targetUrl = targetUrl == null ? "/forwardindex" : targetUrl;