I have this GenericSecurityContext :
I want to set the "session" parameter in the javascript implementation before invoking the service call. So I've done :
Appery.BergerRESTImplementation = Appery.createClass(SecurityContext, {
invoke: function(service, settings) {
// Before invoke
Code: Select all
settings.ssc_data.session = getSessionParam(localStorage.getItem("_user"), localStorage.getItem("_sessionid"), localStorage.getItem("_appserver"), localStorage.getItem("_environment"));
Appery.BergerRESTImplementation.$super.invoke.call(this, service, settings); }
});
The parameter is still set to the default value when the service get called. Is it the proper way of doing this?
Thank you for the help.