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

POST /auth/re-authenticate

高风险操作前的重新认证,通过密码验证提升当前会话的安全级别 返回step_up_token,有效期5分钟,可用于后续高安全操作的身份令牌传递

身份认证 `bearerAuth` application/json

Request Body

Schema: dto.ReAuthenticateRequest

FieldTypeRequiredExampleConstraintsDescription
password string Yes length: 1–? 当前密码
mfa_code string No MFA验证码

Responses

StatusDescriptionSchema
200操作成功dto.ReAuthenticateDataWrapper

Referenced Schemas

dto.ReAuthenticateDataWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
data dto.ReAuthenticateResponse No
message string No success

dto.ReAuthenticateResponse

重新认证成功响应

FieldTypeRequiredExampleConstraintsDescription
expires_in integer No 300 有效期
message string No re-authentication successful 结果消息
step_up_token string No stepup_abc... Step-up token