POST /auth/re-authenticate

通过当前密码进行重新认证,返回 step-up token 供敏感操作(标识变更)使用

身份认证 `bearerAuth` application/json

请求体

Schema: service-identity/internal/handler/dto.ReAuthenticateRequest

字段类型必填示例约束描述
password string 是 length: 1–? 当前密码
audience string 否 Audience 目标资源(step-up token 的 aud);空 = 使用当前配置 audience。
mfa_code string 否 MFA验证码

响应

引用的 Schema

service-identity/internal/handler/dto.ReAuthenticateResponse

重新认证成功响应

字段类型必填示例约束描述
expires_in integer 否 300 有效期
message string 否 re-authentication successful 结果消息
step_up_token string 否 stepup_abc... Step-up token