Topic
7 replies Latest Post - ‏2013-02-07T23:58:46Z by SystemAdmin
SystemAdmin
SystemAdmin
300 Posts
ACCEPTED ANSWER

Pinned topic Manage multiple accounts

‏2013-01-22T10:56:41Z |
Hello,

I installed Worklight server enterprise edition with tomcat 7. and I would like to set up multiple accounts for access to the administration console.
My use case is as follows:

  • Three applications are deployed A, B and C.
  • I want that user X can only view application A while user Y accesses to the application B and C?

Is it possible?
thank you in advance.

Regards
  • IdanAdar
    IdanAdar
    49 Posts
    ACCEPTED ANSWER

    Re: Manage multiple accounts

    ‏2013-01-22T15:37:47Z  in response to SystemAdmin
    Hi. This is currently not possible.
    Worklight Console protection works for 1 admin user.

    Additionally,
    Applications are associated with a Worklight project.

    
    worklightProject --- app 1 --- app 2 --- app 3 --- *-all.wlapp --- *.war file
    


    You setup authenticationConfig.xml and worklight.properties with console protection.
    You deploy the war file to your Tomcat application server.
    You then deploy the .wlapp via Worklight Console.

    What you will see in the console is all 3 apps, because they are all associated to the same project.
    If you will create another project, with app 4 and deploy that war, you will see only app 4 in the console...

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      300 Posts
      ACCEPTED ANSWER

      Re: Manage multiple accounts

      ‏2013-01-22T15:25:01Z  in response to IdanAdar
      Thank you for the answer

      Our context is that the company has three departments. and each department has a different worklight project (with differents applications). and we want to have an admin for each project.

      is there a solution to this problem?
  • SystemAdmin
    SystemAdmin
    300 Posts
    ACCEPTED ANSWER

    Re: Manage multiple accounts

    ‏2013-01-22T15:26:01Z  in response to SystemAdmin
    solution of different project
  • IdanAdar
    IdanAdar
    49 Posts
    ACCEPTED ANSWER

    Re: Manage multiple accounts

    ‏2013-01-22T15:40:14Z  in response to SystemAdmin
    You cannot house 3 different projects (each a .war file and its own wlapps) under the same Worklight Server (or Tomcat application server instance).
    The way I see it, for what you're asking you will need 3 different Tomcat instances; and if they all share the same database(s) then each will need to have different databases setup for them in each project's worklight.properties.

    If the administration requriement is not a must, then perhaps you can put all three apps under the same project and then they will all share the same Worklight Server.
    You could use some source control mechanism to handle code changes.

    ^ This is also dependent on the authentication needs of each project/app.
    To really give a full answer we'll need to know the different needs of each project/app... I'm shooting blind right now. :)

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      300 Posts
      ACCEPTED ANSWER

      Re: Manage multiple accounts

      ‏2013-01-22T16:27:42Z  in response to IdanAdar
      Thank you again.
      The three department is a kind of three independent companies.
      What we need, is that every administrator of each departement can manage only his own applications and his push notification.
      Every administrator must access also to his own statistics.

      Do we need to have three instance of tomcat in that case?
      • SystemAdmin
        SystemAdmin
        300 Posts
        ACCEPTED ANSWER

        Re: Manage multiple accounts

        ‏2013-02-07T23:58:46Z  in response to SystemAdmin
        Note: IBM forums are in the process of migrating to a new format. During migration the forums will be frozen and in read-only mode. If you wish to continue this thread discussion please post it on stackoverflow, where the Worklight team and others can respond.

        See the Forum Migration announce post for more details. Thank you.

        Barbara Hampson, Manager, IBM Worklight
  • IdanAdar
    IdanAdar
    49 Posts
    ACCEPTED ANSWER

    Re: Manage multiple accounts

    ‏2013-01-22T20:33:07Z  in response to SystemAdmin
    Yes, each project will need its own Tomcat application server with Worklight Server installed on it, its own database, etc...

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform