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
- 07d1717c|||PR ident#40 home.hl is split into components, one per area: email step, identity form, identity list, app identity choice, time zone; each moves its faces with it, the email step is shared with embed.hl (#40.3, rest of #40.2)mre
- 59e8fcc1ident#40.3: the app's identity choice is one component (components/chooseidentity.hl); its face chooseIdentity moves with itmre
- e23efdfcident#40.3: the identity list is one component (components/identitylist.hl); its delete and face dropIdentity move with itmre
- e24b59a6ident#40.3: the time zone is one component (components/timezone.hl); its face changeTimeZone moves with itmre
- 8cbc5717ident#40.3: the email step is one component (components/emailstep.hl) placed by home.hl and embed.hlmre
- 6fad3bd2Merge branch 'f3-codestep' into mainIdent
- 51e387f2|||PR ident#40 the code step is one component (components/codestep.hl) placed by home.hl and embed.hl; its verify face, setCode, browserZone and verify call exist once (#40.2)mre
- c28bddeeMerge branch 'f2-shell' into mainIdent
- 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