Skip to content

Commit 04dc9f5

Browse files
Jeff Youngbryanmacfarlane
authored andcommitted
Disable proxy for NTLM authentication (#57)
* Allow NTLM handler to disable proxying * Bump version to 5.1.1
1 parent d14dbe2 commit 04dc9f5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

api/handlers/ntlm.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ export class NtlmCredentialHandler implements VsoBaseInterfaces.IRequestHandler
2727

2828
prepareRequest(options:any): void {
2929
// No headers or options need to be set. We keep the credentials on the handler itself.
30+
// If a (proxy) agent is set, remove it as we don't support proxy for NTLM at this time
31+
if (options.agent) {
32+
delete options.agent;
33+
}
3034
}
3135

3236
canHandleAuthentication(res: VsoBaseInterfaces.IHttpResponse): boolean {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vso-node-api",
33
"description": "Node client for Visual Studio Online/TFS REST APIs",
4-
"version": "5.1.0",
4+
"version": "5.1.1",
55
"main": "./WebApi.js",
66
"typings": "./WebApi.d.ts",
77
"scripts": {

0 commit comments

Comments
 (0)