[comment]: # translation:outdated

[comment]: # ({558a988d-558a988d})
# 获取

[comment]: # ({/558a988d-558a988d})

[comment]: # ({eaed48ba-f493fd10})
### 描述

`object authentication.get(object parameters)`

此方法允许根据给定参数检索身份认证对象。

::: noteclassic
此方法仅对“超级管理员”用户类型可用。
调用此方法的权限可以在用户角色设置中撤销。
有关更多信息，请参阅[用户角色](/manual/web_interface/frontend_sections/users/user_roles)。
:::

[comment]: # ({/eaed48ba-f493fd10})

[comment]: # ({3a8de98a-24b20f8d})
### 参数

`(object)` 用于定义所需输出的参数。

该方法仅支持一个参数。

|参数|[Type](/manual/api/reference_commentary#data-types)|描述|
|--|--|------|
|output|query|此参数在[参考注释](/manual/api/reference_commentary#common-get-method-parameters)中进行了说明。|

[comment]: # ({/3a8de98a-24b20f8d})

[comment]: # ({6394c247-6394c247})
### 返回值

`(object)` 返回认证对象。

[comment]: # ({/6394c247-6394c247})

[comment]: # ({25dfe2fa-cad6afa3})
### 示例

[请求](/manual/api#执行请求):

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

响应:

```json
{
    "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
}
```

[comment]: # ({/25dfe2fa-cad6afa3})

[comment]: # ({5f5520aa-b8be0c1f})
### 源码位置

CAuthentication::get() 在 *ui/include/classes/api/services/CAuthentication.php* 文件中。

[comment]: # ({/5f5520aa-b8be0c1f})
