Retrieving JWT Claims from Amazon.Lambda.Annotations #1604
-
Hi, Using Thanks to the annotations, the following code
is reduced to
In the "old" way of doing things, to retrieve JWT claims, I would use Many thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@danielwagstaff Amazon.Lambda.Annotations simplifies the programming model of writing Lambda functions, hiding the complexity of managing CCing @normj for inputs. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
It appears I'd missed a trick! I'm not in a position to deploy and test this at the moment, but by using dotPeek, I could look at the generated code.
If I update my test function to accept the
APIGatewayHttpApiV2ProxyRequest
object, like so:I can see that the source generated code is: