ident
All repositories: gitoria
4.6 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.- **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 (the one for that 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
- d1bf4720tests: no hard-coded ports — every gate's ports and fixture origins come from <GATE>_PORT / _CHROME env (defaults unchanged; Bob/fixture origins follow, selector cookie name too)mre
- 6280c92fre-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
- 147744bftests/migration: the fixture app origin follows MIGRATION_GATE_TESTAPP_PORT (oldstore-009 OLD_TESTAPP)mre
- 48cd36bctests/migration: ports from env (MIGRATION_GATE_PORT, MIGRATION_GATE_TESTAPP_PORT); 8395/8396 were taken by a foreign servermre
- 3d9b2fd8docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
- 19b7e3c3deploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- c8a596f4re-vendor Hybriel 66c3db71 (web batch 4); e2e: main menu marked after in-place sign-in is a normal check; report 014mre
- 8f3dc1ectests: delivery allow-list for the stopped server's network errors uses the gate port, not 8700mre
- 9cc8eddftests: notify and iplimit gate Chrome ports from env (NOTIFY_GATE_CHROME, IPLIMIT_GATE_CHROME_A/B)mre
- d6da2d02tests: delivery and migration gate ports from env (DELIVERY_GATE_PORT, DELIVERY_GATE_CHROME, MIGRATION_GATE_CHROME) — hard-coded 8700-8719 collided with a worker during deploymre
- 7276a008ident mission 013: re-vendor Hybriel master f9614007 (#200, #202 mpackdb copy fix); gates and e2e rerunmre
- e13e30c3ident mission 013: report, mission, repro, LOGmre
- eff734f3ident mission 013: in-place sign-out also closes the code step (no leftover code form); checksmre
- b7a61546ident mission 013: e2e — in-place main-menu mark kept as a known gapmre
- 59b43d81ident mission 013: sign out everywhere keeps this browser's own (signed-out) session so the page goes on in placemre
- 716e14ffident mission 013: browser gate — Bob signs out everywhere (no second code request)mre
- 5885f1c9ident mission 013 step 2: stopgap reload removed (in-place sign-in/out reach the shell via emit, notices back, route-marked main menu), gates updatedmre
- 734ac0a9ident mission 013 step 1: re-vendor Hybriel ce6f2e0a (plugins whole; bin/ is git-ignored)mre
- b37875ccident mission 012 part 3: real-Chrome fixes (brand 44 px, identity form width), e2e walk, report, logmre
- f989c2ebident mission 012: stopgap reload after in-place sign-in/sign-out (until hybriel#193), gates wait for cold start, welcome end reloadsmre