POST /oauth/introspect
Introspecção (RFC 7662) — só client CONFIDENTIAL autenticado
- Acesso: Pública
- Serviço:
https://auth-api.axuz.net
Autenticação aceita
clientBasicclientPost— Na prática vai no CORPO form (client_id + client_secret).
Só enxerga tokens emitidos ao próprio client; os demais respondem {"active": false}. Public client não pode introspectar (401).
Parâmetros
Sem parâmetros.
Respostas
200
Estado do token.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
active | boolean | sim | |
scope | string | não | |
client_id | string | não | |
sub | string | não | |
token_type | string | não | |
exp | integer | não | |
iat | integer | não | |
iss | string | não |
401
Erro do protocolo (RFC 6749 §5.2).
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, invalid_token, insufficient_scope, access_denied, login_required, consent_required, enrollment_required, rate_limited, not_found, server_error. |
error_description | string | não |
429
Rate limit. Retry-After em segundos.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, invalid_token, insufficient_scope, access_denied, login_required, consent_required, enrollment_required, rate_limited, not_found, server_error. |
error_description | string | não |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X POST 'https://auth-api.axuz.net/oauth/introspect' \
-H "Cookie: access_token=$AXUZ_SESSION_JWT"Node.js
const res = await fetch("https://auth-api.axuz.net/oauth/introspect", {
method: 'POST',
headers: {
Cookie: `access_token=${process.env.AXUZ_SESSION_JWT}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"POST",
"https://auth-api.axuz.net/oauth/introspect",
headers={
"Cookie": f"access_token={os.environ['AXUZ_SESSION_JWT']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())