title: How to pass API Gateway authorizer context to a HTTP integration
body: <p>I have successfully implemented a Lambda authorizer for my AWS API Gateway, but I want to pass a few custom properties from it to my Node.js endpoint.</p>
  
  <p>My output from my authorizer follows the format specified by AWS, as seen below.</p>
  
  <pre><code>{
    "principalId": "yyyyyyyy",
    "policyDocument": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Action": "execute-api:Invoke",
          "Effect": "Allow|Deny",
          "Resource": "arn:aws:execute-api:&lt;regionId&gt;:&lt;accountId&gt;:&lt;appId&gt;/&lt;stage&gt;/&lt;httpVerb&gt;/[&lt;resource&gt;/&lt;httpVerb&gt;/[...]]"
        }
      ]
    },
    "context": {
      "company_id": "123",
      ...
    }
  }
  </code></pre>
  
  <p>In my case, <code>context</code> contains a few parameters, like <code>company_id</code>, that I would like to pass along to my Node endpoint.</p>
  
  <p>If I was to use a Lambda endpoint, I understand that this is done with Mapping Template and something like this:</p>
  
  <pre><code>{
    "company_id": "$context.authorizer.company_id"
  }
  </code></pre>
  
  <p>However, Body Mapping Template is only available under Integration Request if Lambda is selected as Integration type. Not if HTTP is selected.</p>
  
  <p>In short, how do I pass <code>company_id</code> from my Lambda authorizer to my Node API?</p>