Skip to content

User flows

These are the journeys a user takes through the Consent Dashboard. At the end of every journey the dashboard sends the user to one of your redirects.

Create consent success user flow.

  1. The user navigates from your website or app to the dashboard at your-dashboard.com/create.
  2. The user confirms their consent options and is automatically navigated to their Data Holder’s (a Bank or Energy provider) website.
  3. The user approves the consent request and is automatically navigated back to the dashboard.
  4. The dashboard finalises the consent and navigates the user back to your success redirect URL (default behind ccr).
ValueDescription
success redirect URLWhere the user lands on successful completion of a consent. Contact the Adatree team to configure the default.

Create consent user flow with error from data-holder.

  1. The user navigates from your website or app to the dashboard at your-dashboard.com/create.
  2. The user confirms their consent options and is automatically navigated to their Data Holder’s website.
  3. The user encounters an error or cancels the consent.
  4. The dashboard navigates the user back to your error redirect URL (default behind aer).

Create consent user flow with error from dashboard.

  1. The user navigates from your website or app to the dashboard at your-dashboard.com/create.
  2. The user encounters an error in the dashboard or cancels the consent.
  3. The dashboard navigates the user back to your error redirect URL (default behind aer).

In both error flows the user is redirected to your error redirect URL. This can include a user manually cancelling their consent, a network error, or a processing error.

ValueExample
error redirect URLhttps://your-company.com/some-path?error=[error]&error_description=[errorDescription]
or com.your-company://app/some-path?error=[error]&error_description=[errorDescription]

[error] is replaced with a URL-encoded error code (see below) and [errorDescription] with a URL-encoded description. For the full list of return tokens available on the error redirect, see aer.

Below are the error codes that may be returned by the Consent Dashboard via the [error] token. There is currently no agreed-upon standard for the codes returned by Data Holders, so a Data Holder may return a code not listed here.

CodeDescription
access_deniedThis error is set by the Data Holder. It normally indicates an invalid access attempt, however, some Data Holders send this error code even if the user has authenticated and then manually cancelled the consent.
cancelled_authenticationThis error is set by the Data Holder. It indicates that the user has cancelled their authentication login or has the wrong authentication credentials.
login_requiredThis error is set by the Data Holder. It indicates that the user must authenticate (log in) before the consent can proceed, but no active authentication session was found.
usr_opt_outA user has manually opted (cancelled) out of the consent from the Adatree Dashboard.
usr_dh_not_listedA user has manually clicked the data holder is not listed option and cannot proceed with the consent flow.
invalid_requestThe request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.
invalid_resourceThe target resource is invalid because it doesn’t exist.
invalid_scopeThe requested scope is invalid, unknown, or malformed.
unauthorized_clientThe client is not authorized to request an authorization code using this method.
unsupported_response_typeThe authorization server does not support obtaining an authorization code using this method.
server_errorThe authorization server encountered an unexpected condition which prevented it from fulfilling the request.
temporarily_unavailableThe authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.