/auth/re-authenticate
通过当前密码进行重新认证,返回 step-up token 供敏感操作(标识变更)使用
请求体
Schema: service-identity/internal/handler/dto.ReAuthenticateRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
password |
string |
是 | length: 1–? | 当前密码 | |
audience |
string |
否 | Audience 目标资源(step-up token 的 aud);空 = 使用当前配置 audience。 | ||
mfa_code |
string |
否 | MFA验证码 |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | step-up token | service-identity/internal/handler/dto.ReAuthenticateResponse |
引用的 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 |