Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-14940

Improve SAML2 Response/Assertion generation to not have carriage return inbetween XML tag

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5.2, 6.0.1, 7.0.0, 5.5.2
    • Component/s: SAML
    • Labels:
    • Support Ticket IDs:

      Description

      Problem
      It is being reported that some the LogoutTesponse generated by AM creates a carriage return

      <samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" 
      ID="s1222222" Version="2.0" IssueInstant="2019-05-01T00:11:11Z" Destination="http://www.invisionapp.com/sso/logout" InResponseTo="_1938312-1111-1111-111">
      

      Eg: https://www.invisionapp.com/ does some validation that does not like a carriage return between the xmlns:samlp and ID. (which has other SAML2 vendor that may not have issues with)

      The request for this is to increase interop so that instead of generating a NEWLINE, a space is done for all XML tags with attributes)

      Code

      Update:
      For now one case is:

      Update openam-federation/openam-federation-library/src/main/java/com/sun/identity/saml2/protocol/impl/StatusResponseImpl.java to emit a space instead of a NEWLINE

        Attachments

          Activity

            People

            • Assignee:
              chee-weng.chea C-Weng C
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: