title: invalid_grant - type = password: user or admin has not consented to use the application
body: <p>I am getting a consent error when trying to obtain a token. Because of our application, we can't show an interactive dialog to give consent.</p>
  
  <blockquote>
    <p>"AADSTS65001: The user or administrator has not consented to use the
    application with ID &lt;'my native client app id'>. Send an
    interactive authorization request for this user and resource.</p>
  </blockquote>
  
  <pre><code>AuthenticationContext ctx = new AuthenticationContext(
  string.Format("https://login.microsoftonline.com/{0}","mytenant.onmicrosoft.com"));
  UserPasswordCredential cred = new UserPasswordCredential("login@mytenant.onmicrosoft.com", "Password");
  var result = ctx.AcquireTokenAsync("my api uri", "my native client id", cred);
  </code></pre>
  
  <p>We are using the <code>grant_type=password</code> and <code>client_id</code> is a Native app id, and <code>resource</code> is the Web API app URI.  </p>
  
  <p>Permissions-wise, from the client app, a delegated permission has been given to  access the api app and have also tried setting <code>oauth2AllowImplicitFlow : true</code> in the manifest. </p>
  
  <p>All applications have been created in the new preview Azure AD section of the new portal (portal.azure.com)</p>