Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template: Tenancy #441

Open
8 of 12 tasks
Tracked by #428
ascott18 opened this issue Sep 11, 2024 · 1 comment
Open
8 of 12 tasks
Tracked by #428

template: Tenancy #441

ascott18 opened this issue Sep 11, 2024 · 1 comment

Comments

@ascott18
Copy link
Collaborator

ascott18 commented Sep 11, 2024

Tasks

Preview Give feedback
@ascott18
Copy link
Collaborator Author

ascott18 commented Sep 13, 2024

Use Cases

  • Tenant decided per domain. No tenant switching, no determination based on user source (AAD/Google). Used for sites that have a public, unauthenticated aspect to them so that public users can be routed to a specific tenant.
    • ❤Users are explicitly invited to tenant (Goat)
    • 💜OR users are permitted to freely sign up to that tenant, or link their existing account to that count
  • Single domain. Can switch between tenants with a dropdown, maybe prompted on sign-in. Options:
    • 💙Tenant strictly tied to external sign in, tenants either created automatically based on external provider or explicitly created by "super admin" or a sign-up form. (Myriad, Wiki, STC)
    • 💛Tenant membership granted by being invited by an existing admin within that tenant, or by the "super admin" (AIS, CWA)
    • 💚Hybrid: 💛 + Automatic membership to home tenant. (Myriad desired)

Options (each actual template flag marked with ⭐, not all combinations are valid)

  • ⭐Base
    • Tenant table
    • TenantMembership table (User-Tenant many-to-many)
    • AppUser { bool IsGlobalAdmin }
    • Global query filter & save interceptor
    • TenantBase class
  • Membership:
    • ⭐Invitations from admins within the tenant
    • ⭐Invitations from Global Admin
    • ⭐Self-service sign-up or link existing account
    • ⭐Implicit from AAD/GSuite
  • ⭐Tenant decided by:
    • hostname
    • switching/prompt
    • future: path segment
  • Tenant creation:
    • ⭐Self-service sign-up form
    • ⭐Automatic from AAD/GSuite
    • ⭐super admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant