Add native Bifrost identity registration

This commit is contained in:
Meta Vens 2026-06-22 15:07:22 +01:00
commit 23c02be2a6
17 changed files with 366 additions and 29 deletions

View file

@ -15,7 +15,7 @@
- One ASP.NET web app process for v1.
- Server-rendered UI with HTMX for progressive interactions.
- PostgreSQL as the system of record.
- GitHub OAuth for login.
- Bifrost-native identity registration for login, with GitHub OAuth available as a linked external identity.
- GitHub App plus webhooks for issue and pull request lifecycle sync.
- Discord and Reddit should become native Bifrost interfaces for work, voting/priority prompts, reward discussion, maintainer notices, public organizing threads, and agent swarm routing once identity/capability claims are available.
- Yggdrasil-hosted deployment behind nginx with systemd-managed app service.
@ -42,7 +42,7 @@
## Product Rules
- Invite-only member alpha.
- GitHub sign-in only in v1.
- Bifrost-native identity is the local account root in v1; GitHub and Heimdall-linked providers attach to that root instead of owning it.
- Authentication is separate from membership approval.
- Work items may come from GitHub issues or internal platform-native tasks.
- Voting is app-native and off-chain.

View file

@ -23,6 +23,8 @@ That means Bifrost owns the operational meaning of the crossing:
It does not mean Bifrost should own OAuth sludge. Bifrost is both an identity provider and identity consumer: a GameCult actor should be able to register with Bifrost without OAuth, and that Bifrost identity should be enough to authenticate with most GameCult services. Heimdall owns outside-provider OAuth, linked-account token custody, grants, and signed account claims. Bifrost associates those Heimdall-backed accounts with the Bifrost identity, consumes the permission facts, and decides whether a bridge action is allowed in the Bifrost domain.
The native registration surface is `POST /auth/bifrost/register`. It creates a Bifrost-owned `UserAccount` with `BifrostIdentity` and `NormalizedBifrostIdentity`, signs the caller in with the Bifrost cookie, and leaves membership at `Authenticated`. It does not grant active member access, mint outside-provider tokens, or replace Heimdall's account-link and capability custody.
## Ownership
- Heimdall owns provider OAuth, outside-account credentials, token custody, and capability/account claims.

View file

@ -39,7 +39,7 @@ The product center is the Labor Platform loop: eligible participants express pol
After bootstrap, the next session should start implementing the first vertical slice:
- GitHub OAuth sign-in
- Bifrost-native identity registration plus GitHub OAuth linked sign-in
- membership gating
- core project/member data model
- work items from GitHub and internal sources

View file

@ -14,7 +14,7 @@ It is currently a strong first application slice, not an internet-facing alpha.
- ASP.NET Core 8 Razor Pages app
- PostgreSQL-backed EF Core model plus initial migration
- GitHub OAuth wiring and startup config validation
- Bifrost-native identity registration, GitHub OAuth wiring, and startup config validation
- invite and approval gate with explicit member roles
- member profile editing plus patron or contributor tier snapshots
- project, work item, motion, member, and ledger UI
@ -39,7 +39,7 @@ It is currently a strong first application slice, not an internet-facing alpha.
The labor platform concept doc establishes the social and economic model. Bifrost should implement that model with a few v1 clarifications:
- keep GitHub sign-in only for Bifrost v1 even though the concept doc allows GitHub or GameCult accounts
- keep Bifrost-native identity as the account root for v1, with GitHub and Heimdall-linked providers as attached external identities rather than account owners
- keep the app invite-only during alpha
- keep payout execution out of scope; only compute, review, and audit payout proposals
- treat contribution points, patron points, decay, and revenue share as first-class product systems, not spreadsheet afterthoughts