title: ADFS 4.0: Received invalid Client credentials
body: <p>Any ideas why this can happen?
  Our IT had ADFS updated from version 3 to version 4. 
  After the update our ASP.NET Core application gets following error: </p>
  
  <p>Error Code: </p>
  
  <pre><code>"Unhandled remote failure. (OAuth token endpoint failure: Status: BadRequest;
  Body: {\"error\":\"invalid_client\",\"error_description\":\"MSIS9623: Received invalid Client credentials. The OAuth client is not configured to authenticate using passed in client credentials.\"};)"
  </code></pre>
  
  <p>The request:</p>
  
  <pre><code> https://.../adfs/oauth2/authorize?client_id=d...4c&amp;scope=&amp;response_type=code&amp;redirect_uri=https%3A%2F%2Flocalhost%3A44377%2F&amp;state=CfDJ8...Og&amp;resource=https%3A%2F%2Flocalhost%3A44377&amp;redirect_url=https%3A%2F%2Flocalhost%3A44377
  </code></pre>
  
  <p>I tried also tried: </p>
  
  <ul>
  <li>"grant_type"="authorization_code"</li>
  </ul>
  
  <p>Someone an idea what the "client credentials" means in this context? </p>