Here's an example configuration:
http://www.ja-sig.org/wiki/display/CASC/web.xml+for+Tomcat+5.5+Tomcat+Manager


On Thu, Jul 30, 2009 at 5:38 PM, Bryan Wooten <[email protected]> wrote:

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

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