Authaz logoAuthaz
DocumentationAPI Reference
  • Get Started

    • Authaz
    • Core Concepts
    • Set up your app
    • Quickstart — cURL
  • Authentication

    • Authentication Settings
    • Signup
    • Invitations
    • Password Authentication
    • Multi-Factor Auth
    • Magic Link
    • OAuth / Social Login
    • Passkey (WebAuthn)
    • SAML SSO
    • Machine-to-Machine (M2M)
    • API Keys
  • Authorization

    • Authorization
    • Resources
    • Policies
    • Roles
    • Access Explorer
  • Tenancy

    • Multi-tenancy
    • Tenancy Customization
  • Brand & Host

    • Branding
    • Custom Domains
    • Communications & Email Templates
  • Operate

    • Users
    • Analytics
    • Audit Logs
    • Application Settings
  • SDK Quickstarts

    • Quickstart — Next.js
    • Quickstart — React SPA
    • Quickstart — Hono
    • Quickstart — .NET (Authaz.Sdk)
  • Recipes

    • Recipes & Cookbook
    • Next.js — first integration
    • Next.js — B2B SaaS (multi-tenant)
    • Hono — first integration
    • Hono — B2B SaaS (multi-tenant)
    • React SPA — first integration
    • React SPA — B2B SaaS (multi-tenant)
    • .NET — first integration
    • .NET — B2B SaaS (multi-tenant)
  • Reference

    • Tokens
    • API Reference
    • Errors & Troubleshooting
  • Documentation

    • How Authaz is Built
  1. Authaz
  2. Docs
  3. Authentication
  4. Signup

Authentication

Signup

4 min read·Updated Jun 19, 2026

The Signup card under Application → Authentication controls how new users can create accounts. By default signup is enabled with no restrictions; tightening it usually means picking who can sign up (email domains), how (CAPTCHA, terms), and what they get (default roles, auto-approval).

curl -X PUT https://your-app.authaz.io/api/v1/applications/{appId}/auth/signup \
  -H "X-API-Key: $AUTHAZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "allowedEmailDomains": ["acme.com", "acme.io"],
    "blockFreeEmailProviders": true,
    "requireTermsAcceptance": true,
    "termsLink": "https://yourapp.com/terms",
    "requireCaptcha": true,
    "autoApprove": true,
    "defaultRoles": ["role_user"]
  }'

Where it lives#

Dashboard → Application → Authentication → Signup. Change anything, save, and Authaz Sign-In picks it up immediately — no redeploy.

Previous
Authentication Settings
Next
Invitations

What you can configure#

SettingWhat it does
EnabledMaster switch. When off, the only way to create users is invitations or the Management API.
Allowed email domainsComma-separated list. Only addresses ending in one of these can sign up. Empty = any domain.
Blocked email domainsComma-separated list. Addresses ending in any of these are rejected.
Block free email providersReject Gmail, Yahoo, Hotmail, etc. — useful for B2B products that only want work emails.
Require terms acceptanceForce users to tick a Terms-of-Service checkbox. Pair with termsLink.
Terms linkURL the checkbox label points to.
Require CAPTCHAUse Cloudflare Turnstile on the signup form. Reduces bot signups.
Auto-approveWhen true, accounts are usable immediately. When false, accounts go to "pending approval" and an admin must activate them.
Auto-create tenantMulti-tenant only. When true, every signup spins up a fresh tenant for that user.
Default rolesRole IDs assigned to new accounts on signup. Most apps want ["role_user"] or similar.
Max signups per dayHard cap on signups per 24-hour window. Prevents abuse spikes. null = unlimited.
Custom fieldsExtra fields collected on the Authaz Sign-In signup form, beyond email + password. Stored on the user's metadata and surfaced in the Users tab. See below.

Custom fields#

Beyond email and password, you can collect arbitrary information at signup. Pass customFields as a JSON object whose keys define each field:

curl -X PUT https://your-app.authaz.io/api/v1/applications/{appId}/auth/signup \
  -H "X-API-Key: $AUTHAZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customFields": {
      "company": {
        "type": "text",
        "label": "Company name",
        "required": true,
        "maxLength": 100
      },
      "role": {
        "type": "select",
        "label": "Your role",
        "required": true,
        "options": ["Engineer", "Designer", "PM", "Other"]
      },
      "marketing_opt_in": {
        "type": "checkbox",
        "label": "Send me product updates",
        "required": false,
        "default": false
      }
    }
  }'

Field types supported: text, email, number, select, checkbox, date, url. Each field is rendered on the Authaz Sign-In signup form in the order keys appear, and the answers are written to the user's metadata object — readable later via GET /api/v1/users/{id} or as the user_metadata claim on access tokens that include the profile scope.

Custom fields are validated server-side: required fields can't be skipped, max-length is enforced, select options are constrained to the allowed list. The Authaz Sign-In form auto-disables submit until valid.

Tenant required at signup?#

If your app needs every signup to be associated with a specific tenant up front (rather than letting the user pick or auto-creating one), set requireTenantHint: true on the Authentication Settings page. The OAuth authorize URL must then include tenant_id=..., and Authaz scopes the entire signup flow — Authaz Sign-In UI, provider routing, default roles — to that tenant.

This pairs naturally with subdomain-per-tenant setups: acme.yourapp.com always passes tenant_id=tenant_acme to the authorize endpoint, and the user is signed up directly into Acme without ever seeing a picker.

Common combinations#

Open consumer signup#

The default. Anyone with any email can sign up and is immediately usable.

{
  "enabled": true,
  "autoApprove": true,
  "defaultRoles": ["role_user"]
}

B2B work-emails-only#

Lock signups to specific company domains and bounce everyone else:

{
  "enabled": true,
  "allowedEmailDomains": ["acme.com", "acme.io"],
  "requireTermsAcceptance": true,
  "termsLink": "https://yourapp.com/terms",
  "defaultRoles": ["role_member"]
}

Invitation-only#

No public signup at all. New users only enter via invitations:

{
  "enabled": false
}

Manual approval queue#

Anyone can sign up, but every account starts dormant until you approve it:

{
  "enabled": true,
  "requireCaptcha": true,
  "autoApprove": false,
  "defaultRoles": []
}

Pending accounts show up in the Users tab with a "Pending approval" badge. Activate them via User detail → Activate or POST /api/v1/users/{id}/activate.

How a signup flows through the system#

  1. User submits the Authaz Sign-In signup form (email + password, or via a social provider).
  2. Authaz validates against the signup config: enabled? domain allowed? not blocked? CAPTCHA passed? terms accepted? rate limit OK?
  3. If requireEmailVerification is on (default for password signup), Authaz emails a verification code; the account is "unverified" until they confirm.
  4. Authaz creates the user, assigns defaultRoles, optionally creates a tenant.
  5. If autoApprove, the user is immediately signed in and redirected back. Otherwise they see a "pending review" message.

Every step writes to the audit log — useful when investigating "did this person sign up legitimately?"

Multi-tenant: per-tenant signup overrides#

In multi-tenant apps where each tenant has its own login surface, you can override signup rules per tenant. Useful when one tenant wants stricter domain rules than the rest:

curl -X PUT https://your-app.authaz.io/api/v1/applications/{appId}/tenants/{tenantId}/auth/signup \
  -H "X-API-Key: $AUTHAZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "allowedEmailDomains": ["acme.com"]
  }'

If a tenant has no override, the application-level config applies.

Next steps#

  • Invitations — for the closed/invitation-only path.
  • Password — the policy that signup-time passwords must satisfy.
  • Users — what shows up after signup, including pending approval.