简体   繁体   中英

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

I finally solved it: the email attribute was not writable in the app client settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM