title: ASP.NET Identity - Token
body: <p>I am using ASP.NET Identity.</p>
  
  <p>I can issue tokens easily but now I want to add additional security requiring my clients to send the <code>client_id</code> and <code>client_secret</code>.</p>
  
  <p>So I am overriding the  <code>OAuthAutorizationProvider</code></p>
  
  <pre><code>public override async Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
      {
          string clientId;
          string clientSecret;
          if (context.TryGetBasicCredentials(out clientId, out clientSecret))
          {
              //My code here
          }
  
          context.Validated();
      }
  </code></pre>
  
  <p>The issue is that I cannot get the clientId and the ClientSecret from the <code>TryGetBasicCredentials</code> it's always <code>false</code> the result.</p>
  
  <p>Maybe I am missing something... </p>
  
  <pre><code>POST http://localhost:1323/token
  
  Host: localhost:1673
  Content-Length: 102
  Content-Type: x-www-form-urlencoded
  
  grant_type=password&amp;username=foo&amp;password=123456&amp;client_id=123&amp;client_secret=guess
  </code></pre>