Open mdvertola opened 11 months ago
Is there any news??
Any update on if this is on the AWS road map at all for API Gateway?
Any news?
+1
+1
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue.
Describe the feature
Add the ability to pass the incoming event body into a custom authorization function.
Use Case
For certain authorization processes (e.g., some signature-based authorization mechanisms), oftentimes the request body is required (and abstracted away from a developer's control to add to headers). As a result, it is required in certain circumstances to pass this event body into a custom authorization function.
Proposed Solution
As we can currently do with the headers of a request, add the ability to do the same with the event body.
Other Information
Not sure if this is even a possibility with the underlying apigw lambda authorizer setup or if this approach/ design makes sense in the long term but it would be awesome if in some way we can get that event body into the authorizer function!
Also, apologies if this is already possible with cdk! I did some digging in docs around this construct and some of the adjacent ones it touches/ stack overflow searching and could find anything about how to get it setup!
Acknowledgements
CDK version used
2.113.0
Environment details (OS name and version, etc.)
MacOS 14.1.2