Skip to content

Certificate mismatch does not throw descriptive errorΒ #381

@DbCrWk

Description

@DbCrWk

A SAML response comes back with a signature and the certificate used to generate that signature. When invoking the library, we pass a cert in options that specifies the key that we expect to have been used in creating the signature.

If the certificate that comes back in the SAML response does not match the cert option that is passed, it would be nice to have separately error-handling that provides a descriptive error. Although the current behavior is not wrong (in that it throws an error because the signature is invalid), it would be nice to have a more descriptive error message in this particular case.

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