Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Device ID validation #15

Open
rbino opened this issue Oct 6, 2020 · 0 comments
Open

Add Device ID validation #15

rbino opened this issue Oct 6, 2020 · 0 comments

Comments

@rbino
Copy link
Collaborator

rbino commented Oct 6, 2020

Currently the SDK does not validate the device ID and since it uses it to build the publish topic (instead of reading the certificate Common Name, like other SDKs) this could lead to devices being disconnected at the broker level (since they try to subscribe to topics for which they're not authorized).

The SDK should perform validation on the provided Device ID, and should possibly also use the Common Name of the certificate received from Pairing API as base for the device topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant