I want to be able to use different OIDC clients for authentication in a single domain hosted by a webserver.
This means I want to serve mydomain.example.com and have multiple OIDC clients that are able to connect to this domain.
For one client this easily can be done using mod_oidc in an Apache webserver by providing
OIDCRedirectURI https://mydomain.example.com/auth0/redirect_uri/
OIDCClientID CLIENT_ID
OIDCClientSecret CLIENT_SECRET
OIDCCryptoPassphrase CRYPTO_PASSPHRASE
OIDCScope "scope"
OIDCProviderMetadataURL https://oidc.mydomain.example.com/.well-known/openid-configuration
But this way I only can allow one OIDC client to access mydomain.example.com.
So my question is how can I achieve this? Is it possible using only one virtual host? Can I configure multiple virtual hosts pointing to the same domain? Or do I need a completely different approach?
Refering to Apache documentation I think using the same domain in different hosts with different OIDC settings will not work because Apache chooses exactly one virtual host for serving a request. This means authentication via OIDC can work only for some requests that are lucky to run into a matching virtual host.