title: Azure access token generation from Postman
body: <p>I wanted to generate Azure token from Postman for API authorization in my project. I am able to generate token using below API request but getting the below error message "<strong>Authorization denied for this request</strong>" while using the generated token in another API request.</p>
  
  <p><strong>Endpoint#</strong> </p>
  
  <pre><code>https://login.microsoftonline.com/:tenant_id/oauth2/token 
  </code></pre>
  
  <p><strong>Params#</strong></p>
  
  <pre><code>tenant_id:As per id generation by azure.
  </code></pre>
  
  <p><strong>Body#</strong> (Form-data)</p>
  
  <pre><code>grant_type:client_credentials
  client_id:As per id generation by azure.
  client_secret:As per id generation by azure.
  resource:Required URL
  </code></pre>
  
  <p><strong>Response#</strong></p>
  
  <pre><code>    "token_type": "Bearer",
      "expires_in": "foo",
      "ext_expires_in": "foo",
      "expires_on": "foo",
      "not_before": "foo",
      "resource": "foo",
      "access_token":foo
  </code></pre>
  
  <p>Since the above returned token is not accepted, I had passed username and password as well in body of the request but ended up with same results. Also azure did not consider my credentials even they are wrong.</p>
  
  <p>Could you please assist what else I need to send in the response to get valid token id?</p>