Implement Okta in middleware

Hi Team,

I need to find the best approach to implementing Okta integration in my NetCore MVC service, which is a service to provide the login for external React Web applications having login and all authentication are implemented in .Net Core MVC service.

I’m doing some research and development to put it in place, but so far I haven’t found a viable approach to achieving my goal of integrating Okta into a middleware service.

Hi @mohammad.imran! Have you seen our .Net Core samples yet - samples-aspnetcore/samples-aspnetcore-3x/self-hosted-login at master · okta/samples-aspnetcore · GitHub? We also have frontend samples linked in the readme - samples-aspnetcore/samples-aspnetcore-3x/resource-server at master · okta/samples-aspnetcore · GitHub.

Hi Sigma, Thanks for replying I have checked all those examples but unfortunately I didn’t get the any suitable example for my scenario. It seems I didn’t explained correctly let me try to explain my scenario.

  1. I have a react front end application
  2. .Net core MVC self hosted service page which provides the login functionality to react front end application.
  3. Now I need to implement the Okta authentication for react app but need to use the .Net core MVC self hosted page and the user name and password which is provided to service that can be directly used to verify from okta there should not be any requirement to load the okta page to pass the user name and password that should be handle internally through service. So in this case what would be the best approach need to follow and how the call back urls and login urls handle in this case. hope you understand my use case