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

PUT /auth/me

更新当前认证用户的基本资料,支持修改用户名和MFA启用状态。参考:GDPR Art 16 (Right to Rectification)、OWASP ASVS V2.1。

身份认证 `bearerAuth` application/json

Request Body

Schema: dto.UpdateUserAuthRequest

FieldTypeRequiredExampleConstraintsDescription
mfa_enabled boolean No MFAEnabled
username string No Username

Responses

StatusDescriptionSchema
200用户信息更新成功dto.UpdateCurrentUserAuthResponse
400请求参数无效gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证或令牌无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.UpdateCurrentUserAuthResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No