Auth
Available
Owner-run OpenID Connect identity provider with email links, passkeys, people and apps.
Auth is available as MIT-licensed source for self-hosting. See its public source and release documents for setup. Business can also install and run projects for invited accounts; the app shows whether it offers Auth before checkout.
Run Auth on your own computer with one line:
npx -y @runeditrun/rer dev just-every/run-auth
It clones the public source, installs it, sets up a local owner and starts the app; nothing is deployed. To set up without starting, run npx -y @runeditrun/rer setup just-every/run-auth. Without Node 22 or later, run curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-auth.
Or have your agent set it up for a Business: Start a Business with Auth ticked
For HappyToHelp: Assisted is in early access; Managed is in early access.
- Category
- identity
- Licence
- MIT
- Version
0.1.3- Requirements
- 13 clauses
- Release signature
- Signed by just-every · key
rer-ed25519-5a42fb9c9c4f8acb2b32386e9e40461c· statement - Target release
- v0.1.3 · published
- Publisher’s stage
- development
- Instead of
- Okta Workforce Identity, Microsoft Entra ID, JumpCloud
Outside services
The services the project declares it sends data to, each with its reason.
cloudflare- Worker hosting
Scope and limits
What it will not do
- RER Managed installation and trust provisioning
- Device trust and conditional access (SAML, OpenID Connect and SCIM for company apps: see COMPANY-APPS.md)
Declared limits
- Status
- unmeasured
Requirements
All 13 clauses of Auth’s CONTRACT.md. They say what the project must do; the handover and verification records say what is built and tested.
AUTH-HOST-001Issuer host The host owns the issuer and passkeys. Choose it before linking apps. A host change is a provider move requiring the apps' owners to approve re-linking; it does not silently preserve an issuer or passkey origin. Fresh local setup selects localhost; explicit and saved hosts are preserved. Acceptance evidence: Choose localhost on fresh setup; repeat with an explicit/saved issuer; enroll a passkey and link an app. Attempt a host move and require a new app-owner approval rather than preserving issuer authority.AUTH-PRIVACY-001Shared claims Auth shares each person's email and name with the apps they use. Under RER Managed, RER can sign link approvals for the account's Auth install; it receives people's data only as an ordinary linked app, for people who sign in to RER through it. Acceptance evidence: Sign in to two linked apps with different granted identity scopes; inspect UserInfo and tokens for only the permitted claims. Add a RER approval key and confirm it grants no user-data access without an ordinary app sign-in.AUTH-RER-TRUST-001RER trust Auth accepts a RER link approval only when an active trusted key signed it (typ: rer-link-approval+jwt,audthis issuer, lifetime at most five minutes, uniquejticonsumed once), its origin and link key match the app document Auth pulls itself, and itsclaim, if any, names the Auth owner. Keys come from theRER_LINK_APPROVAL_KEYSsetting of a RER-provisioned install, or from an owner or administrator on Sign-in methods with passkey and fresh local email proof. Withdrawal, by an administrator there or by RER with an assertion signed by that key when the account leaves Managed, ends the key for good. RER-made links are flagged and notified like token-made links. An install with no trusted key makes no request to RER. Acceptance evidence: Link using a correctly signed RER approval, then refuse wrong issuer/origin/key/claim, stale assertion and jti replay. Withdraw trust through both supported doors and prove the key cannot be restored or used again.AUTH-IDENTITY-001Owner and sign-in proof Base bootstrap claims the owner but conveys no Auth privilege. Email-link proof completes once, only in the requesting browser. First passkey enrollment requires Auth email proof; administration and additional passkey enrollment require hardware passkey proof. Every enrollment, recovery approval or completion and administration write also requires this browser's Auth email confirmation within ten minutes, rechecked with the session's authority in the committing write; an enrollment challenge is valid only in the session that requested it. Recovery of anyone holding an administrator or other privileged role (AUTH-DECISIONS-001) requires another administrator's approval, a cancelable notified 72-hour delay, or the local emergency recovery token, and this rule is never relaxed for them. A non-privileged employee may also take the same-business-day help-desk path of AUTH-RECOVERY-003; today every person follows the administrator rule, which is stricter than the target and satisfies it. Acceptance evidence: Through the real email, WebAuthn and administration routes, prove same-browser one-use confirmation, first/additional enrollment, fresh local email step-up rechecked at commit, wrong-session and revoked-session refusal, and approved/delayed/canceled/emergency recovery.AUTH-PROTOCOL-001OpenID Connect profile Auth implements code/PKCE with state, nonce, RFC 9207 issuer, private_key_jwt clients, pairwise subjects and ID tokens accompanied by signed bearer access tokens. Access tokens are restricted to Auth UserInfo, bound to client, subject, session and granted scopes, and valid for at most five minutes or the remaining session lifetime. UserInfo supports GET and POST, returns only scoped identity claims and rechecks active session, account, client, grant, email proof and domain policy. ID tokens and other bearer credentials cannot authorize UserInfo. No refresh tokens or offline access are offered for the static code-flow profiles. Existing clients retain ES256; clients may select RS256. Both algorithms’ keys are encrypted under AUTH_ENCRYPTION_KEY, published before use and retained through outstanding token expiry. These guarantees are exercised by the edition tests; they are not a certification statement. Acceptance evidence: A registered RER client completes code/PKCE/private_key_jwt, validates nonce/issuer/audience/pairwise subject, and calls scoped GET/POST UserInfo. Refuse code/assertion replay and inactive client/person/session/grant/policy; test encrypted ES256/RS256 publish-before-use and retirement.AUTH-BOUNDARY-001Private authorization Every private document and API enforces its own session and administrative policy. The seed denies inherited Base operator, invitation, provider and domain management paths. Only bootstrap, Base session inspection and local Base sign-out remain exposed; gated dev entry exists exclusively in the development bundle. Removing the gate removes dev-session authority; production refuses dev proof. Acceptance evidence: Request each private page/API signed out, as an email-only member, as a passkey administrator and with revoked authority; deny inherited Base management and production dev tokens. Remove the local dev gate and confirm authority ends.AUTH-MOVEIN-001Staged move-in Directory exports are staged apart from people: a staged row cannot sign in, receives no mail and appears only on the move-in review. Admission creates the same invited member as a People invitation, with no email proof, administrator right, password, factor, app role, group permission or session, and sends mail only when the owner chooses to send invitations. A matching email never rebinds an existing person, passkey or upstream link. Undo removes only people the batch admitted who have never signed in and hold no passkey, app grant or later activity, and records who it removed and kept. An Auth0 former subject is data for app owners: no protocol endpoint accepts it and it never replaces the pairwise subject. Staging, admission, invitation and undo are administration writes under AUTH-IDENTITY-001. Acceptance evidence: Stage Google, Entra, Auth0, Okta and JumpCloud exports through Move-in, inspect collision/disabled rows, admit selected members without proof/roles/mail, explicitly invite, and undo only untouched admissions. Refuse former Auth0 subjects as credentials and concurrent/stale administrative authority.AUTH-ADMIN-001Agent preparation An agent prepares administration and a person decides. A preparer key, minted, renewed and revoked by an administrator under AUTH-IDENTITY-001, is shown once, stored as a digest, expires 30 days after minting or renewal, and is accepted only by the preparer API while unrevoked and while its accountable administrator remains the administrator who minted it: it ends for good when that person is demoted, suspended or removed, and promoting or restoring them again does not bring it back (a new key is minted). It reads an allow-listed inventory (no session, passkey, key or token material) and files proposals to suspend or restore a person, invite a person, remove an invitation, or add or remove a domain's required provider; filing stores the affected people and apps and a digest of the target's state, and changes nothing else. A proposal runs only on one exact approval: an administrator's passkey signature over a challenge naming it, with that session's fresh local email proof, rechecked with the approver's authority, the unchanged target state and an unexpired, undecided proposal in the committing write. It runs once; it never suspends the owner or its own approver; its outcome is recorded in Activity with the key and the approver. A preparer key confers no session, page, approval, key management or protocol access and is not an access token. Acceptance evidence: Mint/renew/revoke a preparer key, inspect its allow-listed inventory, file each supported proposal and approve its exact state with a person’s passkey and fresh local email. Prove expiry, stale-state refusal, one winner under concurrent approvals and permanent loss of key authority after administrator removal.CMD-001Commands Auth retains the shared RER command dispatcher and verbs. Its edition-owned extensions are documented in AUTH-COMMANDS.md. Setup applies real D1 migrations and claims the first owner. Sign-in begins in the browser, never by presenting an unusable CLI-bound proof. Local recovery writes only a token digest to D1 and stores the raw token in a mode-0600 private file. Acceptance evidence: Run real install/setup/dev, start browser sign-in, repeat setup without replacing owner/settings/data, stop the managed process, and generate/redeem local recovery with only a digest in D1 and a mode-0600 raw token file.HTTP-001HTTP surfaces Hono serves health/API dispatch and Start serves remaining documents; Auth intercepts identity, protocol and private Auth pages before dispatch. Unknown routes return 404. Acceptance evidence: Call health, Auth APIs and public/private documents through the emitted Worker; confirm identity interception, per-request authorization and an ordinary 404 for unknown routes.AUTH-LINK-001App links Auth links apps through Base's pull protocol (LINKING.md). It reads only the app's own documents at its exact origin and binds the exact callback set. Codes are one-use, last 60 seconds and are redeemed atomically. It verifies the redeem assertion (audience, at most 60 seconds, uniquejti). A client keeps its id and sector. A new key needs an administrator who saw the existing link, and a link replaces another app (its sector at another origin, or another sector at its origin) only on an approval that named it. Link tokens cover one origin and callback set, are single use and last at most an hour. Production installs refuse loopback and plain-http origins; dev installs serve only loopback apps. Token- and RER-made links are flagged and announced. Reported interface versions are kept, and a lower one, reported or re-linked, waits for the owner. Removing an app signs out everyone it signed in. Acceptance evidence: Use the pull/link-token flow to link a real Base app Worker, sign in, re-link with continuity, and remove it. Refuse mismatched callbacks/origins, replay/concurrent redemption, unauthorized key swap and unapproved downgrade; observe linked-app sessions end on removal.AUTH-LOGOUT-001Sign-out reach Sign out everywhere, suspension (identity fence) and RP-initiated logout send signedlogout+jwttokens with a uniquejtiand nononceto each linked app's registered logout path. Each is retried for up to 24 hours. Discovery advertisesend_session_endpointand back-channel logout with session support. Acceptance evidence: Sign out everywhere, suspend a person and request RP logout through real Auth/app endpoints; the app rejects the old session and replayed logout tokens. Exercise bounded retries and inspect the persisted delivery outcome; discovery advertises the supported endpoints.AUTH-TRANSFER-001Export and import Export carries people, emails, passkey public keys, clients, grants, subjects, history and a signed grant map. It omits sessions, private keys, the pairwise key and the RER keys an owner trusted; withdrawn RER keys stay withdrawn. Import refuses app origins the destination cannot serve and active dev personas. A restore at the same host keeps every client, sector and pairwise subject. Acceptance evidence: Export a populated installation, import into an empty installation at the same host, and re-link the app with unchanged client/sector/pairwise subject. Inspect retained records and absent authority; refuse incompatible origins and active dev personas.
View as agent
Everything on this page is in these files, copied unmodified from the release. An agent evaluating Auth can read them instead of the page.
seed.json- The manifest: capabilities, outside services, extension points, limits, operating cost and deployment needs.
CONTRACT.md- The requirements on this page, in source form.
AGENTS.md- Instructions for the coding agent that maintains an installation.
README.md- Source setup, available commands and implementation status.
OPERATIONS.md- How the project is set up, operated and deployed.
ACCEPTANCE.md- What the publisher accepts as a finished release.
Every project, with its availability, is in /agents/catalogue.json; the agents page describes the machine-readable files.