/oauth/revoke
OAuth 2.0 令牌撤销端点。成功返回 200 OK(无响应体)。支持撤销 access_token 和 refresh_token。参考:RFC 7009 (Token Revocation)。
Request Body
Accepts an empty JSON object {}
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 令牌已撤销(无响应体) | string |
| 400 | invalid_request:请求参数缺失或无效。参考:RFC 7009 §2.2。 | dto.OAuthErrorResponse |
Referenced Schemas
dto.OAuthErrorResponse
OAuth标准错误响应
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
error |
string |
No | invalid_request |
错误码 | |
error_description |
string |
No | Missing required parameter |
错误描述 | |
error_uri |
string |
No | https://docs.example.com/errors |
错误URI | |
state |
string |
No | state-123 |
状态 |