How to test a service/api that uses NTML authentication using Apickli?
I get 401 unauthorized when passed the URL which requires NTLM authentication. How should the username and password be passed in Apickli.
this.apickli = new apickli.Apickli('https://url here');
Any pointers / examples to add custom steps to pass username and password for NTLM authentication?
Thanks,
Pari
Answer by ylesyuk · Jan 18, 2019 at 02:28 PM
You need to install and configure an ntlm proxy. For example,
this: http://cntlm.sourceforge.net/
or this: http://ntlmaps.sourceforge.net/
Then you can set up nodejs proxy to your ntlm proxy, which for nodejs/apickli would be like this at windows:
set http.proxy=http://my.proxy.address:8080
set https.proxy=http://my.proxy.address:8080
Hi, thanks for the response. But unfortunately our company doesn't allow us to use the NTLM proxy software. Is there a possibility that it can be achieved using custom steps similar to below step where NTLM creds can be sent using Gherkin step? Any examples/pointers in this direction please?.
I have basic authentication credentials (.*) and (.*)