Setting up okta on core 2.1


I’m currently building a website on core 2.1 and want to enable okta authentication with my organization.

I was able to make my application and authentication work on localhost, but not on my website server.

When I try to login, I’m not being redirected to the okta sign in page, instead I get the following error :

My theory is that, for security reason, my server doesn’t have access to internet, therefore it’s unable to validate with okta the token. How would I fix that?

Is setting up a reverse proxy a good idea?

Thank you for your help,


I’m not sure setting up a reserve proxy is a good idea.
Have you seen these examples?

Pls use below code in Global.asax.cs

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;