Hi there,
One of my clients (.NET), when using CAS, the URL service parameter has
"TARGET", as oppose to "service". Because of that, CAS cannot determine the
right service URL.
The only place I find is in SimpleWebApplicationServiceImpl, it only looks
for "service" in URL.
Do I have to extend SimpleWebApplicationServiceImpl to support "TARGET"?
I tried that, but with my overlay project, how would this class replace the
one in cas-server-core?
Right now, the cas-server-core.jar is under WEB-INF/lib, and my class is
under WEB-INF/classes.
Any suggestion? I actually find it odd that I have to override a class at
that level to get the behavior. I could be missing something simple.
Yan
public final class SimpleWebApplicationServiceImpl extends
AbstractWebApplicationService {
private static final String CONST_PARAM_SERVICE = "service";
public static SimpleWebApplicationServiceImpl createServiceFrom(
final HttpServletRequest request) {
final String targetService =
request.getParameter(CONST_PARAM_TARGET_SERVICE);
final String service = request.getParameter(CONST_PARAM_SERVICE);
final String serviceAttribute = (String)
request.getAttribute(CONST_PARAM_SERVICE);
final String serviceToUse;
if (StringUtils.hasText(targetService)) {
serviceToUse = targetService;
} else if (StringUtils.hasText(service)) {
serviceToUse = service;
} else {
serviceToUse = serviceAttribute;
}
--
You received this message because you are subscribed to the Google Groups "CAS
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.