POST /admin/mfa/risk-policies/evaluate
传入用户上下文(user_id、IP、设备指纹),返回评估的风险等级和要求的MFA方法。参考:NIST SP 800-63B §5.2 (Risk-based Authentication)。需要管理员权限。
MFA `bearerAuth` application/json
Request Body
Schema: dto.EvaluateRiskPolicyRequest
| Field | Type | Required | Example | Constraints | Description |
user_id |
string |
Yes |
|
|
|
device_fingerprint |
string |
No |
|
|
|
ip |
string |
No |
|
|
|
Referenced Schemas
dto.EvaluateRiskPolicyDetailResponse
dto.EvaluateRiskPolicyResponse
| Field | Type | Required | Example | Constraints | Description |
is_new_device |
boolean |
No |
False |
|
|
level |
string |
No |
medium |
|
|
required_methods |
array of
string |
No |
['["totp"', '"sms"]'] |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|