Skip to content

Add Event Definition for CognitoEventUserPoolsPreTokenGenV2 #764

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

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

benbpyle
Copy link
Contributor

Pull request in support of #763

With the Cognito release to support customizing Access tokens described here, a new Payload definition is required. The structs in this PR support the described request and response in the AWS Documentation. The V2 payloads allow for customization of the Access Token in addition to the ID Token which was already supported

No changes were made to the original structs.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

The added structs allow for the processing of Version 2 Cognito PreToken generation in a Lambda

The V2 payloads allow for customization of the Access Token in addition to the ID Token which was already supported
Copy link
Contributor

@calavera calavera left a comment

Choose a reason for hiding this comment

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

thanks a lot!

@calavera calavera merged commit 3b32d09 into awslabs:main Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants