AWS Cognito Invalid identity pool configuration

前端 未结 7 862
半阙折子戏
半阙折子戏 2020-12-31 02:10

I am using the AWS Javascript API and trying to get the assigned cognito id:

AWS.config.credentials.get(function(err) {
    if (!err) {
        console.log(\         


        
7条回答
  •  半阙折子戏
    2020-12-31 02:39

    Check the "Trust Relationship" section of the role that is assigned to your Identity Pool, authentication users. Make sure you have policies defining access to your Cognito pool.

    The easiest way to get the requirement policy statements is,

    1. Edit the pool
    2. Create new role for identity pool
    3. In IAM edit this role to copy the policy statements
    4. Add these Trust Relationships to your required existing role

提交回复
热议问题