Hi all, I have some problems with CAS 4 and attributes. I started a simple cas server using maven overlay, but I didn't modify anything in the configuration. Then I created a simple Java webapp and configured the following filters
org.jasig.cas.client.authentication.AuthenticationFilter org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter org.jasig.cas.client.util.HttpServletRequestWrapperFilter Then I wrote a simple JSP to show the attributes AttributePrincipal principal = (AttributePrincipal)request.getUserPrincipal(); session.setAttribute("casPrincipal", principal); session.setAttribute("username", request.getRemoteUser()); out.println("principalName:"+principal.getName()); out.println("username:"+request.getRemoteUser()); Map attributes = principal.getAttributes(); Iterator attributeNames = attributes.keySet().iterator(); for (; attributeNames.hasNext();) { String attributeName = (String) attributeNames.next(); Object attributeValue = attributes.get(attributeName); out.println("attributeName:"+attributeName+" attributeValue:"+(String)attributeValue); } but the output is only the username. I think that in default configuration it should show the attributes defined in a static map but it doesn't work. Is there something I have to enable? Cheers -- Federico Paparoni -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user