Hi!

I'm trying do get the map of attributes coming frm CAS like:

   import org.jasig.cas.client.authentication.AttributePrincipal;
   ...
   AttributePrincipal principal = (AttributePrincipal) 
request.getUserPrincipal();
   Map attributes = principal.getAttributes();
      ...

But when I try to getUserPrincipal() it's return a:
   
   org.springframework.security.cas.authentication.CasAuthenticationToken;

If I try to access by a client application whithout Spring Security it 
works fine. For example: https://github.com/mmoayyed/cas-attribute-test
So, i think my CAS server is properly configured.

I'm using the "Saml11TicketValidator" instead of 
"Cas20ProxyTicketValidator".

Maybe some filter is missing in my client app.
web.xml (attached):

    <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>

     <filter>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
     </filter>

Thanks in advance,
Gil Victor

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

Attachment: web.xml
Description: XML document

Attachment: applicationContext.xml
Description: XML document

Reply via email to