Topic
1 reply Latest Post - ‏2012-12-16T09:14:09Z by AntonAleksandrov
aram208
aram208
27 Posts
ACCEPTED ANSWER

Pinned topic Using WorklightConfiguration in a custom login module

‏2012-12-13T04:38:53Z |
Hello there

Do I use com.worklight.server.bundle.api.WorklightConfiguration to get properties from worklight.properties in a custom LoginModule? If yes, what supporting jars are required?

Thank you
  • AntonAleksandrov
    AntonAleksandrov
    55 Posts
    ACCEPTED ANSWER

    Re: Using WorklightConfiguration in a custom login module

    ‏2012-12-16T09:14:09Z  in response to aram208
    Yes, you can do it. The API is:

    String propValue = WorklightConfiguration.getInstance().getString("propName");

    This, however, will require adding some dependencies to your WL project. Right click on it, go to Properties -> Java Build Path -> Libraries -> Add external JARs
    Navigate to your Eclipse folder\plugins\com.worklight.worklight-3rd-parties_version-number\target\dependency\ and add spring-beans-2.5.6.jar and spring-core-2.5.6.jar