CAS Java CLient 3.0 how to get User Name (principal getId())

Scott Battaglia scott.battaglia at gmail.com
Fri May 4 10:37:53 EDT 2007


If you've enabled the Wrapper, you can simply call request.getRemoteUser.

Otherwise, the complete Assertion is stored in the session as
request.getSession().getAttribute(CONST_ASSERTION). The assertion holds the
principal.

(there's a third way using ThreadLocal's if you're interested in that too).

-Scott

On 5/4/07, Matteo Matteo <matteo at inbox.ru> wrote:
>
> So I've installed Java CAS Client 3.0, on CAS 2.1 it was easy to get a
> userid, it was stored as an attribute in the sessin. How may I get userId in
> CAS Client 3.0? There's no documentation for version 3.0 at the moment :(
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070504/cb6c3d50/attachment.html 


More information about the cas mailing list