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 session within the Worklight server.
Example Call
function getTaskList(username,password) {
var input = {
method : 'post',
returnedContentType : 'json',
path : 'rest/url',
headers: {
'Authorization': 'Basic '+base64Encode(username+':'+password),
}
};
return WL.Server.invokeHttp(input);
}
Whenver I attempt to login from another device, Worklight server thinks I'm already signed in. Can you turn off session support in Worklight server or prevent caching? I want to authenticate every time to the REST URL. How is this possible?