多因素认证 object

以下 objects 直接与 mfa API 相关。

MFA

MFA(多因素认证)对象具有以下属性。

Property Type Description
mfaid ID MFA 方法的 ID。

Property behavior:
- read-only
- required for update operations
type integer MFA 方法的类型。

Possible values:
1 - TOTP(基于时间的一次性密码);
2 - Duo Universal Prompt。
name string MFA 方法的唯一名称。

Property behavior:
- required for create operations
hash_function integer 用于生成 TOTP 代码的哈希函数类型。

Possible values:
1 - SHA-1;
2 - SHA-256;
3 - SHA-512.

Property behavior:
- required if type is set to "TOTP"
code_length integer 验证码长度。

Possible values:
6 - 6 位长度;
8 - 8 位长度。

Property behavior:
- required if type is set to "TOTP"
api_hostname string Duo 身份验证服务提供的 API 主机名。

Property behavior:
- required if type is set to "Duo Universal Prompt"
clientid string Duo 身份验证服务提供的客户端 ID。

Property behavior:
- required if type is set to "Duo Universal Prompt"
client_secret string Duo 身份验证服务提供的客户端密钥。

Property behavior:
- write-only
- required if type is set to "Duo Universal Prompt"