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

Add Tenant / Site Switcher #81

Open
hishamco opened this issue Mar 13, 2023 · 5 comments
Open

Add Tenant / Site Switcher #81

hishamco opened this issue Mar 13, 2023 · 5 comments

Comments

@hishamco
Copy link
Member

This will help might help to navigate from one tenant to another, points that may need to be consider:

  • Add the switcher for both the site and the admin site
  • Ability to restrict some of the tenants to be hidden

FYI the switcher on the admin site might be tricky, coz we need to provide a way to authenticate the users from the default tenant

@hishamco
Copy link
Member Author

@Piedone did Lombiq work on something similar on your Tenant Management module?

@Piedone
Copy link

Piedone commented Mar 13, 2023

How exactly do you imagine this switcher working?

From what you explained we haven't done anything like this, no.

@hishamco
Copy link
Member Author

How exactly do you imagine this switcher working?

I saw some CMS such as Craft CMS, ABP Framework, both offers such feature. For example ABP Framework allows the admin to choose the tenant that need to manage from the login screen, which is neat instead of remembering all the tenants URLs or log into the default tenant then go to the tenant that need to be managed.

Craft CMS for instance provides Site Switcher as a plugin that allow the user on the front-end to switch from tenant to another, image a site such as Microsoft with many languages and products, this could be useful to switch from product / language to another

From what you explained we haven't done anything like this, no.

I see, thanks anyway

@hyzx86
Copy link

hyzx86 commented May 7, 2023

Hi @hishamco ,

I've thought about it, but it hasn't been implemented yet.

But I have some preliminary ideas

  1. An implicit login, which may not be visible to the user, we use the identity impersonation module to access the tenant site's content without creating a new user. This should be minimal for system changes.

  2. Access should be combined with OpenId server, similar to our remote deployment feature (it would be great if we could use it in conjunction, so we can manage tenant recipes through the service center)

We shouldn't just consider Default site; in many cases, you may want to use a single site to manage hundreds of tenant instances

@hyzx86
Copy link

hyzx86 commented May 7, 2023

If it is only for ordinary users to switch between multiple tenants, it is also necessary to configure the authorization center.
Users should be able to report to the authorization center after registering an account in the authorization center and logging in by other tenants
The registry then updates the site information owned by this user

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

No branches or pull requests

3 participants