-
Notifications
You must be signed in to change notification settings - Fork 44
Description
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.