Commit Graph
4 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 6497e64c1a feat(auth): Solon accounts on the fleet's account package (#269)
* feat(auth): Solon accounts on the fleet's account package

Anyone can now create a Solon account with an email and a password or a
passkey, with two-step codes; "Continue with OrangeCat" is one way in
among them instead of the only one. Sign-in, sign-up and the account
panel are @bitbaum/accountkit/auth's shared screens in Solon's look, in
the reader's language (authLabelsFor).

Seats were keyed on the OrangeCat actor id. legacyIdentityProvider keeps
that id for everyone whose first way in was OrangeCat, so existing seats,
votes, the founder rule and Loki grants keep working with no data
migration; everyone else is their account id.

Policy change, on purpose: the sign-in gate that turned away OrangeCat
accounts with no email is gone, with its test. A session still grants
nothing: a seat comes only from founding or from a vote of the members.

- drizzle/0014_accounts.sql: the six account tables, additive only, the
  same migration every product generates
- next-auth removed; /api/auth/[...all] serves accounts
- a PGlite test signs up against Solon's own migrations

Known gap: the roster's OrangeCat handle and picture are no longer
refreshed at sign-in (stored values stay).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

* chore(deps): pin accountkit to the merged v0.5.0 commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-17 16:02:19 +02:00
CatoandCursor a84935e70d feat(auth): Sign in opens OrangeCat's screen directly (#223)
/sign-in and /sign-up become routes that start the OIDC flow at once;
OrangeCat's screen, titled for Solon, has email and password, a code,
Google, GitHub and Create an account. Solon's own entry page is gone.
Links to the routes are plain anchors so nothing prefetches a sign-in.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 05:27:16 -07:00
CatoandClaude 803a3d54bd fix(auth): participation pages offer an account, not an OrangeCat sign-in (#199)
/orgs/new, /propose and /join still posted straight to OrangeCat's sign-in
behind a button reading "Sign in with OrangeCat", so a person without an
OrangeCat account was told they needed one. They do not: since #191, /sign-up
takes an email, Google or GitHub. The three pages now offer "Create an
account" and "I already have an account" (one shared component), both
carrying `from` so the person lands back on the same page with the
proposal's context intact, and each says what it takes: an email, no wallet,
no OrangeCat account first.


Claude-Session: https://claude.ai/code/session_01QDMxjTqKNLXETMYYuapMa3

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 05:16:24 -07:00
CatoandClaude Opus 5.5 1411ba7b1d feat(auth): Solon's own sign-up and sign-in, one account across the stack (#191)
/sign-up and /sign-in in Solon's design, in all five languages: email first,
then Google, GitHub or an existing OrangeCat account. Underneath it is one
OIDC flow to OrangeCat, which holds the single account for Solon, OrangeCat
and Loki (docs/design/2026-09-uniform-auth.md, option A). The person's choice
travels as prompt=create, login_hint and idp_hint, so OrangeCat's screen opens
already in that state; only those three keys are ever produced, each checked.

- The header's Sign in opens /sign-in and remembers the page you were on.
- /account signed out goes to /sign-in instead of a second sign-in screen.
- The email-less-account error now offers 'Sign in again' (OrangeCat asks
  for the email on the way) instead of sending people to OC settings, and no
  longer says voting needs only a Bitcoin signature.
- A shared .field class for text inputs.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 08:27:57 -07:00