Solved Public Dashboard requiring log in.
-
Utilising the REST API & with the data stored in the modules public folder I am getting the following message when accessing the url while not being logged in to MANGO :
"The page @ 192.168.xx.xx:xxxx says Unauthorized User not Logged In."
I can only gain access when I log into MANGO and reattempt to reach the page.
According to the wiki/documentation a public dashboard should not require a log-in.
Has anybody any thoughts on this?
Dominic
-
I'm not sure, this works for me. The URL should look like <yourIP>:port/public-dashboards/yourpage.htm
-
The URL I am pointing to is
http://192.168.0.44:8080/public-dashboards/index.htmI wonder is it anything to do with the way we are using websockets for the gauges, datapoint configurations for the charts and REST API for the datapoints in tables? Would there be a conflict occurring in there?
Rgds,
Dominic -
So maybe we just need to clarify this. Only the html will be accessible publicly. You still would need to login before you can see any data and I think this is the error you are seeing. What you can do is create a guest user with the permissions you want. Then in your public page add in java script to automatically login as the guest user when the page loads.
-
Ah ok, Creating the guest user will not be an issue but could you advise on where to begin with the java script. I will need to relate this to my developer.
Rgds,
Dominic -
We are still working on the api libraries and documentation. There should be a page in the public folder called Login. You can use this as the basic example but will need to hard code the username and password and have the login function called on page load. I'm not the JavaScript expert so if you still need help someone else can probably step in.
-
Perfect. We will give this a shot and let you know how we get on.
Thanks for the quick replies.
Dominic
-
All up and running,
Thanks for the input Joel!
P.S. How do I mark post as SOLVED?