AWS Cognito x Facebook - Web Identify Federation - 应用程序域

AWS Cognito x Facebook - Web Identify Federation - App Domains

我在 AWS Cognito 和 Facebook 之间配置了 Web Identify Federation,当我尝试进行身份验证时收到以下错误消息:

"Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings."

我正在努力找出哪个是正确的 URL 我必须添加到应用程序域中。 我为 S3 上的静态网站及其 CloudFront URL 尝试了 URL,但它不起作用。 它需要一个正确的域名才能工作吗?

我只是在找一个例子。

谢谢,

卡洛斯

如果您直接在 Cognito 用户池中将 Facebook 配置为 IdP,那么您需要在应用中添加的 URL 是: https://your-user-pool-domain/oauth2/idpresponse

有关详细信息,请参阅 this 文档。

要添加更多信息,this is how you set up a domain and configure 您的应用。