> From: William G. Thompson, Jr. [mailto:[email protected]]
> Sent: Friday, October 11, 2013 5:36 PM
>
> You'll want to take a look at this:  https://issues.jasig.org/browse/CAS-1283

That code looks suspiciously similar to the code on the wiki; I don't really 
see how that would not also flatten out multivalued attributes into a comma 
separated list as opposed to enumerating them separately?

I guess the jsp foreach is smart enough to do the right thing if you give it 
just a simple string rather than a collection, as:

                                <c:forEach var="attr" 
items="${auth.principal.attributes}" >
                                        <c:forEach var="attrval" 
items="${attr.value}" >
                                                
<cas:${fn:escapeXml(attr.key)}>${fn:escapeXml(attrval)}</cas:${fn:escapeXml(attr.key)}>
                                        </c:forEach>
                                </c:forEach>

seems to do what I want:

<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
        <cas:authenticationSuccess>
                <cas:user>henson</cas:user>
                <cas:attributes>
                        <cas:sn>Henson</cas:sn>
                        <cas:givenName>Paul</cas:givenName>
                        
<cas:csupomonaEduPersonAffiliation>eoc_essential</cas:csupomonaEduPersonAffiliation>
                        
<cas:csupomonaEduPersonAffiliation>employee</cas:csupomonaEduPersonAffiliation>
                        
<cas:csupomonaEduPersonAffiliation>member</cas:csupomonaEduPersonAffiliation>
                        
<cas:csupomonaEduPersonAffiliation>staff</cas:csupomonaEduPersonAffiliation>
                </cas:attributes>
        </cas:authenticationSuccess>
</cas:serviceResponse>

And yay, ezproxy successfully parses this...


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