获取
描述
object authentication.get(object parameters)
此方法允许根据给定参数检索身份认证对象。
此方法仅对“超级管理员”用户类型可用。 调用此方法的权限可以在用户角色设置中撤销。 有关更多信息,请参阅用户角色。
参数
(object)
定义所需的输出。
该方法仅支持一个参数。
参数 | 类型 | 描述 |
---|---|---|
output | query | 此参数是参考说明中描述的所有get 方法的通用参数。 |
返回值
(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 文件中。