Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
request-ntlm-promise
Advanced tools
Ntlm authentication promise wrapper for the Request module. It authenticates each request via NTLM protocol.
The core of this reposotory comes from request-ntlm which was improved by request-ntlm-continued. Here you can find complete refactor of both with ability to use promises.
$ npm install request-ntlm-promise
const ntlm = require('request-ntlm-promise');
// Typescript
import * as Request from 'request-ntlm-promise';
reqntlm.get(options, json)
reqntlm.post(options, json)
reqntlm.patch(options, json)
reqntlm.put(options, json)
reqntlm.delete(options, json)
options
username
: username;password
: password;ntlm_domain
: domain either http or https;url
: complete path to the resource;workstation
: workstation;params
This can be string
or object
streamCallback
Optional. If provided then you will get a stream instead of promise. Useful if working with files.
const ntlm = require('request-ntlm-promise');
const URL = 'http://yourdomain.com'
const options = {
username: 'username',
password: 'password',
ntlm_domain: URL,
url: `${URL}/path/to/resource`
};
const json = {
// whatever object you want to submit
};
ntlm.post(options, json).then(console.log)
// or use async/await
const data = await ntlm.post(options, json)
console.log(data)
// or stream
ntlm.post(options, json, (response) => {
reply(response) // Hapi js handler
})
FAQs
Make easy requests with NTLM authentication
The npm package request-ntlm-promise receives a total of 16,007 weekly downloads. As such, request-ntlm-promise popularity was classified as popular.
We found that request-ntlm-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.