我想使用社交身份提供商 (Google) 登录,并且在成功验证后,我需要将 Google Auth Token 传递给 Cognito 用户池以在其中创建新用户。可能吗?如果是,我们如何实现它?
我认为以下是步骤
- 使用 Google 登录并获取 Google Auth Token
- 将其发送到 AWS Cognito 用户池以创建用户
参考,我经历过
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/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