• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    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 without USER access

    User help
    2
    8
    3598
    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
      dusky last edited by

      Hi. I need to setup Mango without USER access. Just start browser with http://localhost:8080 and immediately see online data. Is it possible ?

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler last edited by

        You'll need to do a bit of coding... I'd recommend creating a page that does an automatic login of a user to which you've given appropriate permissions.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • D
          dusky last edited by

          Could you help me which file (code) I have to change ? A lot of thanks. Dusky

          1 Reply Last reply Reply Quote 0
          • M
            mlohbihler last edited by

            Are you a J2EE developer at all? If not there's probably a steep learning curve ahead.

            Best regards,
            Matthew

            1 Reply Last reply Reply Quote 0
            • D
              dusky last edited by

              Java isn't problem for me but I need to know where is stored (programmend) user rights algoritmus to make changes.
              thanx

              1 Reply Last reply Reply Quote 0
              • M
                mlohbihler last edited by

                Actually, on second thought this would actually be fairly easy. All you'd have to do is create a page - hosted anywhere - that embeds login credentials for the user you want to expose. Just put a link on a page that maybe looks like this:

                
                <a  >Mango</a>
                
                &lt;div style="display:none"&gt;
                  &lt;form id="mangoLoginForm" action="&lt;mango url&gt;/login.htm"&gt;
                    &lt;input type="hidden" name="username" value="anonymousUsername"/&gt;
                    &lt;input type="hidden" name="password" value="anonymousPassword"/&gt;
                  &lt;/form&gt;
                &lt;/div&gt;
                
                &lt;script type="text/javascript"&gt;
                  function mangoLogin() {
                      document.getElementById("mangoLoginForm").submit();
                  }
                &lt;/script&gt;
                
                

                (Caveat: the above code was just typed out entirely untested. Should generally work, but please forgive any bugs.)

                When the link is clicked, the hidden form will be submitted and the user should be automatically logged in. Note that they will have a logout button - not sure if that matters to you.

                Best regards,
                Matthew

                1 Reply Last reply Reply Quote 0
                • M
                  mlohbihler last edited by

                  The discussion board software apparently removes things it considers suspicious. The content of the <a> link should be:

                  
                  href="#" onclick="mangoLogin()"
                  
                  

                  Best regards,
                  Matthew

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