I am making calls to a WCF service using dataJS.
As shown in the code below, I pass through Username and Password, but when debugging or monitoring the request on Fiddler, I see no authorization header or any trace of the username and password.
var url = "http://localhost/myServices/myService.svc/aMethod";
OData.defaultHttpClient.enableJsonpCallback = true;
OData.request(
{requestUri: url, method: "GET", user: 'Joe', password: 'Soap' },
function (data, request) {
// successful
},
function (error) {
// error
}
)
The reason I need to get the username and password is so I can use it in my custom basic authentication module.
Any assistance is appreciated.
Thanks