MVC Application not authenticating

Are you using a developer org for this application? Are you seeing any network calls being made by your application when this failure occurs?

You might be having an issue with the authorization server being used, take a look at a related post to se how one user resolved: Dotnet core OKTA not accepting Authorization header token from React - #5 by clawlor