aws-amplify / aws-sdk-ios

AWS SDK for iOS. For more information, see our web site:
https://aws-amplify.github.io/docs
Other
1.68k stars 885 forks source link

Custom IoT Authorizer for iOS SDK? #1112

Closed spencerkohan closed 5 years ago

spencerkohan commented 5 years ago

Which AWS Services is the feature request for?

iOS SDK: AWSIoT component

Is your feature request related to a problem? Please describe.

Currently we are using a custom IoT authorizer for our system, and there does not seem to be support to access this (i.e. to get a thing shadow, to subscribe to MQTT topics) using the iOS SDK.

Custom IoT authorizers are a supported, documented feature of AWS however there does not appear to be support in the mobile SDKs.

Describe the solution you'd like

We would like to be able to provide custom headers for connecting to AWS IoT as is already possible in the node SDK:

https://github.com/aws/aws-iot-device-sdk-js#custom-authorization-configuration

I suppose this would be somehow required in the initialization of the AWSIoTDataManager.

Also, if you can provide any guidance on a workaround using the current SDK it would be much appreciated.

frankmuellr commented 5 years ago

Hello @spencerkohan,

we'll take this a feature request and repot back when it's implemented.

ambarc commented 5 years ago

+1 to this feature request.

johnflanagan-spok commented 5 years ago

+1 Could this support also be added to the web socket connect methods?

ambarc commented 5 years ago

Btw - I tested custom authorizers over websockets with some modifications to the SDK code. Will see if I can get cycles to get a PR together.

mutablealligator commented 5 years ago

@spencerkohan @ambarc @johnflanagan-spok This feature has been released in 2.8.4 version of the SDK. Here is the documentation for using custom authorizer: SDK Documentation and Launch Announcement.

Please let us know if you have any feedback.

stale[bot] commented 5 years ago

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.