title: How to get Access token via HTTP action in Flow
body: <p>I'm trying to authenticate against an App Service that I have defined in Azure Active Directory. When accessing it, I first get the access token and the continue with the rest of the OAuth procedure.</p>
  
  <p>The problem, however, is that I can only get the token when posting the request via Postman. When I try to call the same URL, with the same data using an HTTP action in flow, it fails:</p>
  
  <pre><code> {
    "error": "invalid_client",
    "error_description": "AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.\r\nTrace ID: 67250fbf-ad20-47f1-b3a3-dbce1e813600\r\nCorrelation ID: f9eaaa13-cee3-4f5c-a96a-6846c4392dd9\r\nTimestamp: 2018-01-17 12:21:51Z",
    "error_codes": [
      70002,
      50012
    ],
    "timestamp": "2018-01-17 12:21:51Z",
    "trace_id": "67250fbf-ad20-47f1-b3a3-dbce1e813600",
    "correlation_id": "f9eaaa13-cee3-4f5c-a96a-6846c4392dd9"
  }
  </code></pre>
  
  <p>This is how it is set up in Flow:</p>
  
  <p><a href="https://i.stack.imgur.com/WCjfx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WCjfx.png" alt="enter image description here"></a></p>
  
  <p>When executed in Postman it works just fine:</p>
  
  <p><a href="https://i.stack.imgur.com/wx6SF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wx6SF.png" alt="enter image description here"></a></p>
  
  <p>I cannot figure out why this doesn't work when running the request from within a Flow. Am I missing something in the HTTP action card configuration?</p>
  
  <p>Kind regards,
  Peter</p>