Skip to content Skip to sidebar Skip to footer

Worklight Adapter Basic Authentication Caching?

I'm having an issue with basic authentication using a Worklight adapter. Whenever I authenticate to a REST URL, it authenticates fine. However, the authentication seems to create a

Solution 1:

in the <procedure> element of the adapter XML file you should add connectAs="endUser". The connection to the back end will be created with the user's identity.

I am sorry, I did not understand your question.

In order to authenticate every time what you need to do is in the connectionPolicy in the adapter XML file you need to change your cookiePolicy Attribute to IGNORE_COOKIES

<connectionPolicy xsi:type="http:HTTPConnectionPolicyType" cookiePolicy="IGNORE_COOKIES" maxRedirects="int"></connectionPolicy>

Post a Comment for "Worklight Adapter Basic Authentication Caching?"