title: IDX20803: Unable to obtain configuration from
body: <p>I know this question has been answered, but I don't understand what people exactly do (about certificates, ssl) and they all use a localhost but not me.</p>
  
  <p>I used this sample as my example <a href="https://github.com/Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore" rel="noreferrer">OpenIdConnect</a></p>
  
  <p>I'm using:</p>
  
  <ul>
  <li>A web app</li>
  <li>A web API</li>
  </ul>
  
  <p>Both are using .Net Core 2.1. The Web App is using the Azure AD connection to get a JwtBearer token, that is sent to the API. </p>
  
  <p>Seeing the route <code>/api/information</code> in the API, a request is sent from the Web App to the API, and the API is returning the error above.</p>
  
  <p>The exact error is:</p>
  
  <pre><code>System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://&lt;mycompany&gt;.onmicrosoft.com/&lt;big Guid of 72 chars&gt;/.well-known/openid-configuration'.
  </code></pre>
  
  <p>So I tried to solve this error, by adding certificates, adding the neccessary libraries (<code>System.Net.Http</code> v4.3.3), checked every permission in Azure AD but none of these worked.</p>
  
  <p>If you need more information, I can provide them by adding them in this post.</p>