javascript - 在向我的用户池注册新用户时,我的 IdentityPoolID 是什么?

标签 javascript debugging amazon-web-services

我感到非常困惑和沮丧。在以下显示如何使用 Javascript SDK 将新用户注册到用户池的链接中,您将看到:

AWS.config.region = 'us-east-1'; // Region
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
    IdentityPoolId: '...' // your identity pool id here
});

AWSCognito.config.region = 'us-east-1';
AWSCognito.config.credentials = new AWS.CognitoIdentityCredentials({
    IdentityPoolId: '...' // your identity pool id here
});

http://docs.aws.amazon.com/cognito/latest/developerguide/using-amazon-cognito-user-identity-pools-javascript-examples.html#using-amazon-cognito-user-identity-pools-javascript-examples-confirm-registration

但是,我在 AWS 控制台 Cognito 区域中找不到任何以 IdentityPoolId 名称调用自身的内容,这让我不确定应该在 IdentityPoolId 字段中输入什么内容。如果我输入像“1234”这样的随机字符串作为 IdentitiyPoolId,则会弹出以下错误:

ValidationException: Missing credentials in config

但是如果我输入类似的内容:

us-east-1:758097645222

我收到此错误:

ResourceNotFoundException: Missing credentials in config

我应该输入什么作为我的identityPoolId,在哪里可以找到它以及这两个不同错误的来源是什么?!

谢谢

最佳答案

To get an identity pool id you should use the "Manage Federated Identities" parts of the Cognito console not the "Manage User Pools" section

来源:https://stackoverflow.com/a/37224093/1198079

关于javascript - 在向我的用户池注册新用户时,我的 IdentityPoolID 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37984108/

相关文章:

hadoop - 如何设置YARN NodeManager的nodeID?

c# - AWS 环境中的 WCF UserNameTransport 错误 - 收到不安全或不正确保护的故障

javascript - 在窗口关闭时发送通知

javascript - 从表单选项获取 ID 并用它填充多个字段

javascript - 要数组的对象数组

Android:Eclipse MAT 似乎没有显示我应用程序的所有对象

c - 在gdb中,是否可以找出哪个内存地址具有某个值?

c++ - Visual Studio 2015 : Build successful but debugging never stops loading

amazon-web-services - 我如何(可以)配置 AWS SNS HTTP 请求超时?

javascript - 将项目从 Babel v5 升级到 v6+ 时出现 "TypeError not a constructor"