
vaibhavg.25666 (Customer) asked a question.
- The application is hosted on our server.
- Our clients have been provided with different subdomains to use it.
- Each subdomain has a different database. We have another common database that has information regarding all the clients as to what database to connect and which URL points to which client etc.
- All our clients have an Okta account and have their Orgs setup.
- I want to implement Okta SSO for all the clients, wherein users of each client click on a button in our application and are redirected to their companies Okta Orgs and are authenticated and redirected back to our application
How do I do it without using OWIN middleware or any middleware for that matter?
OR
If I have to use OWIN middleware then what code goes into it?
I have followed the normal flow which was available on OKTA and other places on the internet.
The problem with using middleware is as follows:
OWIN Middleware for Okta mandatorily requires clientId, redirectUrl, etc to be passed as openIdConnect options.
I fetch these from the database but since it runs at application startup and I am not able to pass the values (clientId, redirectUrl, etc) dynamically.
This is turning out to be a bottleneck for us and we are not able to move forward from here.
Any help will be appreciated.
We are using C* and ASP.NET and .NET Framework 4.7

Hi Vaibhav,
Sergiu from Okta Support here. We can assist with connecting your app to your Okta tenant via OIDC (https://developer.okta.com/docs/reference/api/oidc/), however, for these types of complex setups, we recommend opening a support ticket, so we can review the use case with our dev team.
Have a good one!
Hi Sergiu,
I have opened a case and below are the details:
Case 00962519