Implementing Client Sessions for Device Management in the Backend
Learn how to use client sessions to control your users' access to devices.
If you are developing an application with multiple customers connecting their devices, client sessions are a practical way to manage device access for each user. This topic provides an example of implementing client sessions in the backend, ensuring that users can access only the devices that they own.
Connect Your Users' Accounts Using a Client Session
When connecting your customers' devices, you can create a client session for each customer and associate this session with any Connect Webviews that you issue to them.
Filter for a User's Devices with the User Identifier Key
You can use the user_identifier_key
to retrieve a list of devices that only includes the ones that a specific user owns.
Authorize Requests Using the User Identifier Key
You can also use the user_identifier_key
to ensure that a user has the authorization to interact with a device.
Last updated
Was this helpful?