title: Bad request (400) with OAuthWebSecurity.RegisterMicrosoftClient
body: <p>I am using <code>Microsoft.Web.WebPages.OAuth</code>. I was able to register <code>Google</code>, <code>Facebook</code>, <code>Twitter</code>, <code>Stack Exchange</code>, <code>MyOpenID</code>...</p>
  
  <p>Now I am trying to add <code>Microsoft Live</code>, so I registered:</p>
  
  <pre><code>OAuthWebSecurity.RegisterMicrosoftClient("applicationID", "key");
  </code></pre>
  
  <p>and called</p>
  
  <pre><code>OAuthWebSecurity.RequestAuthentication("microsoft", Url.Action("Authorization", new { returnUrl = "/" }));
  </code></pre>
  
  <p>To this point everything is working fine, I get redirected to the login page. The problem is when I come back to</p>
  
  <pre><code>OAuthWebSecurity.VerifyAuthentication();
  </code></pre>
  
  <p>It says:</p>
  
  <blockquote>
    <p>The remote server returned an error: (400) Bad Request.</p>
  </blockquote>
  
  <p>What do I have to do?</p>