[ https://issues.apache.org/jira/browse/CXF-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470709#comment-13470709 ]
Oliver Wulff commented on CXF-4543: ----------------------------------- I agree with you with respect to typed collection. A claim value can be a simple type or a list of simple types. The encoded xml element includes the xsi:type. Well, the spec also allows complex types: 1237 The <AttributeValue> element supplies the value of a specified SAML attribute. It is of the 1238 xs:anyType type, which allows any well-formed XML to appear as the content of the element. 1239 If the data content of an <AttributeValue> element is of an XML Schema simple type (such as 1240 xs:integer or xs:string), the datatype MAY be declared explicitly by means of an xsi:type declaration 1241 in the <AttributeValue> element. If the attribute value contains structured data, the necessary data 1242 elements MAY be defined in an extension schema. I thought the object type provides most flexibility. Initially, we would support basic types and list of basic types in the ClaimsAttributeStatementProvider. If anybody wants to support complex types in custom claimshandler he can do that but only with a more flexible type than List<String>. WDYT? > Encode multi value claims as multi-value saml attribute > ------------------------------------------------------- > > Key: CXF-4543 > URL: https://issues.apache.org/jira/browse/CXF-4543 > Project: CXF > Issue Type: Improvement > Components: Services > Affects Versions: 2.7.0 > Reporter: Oliver Wulff > > The current ClaimsAttributeStatementProvider supports encoding for string > type value of claims. It's up to the ClaimsHandler to implement multi-value > claim support and encoding. > As mentioned here: > http://cxf.547215.n5.nabble.com/SAML-2-0-attibutes-and-claims-naming-convention-td5712967.html > The type of the value in the class Claim has to be changed from String to > Object. The ClaimsAttributeStatementProvider can then be configured how to > encode multi value claims. Fediz already supports both since FEDIZ-22. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira