Setting up okta on asp.net core 2.1

Hello,

I’m currently building a website on asp.net 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,

Vincent

I’m not sure setting up a reserve proxy is a good idea.
Have you seen these examples? https://github.com/okta/samples-aspnetcore
https://github.com/okta/okta-aspnet

Pls use below code in Global.asax.cs

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;