Skip to main content

登录

POST /login.logout

描述

注销(包括SSO,如果使用)

参数

TypeNameDescriptionSchema
Bodyrequest
required
request bodyobject

响应

HTTP CodeSchema
200object

POST /login.supported_modes

描述

返回支持的登录模式。

参数

TypeNameDescriptionSchema
Bodyrequest
required
request bodyobject

响应

HTTP CodeSchema
200Response 200

响应 200

NameDescriptionSchema
authenticated
optional
Is user authenticatedboolean
basic
optional
basic
server_errors
optional
Server initialization errorsserver_errors
sso
optional
SSO authentication providers< string, string > map
sso_providers
optional
The list of SSO authentication providers< object > array

基础

NameDescriptionSchema
enabled
optional
Basic aothentication (fixed users mode) mode enabledboolean
guest
optional
guest

访客

NameDescriptionSchema
enabled
optional
Basic aothentication guest mode enabledboolean
name
optional
Guest namestring
password
optional
Guest passwordstring
username
optional
Guest usernamestring

服务器错误

NameDescriptionSchema
es_connection_error
optional
Indicate an error communicating to Elasticsearchboolean
missed_es_upgrade
optional
Indicate that Elasticsearch database was not upgraded from version 5boolean