Validate tokens

Use this API to determine whether an Oauth token is valid now.

Method

GET /EAI/oauth/check_token

Example cURL requests

curl https://gateway.domain.com/EAI/oauth/check_token?token=4ed14dd2-d4f3-4089-8f06-02ae42a08420

Request parameters

Table 1. Request parameters
Parameter name Description
token The Oauth token to check.

Example response

{
"authorities" : [ "ROLE_CLIENT" ],
"client_id" : "eai-client",
"exp" : 1418616268,
"scope" : [ "read" ],
"user_name" : "eaitest"
}

Returns

200: OK for success.
400: Bad request if the token is not recognized.