Get the auth config
const url = 'http://localhost:8080/api/auth/config';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/auth/configResponses
Section titled “Responses”Login methods the UI should offer.
Login methods the UI should offer.
GET /api/auth/config. Spec 08 § Sign-up policy and spec 09 § Auth.
object
Product analytics are on: the UI sends its catalog events to
POST /api/v1/analytics/events (track TL M6, D-TL-14). True only when the PostHog sink
runs ([analytics] set, not restore mode); self-hosted installs send no events.
New accounts must verify their email before signing in.
Users may create orgs (D-P-31).
Where “New organization” goes when users may not create orgs. Omitted when unset.
Password login is enabled for everyone. False when CETRA_AUTH_DISABLE_PASSWORD is
set; instance admins then still sign in with a password at /login?password=1 (D-S-4).
Configured OAuth and OIDC providers.
One OAuth or OIDC provider the UI can start a login with.
Spec 08 § OAuth / OIDC. id matches identities.provider.
object
Name shown on the login button.
Provider id: github, google, or oidc:<name>.
No user exists yet, so the UI shows the setup page.
Who may create an account after bootstrap.
SMTP is configured, so password reset and verification email can be sent.
The login page asks for the email first: some domain signs in through an org’s provider (D-P-60).
Example
{ "signup": "open"}