Error Code E0000015 after following .NET 4.X tutorial

Looks like the Okta tenant you are using does not have the API Access Management license, which allows you to use custom authorization servers, including the one named default. As long as this is an MVC app and not a WebApi app, you will want to ensure that the Org Authorization Server (available for all orgs, even without the aforementioned license). You’ll see a permissions error if you hit that endpoint in your browser: https://OktaDomain/oauth2/default/.well-known/openid-configuration

If you use our .NET middleware, you’ll want to set AuthorizationServerId to string.Empty, as described in our docs: okta-aspnet/aspnet4x-mvc.md at master · okta/okta-aspnet · GitHub

If you use OWIN etc directly, make sure the Issuer is JUST the Okta domain (without any trailing /oauth2/default). This server has the following well-known url: https://oktadomain/well-known/openid-configuration

More details about the different types of Authorization Servers discussed here: Authorization servers | Okta Developer

We’re using OWIN directly (using the same app in your MVC4 github sample - which actually does include the /oauth2/default) i’ve removed it and now it is working … but your sample app is misleading since i had to modify it and remove the /oauth2/default to get it working.