You can model the business units in two ways:
- One database connection per unit, with lazy fetch from an external customer DB
- One tenant per unit, with a database connection with lazy fetch from an external customer DB, and another tenant with 4 OIDC connections, one to each business unit tenant.
In either way, if you want to avoid prompting the end-user for which business unit you want to log-in to, you’ll need to know in advance which business unit they belong to. If you do, you can pass a ‘connection=<connection name’> parameter to the
If you used the approach described in #1, it will prompt for username/password for one of those DB connections. If you used #2, it will skip the page with buttons like “Continue with Business Unit A” and redirect to the corresponding tenant.
Hope it helps,.