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

ValidationData field added to CognitoEventUserPoolsMigrateUserRequest #351

Merged
merged 3 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions events/cognito.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ type CognitoEventUserPoolsPostAuthenticationResponse struct {
// CognitoEventUserPoolsMigrateUserRequest contains the request portion of a MigrateUser event
type CognitoEventUserPoolsMigrateUserRequest struct {
Password string `json:"password"`
ValidationData map[string]string `json:"validationData"`
ClientMetadata map[string]string `json:"clientMetadata"`
}

Expand Down
7 changes: 5 additions & 2 deletions events/testdata/cognito-event-userpools-migrateuser.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
},
"request": {
"password": "<password>",
"validationData": {
"exampleMetadataKey": "example metadata value"
},
"clientMetadata": {
"exampleMetadataKey": "example metadata value"
}
}
},
"response": {
"userAttributes": {
Expand All @@ -27,4 +30,4 @@
],
"forceAliasCreation": true
}
}
}