Using "greater than" (>) and "less than" (<) Characters in SAML Attribute Statements
Single Sign-On
Okta Classic Engine
Okta Identity Engine
Overview

When attempting to create a SAML Attribute Statement that includes the "less than" or "greater than" as in the following example: 

 

Attribute Statements

 

The actual attribute in the SAML Response will be represented as: &gt.

<saml2:AttributeStatement>
        <saml2:Attribute Name="test_attribute" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
            <saml2:AttributeValue
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">&gt;
            </saml2:AttributeValue>
        </saml2:Attribute>
</saml2:AttributeStatement>
Applies To
  • Application Integration Wizard (AIW)
  • Security Assertion Markup Language (SAML) Attribute Statements 
  • Using special characters in SAML Attribute Statements 
Solution

It is expected that "less than" (<) and "greater than" (>) characters will be replaced with so-called entity references in the SAML Response so as not to break the XML format (if a literal character were used, the XML parser would interpret it as the end/start of the new element). 

 

Related References

 

Recommended content

No recommended content found...