Hybrid Apps pass user name and password information using HTTP basic authentication, by setting the Authorization HTTP header.
var strUsername = "odata"; var strPassword = "password"; var oHeaders = {}; oHeaders['Authorization'] = "Basic " + btoa(strUsername + ":" + strPassword); var request = { headers : oHeaders, // object that contains HTTP headers as name value pairs requestUri : sUrl, // OData endpoint URI method : "GET" }; OData.read( request, function (data, response) { // do something with the response }, function( err ) { // handle error reading the data });