I am using AWS API Gateway for Communicating with Action on Google Console to AWS Lambda. In this scenario I am making a post call and I want to find the user in this call. I came to know that this is sent in the header. So I did the Following Steps:
- Created a resource and method and that's working fine data is being passed successfuly between each other.
- Now I want to pass the header to find the user so what I did was I use the authorizer from AWS API gateway console and then clicked on Create a authorizer.
- Now I am confused in this scenario I want a header and body so what should I send it has in Lambda Event Payload.
- Either Token or payload in case of token it's only sending the authorization part as a header.
- So According to my understanding In my scenario I'll be needing Request. But in request what should I add as Identity Sources for header in the console.