Error Handling
azuma mimoto integrates the following error handling capabilities:
- Technical errors, e.g. wrong client_ids, missing scopes, etc. are treated as technical integration errors and displayed directly as JSON formatted errors. Those need to resolved during integration.
- Flow execution errors, e.g.: failing auth requests, failing token requests etc. are treated as technical runtime errors. Those can not be resolved during integration and need to be handled at runtime.
azuma mimoto provides multiple integration scenarios (see below) that can be configured per
Application
to properly receive and process such errors.
Web flow
Technical runtime errors
Technical runtime errors can happen in Web
flow during
(1) Authorization request
Errors here could result from IDP not being available / usable (e.g. trust can not be established) or declining the auth request for some reasons.
(2) Internal code exchange (after authorization in authenticator app)
Errors here could result from IDP not being available, token not being decryptable or verifiable.
(3) Token exchange
Errors here could result from IDP wrong code / verifiers used.
Error handling modes
The following error handling modes are available and can be configured on the relevant Application
:
- Default: In 'Default' mode the integrated error UI screen of azuma mimoto is displayed.
- Redirect to Auth: Errors are redirected to the 'Redirect-URL' that was provided in the Auth-Request.
Format:
redirect-url?error=*error*
- Redirect to Custom: Errors are redirected to the 'Custom-URL' that is configured for the
Application
Format:custom-url?error=*error*
App to App flow
Technical runtime errors
Technical runtime errors can happen in App to App
during