Claxx Auth
Docs
Sign in
User FAQ
  • Reset my password
  • I can't sign in
  • Didn't get reset email
  • Account linking
  • Session expiry
  • Two-factor auth
Admin Guides
Theme Studio
  • Overview
  • Layouts
  • Styling tokens
  • Concept copy
  • Assets & backgrounds
  • Advanced CSS
Admin Shell
  • Users
  • Providers
  • Clients
  • Invitations
Integrations
  • OIDC flow
  • Provider token brokering
  • Email triggers
  • Webhook events
  • Session contract
Reference
  • API
  • Error codes
  • Event shapes
  • Design tokens

Hosted login URL contract

Claxx Auth's hosted login page (/login) takes all of its per-entry-point configuration from the URL. Downstream apps own their own tenancy and domain model; Claxx Auth stays stateless about it. When your app redirects the user to Claxx Auth, encode the tenancy hint as query params and Claxx Auth renders the right subset of providers and the right theme.

The "tenancy" in this page is your app's own: its customers, workspaces or subdomains. That is separate from a Claxx Auth tenant, which is a sign-in service on its own hostname and is chosen by the hostname alone. Every URL below is on your tenant's hostname, and a client_slug, provider or theme from another Claxx Auth tenant is treated as if it had not been sent.

Nothing in this contract is a security boundary. It's a presentation contract. Authorization decisions (can this user actually authenticate?) are enforced at the authenticate step regardless of what the URL requested.

Parameters

client_slug (required for tenanted surfaces)

Selects which OAuth client the login is for. Determines the base provider list, the base theme, and the policy flags (passwordAuthEnabled, selfServiceSignupEnabled, requireMfaForPasswordAuth).

/login?client_slug=example-app-web

If omitted, Claxx Auth uses the tenant's default application (on the platform's own hostname, the default client).

providers (optional — narrows)

A comma-separated list of provider slugs. The provider list rendered on the login page is the intersection of this list with the client's configured providers (client_identity_providers), in the order you pass them.

  • Unknown slugs are silently dropped.
  • Duplicates are silently deduplicated, first-seen wins.
  • Whitespace and case are normalized.
  • If the intersection is empty, no external providers render. Password/email auth is unaffected — that's governed by the client's passwordAuthEnabled flag, not this parameter.
/login?client_slug=example-app-web&providers=example-sso,acme-okta

Intended use: a downstream app knows from its own tenant model which providers make sense for a specific entry point. A user arriving at acme.example-app.example.test should see Example SSO + Acme Okta, not Globex Okta or Google. The downstream app encodes that decision into the redirect URL.

theme_id (optional — overrides)

A UUID identifying a specific theme to apply. Must be one of:

  1. The client's own base theme (oauth_clients.themeId), or
  2. A theme in the client's allowed-themes list (client_allowed_themes), managed at /admin/clients/[id] → Allowed Themes.

If the override isn't authorized for the client, Claxx Auth silently falls back to the client's base theme. No error is returned — Claxx Auth doesn't leak whether a theme exists.

/login?client_slug=example-app-web&theme_id=a1b2c3d4-…

Why the allowlist? Theme GUIDs can't be guessed, but a permissive override would let a crafted URL make Claxx Auth's login page display any theme under any client slug — a phishing footgun. The allowlist makes authorization explicit: support adds "Acme theme" to Example App's allowlist, and only then can Example App deep-link to it.

Hero copy overrides (optional)

Per-entry-point copy that flows straight into the rendered theme without touching the theme record. Useful for one-off campaigns.

ParamOverrides
hero_eyebrowheroEyebrowText
card1_eyebrow, card1_title, card1_desc, card1_urlHero card 1
card2_eyebrow, card2_title, card2_desc, card2_urlHero card 2

Error display (Claxx Auth-emitted)

Set by Claxx Auth on return redirects; you won't usually craft these yourself, but they're part of the contract.

ParamMeaning
errorA short error code (consent_denied, provider_error, invalid_state, session_failed, …)
reasonOptional disambiguator for session_failed
unauthorized=trueShown when a protected page bounced to login
session_expired=trueShown when the session expired mid-flight

Full example

An Example App customer subdomain routes its users to Claxx Auth like this:

https://auth.claxx.gg/login
  ?client_slug=example-app-web
  &providers=example-sso,acme-okta
  &theme_id=8f2a4e1b-7d9c-4e2a-b5f1-3a7c9e0d2f4a
  &redirect_uri=https://acme.example-app.example.test/oauth2/callback

Claxx Auth renders the Acme theme (after verifying it's in Example App's allowed-themes), shows only Example SSO + Acme Okta as external providers, and preserves the client's passwordAuthEnabled policy for the email/password form.

What Claxx Auth does not do

  • Claxx Auth does not infer your app's tenancy from the Host header. The hostname selects the Claxx Auth tenant (which sign-in service this is) and nothing finer. Your app encodes its own tenancy in the URL.
  • Claxx Auth does not store your app's tenant→domain mappings. It stores one hostname per Claxx Auth tenant. Which of your customers maps to which of your domains lives in your app.
  • Claxx Auth does not toggle passwordAuthEnabled per entry point. That's a client-wide policy flag. If you need password auth hidden for a specific entry point, model it differently in your app (or file an issue to discuss a param for it).

Admin workflow

  1. Create the themes you want to offer under /admin/themes.
  2. For each client, under /admin/clients/[id]:
    • Set the base theme in the client's form (the default everyone sees unless overridden).
    • Add any additional themes the client is allowed to deep-link to in the Allowed Themes section.
    • Link the providers the client supports in Linked Providers.
  3. The downstream app then crafts URLs using any subset of the authorized providers and themes.

On this page

  • Parameters
  • client_slug (required for tenanted surfaces)
  • providers (optional — narrows)
  • theme_id (optional — overrides)
  • Hero copy overrides (optional)
  • Error display (Claxx Auth-emitted)
  • Full example
  • What Claxx Auth does not do
  • Admin workflow
DocsPrivacyTerms
© 2026 Claxx Digital Group