Insights dont show on public - E401

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"}

What I doing wrong?

Hi!

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!