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
@ -109,10 +109,10 @@ public class SavedRequestAwareAuthenticationSuccessHandler
|
||||
String targetUrl = savedRequest.getRedirectUrl();
|
||||
|
||||
// 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
|
||||
&& 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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user