Closed pakito87 closed 2 years ago
Here is the documentation of different type of client side authentication for IoT - https://docs.aws.amazon.com/iot/latest/developerguide/client-authentication.html
We do not currently support passing presigned URL to the AWSIoTDataManager. You could use these apis defined here for connecting via different authentication mechanism.
State your question i want to establish a connection with the AWSIoTDataManager to subscribe topics, the problem is that i only have access to an authenticated WSS URL and the client ID.
Let me explain, before i establish the connection with the AWS IoT, i need to call a backend endpoint and provide my device UDID, the BE creates the thing on AWS services using my provided UDID and returns an authenticated wss url.
Example: wss://xxx-ats.iot.eu-central-1.amazonaws.com/mqtt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxxFeu-central-1%2Fiotdevicegateway%2Faws4_request&X-Amz-Date=20220208T141653Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=xx&X-Amz-Security-Token=xxxx
at this point, i have an authenticated wss url and the clientID(its my device UDID). After that, i have to establish the connection with the AWS IoT, but i don't have any poolID or regionID to create the AWSCognitoCredentialsProvider. How can i establish the connection with the iOT without these params? its possible?
Which AWS Services are you utilizing? AWSIoT
Provide code snippets (if applicable)
Environment(please complete the following information):