Skip to content

Conversation

@barbun
Copy link
Contributor

@barbun barbun commented Nov 24, 2025

Issue

Currently, when SimpleSAMLphp library encounters an error/rejection in the authentication flow the users get redirected to a generic “Unhandled exception” error page generated by SimpleSAMLphp library. The error might happen due to various reasons, e.g. when a user “Cancels” the authentication from the IdP. Because SimpleSAMLphp operates outside of Drupal, it does not know what to do in that situation, hence the generic error page.

Proposed solution

To improve the UX, there is a ErrorURL setting that can be set in the SP metadata to redirect users to a page that receives errors that may occur during authentication flow. This setting defaults to null as it is now, but optionally could be overwritten via an env variable to allow customers to customise this (e.g. return back to login page with a Drupal message).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant