登录
POST /login.logout
描述
注销(包括SSO,如果使用)
参数
Type | Name | Description | Schema |
---|---|---|---|
Body | request required | request body | object |
响应
HTTP Code | Schema |
---|---|
200 | object |
POST /login.supported_modes
描述
返回支持的登录模式。
参数
Type | Name | Description | Schema |
---|---|---|---|
Body | request required | request body | object |
响应
HTTP Code | Schema |
---|---|
200 | Response 200 |
响应 200
Name | Description | Schema |
---|---|---|
authenticated optional | Is user authenticated | boolean |
basic optional | basic | |
server_errors optional | Server initialization errors | server_errors |
sso optional | SSO authentication providers | < string, string > map |
sso_providers optional | The list of SSO authentication providers | < object > array |
基础
Name | Description | Schema |
---|---|---|
enabled optional | Basic aothentication (fixed users mode) mode enabled | boolean |
guest optional | guest |
访客
Name | Description | Schema |
---|---|---|
enabled optional | Basic aothentication guest mode enabled | boolean |
name optional | Guest name | string |
password optional | Guest password | string |
username optional | Guest username | string |
服务器错误
Name | Description | Schema |
---|---|---|
es_connection_error optional | Indicate an error communicating to Elasticsearch | boolean |
missed_es_upgrade optional | Indicate that Elasticsearch database was not upgraded from version 5 | boolean |