Revoke a token
RFC 7009: the app revokes one of its tokens. A refresh token ends every token of its login.
/oidc/revoke- Access
- Private code required
- Client
- Local or server client
JSON body#
| Name | Location | Meaning |
|---|---|---|
tokenRequired | JSON | The access or refresh token. |
token_type_hint | JSON | Read and ignored. |
Request examples#
curl -fsS -u "$CLIENT_ID:$CLIENT_SECRET" \
-d token="$REFRESH_TOKEN" "https://veil.rip/oidc/revoke"Response#
200 with {}, also for a token that is not the app's.
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | application/json | JSON, also for errors. |
Cache-Control | no-store | Private: never cached. |
Usage notes#
- Errors of this endpoint follow OAuth:
{"error", "error_description"}(RFC 6749, 5.2), not theerrorobject of the rest of the API. A rate limit still answers 429 with the usual envelope.
Errors#
API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide
| HTTP | Code | Meaning and next step |
|---|---|---|
| 400 | invalid_request | OAuth error: a parameter is missing, given twice or malformed, or the body is not a form. Read |
| 401 | invalid_client | OAuth error: the app could not be authenticated, with the method it registered. Check the client id and secret (Basic), the client assertion (private_key_jwt, a new jti each time) or client_id for a public app. |
Shared request errors
| HTTP | Code | Meaning and next step |
|---|---|---|
| 429 | rate_limited | An anonymous, signed-request or API-key allowance was exceeded. Wait at least |
| 500 | internal_error | An unexpected server error occurred. Internal details are not returned. Retry reads with bounded backoff. Check write results before sending a new signed operation. |
| 503 | busy | The application has reached a temporary concurrency or database limit. Wait |