1 Answer
- Newest
- Most votes
- Most comments
1
Just an update, I manage to resolve this by making a simple change to remove the async function.
Updated function is below should anyone else come across this issue.
public APIGatewayCustomAuthorizerResponse MyFunction(APIGatewayProxyRequest request, ILambdaContext context) { request.Headers.TryGetValue("Authorization", out var credentials); // Do stuff return new APIGatewayCustomAuthorizerResponse { PrincipalID = "enterHere", PolicyDocument = new APIGatewayCustomAuthorizerPolicy { Statement = new List<APIGatewayCustomAuthorizerPolicy.IAMPolicyStatement> { new() { Action = actions, Effect = effect, Resource = resources } } } }; }
Thanks for anyone who was taking a look.
answered 5 months ago
Relevant content
- asked 2 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Just an update, I manage to resolve this by simple making changes so the function doesn't need to be async.
Updated function is in the post should anyone else come across this issue.
Thanks for anyone who was taking a look.