Hi rp, I'm following this guide to create a lambda...
# support-questions-legacy
s
Hi rp, I'm following this guide to create a lambda authorizer and attach it to an API Gateway endpoint https://supertokens.com/docs/emailpassword/serverless/with-aws-lambda/authorizer I've created the lambda function with the specified source code in python and deployed it to AWS. I've also attached this authorizer to a route in the API Gateway and confirmed that the API Gateway has the correct permissions to access the lamda. Hitting the route that the authorizer is attached to though things are not working. With an empty
identity_sources
as the doc perscribes, the request to the authorizer proctected endpoint returns a 500. If the default identity source is provided, the a 401 is returned, but no logs from the lambda are created. In the documentation for the lambda python code, I am wondering what these lines mean:
Copy code
# This route will act as the authorizer for API Gateway
@app.get("/{full_path:path}")
def handle_auth(request: Request, full_path: str):
The route is a
get
but it takes in a
request
as a parameter. I wouldn't expect to need an additional route inside the authorizer and I'm not sure what {full_path:path} should be changed to, if anything. I have set up a route in the api gateway for the specified route, and I can hit that route directly which tells me that permissions are correct. But as stated hitting a route that the authorizer is attached to does not even produce logs. Any clarification for this would be helpful
11 Views