Customize Worklight Adapter URL

331 Views Asked by At

I am building an iOS and Android Apps using Worklight Framework, the worklight server will be protected by IBM Security Access Manager (ISAM) SSO, and therefore the Apps can only be reaching the worklight server after passing the Security challenges. I've found some docs about this integration and it works as intended.

But the apps also offers some features that doesn't required login, in which the Security Manager shouldn't intercept the adapter request to worklight server. The only workaround that suggested by IBM is to create a URL mapping junction in ISAM that defines the URLs that can access by public, and those which shall not. for example /worklight/public and /worklight/secured

But the URL pattern for all worklight adapter are /worklight/invoke?adapter=ADAPTER_NAME, so do we have a way to create a customized URL for public and secured adapter, for example:

  1. /worklight/public/invoke

  2. /worklight/secued/invoke

EDIT 1: Worklight Version 6.0

Thanks in advance.

1

There are 1 best solutions below

5
On

Please mention the version of Worklight you are using.

One way to achieve this is to create and deploy the adapters in two different projects. That way the context root of both the adapters will be different. So, you'll have URLs such as /Project1/invoke?... and Project2/invoke?... which you can apply to your filters.