瀏覽代碼

v2.9.0 GA & CAS FIX

MaxKey 3 年之前
父節點
當前提交
71e9459507

+ 3 - 3
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;