aws-sdk-ios icon indicating copy to clipboard operation
aws-sdk-ios copied to clipboard

Custom endpoint without credentials

Open mendirattanishant opened this issue 7 years ago • 6 comments

I get the WebSocket url from AWS API. How do I connect to the web socket using that socket without using credentialsProvider? Is there a way?

My url is like let url = protocol + '://' + host + uri + '?' + canonicalQuerystring1

Service: AWS-IoT

mendirattanishant avatar Apr 13 '18 03:04 mendirattanishant

Is the URL already pre-signed for accessing your endpoint?

rohandubal avatar Apr 13 '18 21:04 rohandubal

It is pre signed.

mendirattanishant avatar Apr 13 '18 22:04 mendirattanishant

I believe there isn't a direct way to use a presigned URL for the MQTT client. I am taking this as a feature request to the team.

Could you use any other 3rd party MQTT client since you have a pre-signed URL?

Thanks, Rohan

rohandubal avatar Apr 16 '18 06:04 rohandubal

@rohandubal Yes. I am using MQTT-Client-Framework

https://github.com/novastone-media/MQTT-Client-Framework

mendirattanishant avatar Apr 24 '18 03:04 mendirattanishant

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 27 '18 23:09 stale[bot]

@mendirattanishant Sorry for the delayed response.

  1. Custom Auth: Have you considered using Custom Auth where you can setup a lambda function which validates the token and its signature and authenticates the connection? See IoT Custom Authentication for further details.

  2. Regarding your request, we have a backlog item to provide a) API to generate the presigned URL b) API to connect using a presignedURL.

Let me know if this helps.

mutablealligator avatar Feb 11 '19 21:02 mutablealligator

Closing due to no activity.

royjit avatar Dec 19 '22 18:12 royjit