Token Debugging

The token debug tool enables developers to check the Time to Live (TTL) and status (active/expired) for all tokens. For Authorization Code Flow (3-legged OAuth) tokens, permission scopes will be displayed. You can fetch access token data using the /token/debug endpoint or /token/permissions.

Debug a Token

Sample Request

curl -X GET 'https://auth.onepassport.eu/token/debug' \
-H 'Authorization: Bearer {INSERT_TOKEN}'

Request Body

Field
Type
Description

token

string

Required. The string value of the token returned using Client Credential Flow or Authorization Code Flow

Sample Response

{
    "accessToken":"41e3a86f5be315a394695dca791f65a5560ac98d",
    "accessTokenExpiresAt":"2021-10-08T22:43:52.924Z",
    "scope":["identity.email","identity.basic"],
    "client_id":"EqhzuQFdE35NvLQnvzs4jccpGaJCYE7P",
    "user_id":"G3dpGzCrf7XRXwsf9"
}

Check permissions

Sample Request

curl -X GET 'https://auth.onepassport.eu/token/permissions' \
-H 'Authorization: Bearer {INSERT_TOKEN}'

Request Body

Field
Type
Description

token

string

Required. The string value of the token returned using Client Credential Flow or Authorization Code Flow

Sample Response

{
    "scope":["identity.email","identity.basic"]
}

Last updated