From API Gateway, I created a custom authorizer for my API using Lambda function in python. API Gateway hands over the incoming auth token using a header I configure(m
m
Here is a SAM template:
ApiGatewayApi: Type: AWS::Serverless::Api Properties: StageName: Prod Auth: Authorizers: MyAuthorizer: FunctionPayloadType: REQUEST FunctionArn: !GetAtt AuthLambda.Arn Identity: Headers: - X-API-KEY - X-API-ID