The CAS Client provides a convenient and easy way to retrieve a proxy ticket
for a Principal:
https://www.ja-sig.org/svn/cas-clients/java-client/trunk/cas-client-core/src/main/java/org/jasig/cas/client/authentication/AttributePrincipal.java

Spring Security exposes a way to retrieve the principal/assertion:
https://src.springframework.org/svn/spring-security/trunk/cas/src/main/java/org/springframework/security/cas/authentication/CasAuthenticationToken.java
(see getAssertion() method)

You can retrieve the principal the Assertion:
https://www.ja-sig.org/svn/cas-clients/java-client/trunk/cas-client-core/src/main/java/org/jasig/cas/client/validation/Assertion.java

Assuming you've configured Spring Security correctly, that should work.




On Wed, Jul 29, 2009 at 10:01 AM, HarriH <[email protected]> wrote:

>
> Hi,
>
> I've been struggling with integration of CAS to an existing Spring-based
> Java application (with Spring Security). I've managed to get to the point
> where I'm able to receive PGTs to the proxyCallbackUrl, seeing them in the
> server logs. However, I can't figure out a sensible way to use them in the
> code to obtain a proxy ticket. I haven't found any decent
> documentation/tutorial/example of this setup, I wonder if there's any? All
> example applications I've been able to find show the somewhat simpliest
> case
> of CAS integration, none of them seem to use the proxying capabilities. I
> would really appreciate some help, this whole CAS integration task is
> starting to get veeeery frustrating at this point.
>
> I'm happy to provide more information of my configuration etc. if someone
> is
> willing and able to give me some help on this list. But up-to-date
> tutorials
> or sample applications lying somewhere in the web would help a lot as well.
>
> If it makes any difference, I'm using Spring 2.5 + Spring Security 2.0.4 +
> CAS Client 3.1.6.
>
>
> Thanks,
>
> HH
> --
> View this message in context:
> http://www.nabble.com/CAS-%2B-Spring%3A-how-to-obtain-and-use-proxy-%28granting%29-tickets--tp24719822p24719822.html
> Sent from the CAS Users mailing list archive at Nabble.com.
>
>
> --
> 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
>

-- 
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

Reply via email to