Error codes in the OIDC interface
There are three types of errors in Suomi.fi e-Identification.
- Situations in which the user cannot be directed back to the e-service. In this case, the user ends up on the "Something went wrong" error page. An error code can be found at the end of the address line of the error page. An example with error code 5: https://testi.apro.tunnistus.fi/sivut/500/?t=cloudcoreidpshib&m=5
- If the error situation is such that the user can still be returned to the e-service, the redirection is performed to the e-service’s redirect_uri with an error message. Example: https://testipalvelu.apro.tunnistus.fi/oidc/protected/redirect_uri?error=invalid_request&error_description=MissingMandatoryRequestObject&state=PZrL2i2gqsyG9CcR6smp8w77nNAupJEIvTcnDk_VYOs
- Errors in the token interface are returned as responses in json format. Example {"error":"invalid_request","error_description":"UnableToDecode"}
The descriptions of the most common error codes can be found in the below tables. If you repeatedly encounter errors other than those in the below tables, contact deployment support: tunnistus-kayttoonotot@dvv.fi.
Descriptions of the most common error codes
Error codes of the page Something went wrong:
Error code | Error description |
|---|---|
5 | The configuration of the e-service is not valid or it cannot be found. For example, the client_ids of the identification request and metadata do not correspond to each other.. |
10 | The processing of the identification request fails. For example, there are values external to the OIDC specification in the parameters of the query. |
23 | The parsing of the identification request is successful but it is not valid. For example, the obligatory openid value is missing from the scope parameter. |
24 | The validation of the identification request fails. For example, the signature of the request_object cannot be validated or the jwks_uri of the e-service is not available. |
50 | Invalid redirect_uri of the identification request. The redirect_uri in the request must be found in the e-service metadata. |
51 | Invalid response_type of the identification request. For example, a blank response_type. |
62 | The id_token parameter, which does not work with encrypted tokens, has been used in the logout request. Instead, use the logout_hint parameter, in which the sid parameter of the token response is used as the value |
Errors returning to the e-service:
Error | error_description | Virheen kuvaus |
|---|---|---|
invalid_request | AuthenticationException | The identification event has been interrupted either by the user or for some other reason. |
invalid_request | InvalidEvent | The identification event has been interrupted either by the user or for some other reason. |
unsupported_response_type | Unsupported response type | Invalid response_type of the identification request. The permitted value is code. |
invalid_request | MissingMandatoryRequest | The obligatory request_object parameter is missing from the identification request. |
invalid_request | PKCE transform algorithm | If PKCE is used, the only permitted code_challenge_method is S256. |
Errors in the token interface:
Error | error_description | Virheen kuvaus |
|---|---|---|
invalid_request | Invalid request | General error. No description. |
invalid_request | UnableToDecode | An unidentified or deficient parameter in the token request. |
invalid_client | Client authentication | The authentication token (client_assertion) of the token interface could not be validated. |