Skip to main content

Overview

What the service keeps

The members service is where most of what a community knows about someone lives.

Outline
  • Sections:
    • The shape
    • What each piece does

Read more

Signing in

Members is a confidential OpenID Connect client of the id service, through openid-client⁠ (external site)(github.com/panva/openid-client).

Outline
  • Sections:
    • Sessions

Read more

Membership and profile

A member is keyed by the sub the id service gives them.

Outline
  • Sections:
    • Joining
    • Referrals
    • Founding members
    • What other services see

Read more

Claims reviews

The id service enrols members with FG_ID_SERVICE_MEMBERS_CLAIMS=membership, so the membership scope is this service's.

Outline
  • Sections:
    • The API

Read more

Policy

The members service asks the organization's policy three things, through @fairgarden/policy⁠ (external site)(github.com/fairgarden/policy), as the id service does.

Outline
  • Sections:
    • admit
    • scopes
    • release
    • The organization's rules
    • Every decision is recorded
    • Failing closed

Read more

Database

Drizzle, over pg, the same as the id service: any Postgres, tables prefixed members_, and an embedded PGlite in .data/members (port 54320) when there is no database URL.

Read more

Testing

Nothing outside this repository is needed — not even the id service.

Read more