Autional Autional
API Reference GitHub autional.com →

DELETE /admin/oauth/clients/{client_id}/tokens

Revokes all active tokens for a specified client, with an optional grace period (in seconds).

OAuth Client Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes Client ID
grace_period query integer No Grace period (seconds)

Responses

StatusDescriptionSchema
200Revocation result (includes revoked_access_tokens, revoked_refresh_tokens counts)dto.RevokeClientTokensDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissions: administrator role requiredgitee_com_linmes_authms_base_dto.SimpleResponse
404Client not found or does not belong to the current tenantgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.RevokeClientTokensDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.RevokeClientTokensResponse No
message string No
timestamp string No

dto.RevokeClientTokensResponse

Result of revoking all tokens for a client

FieldTypeRequiredExampleConstraintsDescription
grace_period integer No 3600
revoked_access_tokens integer No 10
revoked_refresh_tokens integer No 5

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No