Token Endpoint

Fail Token Request

Changed on

This API generates a content of an error token response that the authorization server implementation returns to the client application.

post/api/{serviceId}/auth/token/fail

Request

  • Base URL
    https://us.authlete.com
  • URL
    https://us.authlete.com/api/{serviceId}/auth/token/fail
  • Auth
    HTTP bearer

Path parameters

serviceIdstring required

A service ID.

Request body

ticketstring required

The ticket issued from Authlete /auth/token API.

reason'UNKNOWN' | 'INVALID_RESOURCE_OWNER_CREDENTIALS' | 'INVALID_TARGET' | 'INVALID_CLIENT' | 'UNAUTHORIZED_CLIENT' | 'INVALID_SCOPE' required

The reason of the failure of the token request.

Response

resultCodestring

The code which represents the result of the API call.

resultMessagestring

A short message which explains the result of the API call.

action'INTERNAL_SERVER_ERROR' | 'BAD_REQUEST'

The next action that the authorization server implementation should take.

responseContentstring

The content that the authorization server implementation is to return to the client application. Its format varies depending on the value of action parameter. See description for details.

Changes

    • info

      added the new INVALID_CLIENT enum value to the request property (media type: application/json)

    • info

      added the new INVALID_CLIENT enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new INVALID_SCOPE enum value to the request property (media type: application/json)

    • info

      added the new INVALID_SCOPE enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the new UNAUTHORIZED_CLIENT enum value to the request property (media type: application/json)

    • info

      added the new UNAUTHORIZED_CLIENT enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      added the non-success response with the status