Files
orangecat/scripts/oauth
35725fb929 refactor(oauth): CLIENT_SPECS registry + register Solon as the second relying party (#661)
OC1 (OrangeCat side) of the Solon v1 plan. register-client.ts hardcoded the
FleetCrown spec; a second relying party would have meant copy-pasting the
script. Extract CLIENT_SPECS — one least-privilege spec per client, selected
by --client (defaults to fleetcrown, preserving the original invocation and
the FleetCrown spec verbatim; re-run against prod confirmed: updated, secret
untouched).

New spec: solon — scopes `openid profile email` ONLY. Solon needs identity,
never OrangeCat agency: login links a Solon member to an OC actor
(Member.ocActorId), while governance authority flows the other way, through
Bitcoin-signed votes that OrangeCat re-verifies. Registered against prod;
secret handed to Solon's env out-of-band. The Solon-side NextAuth consumer
is the remaining half of OC1.

Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 22:50:27 +00:00
..