drogue-iot / drogue-cloud

Cloud Native IoT
https://drogue.io
Apache License 2.0
113 stars 30 forks source link

Anonymous user is not matched when trying to get apps but as an authenticated user #342

Closed jbtrystram closed 1 year ago

jbtrystram commented 1 year ago

Scenario : the app eclipsecon is set with the anonymous user as a reader. That should enable anyone to stream data for it. that works fine if you connect to the WS without any authentication.

But if you try to see the app in the console or try to consume events but with your auth info, it doesn't work.

This is due to how the SQL statement is constructed in https://github.com/drogue-iot/drogue-cloud/blob/main/database-common/src/models/sql.rs#L87