Closed hffmnn closed 4 months ago
Thanks for reporting the issue. Would you like to send a PR?
@bnusunny Sure, will do.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.
I have a Token authorizer in rust that returns a
ApiGatewayCustomAuthorizerResponse
like this:This version uses
aws_lambda_events = "0.15.0"
and works. Thepolicy_document
looks like this:Using current
main
it no longer works: Because of https://github.com/awslabs/aws-lambda-rust-runtime/pull/856 I updated theIamPolicyStatement
andIamPolicyEffect
.The code looks like this now:
This change breaks the authorizer and protected methods are no longer reachable, a response looks like this:
The only difference I see in the authorizers JSON response is that the
Condition
key is now in there, set to null:Add a
#[serde(skip_serializing_if = "Option::is_none")]
seems to fix the problem: