Hi everyone,
If I create a user with a name which does have characters which need to be encoded correctly in the name or other attributes it is not correctly added to the SAML response, or not shown correctly by the test web application, the problem is with the surname, in this case containing an "ö".
<saml:AttributeValue xsi:type="xs:string">John</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" FriendlyName="Surname">
<saml:AttributeValue xsi:type="xs:string">Te??st</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" FriendlyName="Email Address">
<saml:AttributeValue xsi:type="xs:string">john.doe@email.com</saml:AttributeValue>
</saml:Attribute>
For OpenID Connect it works as expected:
{
"exp": 1652178625,
"nbf": 1652175025,
"ver": "1.0",
"iss": "",
"sub": "",
"aud": "",
"acr": "b2c_1a_signin",
"nonce": "defaultNonce",
"iat": 1652175025,
"auth_time": 1652175025,
"email": "john.doe@email.com",
"name": "john.doe@email.com",
"given_name": "John",
"family_name": "Teöstr",
"tid": "***"
}
Is this just a miss configuration, a bug or a missing feature?