Skip to content

How to handle status other than 'Success' gracefully #30

@HDenBreejen

Description

@HDenBreejen

My IDP responds with a 'Responder' status when the user at some point cancels the authentication.
SAML2 throws an exception when on any status other then Success.

I need to handle this situation gracefully in my app. Perhaps I would like to redirect to a 'Try again' page.
The only way of doing this I can think of, is examining the exception. A Saml20Exception, however, does not have a error code, so I would have to resort to testing the Mesage property.

Unless there is a better way to approach this situation, I would suggest adding some properties to the Saml20Exception, so the application can handle specific situations.

Specifically for my scenario, an extra endpoint attribute for a non-success redirect-url would do fine, but that would not be as versatile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions