+ Reply to Thread
Results 1 to 5 of 5

Thread: Which actions I can perform without logging in the user?

  1. #1
    Member
    Join Date
    Mar 2012
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Which actions I can perform without logging in the user?

    Hi,

    I searched the documentation, but was unable to find out that, what can be the possible request that the client can perform on server, without logging in the user.

    What my question is; At first I need to connect to server, and only after I can login. But what about the activities that can be performed regardless of user login? For e.g; Getting the zones list or rooms in zone, shouldn't require the user login.

    Kindly let me know, what are the possibilities of sending any request without logging in the user?

    Thanks.

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    The only thing you can do without logging in is connect, and enable encryption mode, as far as sending requests goes. If you want to be able to look up zones and rooms, you can do that using JMX however, or by using the ES Admin's Server Monitoring. See JMX Monitoring. These tools are not intended to be used by dozens of users however; they are for administration.

    If you need to display this information where users who aren't logged in can see it, what you can do is have a silent login of a special client that uses a randomly generated username and is very limited in what it can do, or just have a server level plugin that periodically persists the information to a database, and your website can use PHP to get the info from the database and display it.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Member
    Join Date
    Mar 2012
    Posts
    33
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry that I forgot to mention the platform, My mistake.

    I am building an App for iPhone (Cocoa Touch Client API).

  4. #4
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    The answer is the same. If this is for an admin, you can use JMX to get the info; it's an HTTP or HTTPS call. If you don't have a large number of users then you can use JMX for all of them, but it won't scale well. Having the ES5 persist the info periodically would work, because your iPhone app can then just pull up an HTML page that has a PHP script on it that gets the info from the database; for example this forum can be read using my iPad and it runs on PHP and MySQL.

    It is going to be simplest to just have users login, either with their username and password or with a random guest username just to get the information.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  5. The Following User Says Thank You to tcarr For This Useful Post:

    nekinpatel (07-17-2012)

  6. #5
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    I just noticed that this was posted in ES4 Discussions, not ES5 Discussions. ES4 can't use any of the above. Did you mean ES5? I can move the thread if it is for ES5.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts