How do I use AWS Cognito Authenticated Authentication to access my AWS IoT endpoint?

I use the MQTT client in JavaScript (paho-mqtt-js) to connect to the AWS IoT endpoint, and I can connect if I use my own AWS credentials.

However, if I use the credentials generated by Cognito for the registered user, I cannot do this. My authorized Cognito role in IAM has an "AWSIoTFullAccess" policy associated with it, so I'm confused about why these credentials return a 403 error every time.

Any help regarding this would be greatly appreciated.

+6
source share
1 answer

A similar issue has been discovered when working with federated identity. Some troubleshooting tips:

Hope this helps!

0
source

All Articles