GET /mfa/status/{user_id}
查询用户已启用的MFA方式和状态。参考:OWASP ASVS V2.8。
多因素认证 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
user_id |
path |
string |
是 |
|
|
|
用户ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.MFAStatusDetailResponse
service-mfa/internal/handler/dto.MFAStatusResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
email_address |
string |
否 |
user@example.com |
|
|
email_enabled |
boolean |
否 |
True |
|
|
sms_enabled |
boolean |
否 |
False |
|
|
sms_phone |
string |
否 |
+8613800****000 |
|
|
totp_enabled |
boolean |
否 |
True |
|
|