title: AWS : Invalid identity pool configuration. Check assigned IAM roles for this pool
body: <p>I have created one user pool &amp; identity pool.</p>
  
  <p>I have used javascript sdk. </p>
  
  <p>I am able to signup, send confirmation code &amp; confirm user successfully with javascript sdk.</p>
  
  <p>But when i try to sign in user with authenticate method &amp; try to get credentials with "CognitoIdentityCredentials" by passing idToken with below code</p>
  
  <pre><code>logins[cognitoEndpoint + "/" + userPoolId] = jwtToken;
  
      AWS.config.credentials = new AWS.CognitoIdentityCredentials({
        IdentityPoolId: identityPoolId,
        Logins: logins
      });
  </code></pre>
  
  <p>it's giving me below error</p>
  
  <pre><code>Error: Invalid identity pool configuration. Check assigned IAM roles for this pool.
      at Request.extractError (aws-sdk.js:104063)
      at Request.callListeners (aws-sdk.js:106060)
      at Request.emit (aws-sdk.js:106034)
      at Request.emit (aws-sdk.js:105121)
      at Request.transition (aws-sdk.js:104843)
      at AcceptorStateMachine.runTo (aws-sdk.js:108480)
      at aws-sdk.js:108492
      at Request.&lt;anonymous&gt; (aws-sdk.js:104859)
      at Request.&lt;anonymous&gt; (aws-sdk.js:105123)
      at Request.callListeners (aws-sdk.js:106070)
  </code></pre>
  
  <p>I have given administrator access to "Unauthenticated role" &amp; "Unauthenticated role"  of identity pool and to user whose credentials i am using.</p>
  
  <p>I am new to aws. Can anyone tell me what am i missing?</p>
  
  <p>Any help would be appreciated.</p>