A question about implementing multi tenancy with the multiple connections strategy.
When a user wants to login into my product, I ask him for a tenant name (e.g. acme).
Let’s say for simplicity that I create database connections that are named exactly like the tenant, so I go into the login flow with the database connection name acme.
After the user has authenticated in Auth0 is will return to my app with the id_token/access_token - however - these do not include the name of the connection used for authentication nor the tenant name.
How do I then know, from which tenant the user is?
Seems like that whole flow is completely broken.