ident
All repositories: gitoria
4.7 KB
# ident — concept (from the creator, 2026-09-24)ident is a login to ident itself (email one-time code). Everything else happens inside ident.ident, tickets and gitoria are PWAs; on the phone ident can register for push notifications.## In ident- **Account**: you log in to ident with an email code. **There is no registration**: the firstsuccessful OTP login creates the user with a default identity, then shows the name fields andclearly states they are optional.- **Time zone**: set to the browser's time zone at first ident use.- **Identities**: a user has a **default identity from the beginning**. If they don't createanother one, that one is always chosen. An identity has **no mandatory fields**; it can havenickname, firstname, lastname and an **avatar** (creator, 2026-09-24: apps show it, e.g. in comments). Inside ident it has an **identity name** — that one is shownin the selector.- ~~**One id per app**: an identity gets a different id for every app, so ids are not transferablebetween apps.~~ Dropped (ident#23; creator 2026-10-26: "one id per app was dropped we use the same for awhile now"): every identity has ONE public short id, the same in every app.- **Apps**: **any ident user can register apps**. An app gets an **API key**. It uses one of two flows.- **The app never exposes the identity id** — it uses it server side only.- **Notifications**: apps never get the real email. To send a notification in an app's name you needthat app's API key and the identity id (its short id, the same in every app). The user reads them in ident'snotifications inbox.- A notification has: **name**, **text**, optional **icon**, optional **action link**. The action linkmay be any link; the icon may come from any URL (creator, 2026-09-24).- Channels: the **app presets** the channels, the **user can overwrite** them.- **Default: every notification goes to the daily mail**, sent at **17:00 in the user's time zone**.- An app that wants to send **pushes directly must first register that kind of notification**(by its name).- **Urgent** notifications are sent immediately: **push** if the user has registered a pushdevice, **email** otherwise — always within the user's switches (creator, 2026-09-24).- The daily mail at 17:00 in the user's time zone needs **time-zone support in Hybriel** (creator: "hybrielneeds time zone support") — ident does not ship its own zone rules.- **Per-app page**: for each app and identity the user has a page showing when they registeredin that app and all its notifications (by name), each with **push** and **email** switches, andon top **one override for all**.- **More fields**: if an app needs more data from the user, it asks for it itself when the userregisters with their ident id. ident does not hand out more.- **Later**: merge user accounts, move an identity to another account.- **Later**: ident hands over identity properties to the app **during the first handshake** (creator,2026-09-24: "ident does handover properties during the first handshake, just not yet").## Flow 1: login buttonThe app shows "login with ident", which sends you to ident and back.## Flow 2: identity selector- The app's page includes a script from ident, configured with the app's API key.- The script fetches from ident. If the requesting website is registered as an app in ident anduses its API key, ident answers with the identities of the logged-in ident user.- The selector is displayed: a shadow-DOM element in ident's design, which the target website canrestyle.- It first says "choose ident". When the user selects an identity, that is the login.- What happens then is up to the app: our apps just switch the frontend to logged in; othersmight do a reload.## Decided 2026-09-24 (architect proposal, accepted by the creator)- **Selector knows the website is already logged in**: the host tells the selector (it knows its ownsession), e.g. `<ident-selector logged-in>` / a property. The selector sets no cookie of its own.Logout on the website = host resets the selector.- **Server-side check of a selection**: selecting hands the script a one-time code; the website'sserver exchanges it with ident for the identity id. The API key sits in a public script, so servercalls (exchange, notifications) use a separate **app secret**.## In the appThe app creates its own user connected to that ident identity by storing the identity id (server side).## Open- **Client-only apps** (no server to keep the identity id): not figured out yet (creator).## Not thisThe mission-003 build (`{id, email, name}` handed to apps, no identities, apps as a config allowlist, no selector, no inbox) was built without this concept. Its email-code login to ident and thebutton redirect flow can be reused; the rest is rebuilt from this document.
Branches
Latest commits
- c3a40ff6|||PR ident#40 one shell for the app and /start (account part off on /start, #40.1); startshell.hl removed; unused signOut faces gone (#40.4)mre
- 060f3870ident#40.4: use the shell sign-out faces in regression gatesmre
- 9b94aa6aMerge branch 'f1b-cleanup' into mainIdent
- edcfce3f|||PR ident#41 ident#43 ident#44 login error page as a component (same status codes and text, pixel-identical), declarations and route wiring cleaned upmre
- 3ac85995ident#43 ident#44: plain declarations for never-reassigned lets, one envString helper, named route functions and audience rule out of project.hlmre
- c7eef14aMerge branch 'nv1-navigate' into mainIdent
- 644f9775|||PR ident#36 navigate() instead of window.location in the shell, start shell and homemre
- 4ca2f921deploy.sh: tar --hard-dereference so backups hold no hard linksmre
- 23971fb7ident#49: media queries in the language's @media formmre
- 73f4f97dident: re-vendor to hybriel day38b (mpackdb store-open fix)mre
- aa056c03ident: a startup error prints its message before exit 1 (hybriel#247)mre
- ee37a861ident#G48: gitoria's registration gets the wildcard origin of its repo addresses at load (gate tests/gitoria-origin.mjs)mre
- dc6d486fident#27: the docs gate expects the new Access entry in the main menumre
- d277633cident#27: README: identity access and the introspect endpointmre
- e999b0d3ident#27: the Access tab — one key per identity for all its apps: give access in three steps, the overview matrix, a cell's sheet (since, last use, level, rotate, revoke), the app's check POST /api/introspect, agent identities hidden from the login picker, an inbox icon in the header's icon style (gate: tests/access.mjs)mre
- 436206fcident#47: deploy.sh runs the sign-in gate on the deploy's own port slot, like the sessionwrites and docs gates (the default 8700 can be taken by another process)mre
- a4887ea3ident#47: the selector's sign-in frame no longer has a Continue button; the identity row itself is the link (gate tests/signin.mjs fails on the old code)mre
- d8ec703dident#45: /docs shows docs/IDENT.md (hl:markdown, vendored from ac1ed9da), one Docs entry in the main menu, README for developers only, gates tests/docs.mjs and tests/sessionwrites.mjs in deploy.shmre
- ec6aad35Merge branch 'a28g-amp-callsites' into d45-docsmre
- 6bfbd3f2ident#45: docs/IDENT.md, what ident is and how it works; CONCEPT.md marks one id per app as droppedmre