defaults.json
Overview
Provides publicly available data for the root application.
Settings can be placed in the 'defaults.json' file.
Some parameters can be overridden by the system regardless of the values specified in the file:
-
defaultDomain- domain substituted by default into the input field in the login window. If no domain has been created in the system, the master domain name is substituted. If only one domain is created, its name is substituted. If the 'default_domain' field in the master domain settings specifies the name of an existing domain, it is substituted. Otherwise the value from the original 'defaults.json' file is substituted. If the value is the string "URL", the domain from the browser address bar used to load the application is substituted. -
selfRegisterDomains- based on the master domain settings 'self_register_mode' and 'self_register_domains', determines the list of domains in which user self-registration is allowed. This list can also be built by polling all domains (see Domain settings, the 'self_register_allowed' field). As a result, the self-registration form is filled with a dropdown list of domains and the corresponding link. -
authButtons- list of buttons for SSO authorization (OAuth, OpenId). -
connector_url- URL for downloading the connector to a multi-server system.
Requests
| HTTP verb | Endpoint | Description |
|---|---|---|
|
|
Getting the resource
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"authButtons": [{"img":"/.well-known/oauth/icons/ya.png","label":"Sign in with Yandex ID","url":"/oauth/redirect/yandex"}],
"connector_url": "/rest/v1/public/resources/connector.html",
"defaultDomain": "pbx.incoplax.com",
"selfRegisterDomains": []
}