I want to integrate OKTA authentication with my SaaS application but facing challenge because have multiple databases in our application. Below is the scenario:
Technology: Asp.net Core 7
My application have multiple databases and based on the database selection i want to check weather this database have OKTA auth enable or not if enable then runtime want to pass clientid/secret and domain which we get from databases.
So in place of registering into Startup.cs i want to register to which domain or tenant send request for authentication in OKTA.
Please kindly let me know if any way available in OKTA for the same. Will be great if any sample or example provide.