Waziup / WaziCloud

WAZIUP Cloud and local platform
31 stars 28 forks source link

Separating private sensors #182

Closed henokzion closed 6 years ago

henokzion commented 6 years ago

The sensors end point doesnt support separation of private sensors. GET /sensors responds with all the sensors including the private ones.

cdupont commented 6 years ago

This one requires to change the handling of GET /domains/{domain}/sensors. Currently, we fetch all the sensors from Orion with GET /entities. However, this will also return forbidden sensors without checking. Solution is to iterate through the sensors returned and query Keycloak for each of them.