Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Get the auth config

GET
/api/auth/config
curl --request GET \
--url http://localhost:8080/api/auth/config

Login methods the UI should offer.

Media typeapplication/json

Login methods the UI should offer.

GET /api/auth/config. Spec 08 § Sign-up policy and spec 09 § Auth.

object
analytics
required

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.

boolean
email_verification_required
required

New accounts must verify their email before signing in.

boolean
org_create_allowed
required

Users may create orgs (D-P-31).

boolean
org_create_url

Where “New organization” goes when users may not create orgs. Omitted when unset.

string
password_enabled
required

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).

boolean
providers
required

Configured OAuth and OIDC providers.

Array<object>

One OAuth or OIDC provider the UI can start a login with.

Spec 08 § OAuth / OIDC. id matches identities.provider.

object
display_name
required

Name shown on the login button.

string
id
required

Provider id: github, google, or oidc:<name>.

string
setup_required
required

No user exists yet, so the UI shows the setup page.

boolean
signup
required

Who may create an account after bootstrap.

string
Allowed values: open invite_only disabled
smtp_enabled
required

SMTP is configured, so password reset and verification email can be sent.

boolean
sso_discovery
required

The login page asks for the email first: some domain signs in through an org’s provider (D-P-60).

boolean

Example

{
"signup": "open"
}