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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠