Hi ,
I am using CAS with Acegi and I want to use relative service
URL's , hostname should not be a part of property "service".
So for this, I sub classed CasProcessingFilterEntryPoint so that in method
commence it gets the whole URL from request and appends the relative service
value to it.
Something like
buffer.append(URLEncoder.encode(response.encodeURL(request.getRequestURL().t
oString().replace(request.getServletPath(),"")+this.serviceProperties.getSer
vice()), "UTF-8"));
Using this I generated service URL correctly, but while validating the
service ticket using
org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator ,
I get <ServiceManagement: Unauthorized Service Access. Service
[http://localhost/j_acegi_cas_security_check] is not found in service
registry.>.
My guess is this happens because CasProxyTicketValidator takes relative
Service URL from service properties and that mismatches the URL used in
service redirect.
So subclassing CasProxyTicketValidator and overriding method
confirmTicketValid should do.
Please share your views if anyone has faced this issue or has a better
solution to this.
Thanks & Regards
Puneet Goyal
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user