Revoke a token
POST
The revocation endpoint (RFC 7009 §2.1). Revoke an access token or a refresh token that was issued to your client. Revocation ends the user session, so its refresh tokens stop working. An access token stays valid until it expires, because Spiral services verify it without asking the authorization server. A token that the server does not know returns success (RFC 7009 §2.2). Send the client_id of the client that the token was issued to. A third-party application whose registration names a jwks_uri also sends a private_key_jwt assertion (RFC 7523 §2.2).
application/x-www-form-urlencoded- body
A revocation request (RFC 7009 §2.1).
token*stringtoken_type_hint?stringValue in
"access_token""refresh_token"client_id*stringclient_assertion_type?stringclient_assertion?stringThe token is revoked, or the server does not know it. The body is empty.
curl -X POST 'https://auth.spiraldb.com/oauth/revoke' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'token=string&client_id=string'Empty