'AWS Cognito annd Google Attribute Mapping suddenly doesn't work anymore
My application uses Cognito and Google as a social auth provider. Everything works fine except that email attribute is not mapped anymore. It was working before on my development AWS account, and now I deployed it on another account which is our production AWS account. Everything is deployed via CloudFormation so human error is limited.
Signup via Google works fine, the only thing is that the email attribute is not mapped anymore. I tried with the same google oauth keys so the problem does not comes from the Google configuration side. I still request email, profile and openid scopes, both in my client app and Cognito settings, and Google email attribute is mapped in Cognito config.
After a user signed up, I can see him in the Cognito Console, mapped to its Google account, but the email attribute is not set. I am stuck for 2 days now, I compared all Cognito settings with the development AWS account and it is all exactly the same, I don't know what else to do.
Any help would be very appreciated.
Thanks
Solution 1:[1]
I finally solved it: the email attribute was not writable in the app client settings.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Damien Monni |




