GladysDevelopers

OAuth2 Token Introspection

Tells a confidential client whether one of its own tokens is active (RFC 7662). Anything else, including another client's token, is {"active": false}.

Choose a TEST app to send requests from the playground.
post/oauth/introspect

Tells a confidential client whether one of its own tokens is active (RFC 7662). Anything else, including another client's token, is {"active": false}.

Request Body

application/x-www-form-urlencoded
  1. body
client_id*string
client_secret?string
token*string
token_type_hint?string

"access_token" or "refresh_token"

Response Body

OK

application/json
  1. response
active?boolean
client_id?string

The app the token was issued to.

exp?integer

Unix seconds.

scope?string

Space-separated.

token_type?string
user_id?string

The Gladys user, for a token acting for one.

curl -X POST "https://example.com/oauth/introspect" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'client_id=string&token=string'
{  "active": true,  "client_id": "string",  "exp": 0,  "scope": "string",  "token_type": "Bearer",  "user_id": "string"}