I have successfully set up a user pool and an identity pool.
Utilizing the JavaScript SDK, I can successfully signup, send confirmation codes, and confirm users.
However, I encounter an error when trying to authenticate a user and retrieve credentials using "CognitoIdentityCredentials" by passing the idToken with the following code:
logins[cognitoEndpoint + "/" + userPoolId] = jwtToken;
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
IdentityPoolId: identityPoolId,
Logins: logins
});
The error message I receive is:
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.<anonymous> (aws-sdk.js:104859)
at Request.<anonymous> (aws-sdk.js:105123)
at Request.callListeners (aws-sdk.js:106070)
I have granted administrator access to the "Unauthenticated role" and "Unauthenticated role" within the identity pool, as well as to the user whose credentials I am using.
As a newcomer to AWS, I would appreciate any insight into what I might be overlooking.
Your assistance is greatly appreciated.