A AuthMS API Wiki API Reference iam.tianv.com →

POST /internal/revoke-user-tokens

内部API端点,由 identity-service 调用,用于在密码变更/账户锁定/GDPR 擦除时级联撤销 OAuth 令牌。受 InternalAPIKeyAuth + ExtractTenantFromHeaderStrict 中间件保护。

OAuth - 内部接口 None application/json

Request Body

Accepts an empty JSON object {}

Responses

StatusDescriptionSchema
200撤销结果(含 revoked_access_tokens, revoked_refresh_tokens 计数)handler.swaggerBatchRevokeDetailResponse
400请求参数错误:缺少 user_idgitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_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