I’m a newbie. First of all, thank you for OR being here.
I want to make “Insights” visible without logging in.
I’m running the latest version of OR on a VPS with Ubuntu 20.
I have a single asset that measures temperature and humidity. The asset has the “Public read” option enabled, and both the humidity and temperature attributes are also set to public.
I created an “Insight” with two widgets (temperature + humidity). In the insight settings, I selected Permissions > View > Public.
When I’m logged in, the Insights link works as expected: https://iot.xoxofoto.cz/insights/?realm=master#/view/[ID of insights]/true
However, when I open the link in an incognito window, I see an E401 error in the console, and the screen is completely blank.
The console shows the following error request:
GET request to https://iot.xoxofoto.cz/auth/realms/master/account
Response: {"error": "HTTP 401 Unauthorized"}
I think this is a bug that is accidentally introduced, being unaware of ‘public’ apps like Insights.
As I can reproduce it on our demo (OpenRemote Insights), I’ll raise a GitHub issue on this.
Thanks for reporting!
The GitHub issue I’ve created (linked above) hasn’t been picked up nor resolved yet.
I’ll try to pick it up when I find the time, although I’m quite busy at the moment
Unfortunately I’m not aware of a simple workaround, other than making users login.
This bug got introduced due to a change on November 15th, 2024. Only manually building the Docker images will allow you to deploy OpenRemote without this bug.