[comment]: # translation:outdated

[comment]: # ({558a988d-558a988d})
# authentication.get

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

[comment]: # ({f493fd10-f493fd10})
### Опис

`object authentication.get(object parameters)'

Метод дозволяє отримати об'єкт аутентифікації за заданими параметрами.

::: noteclassic
Цей метод доступний лише для користувачів типу *Суперадміністратор*. Дозволи на виклик методу можна скасувати в налаштуваннях ролі користувача. Див. [Ролі користувача (/manual/web_interface/frontend_sections/administration/user_roles) для отримання додаткової інформації.
:::

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

[comment]: # ({c43c1377-24b20f8d})
### Параметри

`(object)` Параметри, що визначають бажаний результат.

Метод підтримує лише один параметр.

|Параметр|[Тип](/manual/api/reference_commentary#data_types)|Опис|
|--|--|------|
|output|query|Цей параметр є загальним для всіх методів `get`, описаних у [довідковому коментарі](/manual/api/reference_commentary#common_get_method_parameters).|

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

[comment]: # ({6394c247-6394c247})
### Повернуті значення

`(object)` Повертає об'єкт автентифікації.

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

[comment]: # ({8e52f573-cad6afa3})
### Приклади

запит:

```json
{
     "jsonrpc": "2.0",
     "method": "authentication.get",
     "params": {
         "output": "extend"
     },
     "auth": "038e1d7b1735c6a5436ee9eae095879e",
     "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_configured": "0",
         "ldap_host": "",
         "ldap_port": "389",
         "ldap_base_dn": "",
         "ldap_search_attribute": "",
         "ldap_bind_dn": "",
         "ldap_case_sensitive": "1",
         "ldap_bind_password": "",
         "saml_auth_enabled": "0",
         "saml_idp_entityid": "",
         "saml_sso_url": "",
         "saml_slo_url": "",
         "saml_username_attribute": "",
         "saml_sp_entityid": "",
         "saml_nameid_format": "",
         "saml_sign_messages": "0",
         "saml_sign_assertions": "0",
         "saml_sign_authn_requests": "0",
         "saml_sign_logout_requests": "0",
         "saml_sign_logout_responses": "0",
         "saml_encrypt_nameid": "0",
         "saml_encrypt_assertions": "0",
         "saml_case_sensitive": "0",
         "passwd_min_length": "8",
         "passwd_check_rules": "8"
     },
     "id": 1
}
```

[comment]: # ({/8e52f573-cad6afa3})

[comment]: # ({b8be0c1f-b8be0c1f})
### Джерело

CAuthentication::get() in
*ui/include/classes/api/services/CAuthentication.php*.

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