How to set up corporate identities for user pool dynamically as a new tenant is created

some of the tenants will need to use corporate IDP. When a new tenant comes in, we need to configure the IDP in the user pool.

  1. Can I see some examples of IDP being configured on the fly?

  2. I am deciding between the same user pool for all tenants vs the common user pool. A user can be in multiple tenants. If we using the same use pool, how do we pass which IDP to authenticate with?

I would love to see examples of both cases. Searched extensively but haven’t found anything relatd