app sign-in: the descriptor's sign-in site, the app door's own address and matou-app's present path are three different strings — the real app would first-contact-prompt its own community, then post to a 404 #1669

Closed
opened 2026-09-20 18:00:49 +00:00 by ben · 1 comment
Owner

Found while landing #1666. The headless wallet cannot catch this — it posts to the bridge directly — but the REAL app will hit it.

Three strings that must be one

where value
descriptor signin.url (internal/orgconfig/render.go SigninURL) — what matou-app seeds as its pre-trusted HOME sign-in site (knownDoors.seedHome(descriptor.signin.url, …)) https://<apex>/authz/signin
the app door's ask door and the address its verifier binds (idp.Config.ResolvedSignInURL, rendered IDSS_IDP_SIGNIN_URL) https://id.<apex>/login
where matou-app POSTs the presentation (frontend/src/lib/signin/present.ts PRESENT_PATH) <door>/signin/present — the #1301 spike's path; the bridge serves POST https://id.<apex>/login/app/present

What the real app would do today

  1. Scan the QR / follow the link: the ask names https://id.<apex>/login. The app's known sign-in sites hold https://<apex>/authz/signin. ADR 0236 §5: an address it was not introduced to only ever produces the first-contact prompt — the member is asked whether to trust their OWN community's sign-in.
  2. If they say yes, it POSTs to https://id.<apex>/login/signin/present — 404.

The decision

Which string is THE sign-in site, and where does the wallet post?

Recommended: the bridge's own address wins — ADR 0236 §5 calls signin{url} "the bridge's sign-in endpoint", and https://<apex>/authz/signin is the control plane's gate start, not the bridge. So: the descriptor's signin.url becomes https://id.<apex>/login (idss, one line + golden), and matou-app's present path becomes /app/present relative to it — or the ask carries an explicit present_url so the app never derives a path at all (more robust; one more field in the ask and the deep link).

Acceptance

  • One string: descriptor signin.url == the ask's door == the verifier's bound address, pinned by a test on each side.
  • matou-app posts to the route the bridge serves; its fixture is copied from an idss golden, like the space-ID door's.
  • The IDIP journey's wallet-signs-in leg takes the door from the DESCRIPTOR (not the page's origin), so the drive would catch a drift.

Blocks the real app signing in (#1531's phone half); does not block the headless drive legs.

Found while landing #1666. The headless wallet cannot catch this — it posts to the bridge directly — but the REAL app will hit it. ## Three strings that must be one | where | value | |---|---| | descriptor `signin.url` (`internal/orgconfig/render.go` `SigninURL`) — what matou-app seeds as its pre-trusted HOME sign-in site (`knownDoors.seedHome(descriptor.signin.url, …)`) | `https://<apex>/authz/signin` | | the app door's ask `door` and the address its verifier binds (`idp.Config.ResolvedSignInURL`, rendered `IDSS_IDP_SIGNIN_URL`) | `https://id.<apex>/login` | | where matou-app POSTs the presentation (`frontend/src/lib/signin/present.ts` `PRESENT_PATH`) | `<door>/signin/present` — the #1301 spike's path; the bridge serves `POST https://id.<apex>/login/app/present` | ## What the real app would do today 1. Scan the QR / follow the link: the ask names `https://id.<apex>/login`. The app's known sign-in sites hold `https://<apex>/authz/signin`. ADR 0236 §5: an address it was not introduced to only ever produces the first-contact prompt — the member is asked whether to trust their OWN community's sign-in. 2. If they say yes, it POSTs to `https://id.<apex>/login/signin/present` — 404. ## The decision Which string is THE sign-in site, and where does the wallet post? **Recommended:** the bridge's own address wins — ADR 0236 §5 calls `signin{url}` "the bridge's sign-in endpoint", and `https://<apex>/authz/signin` is the control plane's gate start, not the bridge. So: the descriptor's `signin.url` becomes `https://id.<apex>/login` (idss, one line + golden), and matou-app's present path becomes `/app/present` relative to it — or the ask carries an explicit `present_url` so the app never derives a path at all (more robust; one more field in the ask and the deep link). ## Acceptance - One string: descriptor `signin.url` == the ask's `door` == the verifier's bound address, pinned by a test on each side. - matou-app posts to the route the bridge serves; its fixture is copied from an idss golden, like the space-ID door's. - The IDIP journey's `wallet-signs-in` leg takes the door from the DESCRIPTOR (not the page's origin), so the drive would catch a drift. Blocks the real app signing in (#1531's phone half); does not block the headless drive legs.
Author
Owner

Ruled by Ben 2026-09-20: agreed with the recommendation. idss half landed fc3baca3: one function renders https://id.<apex>/login for the bridge's unit AND the descriptor (pinned equal); the ask carries present_url and the deep link repeats it as present; the wire is pinned in internal/idp/testdata/app-door-golden.json; the IDIP journey's wallet takes its door from the descriptor and refuses any other. ADR 0236 amended, GOTCHAS #294. matou-app's half is matou-app #574 — which also carries two more wire mismatches found reading the app (challengeID vs challenge_id; a 200 refusal read as VERIFIED). Seam-proven; the next IDIP fire proves it live.

**Ruled by Ben 2026-09-20: agreed with the recommendation.** idss half landed `fc3baca3`: one function renders `https://id.<apex>/login` for the bridge's unit AND the descriptor (pinned equal); the ask carries `present_url` and the deep link repeats it as `present`; the wire is pinned in `internal/idp/testdata/app-door-golden.json`; the IDIP journey's wallet takes its door from the descriptor and refuses any other. ADR 0236 amended, GOTCHAS #294. matou-app's half is **matou-app #574** — which also carries two more wire mismatches found reading the app (`challengeID` vs `challenge_id`; a 200 refusal read as VERIFIED). Seam-proven; the next IDIP fire proves it live.
ben closed this issue 2026-09-20 19:49:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1669
No description provided.