Adom Wiki
Public Made by Adomby adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making
Let Adom apps mint a wiki BROWSER session from the container token (auto-login for pup)
Feature request: mint a BROWSER session from a container's Adom token, so pup (and any Adom app) can auto-login the wiki without handling credentials.
Use case. Adom apps — especially the Puppeteer bridge (pup) — constantly drive rendered wiki pages in a fresh, isolated browser (screenshots, verifying a published page/hero/version, checking a download card). Logged-in, the wiki surfaces far more. Since the container already holds the user's Adom identity, pup should be able to offer "want me to log you into the wiki automatically?" and do it — no credentials asked.
What I found (investigated end to end from a container + pup on a VM):
- Login is centralized Adom SSO —
wiki.adom.inc/loginredirects tohydrogen.adom.inc/auth/login(email/password or Google). Not wiki-local. - The container has a valid opaque wiki token that works as
Authorization: Bearerfor the API — e.g.GET /api/pages/adom/adom-desktop-puppeteer-bridge/secretsis 401 without, 200 with Bearer. - But there's no path from that token to a browser session:
- The token does not authenticate as a cookie (tested
adom_wiki_token,wiki_session,token,session,authToken, … → all 401 on the gated endpoint). - No
Set-Cookieis issued on a Bearer call. - No magic-link / token-exchange endpoint exists (
/auth/token,/api/auth/from-token,/auth/exchange,/sso,/api/v1/auth/session→ all 404).
- The token does not authenticate as a cookie (tested
- So the only way to log a pup browser in today is to drive the SSO form with a real email+password — which we deliberately won't do (no creds on hand, and it's the wrong security model).
The ask — any one of these unlocks it:
- (preferred) A one-time magic-link:
POST /api/auth/browser-session(Bearer-authenticated) → returns a short-lived, single-use login URL. pup justbrowser_navigates to it; the wiki sets its normal SSO session cookie and the browser is logged in as that identity. - A token→cookie exchange the browser can set (document the cookie name + that the Bearer token is accepted as it).
- Accept the existing Bearer token as a named session cookie.
Why it's worth it: it's not pup-specific — it lets every Adom app that drives the wiki offer frictionless "log you in as you," scoped strictly to the container's own identity, with zero credential handling. Happy to test any endpoint against pup the moment it exists.
