4

我想使用社交身份提供商 (Google) 登录,并且在成功验证后,我需要将 Google Auth Token 传递给 Cognito 用户池以在其中创建新用户。可能吗?如果是,我们如何实现它?

我认为以下是步骤

  1. 使用 Google 登录并获取 Google Auth Token
  2. 将其发送到 AWS Cognito 用户池以创建用户

参考,我经历过

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html

https://docs.amazonaws.cn/en_us/cognito/latest/developerguide/cognito-user-pools-social-idp.html

https://docs.aws.amazon.com/cognito/latest/developerguide/google.html

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-integrating-user-pools-with-identity-pools.html

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-scenarios.html

https://aws-amplify.github.io/docs/android/authentication

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html

https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-integrating-user-pools-android.html

4

1 回答 1

0

弄清楚这一点也遇到了很多麻烦。

检查此链接,它可能会有所帮助。

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html#cognito-user-pools-social-idp-step-1

于 2021-02-10T01:38:48.260 回答