You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #241 on October 05, 2023 09:36.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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