-
Notifications
You must be signed in to change notification settings - Fork 412
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
PreTokenGenerationTriggerEvent => claims_to_suppress : NoneType' object does not support item assignment #870
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
hey @filol thank you so much for filing this. Would you happen to have a copy of the event with any sensitive data redacted to help us reproduce/test it? Thank you! |
I will have a look @filol and try to include it in our test coverage to be sure we don't regress. |
@filol was |
@filol - i have PR (#878) that could fix this, if you could verify that the event did some from a real integration test and that is looks something like this: {
"version": "1",
"triggerSource": "TokenGeneration_Authentication",
"region": "us-west-2",
"userPoolId": "us-west-2_example",
"userName": "testqq",
"callerContext": {
"awsSdkVersion": "aws-sdk-unknown-unknown",
"clientId": "71ghuul37mresr7h373b704tua"
},
"request": {
"userAttributes": {
"sub": "0b0a57c5-f013-426a-81a1-f8ffbfba21f0",
"email_verified": "true",
"cognito:user_status": "CONFIRMED",
"email": "test@mail.com"
},
"groupConfiguration": {
"groupsToOverride": [],
"iamRolesToOverride": [],
"preferredRole": null
}
},
"response": {
"claimsOverrideDetails": null
}
} |
Hi @michaelbrewer, I don't have the event right now on the hand. I will come back to you with my sample monday |
@michaelbrewer There is my event from aws, so yes claimsOverrideDetails is null by default {
"version": "1",
"triggerSource": "TokenGeneration_RefreshTokens",
"region": "eu-west-1",
"userPoolId": "eu-west-1_xxxxxxxxx",
"userName": "xxxxxxxxxx",
"callerContext": {
"awsSdkVersion": "aws-sdk-unknown-unknown",
"clientId": "xxxxxxxxxxxxxxxxxxxxxxxxx"
},
"request": {
"userAttributes": {
"sub": "c7605922-xxxx-xxxx-a402-881ba30eeabc",
"zoneinfo": "UTC",
"cognito:email_alias": "xxxx",
"cognito:user_status": "CONFIRMED",
"email_verified": "true",
"phone_number_verified": "false",
"family_name": "xxxx",
"email": "xxxx"
},
"groupConfiguration": {
"groupsToOverride": [
"xxx",
"xxx",
],
"iamRolesToOverride": [],
"preferredRole": null
}
},
"response": {
"claimsOverrideDetails": null
}
}
|
Now released as part of 1.23 version |
What were you trying to accomplish?
I'm currently trying to add some claims to suppress to the token in the event object. Working with manual way (without your lib).
Expected Behavior
No exception
Current Behavior
Exception
Possible Solution
Steps to Reproduce (for bugs)
Environment
The text was updated successfully, but these errors were encountered: