Newly added attribute into attributeMapping is not showing up in Cognito

0

Hi!

In my implementation, first I added mapping for "email", "givenName" and "familyName" into attributetesMapping for Google identity provider. That worked as expected: I could see my Google user email, givenName and familyName as expected in Cognito. Now, I decided to add mapping for "gender":

attributeMapping: { email: cognito.ProviderAttribute.GOOGLE_EMAIL, givenName: cognito.ProviderAttribute.GOOGLE_GIVEN_NAME, familyName: cognito.ProviderAttribute.GOOGLE_FAMILY_NAME, gender: cognito.ProviderAttribute.GOOGLE_GENDER, }

After adding it into attributeMapping, I removed my Google user from Cognito, and logged in again (in my Google account, my gender is visible by anybody. User's profile info is accessible to apps, as long as the user has made those profile info publicly available: https://developers.google.com/identity/protocols/oauth2/scopes#oauth2). So, then when I go to the Cognito console, I expected that my gender would now should up, but the problem is that it does not. I still cannot see the gender in Cognito (although that user info of mine in my Google account is publicly available, visible to anyone). What am I missing?

Thanks a lot!

rdev
質問済み 5ヶ月前58ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ