Hello,
I hope this is a simple question. I'm trying to connect to a pump hosted on my webserver that has basic authentication turned on. How do I set the user credentials on the OlapXmlaDataSource object? I'd like to be able to set the userId and password required to access the pump.
Thanks
Hello r1owner,
This scenario may be implemented by setting the OlapXMLA data source's requestOptions option. For instance:
requestOptions: { withCredentials: true, beforeSend: function (jqXHR, options, requestOptions) { var xhr = options.xhr(); if (requestOptions.withCredentials && "withCredentials" in xhr) { jqXHR.setRequestHeader("Authorization", "Basic [Base64EncodedData]"); } } }
requestOptions: {
withCredentials: true,
beforeSend: function (jqXHR, options, requestOptions) {
var xhr = options.xhr();
if (requestOptions.withCredentials && "withCredentials" in xhr) {
jqXHR.setRequestHeader("Authorization", "Basic [Base64EncodedData]");
}
Hope this helps. Please feel free to contact me if you have any questions.