-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apigateway.RequestAuthorizer: pass request body to authorizer function #28248
Comments
Is there any news?? |
Any update on if this is on the AWS road map at all for API Gateway? |
Any news? |
+1 |
1 similar comment
+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. |
+1 |
+1 AWS uses SivV4 for its own requests, but makes it impossible to proxy request to the resources using authorizer lambda. This is a limit of the API gateway itself I guess. As it's impossible to create in AWS console/cli as well. |
Amazing that something so basic is still sitting here for so long...... |
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
The text was updated successfully, but these errors were encountered: