POST /admin/mfa/risk-policies/evaluate
传入用户上下文(user_id、IP、设备指纹),返回评估的风险等级和要求的MFA方法。参考:NIST SP 800-63B §5.2 (Risk-based Authentication)。需要管理员权限。
多因素认证 `bearerAuth` application/json
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.EvaluateRiskPolicyDetailResponse
service-mfa/internal/handler/dto.EvaluateRiskPolicyResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
enabled |
boolean |
否 |
True |
|
Enabled 该等级是否存在启用策略;false = 管理员已禁用(或回退内置默认),不再额外要求 MFA(A17) |
is_new_device |
boolean |
否 |
False |
|
|
level |
string |
否 |
medium |
|
|
required_methods |
array of
string |
否 |
['["totp"', '"sms"]'] |
|
|