I am using AWS API Gateway and its HTTP proxy,
I need to transfer the authorization header to my endpoint via AWS API Gateway
Things I tried:
Setting method e.g.

Configure integration request

This does not work, my application does not receive the authorization header,
I also tried using a pattern matching
{
"method": "$context.httpMethod",
"body" : $input.json('$'),
"headers": {
"$param": "$util.escapeJavaScript($input.params().header.get($param))"
},
"queryParams": {
"$param": "$util.escapeJavaScript($input.params().querystring.get($param))"
},
"pathParams": {
"$param": "$util.escapeJavaScript($input.params().path.get($param))"
}
}
This also did not work.
Can someone give me some hint on how this can be done?
source
share