-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
P3Nice to have — can waitNice to have — can waitphase:2-orgsPhase 2: Multi-tenancy & OrganizationsPhase 2: Multi-tenancy & Organizations
Description
Description
Modify the signup flow to handle organization creation or joining based on config and email domain.
Details
When organizations enabled + domainMatching:
- User signs up with email
- Extract domain from email (e.g. @acme.com)
- Check if an organization exists with that domain
- Yes → create membership (role: member) on that organization
- No → require organization creation (name, slug) → membership (role: owner)
When organizations enabled + no domainMatching:
- User signs up
- Organization creation step required (name, slug)
When organizations disabled:
- User signs up
- Organization auto-created in background (invisible)
- Membership (role: owner) created silently
Response
Signup response includes the organization info and abilities so the frontend can adapt.
Acceptance criteria
- Domain matching finds existing organizations
- New organization created when no match
- Silent organization creation when organizations disabled
- Signup response includes organization + abilities
- Integration tests for all 3 scenarios
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Nice to have — can waitNice to have — can waitphase:2-orgsPhase 2: Multi-tenancy & OrganizationsPhase 2: Multi-tenancy & Organizations