(Deprecated) Revoke an OAuth token obtained through SSO with OIDC
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
Revoke a previously obtained OAuth access or refresh token for an IdP. This endpoint is deprecated. Please use /sso/oidc/tokens/revoke/v2 instead.
Header Parameters
- SlashID-SdkVersion string
SDK version
Example: 1.4.1
- application/json
Request Body required
- client_id string required
The client ID originally used to obtain the token from the IdP
- token string required
The token to be revoked
- token_type string required
Possible values: [
access_token
,refresh_token
]The type of token being revoked, either access or refresh
Responses
- 204
- 400
No content
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
POST /sso/oidc/tokens/revoke
https://api.slashid.com
Authorization
type: apiKeyname: SlashID-API-Keyin: header
Request
Request
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'
curl -L -X POST 'https://api.slashid.com/sso/oidc/tokens/revoke' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"client_id": "string",
"token": "string",
"token_type": "access_token"
}'