title: Invalid request. Request is malformed or invalid. While getting Access Token From Azure
body: <p>I am trying to Get access token from Azure AD. For that I have performed below Steps</p>
  
  <p>1) Created an Enterprise application on Azure Active Directory</p>
  
  <p><a href="https://i.stack.imgur.com/ltxvL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ltxvL.png" alt="enter image description here"></a></p>
  
  <p>2) I am able to get the Access token using Authorisation --->> 'Get New Access token'</p>
  
  <p><a href="https://i.stack.imgur.com/BiAkk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BiAkk.png" alt="enter image description here"></a></p>
  
  <p>3) Hit the 'POST' request for <code>https://login.microsoftonline.com/&lt;Application ID&gt;/oauth2/token</code> URL</p>
  
  <p>Have Configured below for POST Body</p>
  
  <ul>
  <li>Authorization TYPE is OAuth 2.0</li>
  <li>Passed the Body using 'form-data' as below
  <a href="https://i.stack.imgur.com/yfKfu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yfKfu.png" alt="enter image description here"></a></li>
  </ul>
  
  <p>ClientID is ApplicationID from Application created at 1st step</p>
  
  <p>Code is Also ApplicationID from Application created at 1st step</p>
  
  <p>Not sure if I have configured it correctly</p>
  
  <p>4) Using Same access code when I try to send an Request I am getting below error response </p>
  
  <pre><code>`{
      "error": "invalid_grant",
      "error_description": "AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: 60b8fb68-40d5-43da-9b7b-36de021c2900\r\nCorrelation ID: 90ed2f2c-1ac8-4044-8742-493a3fce51be\r\nTimestamp: 2019-07-03 12:42:32Z",
      "error_codes": [
          9002313
      ],
      "timestamp": "2019-07-03 12:42:32Z",
      "trace_id": "60b8fb68-40d5-43da-9b7b-36de021c2900",
      "correlation_id": "90ed2f2c-1ac8-4044-8742-493a3fce51be"
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9BJbv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9BJbv.png" alt="enter image description here"></a></p>
  
  <p>Please let me know where I am wrong or something needs to be changed.</p>