aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.59k stars 1.55k forks source link

Is is possible to use aws-sdk-js with react-native for authentication via secrets and certificates? #2288

Closed AntonSmatanik closed 6 years ago

AntonSmatanik commented 6 years ago

Is is possible to use aws-sdk-js with react-native for authentication via secrets and certificates?

With aws-iot-device-sdk I just set it like:

awsIot.device({ keyPath: awsConfig.broker.keyPath, certPath: awsConfig.broker.certPath, caPath: awsConfig.broker.caPath, host: awsConfig.broker.endpoint, clientId: uuid.v4(), baseReconnectTimeMs: awsConfig.broker.reconnect, maximumReconnectTimeMs: awsConfig.broker.maximumReconnect, })

Question is if something like this is possible with React Native...

srchase commented 6 years ago

Hello @AntonSmatanik,

Yes, this SDK works with React Native. Check out the blog post by @chrisradek on React Native Support.

AWS Amplify also works with React Native.

AntonSmatanik commented 6 years ago

That is nice, but is there some example how to set device with secrets and certificates? Need to use it with broker.

srchase commented 6 years ago

@AntonSmatanik

This SDK allows you to administer IoT Devices, but does not include any functionality to act as a device via MQTT.

AWS Amplify does include a PubSub module, but I suspect that might not fit your use case as you're wanting to use certificates for authentication.

no-response[bot] commented 6 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.