Skip to content

FrankyBoy/request-ntlm

This branch is 22 commits ahead of colynb/request-ntlm:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

33d564e · Mar 29, 2017

History

30 Commits
Oct 10, 2014
Feb 18, 2016
Feb 18, 2016
Apr 19, 2014
Feb 18, 2016
Mar 29, 2017
Jan 12, 2015
Jan 6, 2017
Mar 29, 2017
Mar 29, 2017

Repository files navigation

Request-NTLM

Module for authenticating with NTLM; An ntlm authentication wrapper for the Request module.

Install with NPM

$ npm install --save-dev request-ntlm-continued

Usage

var ntlm = require('request-ntlm-continued');

var opts = {
  username: 'username',
  password: 'password',
  ntlm_domain: 'yourdomain',
  workstation: 'workstation',
  url: 'http://example.com/path/to/resource'
};
var json = {
  // whatever object you want to submit
};
ntlm.post(opts, json, function(err, response) {
  // do something
});

Requests can also be streamed:

ntlm.get(opts, json, null, fs.createWriteStream('example.pdf'));

Changes from original:

  • don't assume the post body is an object and should be made into json
  • options.domain is in use by request. Use ntlm_domain instead
  • ability to set custom headers
  • ability to use http and not only https
  • gracefully complete the request if the server doesn't actually require NTLM. Fail only if options.ntlm.strict is set to true (default=false).
  • implement streaming

About

NTLM lib for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%