mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-08 09:58:56 +08:00
v2.9.0 GA & CAS FIX
This commit is contained in:
parent
bc91908667
commit
71e9459507
@ -108,11 +108,11 @@ public class SavedRequestAwareAuthenticationSuccessHandler
|
|||||||
// Use the DefaultSavedRequest URL
|
// Use the DefaultSavedRequest URL
|
||||||
String targetUrl = savedRequest.getRedirectUrl();
|
String targetUrl = savedRequest.getRedirectUrl();
|
||||||
|
|
||||||
// is cas login , with service parameter
|
// is cas login , with service parameter
|
||||||
logger.info("CAS " + request.getParameter(WebConstants.CAS_SERVICE_PARAMETER));
|
logger.trace("CAS " + request.getParameter(WebConstants.CAS_SERVICE_PARAMETER));
|
||||||
if (request.getParameter(WebConstants.CAS_SERVICE_PARAMETER) != null
|
if (request.getParameter(WebConstants.CAS_SERVICE_PARAMETER) != null
|
||||||
&& request.getParameter(WebConstants.CAS_SERVICE_PARAMETER).startsWith("http")) {
|
&& 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);
|
+ request.getParameter(WebConstants.CAS_SERVICE_PARAMETER);
|
||||||
}
|
}
|
||||||
targetUrl = targetUrl == null ? "/forwardindex" : targetUrl;
|
targetUrl = targetUrl == null ? "/forwardindex" : targetUrl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user