authentication.get

描述

object authentication.get(object parameters)

该方法允许根据给定参数检索认证object.

此方法仅适用于超级管理员用户类型. 调用该方法的权限可以在用户角色设置中撤销. 更多信息请参阅User roles.

参数

(object) 定义期望输出的参数。

该方法仅支持一个参数。

参数 数据类型 描述
output query 该参数在通用get方法参数中有详细说明。

返回值

(object) 返回认证object

示例

执行请求:

{  "jsonrpc": "2.0",  "method": "authentication.get",  "params": {  "output": "extend"  },  "id": 1 }

响应:

{  "jsonrpc": "2.0",  "result": {  "authentication_type": "0",  "http_auth_enabled": "0",  "http_login_form": "0",  "http_strip_domains": "",  "http_case_sensitive": "1",  "ldap_auth_enabled": "0",  "ldap_case_sensitive": "1",  "ldap_userdirectoryid": "0",  "saml_auth_enabled": "0",  "saml_case_sensitive": "0",  "passwd_min_length": "8",  "passwd_check_rules": "15",  "jit_provision_interval": "1h",  "saml_jit_status": "0",  "ldap_jit_status": "0",  "disabled_usrgrpid": "9",  "mfa_status": "0",  "mfaid": "0"  },  "id": 1 }

来源

CAuthentication::get() 位于 ui/include/classes/api/services/CAuthentication.php 文件中.