aws / aws-lambda-go

Libraries, samples and tools to help Go developers develop AWS Lambda functions.
Apache License 2.0
3.58k stars 548 forks source link

Added support for Cognito pre token generation with access token customization #538

Closed AMZ-brandon closed 6 months ago

AMZ-brandon commented 6 months ago

Description of changes: Added CognitoEventUserPoolsPreTokenGenV2 event context. Version 2 of the pre token generation trigger introduces the ability to customize the access token. See https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html#cognito-user-pools-lambda-trigger-syntax-pre-token-generation

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (30d7c7e) 72.93% compared to head (849ad2a) 72.93%.

:exclamation: Current head 849ad2a differs from pull request most recent head 013dc2d. Consider uploading reports for the commit 013dc2d to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #538 +/- ## ======================================= Coverage 72.93% 72.93% ======================================= Files 26 26 Lines 1456 1456 ======================================= Hits 1062 1062 Misses 322 322 Partials 72 72 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.