From http://www.ja-sig.org/products/cas/client/javaclient/index.html:
Consuming the results of CASFilter
Once the user has logged into your application through the filter, the
application may access the user's name through the session attribute,
edu.yale.its.tp.cas.client.filter.user, or if you import
edu.yale.its.tp.cas.client.filter.CASFilter in your JSP or servlet,
simply CASFilter.CAS_FILTER_USER.
Accessing the authenticated username from Java
// either of these will work:
session.getAttribute(CASFilter.CAS_FILTER_USER);
session.getAttribute("edu.yale.its.tp.cas.client.filter.user");
Accessing the authenticated username via JSTL
<c:out value="${sessionScope['edu.yale.its.tp.cas.client.filter.user']}"/>
Additionally, the client application may access a CASReceipt
JavaBean-style object which exposes the username as well as additional
information about the successful authentication, in the session
attribute edu.yale.its.tp.cas.client.filter.receipt .
// either of these will work:
session.getAttribute(CASFilter.CAS_FILTER_RECEIPT);
session.getAttribute("edu.yale.its.tp.cas.client.filter.receipt");
HTH.
Regards.
Pavlos Drandakis escribió:
> Hi all,
>
> is it possible to get the Authenticated User in casGenericSuccess.jsp?
> I am trying to use request.getRemoteUser() but returns null.
>
> Any ideas?
>
> Thanks in advance.
>
> Pavlos
> _______________________________________________
> 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