sapui5 - oData call to SuccessFactors Authentication -


i having trouble authenticating odata call success factors , i'm not sure why. here code:

var username = "username";                           var pwd = window.btoa("password"); console.log(pwd); var empurl = gadgets.io.getproxyurl("https://apisalesdemo8.successfactors.com/odata/v2/empjob?&$format=json");                           var empmodel = new sap.ui.model.json.jsonmodel(empurl,true,username,password); empmodel.attachrequestcompleted(function(data){     console.log(data);                               }); 

i receive 401 error authentication username , password correct, checked using postman app chrome. there issue code?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -