The primary and best-practice solution for this your B2B SaaS scenario is Auth0 Organizations, being the specific built feature to solve the multi-tenant problem and providing the dynamic configuration you’re looking for natively. This approach allows to securely and dynamically connect to any OIDC-compliant Identity Provider your company uses, whether it’s Okta, Entra ID, Google Workspace, or another. Check Enable Organization Connections.
You can create an Organization for each customer, then attach one or more Enterprise Connections to that specific organization. This is all manageable via the Auth0 Management API for automatization by endpoints such as:
The SP-Initiated Flow is handled perfectly within the Identifier First Authentication, which allows prompting the user both for their credentials or their organization first, so I would recommend checking our documentation.
This is the modern, standard way of achieving your desired architecture, since creating separate connections per tenant would be very difficult when thinking of scalability.
I hope this helps, and if you have further inquiries please let me know!
Thank you!
Best regards,
Remus