Topic
4 replies Latest Post - ‏2013-02-08T00:45:21Z by SystemAdmin
SystemAdmin
SystemAdmin
300 Posts
ACCEPTED ANSWER

Pinned topic where should I install my custom authentication java and xml?

‏2012-12-28T09:10:54Z |
environment: Windows Server 2008 R2, WAS 8.5, Oracle 11g, Worklight 5.0.5

I created custom authentication java class and edit authenticationConfig.xml file
in Eclipse.
And now I want to install those in Worklight on WAS.

My question is

Where should I put those files in Worklight directory on WAS?
  • IdanAdar
    IdanAdar
    49 Posts
    ACCEPTED ANSWER

    Re: where should I install my custom authentication java and xml?

    ‏2012-12-31T06:50:53Z  in response to SystemAdmin
    Hi ukey,
    You do not do any special installation steps for this purpose.

    Per module 23*, you need to place the class file in the Java folder (<yourProject>/server/Java). After doing so, the .war file is updated with it and you need to take this .war file and deploy it in your application server.

    The same is true to authenticationConfig.xml.

    • page 19 - ftp://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v505/Module_23_-_Custom_Authenticator_and_Login_Module.pdf
    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      300 Posts
      ACCEPTED ANSWER

      Re: where should I install my custom authentication java and xml?

      ‏2013-01-04T10:07:13Z  in response to IdanAdar
      thanks for the reply.

      I tried to deploy the module 23 as a test and I have a question.
      I deployed the app in Eclipse.

      I edited my worklight.properties like below,
      publicWorkLightHostname=MY_HOST_NAME
      publicWorkLightProtocol=http
      publicWorkLightPort=9080
      publicWorkLightContext=/worklight
      I used console of WAS and tried to deploy "module_23_1_CustomLoginModule.war"

      Now I have a question about Context Root for the war file.

      if i used the "/worklight" as context root, it will be same root as worklight console.
      So, what context root should I set?
      • SystemAdmin
        SystemAdmin
        300 Posts
        ACCEPTED ANSWER

        Re: where should I install my custom authentication java and xml?

        ‏2013-02-08T00:45:21Z  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: where should I install my custom authentication java and xml?

    ‏2013-01-04T12:31:21Z  in response to SystemAdmin
    The context root can anything you want. Just make sure it is the same in worklight.properties and in application-descriptor.xml
    Imagine it as the entry point for your applications, to the Worklight Server.

    If you tell the client (in application-descriptor.xml) to try and connect to http://exampleHost.net/myworklightcontext,
    You need "myworklightcontext" to be set (in worklight.properties); this will be the entry point for Worklight once you deploy the .war file in your application server.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform