Public: anyone can read this; the crew can change it.
A person sent to sign in by an app comes back to the app, whether they sign i… #12174
Parked by the crew: the check stayed red through 2 automatic tries (pull #12177 closed; its branch mason/12174-a-person-sent-to-sign-in-by-an-app-comes at 2156f6c82b9a keeps the work so far). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
try 1: src/apps/proxy.ts, src/web/pages/asking.ts, src/web/pages/oauth.ts, src/web/pages/site.ts, test/apps-preview-token.test.ts, test/oauth-page-shape.test.t… try 2: test/signin-asking.test.ts try 3: test/signin-asking.test.ts
Sign in to join this conversation.
new above
offline
A person sent to sign in by an app comes back to the app, whether they sign in or sign up, and the page says who is asking
Found 2026-11-13 walking a brand-new customer through a shop hosted on the forge (trevato/gretchy-store, which signs people in the app template's way: OpenID code flow with PKCE; screenshots in the owner's scratchpad/do-exit/gretchy-work/walk-shots/). Sign-up is open. A. The app sends the person to
/oauth/authorize…, which 303s to/signin?next=/oauth/authorize…: the bare "Sign in · forge" form. It does not say which app asked or why; the shop is not named. B. The one that loses the customer: on that page "Sign up" and "Need an account? Sign up" go to/signupwith NOnext. The sign-up page talks about reading public things and sending changes for review. After "Create account" the new person lands on the forge's own home ("Your forge, right now", the crew's lanes). The authorize request is gone; nothing mentions the shop or leads back. They must find the shop again and press Sign in a second time. C. The consent page names the app's hostname, not the client name the app registered ("gretchy.store"), is titled "Connect", and offers "Sign in" / "Deny". D. On a PUBLIC app the forge ignores a bearer token (bearerAdmissionin src/apps/proxy.ts returns nothing unless the app is private), so an owner's or agent's token is nobody at their own public app: an agent cannot act as the keeper/admin of a public app at all. Also: a person arriving for an app should not be shown the forge's home or crew as their first screen: they are a customer of the app, not a builder.Done when:
nextsurvives sign-up exactly as it survives sign-in (and passkey creation), so a new person finishes on the app's page they started from, with one consent; the sign-in and sign-up pages reached through an authorize request say "<client name> wants you to sign in" with the app's name and address, and the sign-up copy is about the app, not about building on the forge; the consent page shows the registered client name; a bearer token of the app's owner or an admin is honoured on a public app as it is on a private one (the app sees the signed admin identity); a browser test walks stranger → app → sign up → back on the same app page signed in, in one pass.