OpenConext / Stepup-Gateway

Stepup Gateway
Apache License 2.0
6 stars 3 forks source link

Improved error feedback during authentication #410

Closed phavekes closed 1 day ago

phavekes commented 1 day ago

This issue is imported from pivotal - Originaly created at May 23, 2017 by Pieter van der Meulen

In many cases, when something goes wrong during authentication, the user is left stranded with often a generic error message on the gateway. We can do better.

1) Better error messages for users in specific cases. Not part of this story, but search for label "error-messaging" to find some. 2) Redirect the user back to the service provider.

The user want to login to a service provider, that means that ending up at an error page at our gateway is not what he/she is looking for. SAML provides a means standard way of redirecting the user back to the SP using a SAML Response with an error Status Code. The Stepup gateway already uses this mechanism in specific situation. There are two issues when using this mechanism in practice:

As a solution I propose to continue to show an error screen where we do so now but add a "go back to (name of service provider) button" to this screen that redirects the user back using the SAML error mechanism. It is open for discussion whether we want to insert this screen in situation where we currently do not. My thinking now is that: