janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
241 stars 58 forks source link

How to auth NTLM #40

Closed faludigabor closed 7 years ago

faludigabor commented 7 years ago

Hey,

I have an OData Endopoint that I need to auth against w/ NTLM. Dont seem to work. Any ideas? Tx,Gabor

janhommes commented 7 years ago

Hi, o.js only supports basic auth. If you want to use NTLM you need to set the correct header yourself. To do so you can add a header in the o().config():

{
  headers: [] //an array of additional headers [{name:'headername',value:'headervalue'}]
}

Regards Jan