I have an error during get/set userPref using adapter-based authenticator.
Version 1, my app uses onDemand, the main menu page open, and a ping-purpose request called, it request a protected function, and triggers authRequired = true, then client side goes to login page, after login, close login page and return back to main menu.
this works fine.
getAppProp() at wlclient.js:1099 with parameter "WORKLIGHT_ROOT_URL"
getAppProperty() at wlclient.js:2026
createAPIRequestURL() at worklight.js:418
Ajax.WLRequest.Class.create.initialize() at worklight.js:973
klass() at prototype.js:106
invokeProcedure() at wlclient.js:2207
login() at ingenium.js:111
login() at auth.js:57
responder() at prototype.js:5603
the error says, cannot read property "WORKLIGHT_ROOT_URL" of undefined, I checked
WL.Client.gadgetProps, during my Authenticator interaction, WL.Client.gadgetProps is an empty hash (var this refer to WL.Client), but during click 'Login' button to invokeProcedure, it is undefined (var this refer to DOMWindow).
Anybody get same errors or solutions?
My worklight server is 18.104.22.1683, worklight studio and server are download at same moment.
This topic has been locked.
Pinned topic Adapter-based authenticator failed with onStartup
Answered question This question has been answered.
Unanswered question This question has not been answered yet.