tencent cloud

문서Tencent OneID Identity Security

Revoking Token

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-08-26 15:36:23
AI 번역

API Description

Revoke the OAuth 2.0 Token. If an access_token is passed in, only that specific access_token is revoked. If a refresh_token is passed in, both that refresh_token and any access_tokens associated with it are revoked.

Supported Application Types

Web applications, single-page applications, mobile apps, and M2M applications.

Request Method

POST

Request path

/oauth2/revoke

Request Content-Type

application/x-www-form-urlencoded

Request Example

POST /oauth2/revoke HTTP/1.1
Host: sample.portal.tencentciam.com
Content-Type: application/x-www-form-urlencoded

client_id=TENANT_CLIENT_ID&client_secret=TENANT_CLIENT_SECRET&token=MOCK_ACCESS_TOKEN

Request Parameters

Parameter
No
Description
client_id
false
The application's client_id. It must match the one used when authorization and tokens are obtained.
client_secret
false
The application's client_secret. You can view it on the Application Basic Information page of the tenant management platform.
token
false
The value of the access_token or refresh_token.

Normal Response Example

HTTP/1.1 200 OK

Exception Response Example

The client_id does not match the one used when login is initiated and the Token is obtained.
HTTP/1.1 401 Unauthorized
Content-Type: application/json;charset=UTF-8

{
"error" : "invalid_client"
}

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백