Skip to content

No exception for StatusError #571

@tpazderka

Description

@tpazderka

Code Version

4.6.4

Expected Behavior

If client is parsing a message with error status (for example status code urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal), an exception should be raised.

Current Behavior

No exception is raised and a response object is returned from Base.parse_authn_request_response with no easy way of detecting the error type/message.

Possible Solution

This has been caused by catching an Exception here and not propagating it further.

Steps to Reproduce

  1. Create an XML message with error status and status code of urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal
  2. Parse the message with the client

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