I can't seem to retrieve the principal from my cas client servlet.
I tried adding the wrapper filter:
<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
But request.getRemoteUser just returns null.
I also tried:
final Assertion assertion = AssertionHolder.getAssertion();
if (assertion == null) {
System.out.println("assertion null!");
} else {
final Principal p = assertion.getPrincipal();
System.out.println("principal: " + p.getName());
}
But again all I get is null.
I also tried adding the Assertion Filter... Any ideas?
Thanks,
Bryan
--
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