Error management during Sharing Flow

If the End User abandons the MiTrust flow, or meets an error, the End User will be redirected to the ServiceProvider's redirect URI, with additionnal parameters such as error & error_description.

redirect_uri?error=someErrorCode&error_description=Some%20details%20about%20the%20error

The error parameter will always be one of the values listed below:

  • access_denied: The End User made an action to end the process, for example closing the pop-up window or going back to your website.
  • timeout: The End User exceeds the session duration, it can happen on every page. Each session is valid for 10 minutes.
  • invalid_scope: Your application is misconfigured, you selected a scope in the URL starting the SharingFlow while this scope is not activated in your application.
  • temporarily_unavailable: This error occurs when MiTrust platform is under maintenance or deploying a new version of the service.
  • invalid_request: We miss a parameter to properly build a session session_corrupted: The End User session has been corrupted (i.e :parameters have been removed from the url or such)

The error_description parameter is HTML encoded and describe the circumstance of the error.