Skip to content
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

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

Merged
merged 5 commits into from
Dec 20, 2023

Conversation

AMZ-brandon
Copy link
Contributor

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.

@@ -13,54 +13,62 @@ type CognitoEvent struct {
Version int `json:"version"`
}

// CognitoDatasetRecord represents a record from an AWS Cognito Sync event
// CognitoDatasetRecord represents a record from an Amazon Cognito Sync event
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the doc fixes too!

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

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

❗ 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
@@           Coverage Diff           @@
##             main     #538   +/-   ##
=======================================
  Coverage   72.93%   72.93%           
=======================================
  Files          26       26           
  Lines        1456     1456           
=======================================
  Hits         1062     1062           
  Misses        322      322           
  Partials       72       72           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bmoffatt bmoffatt added enhancement type/events issue or feature request related to the events package labels Dec 19, 2023
@bmoffatt bmoffatt merged commit 326401a into aws:main Dec 20, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type/events issue or feature request related to the events package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants