Getting IDX20803 error when trying to access the openid-configuration url

I followed the tutorial for creating a WebForm with OpenId/Okta. However, I keep receiving an error when it tries to get the openid-config, I keep getting this error:

IDX20803: Unable to obtain configuration from: 'https://{oktaAuthority}.okta.com/oauth2/default/.well-known/openid-configuration'.

I have verified that localhost:8080 is listed as a trusted origin and has CORS and Redirect enabled. I verified that my IISExpress is using a valid trusted cert. and I also have verified that I can load the above URL through my browser. So it is just my application that is unable to hit this URL.

Any ideas on what else I could be checking or how I could fix this?

Are these forums actively being answered? It doesn’t seem like much activity happens with Okta.

Are you certain that you’ve created a developer account? You might not have an authorization server if you haven’t. For example, mine is available at https://dev-133320.okta.com/oauth2/default/.well-known/openid-configuration.

If you don’t have a JSON response from your URL, I’d suggest you create a developer account at https://developer.okta.com.

It took me a while but at work we have a proxy server that I had to deal with. I had to add the following to me app.UseOpenIdConnectAuthentication():

        `var proxy = new WebProxy("proxy_url")
        {
            Credentials = CredentialCache.DefaultNetworkCredentials
        };


        app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
        {
            BackchannelHttpHandler = new HttpClientHandler() { Proxy = proxy },
            ........`