Multiple identity providers (SSO&SAML)

I like two use two different SAML identity providers, one for internet and one for local LAN access to nextcloud. Is there any way to configure apache2 reverse proxy to preselect the desired identity provider? (Maybe a link, including selection of identity provider?)