Quickstart
This page walks through the smallest possible integration: pointing a web application at Sudomimus and obtaining a verified user identity.
Not building a web app? Pick the right guide:
Prerequisites
Section titled “Prerequisites”-
Create or join an organization at
with.sudomimus.com. The developer self-serve portal is organization-based: applications and sectors live inside an organization, so you need one before you can create an application. Most accounts create their first organization on the spot (the form pre-fills a suggested name); if a teammate already runs one, have them invite you instead. The/applicationsand/sectorspages redirect to/organizationsuntil you belong to one. -
Create your application inside that organization. When you create the application you receive:
- The
applicationAnchor— a stable, lowercase-kebab identifier (e.g.my-app), the public name of your application across the API. - The client-auth private key — shown once at creation, used to sign
/establishrequests. Store it like any production secret. - The application’s token-signing public key, which is also accessible at runtime via
POST /infoand is used to verify access tokens.
- The
-
Add at least one Return Rule of type
CALLBACK, listing the hostnames you will redirect users back to. The concretecallbackUrlis supplied per inquiry on/establish; the rule just gates which hostnames are allowed. -
Add at least one Authentication Rule (e.g.
PASSKEY_USERNAMELESS,PASSKEY_REASONED, orEMAIL_VERIFICATION) and one Realize Rule (e.g.EMAILwithallowedEmails: ["*"]for a public sign-up). Rules are allowlist-only with default-deny — an application with zero rules in any layer cannot be used.
The four phases
Section titled “The four phases”Every authentication round-trip through the Connect API follows the same four phases:
- Establish — your application backend asks Connect to start an authentication session and gets back a session reference (
exposureKey+hiddenKey). - Authenticate — your application sends the user to
via.sudomimus.comwith theexposureKey; the user completes a passkey or email-OTP challenge there. - Redeem — once
via.sudomimus.comhands control back via your callback URL (withexposure-key+confirmation-keyin the query string), your backend exchanges the three keys at Connect for a signed access token and refresh token. - Refresh — your backend exchanges the refresh token for a fresh access token whenever the current one nears expiry.
See the Connect flow for the full request shapes and how Connect, via.sudomimus.com, and your application interact.