I expected the authorizerFunc to be passed the full HTTP request from AWS API Gateway, since I’m using the default lambda-proxy method. But instead the function is only receiving the Authorization header as a TOKEN.
It looks like the “TOKEN” type is hardcoded into Serverless:
This being the case, how can I get the HTTP request parameters into the Authorizer function? I’m getting the request in the run function itself, as expected due to lambda-proxy.
I made the changes per the docs, but deployment would fail:
Serverless: Checking Stack update progress...
.........................
Serverless: Operation failed!
Serverless Error ---------------------------------------
An error occurred: myAuthorizer - URI is a required field in an Authorizer.
Stack Trace --------------------------------------------