如何将Cognito用户池与Facebook等外部提供商结合使用? [英] How to combine Cognito User Pools with external providers like Facebook?

查看:85
本文介绍了如何将Cognito用户池与Facebook等外部提供商结合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,Cognito拥有支持Facebook等外部提供商的身份池。

So far Cognito has identity pools that support external providers like Facebook.

现在有Cognito用户池-我想使用。

Now there is Cognito User Pools - which I would love to use.

但是我不知道如何同时支持-Cognito用户池和Facebook之类的外部提供商。

But I can't figure out how to support both - Cognito User Pools and external providers like Facebook.

似乎身份池和用户池是分开的东西,我看不到如何将它们放在一起。

It seems Identity Pools and User Pools are separated things and I can't see how to put them together.

因此,简而言之,我希望我的用户能够使用Facebook登录或用户池。

So in short, I want my users to be able to either sign in with Facebook or User Pools.

任何人都知道是否有可能?

Anybody has any idea if it is even possible?

推荐答案

您可以将Cognito用户池添加为Cognito联合身份池中的身份提供者。

You can add your Cognito User Pool as an Identity Provider in your Cognito Federated Identity Pool.

步骤:

(1)创建用户池,记下用户池ID和App Client ID

(2)导航到Cognito联合身份控制台。

(3)创建/编辑联合身份池时,展开身份验证提供程序

(4)单击Cognito选项卡

(5)输入用户池ID和App Client ID。

(1) Create your user pool, note down your User Pool Id and App Client Id
(2) Navigate to the Cognito Federated Identity console.
(3) When Creating/Editing a Federated Identity Pool, expand "Authentication providers"
(4) Click the Cognito Tab
(5) Enter User Pool Id and App Client Id.

然后您将使用Cognito用户就像您将使用Amazon,Facebook,Google,Twitter或任何OIDC提供商一样使用池。

Then you will use Cognito User Pools just like you would use Amazon, Facebook, Google, Twitter, or any OIDC provider.

此博客文章应提供帮助: http://mobile.awsblog.com/post/TxGNH1AUKDRZDH/Announcing-Your-User-Pools -in-Amazon-Cognito

This blog post should help: http://mobile.awsblog.com/post/TxGNH1AUKDRZDH/Announcing-Your-User-Pools-in-Amazon-Cognito

这篇关于如何将Cognito用户池与Facebook等外部提供商结合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆