Using Azure Active Directory on an ASP.NET Core application, I can receive and authorize tokens without any problems on my local machine, however, when I deploy it to my dev server, I get the following error message on OnAuthenticationFailed under UseJwtBearerAuthentication

Message: IDX10803: Unable to obtain configuration from: -https://login.microsoftonline.com/MYTENTANT/.well-known/openid-configuration-.
- Exception: IDX10804: Unable to retrieve document from: 'https://login.microsoftonline.com/MYTENTANT/.well-known/openid-configuration'.

I have checked and I can access the site (through IE/Chrome) on both my machine and on the server.
I have an AAD application for localhost and another for my dev server, and the IDs are correctly set.

Related posts

Recent Viewed