.NET MVC OAuth Flow

This issue sounds similar to Unable to obtain configuration from: 'https://<domain>oauth2/<appid>/.well-known/openid-configuration'
IDX20804: Unable to retrieve document from:not working on deployed application working on localhost