On Wed, 05 Nov 2014 11:12:05 +0100
Federico Paparoni <[email protected]> wrote:

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

I did roughly the same, but only got that code working after enabling SAML
attribute release.

-- 
Alberto Cabello Sánchez
<[email protected]>

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