• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Solved Public Dashboard requiring log in.

    Dashboard Designer & Custom AngularJS Pages
    2
    8
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dominic.Irl
      last edited by Dominic.Irl

      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

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        I'm not sure, this works for me. The URL should look like <yourIP>:port/public-dashboards/yourpage.htm

        1 Reply Last reply Reply Quote 0
        • D
          Dominic.Irl
          last edited by

          The URL I am pointing to is
          http://192.168.0.44:8080/public-dashboards/index.htm

          login error.PNG

          I 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

          1 Reply Last reply Reply Quote 0
          • JoelHaggarJ
            JoelHaggar
            last edited by

            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.

            D 1 Reply Last reply Reply Quote 0
            • D
              Dominic.Irl @JoelHaggar
              last edited by

              @JoelHaggar

              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

              1 Reply Last reply Reply Quote 0
              • JoelHaggarJ
                JoelHaggar
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • D
                  Dominic.Irl
                  last edited by

                  Perfect. We will give this a shot and let you know how we get on.

                  Thanks for the quick replies.

                  Dominic

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dominic.Irl
                    last edited by Dominic.Irl

                    All up and running,

                    Thanks for the input Joel!

                    P.S. How do I mark post as SOLVED?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post