.net core multi tenant app with different Okta subdomains

Hi,

I have built an app in .net Core and I have to duplicate the site for every customer as Saml is configured/initialized in startup. Is there a way to make this app multi tenant so that based on the subdomain of the app being called I can redirect the user to different okta subdomains for auth (Multiple Okta customers using 1 App for auth)?

Can you clarify if you are going to use the same app for multiple customers having access to their own Okta tenant? Or multiple customers having access to the same app in one Okta tenant?

In first case, I believe it’s nothing to do with Okta, you just need to have something on your app side to make this “choice” of Okta tenant to send authN request to.