NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
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.
URL | Description |
---|---|
| OpenID Connect based authentication URL. Parameters are added to the |
| Link account service which allows users to link their accounts with another account from available user directories. Parameters are added to the |
| (Obsolete) strong identification service which allows user to perform strong identification. Parameters are added to the |
Strong identification URL | Temporary 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 (federated 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.
From where does abbreviation TID-AEX come from?
It is simply TrivoreID Authentication EXeption. Number after it gives the clue on the occurred exception, or error code. This error code is an OpenID Connect required parameter. Our prefix for it is “TID-AEX”.
General error codes
General error codes are common for all services.
Error | Description |
---|---|
| Provided |
| Invalid configuration prevents authentication. |
| Requested user directory is not available or other internal directory handling failure. |
| Internal server error |
| Authentication failed. |
| Conflicting user information which prevents saving user to database. Usually caused by some unique requirements. |
| Invalid request, check your parameters. |
| User cancelled authentication. Note that |
| User has been disabled. |
| User validity time has been exceeded. |
| User has been locked. |
Strong identitification error codes
These error codes only appear when using strong identification service.
Error | Description |
---|---|
| No strong identification capable user directory configured in user’s namespace. |
| Personal 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.
Error | Description |
---|---|
| No authorization code received |
| Failed to fetch metadata |
| Access 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.
The Authorization Response (OAuth 2)
Authentication Error Response (OpenID Connect)