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. - A per-application Session JWKS URL at
https://session-api.sudomimus.com/applications/{applicationAnchor}/jwks.json, used to verify access and refresh tokens bykid. The portal’s Signing keys tab manages rotation; application creation does not return a one-off signing PEM.
- 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. -
Take the application live. New applications start in
DRAFT. After configuring the rules and saving the credentials, an organization OWNER must choose Go live in the With portal to change it toACTIVE. Saving rules does not activate it. Follow Take an application live for readiness and activation checks. If/establishreturnsApplicationNotActive, check the application lifecycle and the availability of its organization and sector before retrying.
The four phases
Section titled “The four phases”Every authentication round-trip through Connect has three phases, followed by the shared Session API refresh phase:
- 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 calls Session API to exchange 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.