我感到非常困惑和沮丧。在以下显示如何使用 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
});
但是,我在 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
关于javascript - 在向我的用户池注册新用户时,我的 IdentityPoolID 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37984108/