AWS Custom Authorizer via django (drf) #250
Unanswered
ralliart2004
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a django lambda setup to be used as a lambda authorizer (not jwt) with simple response. I have another set of APIs that are not django that I want to put this in front of. So two separate repos and serverless.yml files.
I have everything working except API gateway as a lambda authorizer and simple response wants the return like this
return { 'statusCode': 200, 'isAuthorized': True }
Not like this
return { "statusCode": 200, "body": json.dumps({'isAuthorized': True}) }
I have ran tests and worked with AWS support. The
isAuthorized
is required on simple response and must not be wrapped in the body.Is there a way to do this currently? I think a flag should be able to be set for when generate_response is called it can determine if this is a lambda authorizer with simple response.
Thanks. Any feedback is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions