Skip to content

Decide on user registration, approval, and account-state model #60

@martinydeAI

Description

@martinydeAI

The app needs anonymous user registration restricted to email
addresses on an allow-list of approved organisations and an
approval-by-another-user step before a newly created account gets
access. Before we build any of that, we need to decide how account
state is modelled on the User entity.

The space, broadly:

  1. Boolean(s) or status enum on the entity — e.g. status: pending | approved | blocked, or active + approved booleans (the
    active half is already in feat: add User entity with active / domainManager / name fields #45).
  2. Role-based gating — no roles → no access. Less code, but
    conflicts with Symfony Security's implicit ROLE_USER guarantee
    on the generated User entity, and conflates identity state with
    authorisation.

This issue tracks the architectural decision. The decision is recorded
as an ADR under docs/adr/; the resulting implementation work is
filed as follow-on issues that reference the ADR.

Related

Acceptance

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions