Skip to content

LogoutRequest NameID Format is Required? #220

Open
@gcabrerap

Description

@gcabrerap

Hello guys,

We were doing an integration with ADFS, in the Logout section this could not end the session, reviewing the ADFS logs we found the following error:

Error message: MSIS7082: Unsolicited SAML logout response received.

Upon reviewing, we found that the "create_logout_request" function sends NameID as follows:

  xml = xmlbuilder.create({
    'samlp:LogoutRequest': {
      '@xmlns:samlp': XMLNS.SAMLP,
      '@xmlns:saml': XMLNS.SAML,
      '@ID': id,
      '@Version': '2.0',
      '@IssueInstant': (new Date()).toISOString(),
      '@Destination': destination,
      'saml:Issuer': issuer,
      'saml:NameID': name_id,
      'samlp:SessionIndex': session_index
    }
  }).end();

We make a change and the logout is completely completed:

  xml = xmlbuilder.create({
    'samlp:LogoutRequest': {
      '@xmlns:samlp': XMLNS.SAMLP,
      '@xmlns:saml': XMLNS.SAML,
      '@ID': id,
      '@Version': '2.0',
      '@IssueInstant': (new Date()).toISOString(),
      '@Destination': destination,
      'saml:Issuer': issuer,
      'saml:NameID':  {
        '@Format': 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
        '#text': name_id,
      },
      'samlp:SessionIndex': session_index
    }
  }).end();

Could it be reviewed by you to add it in a next version?

Thanks...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions