We purposely don't expose a method to obtain that information directly.
You'd have to query the TicketRegistry with the TGT ID to retrieve the
Principal.

-Scott

-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia


On Wed, Aug 27, 2008 at 8:19 PM, Andrew Bruno <[EMAIL PROTECTED]>wrote:

> > Are you trying to retrieve the username when a user hits the CAS server
>
> Yes.  Basically I am writing some generic javascript code that
> displays the username on the top right corner all all service apps if
> the user has at least logged into one service, i.e. CAS knows about
> them.
>
> I have written the spring controller, etc.. (i.e. /status) but I now
> need to learn the CAS API to try and work out how to obtain the
> Principal.
>
> Any pointers?
>
>
> On Wed, Aug 27, 2008 at 9:48 PM, Andrew Feller <[EMAIL PROTECTED]> wrote:
> > Andrew,
> >
> > Questions:
> >
> > Are you trying to retrieve the username when a user hits the CAS server
> or
> > an application protected by a CAS client?
> > What version of CAS are you using?
> > Which CAS clients are you using?
> >
> > A-
> > On 8/27/08 12:44 AM, "Andrew Bruno" <[EMAIL PROTECTED]> wrote:
> >
> >> I am in need of a simple page that gives me the logged in username or
> >> nothing when hit.
> >>
> >> e.g. http://somedomain/cas/status -> andrewbruno or nothing
> >>
> >> Is there anything like this in CAS, or do you see any difficulties in
> >> me writing some of this code?
> >>
> >> Any hints, links, pointers appreciated.
> >>
> >> Cheers
> >> Andrew
> >> _______________________________________________
> >> Yale CAS mailing list
> >> [email protected]
> >> http://tp.its.yale.edu/mailman/listinfo/cas
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to