title: Getting "unauthorized_client" when trying to login using Microsoft account
body: <p>In my IS4's Startup.cs:</p>
  <pre><code>services.AddAuthentication()
          .AddMicrosoftAccount(o =&gt;
          {
              o.SignInScheme = IdentityServer4.IdentityServerConstants.ExternalCookieAuthenticationScheme;
              o.ClientId = &quot;clientId&quot;;
              o.ClientSecret = &quot;clientSecret&quot;;
          });
  </code></pre>
  <p>I have defined the scope:</p>
  <ul>
  <li>openid</li>
  <li>profile</li>
  </ul>
  <p>And I get the error after I tried to login:</p>
  <p>unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at <a href="https://go.microsoft.com/fwlink/?linkid=2083908" rel="nofollow noreferrer">https://go.microsoft.com/fwlink/?linkid=2083908</a>.</p>
  <p>It's a web app. So what am I doing wrong here:</p>
  <p>I assume the client ID is this:
  <a href="https://i.stack.imgur.com/Y0KC5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y0KC5.png" alt="enter image description here" /></a></p>
  <p>And my client secret is this:
  <a href="https://i.stack.imgur.com/C1Zn9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C1Zn9.png" alt="enter image description here" /></a></p>
  <p>I have also set up the redirect URI:</p>
  <p><a href="https://i.stack.imgur.com/YdPWd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YdPWd.png" alt="enter image description here" /></a></p>