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

Multi-tenancy application using oAuth #273

Open
bertoost opened this issue Apr 27, 2021 · 0 comments
Open

Multi-tenancy application using oAuth #273

bertoost opened this issue Apr 27, 2021 · 0 comments

Comments

@bertoost
Copy link

bertoost commented Apr 27, 2021

Hi,

I am creating an multi-tenancy application with a separated database setup
Therefore I have created two entity-managers in the doctrine configuration and based on the hostname in the browser OR the given --tenant=<name> option on the console I am switching the database connection (and even load entities from a certain namespace).

Because the "main" database (running behind the default entity-manager) contains central information about all tenants, but also needs oAuth authentication for the frontend applications.
Besides that I want to setup every tenant to have separated oAuth authentication as well.
The routes like for the authorize and obtaining the tokens, could be the same, that's not problem
But because of the configured entity_manager in your bundle's config, I can't run "doctrine:schema:update" to create the tables on each (tenant) connection.

I think the bundle should respect the --em or --connection setting from the commands and not using it's own implementation which does not gives me any freedom of integration.

Hope you understand my point of view and maybe you have any suggestion how I can achieve my goal :-)

Thanks in advance.

Regards, Bert

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

1 participant