Skip to main content

Token service error codes

Token Service Error Codes are a collection of error codes that are associated with the token service. These error codes are used to indicate specific issues or problems that may occur during the token generation process.

For any error code not documented here, please reach out to our support team and share the message and URL with us. We will immediately help investigate why this issue occured for you.

What does token-srv/token error Code xxx mean / What are the standard OAuth2 Error to retrieve a Token?

errorhint
invalid_requestThis error indicates that the request is missing a required parameter, includes an unsupported parameter or parameter value, repeats the same parameter, uses more than one method for including an access token, or is otherwise malformed.
 invalid_clientThis error occurs when client authentication fails, such as if the client ID or secret is incorrect.
invalid_grantThis error is returned if the authorization code is invalid, expired, revoked, does not match the redirect URI used in the authorization request, or was issued to another client.
unauthorized_clientThis error is issued when the authenticated client is not authorized to use the requested grant type.
unsupported_grant_typeThis indicates that the authorization grant type is not supported by the authorization server.
authorization_pendingThis error occurs when the client is polling the token endpoint to obtain an access token, but the user has not yet completed the authorization process. The client should continue to poll the token endpoint at the interval specified in the previous token response.

What does Token service error Code xxx mean?

cidaas returns error status codes on different occasion. To find out about the Token service related errors, you can navigate to the Token service error code page and lookup your retrieved error code. There you will also find useful hints how to solve them.

For example:

If you encounter this error code (TOKN1001,TOKN10005,TOKN10006,TOKN10007,TOKN10008,TOKN10009) in your application, you should follow the hint provided.

The following table represents the Token service error codes that will help you in identifying and troubleshooting various errors or failures.

codeerrorerror_descriptionhint
TOKN10001invalid_requestrequest is missing a required parameter, client_id is missingclient_id is a required parameter that you need to pass in query
TOKN10002empty_client_iderror creating verification urlthere seems to be an error while creating a verification url
TOKN10003invalid_request_bodyerror parsing request bodyplease check the query/form parameters you are passing are in correct format or is missing values
TOKN10004invalid_device_requesterror creating device requestplease check the device details passed
TOKN10012invalid_auth_headerinvalid auth header passed. header must have 2 partsauth header arguments missing
TOKN10013invalid_access_tokeninvalid authorization header access_token passedaccess token invalid
TOKN10014invalid_authorization_header_typeinvalid authorization header. should be either 'bearer' or 'basic'invalid authorization type
TOKN10015empty_access_tokenaccess_token or id_token in body must not be emptyempty access token
TOKN10016invalid_login_responseerror while fetching login response from db for filterlogin response failure
TOKN10017login_response_not_foundlogin response not found for filterlogin response invalid
TOKN10018invalid_track_idinvalid track id passedlogin response invalid
TOKN10019getting_prevalidation_errorError while getting pre-validation data from DB for track_idpre-validation data not found
TOKN10020updating_prevalidation_errorError while updating pre-validation data to DB for track_idpre-validation data update error
TOKN10021metadata_errorError initializing metadatametadata error
TOKN10022renew_request_bodyRenew request body validation failedrenew request body failure
TOKN10023sso_renew_failureLogin response not found for sso renewsso renew failure
TOKN10024invalid_token_type_hintInvalid token type hint passedtoken type hint failure
TOKN10025invalid_requestrequest is missing a required parameter, client_id or client_secret is missingclient_id & client_secret is a required parameter that you need to pass in query
TOKN10027invalid_clientclient authentication failed : unknown clientclient_id or client_secret is invalid
TOKN10030failure_revoke_tokenby_subError invoking token by subsub failure
TOKN10031failure_revoke_tokenby_loginResponseIdError revokin token by loginResponseIdloginResponseId failure
TOKN10032token_validation_failedError while validating token request, might be invalid grant type, or missing client detailsfailed token validation
TOKN10033authorization_code_grant_failureError while processing authorization code grant flowgrant type failure for authorization
TOKN10034client_credentials_failureError while processing client credentials flowgrant type failure for client credentials
TOKN10035password_grantype_failureError while processing passowrd grant type flowfailed password grant type failure
TOKN10036implicit_grant_type_failureError while processing implicit grant type flowfailed implicit grant type failure
TOKN10037standard_grant_type_failureError while processing stabdard grant type flowfailed standard grant type failure
TOKN10038refresh_type_failureError while processing refresh token type flowfailed refresh token type failure
TOKN10039device_grant_type_failureError while processing device grant type flowfailed device grant type failure
TOKN10040device_grant_type_failureError while processing device grant type flowfailed device grant type failure
TOKN10041missing_auth_requestMissing few auth parameters for processing the requestmissing auth parameters
TOKN10043invalid_token_passedThe passed token is invalidinvalid token
TOKN10044client_authentication_failedClient authentication failed while fetching client id from authcacheinvalid token

Need Support?

Please contact us directly on our support page