Supporting multiple SAML IdPs within a single Rails application

The linked article Show archive.org snapshot shows how to configure omniauth-multi-provider Show archive.org snapshot to support multiple SAML identity providers for a single Rails app:

To solve this, the omniauth-multi-provider gem acts as a dynamic wrapper around OmniAuth. It enables your application to load the correct IdP configuration at runtime—based on the tenant—allowing for flexible and secure SSO authentication across multiple organisations.

Henning Koch