12 years ago
saml2:Attribute
v4.5.1
Using the SAML (Form) (SAML2) The generated Assertion does not include the required 'Name' Attribute
Using the SAML (Form) (SAML2) The generated Assertion does not include the required 'Name' Attribute
<saml2:AttributeStatement>
<saml2:Attribute FriendlyName="roles"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
<saml2:AttributeValue xsi:type="xs:string">gangster
</saml2:AttributeValue>
</saml2:Attribute>
<element name="Attribute" type="saml:AttributeType"/>
<complexType name="AttributeType">
<sequence>
<element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="Name" type="string" use="required"/>
<attribute name="NameFormat" type="anyURI" use="optional"/>
<attribute name="FriendlyName" type="string" use="optional"/>
<anyAttribute namespace="##other" processContents="lax"/>
</complexType>
<element name="AttributeValue" type="anyType" nillable="true"/>
Caused by: org.opensaml.xml.validation.ValidationException: Name is required attribute
at org.opensaml.saml2.core.validator.AttributeSchemaValidator.validateName(AttributeSchemaValidator.java:52)[143:org.apache.servicemix.bundles.opensaml:2.5.1.2]
at org.opensaml.saml2.core.validator.AttributeSchemaValidator.validate(AttributeSchemaValidator.java:41)[143:org.apache.servicemix.bundles.opensaml:2.5.1.2]
at org.opensaml.saml2.core.validator.AttributeSchemaValidator.validate(AttributeSchemaValidator.java:32)[143:org.apache.servicemix.bundles.opensaml:2.5.1.2]
at org.opensaml.xml.validation.ValidatorSuite.performValidation(ValidatorSuite.java:168)[143:org.apache.servicemix.bundles.opensaml:2.5.1.2]