DhokoAuthaz
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. Get Started
  4. Authaz

Get Started

Authaz

2 min read·Updated May 7, 2026

Authentication and authorization for B2B SaaS. Multi-tenant by default. Sub-millisecond permission checks. Every common auth method, out of the box.

curl https://your-app.authaz.io/api/v1/users \
  -H "X-API-Key: mgmt_01h..."

A typed, paginated user list scoped to your application. That's hello-world.

Start in 5 minutes#

First-time setup: Set up your app (60 seconds — keys + redirect URI).

cURL →OAuth 2.0 + PKCE end-to-end. Any language.
Next.js →App Router with @authaz/next.
Next
Core Concepts
React →SPA with @authaz/react.
Hono →Backend with @authaz/hono. Node, Bun, Workers, Deno.
.NET →Management API with Authaz.Sdk.

Want a complete worked example end-to-end? See Recipes & Cookbook — single-tenant and multi-tenant walkthroughs for every stack.

Built for B2B#

Multi-tenant out of the box. Customers each get their own users, roles, and config. Pick shared-pool, isolated-pool, or single-tenant — same API.

Fine-grained authorization. Define resources, compose policies, assign roles. Or grant directly per-resource. Either way, checks return in under a millisecond.

Authaz Sign-In, hosted. Login, signup, MFA, social sign-in, passkeys, password reset — themed to your brand, on your own domain. You don't run any of it.

Standards, not lock-in. OAuth 2.0 + PKCE. OIDC userinfo. JWKS for tokens. Any OAuth-aware client works.

How it works#

   your app  ─┐                                       ┌─  Authaz API
              │ redirect to Authaz Sign-In           │   /api/v1/...
              ▼                                       ▲
              Authaz Sign-In (Password · OAuth ·     │
              Magic Link · Passkey · SAML · MFA)      │
              ▼                                       │
              user authenticates ──────► auth code ───┘
                                            ▼
                                    /oauth2/token  ──►  access + ID + refresh

POST /api/v1/authorization/check answers "can this user do this?" in <1 ms — same backend, same identity, same tenant.

Configure your stack#

Setup follows the dashboard's tabs, in order:

AuthenticationSettings (redirect URIs, lifetimes) → Signup → Password · MFA · Magic Link · OAuth · Passkey · SAML SSO · M2M · API Keys
AuthorizationResources → Policies → Roles → Access Explorer
TenancyMulti-tenancy · Tenancy Customization
Brand & HostBranding · Custom Domains · Communications
OperateUsers · Analytics · Audit Logs · Application Settings
ReferenceCore Concepts · Tokens · API

Concepts in one breath#

Organization — your company. Application — a product you ship. Tenant (optional) — your customers' workspaces. User — someone who signs in. Role — a named bundle of permissions. Provider — a way to sign in.

That's the whole vocabulary. Full mental model in Core Concepts.