Autional Autional
API Reference GitHub autional.com →

POST /internal/oauth/revoke-user-tokens

Internal API endpoint, called by identity-service to cascade revoke OAuth tokens, hard-delete OAuth connections and authorization consents on password change/account lockout/GDPR erasure. Protected by InternalAPIKeyAuth + ExtractTenantFromHeaderStrict middleware.

OAuth - Internal None application/json

Request Body

Accepts an empty JSON object {}

Responses

StatusDescriptionSchema
200Revocation result (includes revoked_access_tokens, revoked_refresh_tokens counts)handler.swaggerBatchRevokeDetailResponse
400Invalid request parameters: missing user_idgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.BatchRevokeUserTokensResponse

FieldTypeRequiredExampleConstraintsDescription
revoked_access_tokens integer No
revoked_refresh_tokens integer No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No

handler.swaggerBatchRevokeDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.BatchRevokeUserTokensResponse No
message string No