I am trying to build a realtime mqtt applicationthat sends data from mobile devices to a backend that handles that data. How can I best implement an identification in these mqtt streams? I mean, how can I know what data is from which device/user? Should I make multiple streams or should I put a variable in the stream that identifies the user?
How to authenticate mqtt streams?
294 Views Asked by Ken Vernaillen At
1
There are 1 best solutions below
Related Questions in AUTHENTICATION
- Access roles from multiple applications
- Different storyboard's entry points depending on a parameter
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- sendxmpp not authorized failure (Error AuthSend)
- Retrieve user information from Active Directory on login
- Log in through active directory
- Ember.js REST Auth Headers
- Validate Deezer access token on server
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- Laravel - session data survives log-out/log-in, even for different users
- How can I share Azure Active Directory authentication between server side and client script?
- django rest framework - token authentication logout
- NameValuePair, HttpParams, HttpConnection Params deprecated on server request class for login app
- How to delete user from _User through Parse REST API
- Cannot login with new SQL User - SQL 2014
Related Questions in MQTT
- I want to dump data which is received by MQTT broker to the sqlite3 db provided by Django/
- I received the last message on MQTTkit ios
- Trouble interfacing/communicating between Arduino Block and Intel Edison
- Which Spring Integration Channel should be used for MQTT
- Implementing an MQTT broker
- gatling stress testing on AWS, threads staying in active
- IOT Mosquitto mqtt how to test on localhost
- How to Produce from MQTT and consume as MQTT and JMS in ActiveMQ
- MQTT topic match evaluation
- Thread issue while subscribing to MQTT in Python using Paho MQTT
- mosquitto_pub: error while loading shared libraries: libmosquitto.so.1: cannot open shared object file: No such file or directory
- node mosca mqtt Browserify I don't get message in the broker
- Node-RED, IOT Foundation Out Node Not Sending Commands
- Socket io + MTQQ
- Is it possible to disconnect old mqtt connection with same client Id in server side if new connection is came with same client Id?
Related Questions in REAL-TIME-DATA
- Node-RED listen PostgreSQL in real-time
- store unique visitors in distributed database
- streaming data through mqtt to aws IoT with acknowledgement mechanism
- peer 2 peer libraries to broadcast real time video using websocket?
- retrieve real-time data from JBloomberg API
- Realtime Audio Processing with FFT
- Should i use another database for my web application?
- Pinescript, trailing stop loss repaints
- Bokeh: Unexpected (broken?) zoom behavior on line plots
- How to plot real time data from text file in MATLAB
- how to handle realtime mqtt data in backend to response in html page
- How to authenticate mqtt streams?
- Power BI/MS Fabric - One Hybrid table with multiple sources - KQL & BigQuery
- GridDB IoT Application - Real-time data storage and retrieval challenges, need guidance
- How can I access real-time health data from Zepp OS (Xiaomi/Amazfit)? Do I need any permission for this? Need some working samples
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
From what you are describing I would recommend to use a single topic for each mobile device.
When you do so, it is easy to get all data with a subscribe to devices/+/data. You can also use devices/+ directly if your client is only publishing data and you are not interested in other stuff. In you webbrowser or broker (see my answer to your other question) you get the message and you can determine with the topic, which client sent the message.
Another step to make the scenario more secure would be to allow device1 only to publish to devices/device1/#. This can be implemented through a plugin in the MQTT broker. An example for how easy it can be to implement such a plugin is shown here for the HiveMQ broker.
Hope this helps, Chris