简体   繁体   English

如何使用社交身份提供程序在用户池中创建用户?

[英]How to create user in user pool using social identity provider?

I want to login with social identity provider (Google) and after successful authentication , I need to pass Google Auth Token to Cognito User pool to create new user in it.我想使用社交身份提供商 (Google) 登录,并且在成功验证后,我需要将 Google 身份验证令牌传递给 Cognito 用户池以在其中创建新用户。 Is it possible?是否可以? If yes, How can we achieve it?如果是,我们如何实现它?

I think below are steps我认为以下是步骤

  1. Login with Google and get Google Auth Token使用 Google 登录并获取 Google Auth Token
  2. Send it to AWS Cognito User pool to create user将其发送到 AWS Cognito 用户池以创建用户

Ref, I went through参考,我通过了

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html 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.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/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/amazon-cognito-integrating-user-pools-with-identity-pools.html

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

https://aws-amplify.github.io/docs/android/authentication 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/cognito-user-pools-social-idp.html

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

Had a lot of trouble figuring this out too.弄清楚这一点也遇到了很多麻烦。

Check this link, it might be helpful.检查此链接,它可能会有所帮助。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Cognito Identity对我的身份/用户池进行身份验证? - How can i authenticate to my Identity/User Pool with Cognito Identity? 在android中使用Cognito Identity集成用户池 - Integerate User pool with Cognito Identity in android 将社交身份联合用户身份验证到AWS Userpool? - Android - Authenticate social identity federation user to AWS Userpool? - Android 在Android中处理AWS User Pool + Fedration Identity令牌刷新系统 - Handling AWS User Pool + Fedration Identity token refresh system in android 如何跨用户个人资料创建内容提供商? - How to create content-provider across user profiles? 如何检查用户是否使用匿名提供程序进行了身份验证 - How do I check if the user is authenticated using anonymous provider 如何为Firebase身份验证创建新的联合身份提供程序 - How should I create a new Federated Identity Provider for Firebase Authentication 使用GPS提供程序找不到用户的当前位置 - Current location of user is not finding using GPS Provider 无法使用GPS_PROVIDER / NETWORK_PROVIDER获取用户位置 - Not getting user location using GPS_PROVIDER / NETWORK_PROVIDER 我什么时候需要使用 AWS 创建用户池? - When do I need to create a user pool with AWS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM