SuperEric
08/29/2023, 9:02 PMidentity_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:
# 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