Skip to content

InResponseTo validation fails for response type LogoutResponseΒ #438

@stevenmasci

Description

@stevenmasci

When performing a logout action the logout consumer callback receives a LogoutResponse from the IDP.
If validateInResponseTo is enabled then an error will be thrown:

Error: InResponseTo is missing from response

It appears the reason for this is within the SAML.prototype.validatePostResponse function, specifically when extracting the InResponseTo value from the response xml.

inResponseTo = xpath(doc, "/*[local-name()='Response']/@InResponseTo");

Since it is a logout response the xml object name is LogoutResponse not Response, therefore it fails to extract the InResponseTo value as Response does not exist.

Is there a reason for this design or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions