Skip to main content

Error information and error description - tid-aex

TrivoreID can provide authentication error information to external services when, for example, someone is executing a strong identification. This information is delivered in URL query parameters error and error_description to the service making the request. These parameters are added to the failureRedirectUri received from the request or redirect_uri in case of OpenID Connect based login.

Relevant endpoints that use these parameters are in table below.

URLDescription
https://<hostname>/openid/authOpenID Connect based authentication URL. Parameters are added to the redirect_uri.
https://<hostname>/openid/link-accountLink account service which allows users to link their accounts with another account from available user directories. Parameters are added to the failureRedirectUri.
https://<hostname>/openid/strongidentification(Obsolete) strong identification service which allows user to perform strong identification. Parameters are added to the failureRedirectUri.
Strong identification URLTemporary strong identification URL received from Initiating interactive strong identification (suomi.fi tunnistus)

Please note that list of error codes documented here is not exhaustive. For example, when linking account with OpenID based user directory, any possible error and error_description values received from this external service are relayed as-is. If you need exhaustive listing of error codes, you need to also consult the documentation of any possible user directories your users will be using.

For configuring user directories, see User directories (external sign-in)

The error_description parameter may, in some cases, also contain detailed authentication error code (in addition to humanized error message), such as TID-AEX-XXXX. For exhaustive list of these authentication error codes, see Authentication Error Codes . If you want to remove this authentication error code from error_description parameter, you can use this regular expression to do that: \s*\(TID-AEX-[0-9]{4}\). Example code Java below.

public void doGet(HttpServletRequest request, HttpServletResponse response) {
String errorDescription = request.getParameter("error_description");
errorDescription = errorDescription.replaceAll("\\s*\\(TID-AEX-[0-9]{4}\\)", "");
}

Example error_description value is You are unable to sign-in! (TID-AEX-1030)

Any error code values documented below may appear as value in error parameter.

General error codes

General error codes are common for all services.

ErrorDescription
invalid_tokenProvided access_token or id_token is invalid or other internal token handling failure.
invalid_configInvalid configuration prevents authentication.
no_such_directoryRequested user directory is not available or other internal directory handling failure.
internal_errorInternal server error
auth_failAuthentication failed.
user_conflictConflicting user information which prevents saving user to database. Usually caused by some unique requirements.
invalid_requestInvalid request, check your parameters.
user_cancelUser cancelled authentication. Note that access_denied also usually indicates user cancelling the authentication. The choice between these two parameters depends on the service you are using.
user_disabledUser has been disabled.
user_expiredUser validity time has been exceeded.
user_lockedUser has been locked.

Strong identification error codes

These error codes only appear when using strong identification service.

ErrorDescription
strongid_not_availableNo strong identification capable user directory configured in user’s namespace.
personal_id_conflictPersonal identity code conflict. User already has personal identity code but tries to strong identify with different personal identity code and namespace settings do not allow this.

OpenID Connect error codes

These error codes only appear when performing OpenID Connect authentication (whether using the services own provider or external OpenID Connect based user directory ). Please note that error codes from external user directories are relayed as-is and therefore this listing is not exhaustive.

ErrorDescription
missing_codeNo authorization code received
metadata_failFailed to fetch metadata
access_deniedAccess denied, usually indicates that user cancelled authentication.

In addition to these error codes, any standardized error codes may be used. For list of those, see following links.