Get public settings
curl --request GET \ --url http://localhost:9090/api/public/settingsThe settings the admin console reads before anyone holds a token: the app name, whether SMTP is configured, the issuer, the brand the admin console is drawn in, the password rules, and whether users can delete their own account. This is a public endpoint that does not require authentication.
Responses
Section titled “Responses”Public settings
object
When true, SMTP is configured, so the auth server can send email.
The issuer the auth server writes into the iss claim of every token it signs.
When true, users can delete their own account from their account pages in the admin console. The same setting as accountDeletionEnabled in the general settings.
The brand the admin console is drawn in: the brand of the admin console’s own client, or the default brand when that client has none of its own. Absent from the public settings when the auth server cannot read it.
object
Light or dark, or auto to follow each visitor’s device.
The absolute URL of the brand’s full stylesheet, its colors, corners and font, which an end-user page links after main.css. The URL changes whenever the stylesheet does.
The absolute URL of the brand’s stylesheet that sets its colors alone, which an admin page links after main.css. The URL changes whenever the stylesheet does.
The absolute URL of the brand’s full stylesheet in safe mode: without its custom CSS, in the built-in Blueberry colors in place of a custom palette, and in System UI in place of an uploaded font. The URL changes whenever the stylesheet does.
The absolute URL of the brand’s colors-only stylesheet in safe mode, the built-in Blueberry colors in place of a custom palette. The URL changes whenever the stylesheet does.
Whether GOIABADA_AUTHSERVER_BRAND_SAFE_MODE draws every page in safe mode. While it does, stylesheetUrl and colorsStylesheetUrl are the safe stylesheets’ URLs.
The absolute URL of the brand’s logo, absent when it has none. The URL changes whenever the image does.
The absolute URL of the logo drawn in dark mode in place of logoUrl, absent when the brand has no dark logo or no logo.
The absolute URL of the brand’s favicon, a square PNG, absent when it has none. A page links it as its icon and its Apple touch icon, in place of the built-in icons.
Whether the app name’s text gives way to the logo, which then carries the name as its alternative text. Always false while the brand has no logo.
Whether the brand has a background image, whatever its fit.
The links the brand’s pages draw under the card, in order, each with every label it has, so a page picks the label of its own language and takes the fallback label in a language the link has none for. [] when the brand has none.
One of a brand’s footer links. Sent back as it came, it is the same link.
object
The label drawn in a language the link has no label of its own for.
The label of each built-in language that has its own, by language tag. {} when none has.
object
The support email address the brand’s pages show, or an empty string.
The support page the brand’s pages link to, or an empty string.
The support phone number the brand’s pages show, in international format: + and
the digits, with no separators, such as +442079460958. An empty string when unset.
What the general settings’ password policy asks of a new password.
object
The minimum length, in characters.
When true, a commonly used password is refused.
When true, a password too close to the account’s email address, username or the app name is refused.
Example
{ "brand": { "appearance": "auto" }}The request failed inside the server, most often a storage error. error_code is INTERNAL_SERVER_ERROR: no detail about the failure, only the request id an operator can find the log line by, and retrying is reasonable. Key rotation’s 500 also answers KEY_SET_INCOMPLETE, which names its cause and no retry clears.
Admin/account API error envelope. Routing by HTTP status code: 4xx is a client-correctable failure (validation, not found, permission denied, rate limited); 5xx is a server-side problem. The body provides a stable error_code and an error_description for people to read. Protocol endpoints (/auth/token, /auth/authorize, /connect/register, /userinfo) use their RFC-defined error envelopes instead of this one.
object
Stable identifier for the failure. UPPER_SNAKE for legacy codes (e.g. VALIDATION_ERROR), dotted lowercase for codes named after the sentence’s catalog key (e.g. validator.email.required). Never translated, whatever the request’s language.
A sentence for people to read: in the request’s language, from the ui_locales query parameter or else the Accept-Language header, when the server has the sentence in that language, and in English otherwise. Route on error_code, not on this text.
A JSON Pointer (RFC 6901) to the member of the request body the refusal is about,
such as /footerLinks/1/url, /footerLinks/0/labels/pt-BR or /palette/light/brand.
Left out when the refusal names no member. It’s set by the refusals of a brand’s footer
links, palette and custom CSS, and of an email template’s text and brandId.
Example generated
{ "error_code": "example", "error_description": "example", "error_field": "example"}