Skip to content

[Debug enhancement] IncorrectlySigned exception on AuthnRequest when MDQ server is down #227

Open
@peppelinux

Description

@peppelinux

When we use a SAML backend with metadata from mdq server and the mdq server is unavailable, SATOSA raises a UnkownError. In the debug log we can read the exception message "IncorrectlySigned". This means that the metadata was not retrieved correctly.

Code Version

master branch

Expected Behavior

Probably a detailed message like "MDQ server is unavailable" would be better.

Current Behavior

  File "Django-Identity.env/lib/python3.5/site-packages/saml2/server.py", line 231, in parse_authn_request
    "single_sign_on_service", binding)
  File "Django-Identity.env/lib/python3.5/site-packages/saml2/entity.py", line 860, in _parse_request
    must=must, only_valid_cert=only_valid_cert)
  File "Django-Identity.env/lib/python3.5/site-packages/saml2/request.py", line 96, in loads
    only_valid_cert=only_valid_cert)
  File "Django-Identity.env/lib/python3.5/site-packages/saml2/request.py", line 59, in _loads
    raise IncorrectlySigned()
saml2.response.IncorrectlySigned

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