JA-SIG CAS Java Client
Christopher Brown
chris.brown at enspier.com
Thu Aug 24 11:20:08 EDT 2006
I think I have figured out most of the client, but I'm having one problem.
I'm getting this response when the ticket is validated:
javax.servlet.ServletException:
ticket 'ST-8-fwgINaEJ62f03hgUZTH6' does not match supplied
service
org.jasig.cas.client.web.filter.CasValidationFilter.doFilterInternal(CasVali
dationFilter.java:105)
org.jasig.cas.client.web.filter.AbstractCasFilter.doFilter(AbstractCasFilter
.java:93)
org.jasig.cas.client.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:
43)
org.jasig.cas.client.web.filter.CasAuthenticationFilter.doFilterInternal(Cas
AuthenticationFilter.java:89)
org.jasig.cas.client.web.filter.AbstractCasFilter.doFilter(AbstractCasFilter
.java:93)
org.jasig.cas.client.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:
43)
My hunch is that perhaps the jessionid that gets appended to the serviceURL
on the redirect to /cas/login is causing the problem. Here's what gets sent
on the initial redirect:
http://eauth.enspier.net:8080/samlharness/ui;jsessionid=DEE8EB1DA9B724D3C878
051DA4FB40FA0?action=login
<http://system-dev.eauth.enspier.net:8080/samlharness/ui;jsessionid=DEE8EB1D
A9B724D3C878051DA4FB40FA0?action=login>
But the serviceURL that gets sent to /cas/serviceValidate is:
http://eauth.enspier.net:8080/samlharness/ui?action=login
Would this cause the exception above? I've edited the bean in the config
file, but the jsessionid still is appended to the URL.
<bean
id="casValidationFilter"
class="org.jasig.cas.client.web.filter.CasValidationFilter">
<constructor-arg index="0">
<null/>
</constructor-arg>
<constructor-arg index="1"
value="http://eauth.enspier.net:8080/samlharness/ui?action=login"/>
<constructor-arg index="2" ref="ticketValidator"/>
</bean>
Thanks
-----Original Message-----
From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu] On
Behalf Of Christopher Brown
Sent: Tuesday, August 22, 2006 9:22 AM
To: 'Yale CAS mailing list'
Subject: RE: JA-SIG CAS Java Client
Thanks for the quick reply. I've used the Yale client previously, so I have
a little familiarity. Just a couple questions.
-- Are all the jars in the bin directory required to run the client (I'm
using core)?
-- I'm not sure what the simpleFilterExample.xml is used for. Is it
required?
-- I'm sending an extra attribute in the CAS assertion. How do I access it
from the client?
-- What is the purpose of the validation filter?
Thanks,
Chris
-----Original Message-----
From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu] On
Behalf Of Scott Battaglia
Sent: Monday, August 21, 2006 1:12 PM
To: Yale CAS mailing list
Subject: Re: JA-SIG CAS Java Client
Chris,
No, there is not yet. That's one of the things to be done before the
final release (which is one reason why its still in RC). Do you have
any specific questions you'd like answered? I can answer them onlist
and then use that as the basis for the documentation.
Thanks
-Scott
Scott Battaglia
Application Developer, Architecture & Engineering Team
Enterprise Systems and Services, Rutgers University
v: 732.445.0097 | f: 732.445.5493 | scott_battaglia at rutgers.edu
Christopher Brown wrote:
>
> Is there any documentation for this client besides the examples in the
> resources directory?
>
>
>
> Chris Brown
>
> Enspier Technologies
>
> YIM: chrisbrown_enspier
>
> (O) 202-208-1550
>
> (C) 703-965-1176
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20060824/d9fb3016/attachment.html
More information about the cas
mailing list