I find the reason:
I didn't put CAS HttpServletRequest Wrapper Filter
I add this to my web.xml and i achieve to get a principal:
<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
My problem now is that there is no attributes in that principal
Le mardi 12 décembre 2017 00:00:34 UTC+1, Sébastien Ragons a écrit :
>
> Hello,
> I use this very easy/simple client to test my cas server:
>
> https://github.com/cas-projects/cas-sample-java-webapp
>
>
> After login through CAS my principal in null (request.getUserPrincipal())
>
> Is it a problem with my cas configuration ?
>
> My cas.properties joined
>
> Thank you
> Sebastien
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ff67b053-41a0-491c-802b-d9c9c6a6fab1%40apereo.org.