Issue with FederatedSignIn using Google: Error Description - "attributes required phone_number"

0

Hello AWS Community,

I hope this message finds you well. I'm currently facing an issue while implementing FederatedSignIn with Google in my React app. The specific error I'm encountering is:

error_description=attributes+required+phone_number

To provide some context, I've configured the required attributes in my user pool as follows:

Required attributes:

given_name family_name phone_number Despite my efforts, I am struggling to resolve the issue related to the "phone_number" attribute. I've added the scope /auth/user.phonenumbers.read to the Google client, but I'm still unable to retrieve the phone_number.

Here's a snippet of my OAuth configuration:

oauth: {
  domain: DOMAIN_URL,
  scope: ["phone", "email", "profile", "openid"],
  redirectSignIn: "http://localhost:3000/", // Add your actual redirect URL for development
  redirectSignOut: "http://localhost:3000/", // Add your actual redirect URL for development
  responseType: "code",
},

I'm reaching out to the community seeking assistance, and I'm open to suggestions on how to address this issue. Here are the solutions I'm considering:

Find a way to remove the "phone_number" attribute from the user pool. Find a way to retrieve the phone number from Google sign-in. Explore the option of creating a new user pool and moving all users to the new user pool. If you have encountered a similar issue or have expertise in this area, I would greatly appreciate any insights or guidance you can provide to help me resolve this challenge.

Thank you in advance for your time and assistance!

Best regards,

Arian
已提问 5 个月前110 查看次数
1 回答
0

Anyone with a solution for this?

Arian
已回答 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则