artifact-engine 2.275.2 → 2.279.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Engine/artifactEngine.js +2 -1
- package/Engine/artifactEngineOptions.js +0 -1
- package/Engine/cilogger.js +2 -2
- package/Engine/index.js +0 -1
- package/Engine/logger.js +0 -1
- package/Engine/worker.js +0 -1
- package/Models/artifactDownloadTicket.js +0 -1
- package/Models/artifactItem.js +0 -1
- package/Models/artifactprovider.d.ts +1 -0
- package/Models/artifactprovider.js +0 -1
- package/Models/constants.js +0 -1
- package/Models/index.js +0 -1
- package/Models/itemType.js +1 -2
- package/Models/ticketState.js +1 -2
- package/Providers/filesystemProvider.d.ts +1 -0
- package/Providers/filesystemProvider.js +19 -2
- package/Providers/index.js +0 -1
- package/Providers/jenkins.handlebars +10 -10
- package/Providers/stubProvider.d.ts +1 -0
- package/Providers/stubProvider.js +0 -1
- package/Providers/teamcity.handlebars +24 -24
- package/Providers/vsts.handlebars +15 -15
- package/Providers/webClient.d.ts +1 -1
- package/Providers/webClient.js +4 -2
- package/Providers/webClientFactory.js +7 -1
- package/Providers/webProvider.d.ts +8 -1
- package/Providers/webProvider.js +0 -1
- package/Providers/zipProvider.d.ts +2 -1
- package/Providers/zipProvider.js +0 -1
- package/README.md +40 -39
- package/Store/artifactItemStore.js +0 -1
- package/Store/index.js +0 -1
- package/Strings/resources.resjson/de-DE/resources.resjson +12 -11
- package/Strings/resources.resjson/en-US/resources.resjson +12 -11
- package/Strings/resources.resjson/es-ES/resources.resjson +12 -11
- package/Strings/resources.resjson/fr-FR/resources.resjson +12 -11
- package/Strings/resources.resjson/it-IT/resources.resjson +12 -11
- package/Strings/resources.resjson/ja-JP/resources.resjson +12 -11
- package/Strings/resources.resjson/ko-KR/resources.resjson +12 -11
- package/Strings/resources.resjson/ru-RU/resources.resjson +12 -11
- package/Strings/resources.resjson/zh-CN/resources.resjson +12 -11
- package/Strings/resources.resjson/zh-TW/resources.resjson +12 -11
- package/ThirdPartyNotices.txt +925 -925
- package/lib.json +14 -13
- package/package.json +62 -64
- package/Providers/typed-rest-client/Handlers.d.ts +0 -4
- package/Providers/typed-rest-client/Handlers.js +0 -12
- package/Providers/typed-rest-client/HttpClient.d.ts +0 -76
- package/Providers/typed-rest-client/HttpClient.js +0 -328
- package/Providers/typed-rest-client/Index.d.ts +0 -1
- package/Providers/typed-rest-client/Index.js +0 -3
- package/Providers/typed-rest-client/Interfaces.d.ts +0 -39
- package/Providers/typed-rest-client/Interfaces.js +0 -4
- package/Providers/typed-rest-client/RestClient.d.ts +0 -26
- package/Providers/typed-rest-client/RestClient.js +0 -134
- package/Providers/typed-rest-client/Util.d.ts +0 -1
- package/Providers/typed-rest-client/Util.js +0 -17
- package/Providers/typed-rest-client/handlers/basiccreds.d.ts +0 -9
- package/Providers/typed-rest-client/handlers/basiccreds.js +0 -20
- package/Providers/typed-rest-client/handlers/bearertoken.d.ts +0 -8
- package/Providers/typed-rest-client/handlers/bearertoken.js +0 -19
- package/Providers/typed-rest-client/handlers/ntlm.d.ts +0 -13
- package/Providers/typed-rest-client/handlers/ntlm.js +0 -107
- package/Providers/typed-rest-client/handlers/personalaccesstoken.d.ts +0 -8
- package/Providers/typed-rest-client/handlers/personalaccesstoken.js +0 -19
- package/Providers/typed-rest-client/opensource/node-http-ntlm/ntlm.js +0 -386
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RestClient = void 0;
|
|
13
|
-
const httpm = require("./HttpClient");
|
|
14
|
-
const util = require("./Util");
|
|
15
|
-
class RestClient {
|
|
16
|
-
constructor(userAgent, baseUrl, handlers, requestOptions) {
|
|
17
|
-
this.client = new httpm.HttpClient(userAgent, handlers, requestOptions);
|
|
18
|
-
if (baseUrl) {
|
|
19
|
-
this._baseUrl = baseUrl;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
options(requestUrl, options) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
25
|
-
let res = yield this.client.options(url, this._headersFromOptions(options));
|
|
26
|
-
return this._processResponse(res, options);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
get(requestUrl, options) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
32
|
-
let res = yield this.client.get(url, this._headersFromOptions(options));
|
|
33
|
-
return this._processResponse(res, options);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
del(requestUrl, options) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
39
|
-
let res = yield this.client.del(url, this._headersFromOptions(options));
|
|
40
|
-
return this._processResponse(res, options);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
create(requestUrl, resources, options) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
46
|
-
let headers = this._headersFromOptions(options, true);
|
|
47
|
-
let data = JSON.stringify(resources, null, 2);
|
|
48
|
-
let res = yield this.client.post(url, data, headers);
|
|
49
|
-
return this._processResponse(res, options);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
update(requestUrl, resources, options) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
55
|
-
let headers = this._headersFromOptions(options, true);
|
|
56
|
-
let data = JSON.stringify(resources, null, 2);
|
|
57
|
-
let res = yield this.client.patch(url, data, headers);
|
|
58
|
-
return this._processResponse(res, options);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
replace(requestUrl, resources, options) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
64
|
-
let headers = this._headersFromOptions(options, true);
|
|
65
|
-
let data = JSON.stringify(resources, null, 2);
|
|
66
|
-
let res = yield this.client.put(url, data, headers);
|
|
67
|
-
return this._processResponse(res, options);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
uploadStream(verb, requestUrl, stream, options) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
let url = util.getUrl(requestUrl, this._baseUrl);
|
|
73
|
-
let headers = this._headersFromOptions(options, true);
|
|
74
|
-
let res = yield this.client.sendStream(verb, url, stream, headers);
|
|
75
|
-
return this._processResponse(res, options);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
_headersFromOptions(options, contentType) {
|
|
79
|
-
options = options || {};
|
|
80
|
-
let headers = options.additionalHeaders || {};
|
|
81
|
-
headers["Accept"] = options.acceptHeader || "application/json";
|
|
82
|
-
if (contentType) {
|
|
83
|
-
headers["Content-Type"] = headers["Content-Type"] || 'application/json; charset=utf-8';
|
|
84
|
-
}
|
|
85
|
-
return headers;
|
|
86
|
-
}
|
|
87
|
-
_processResponse(res, options) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
let rres = {};
|
|
91
|
-
let statusCode = res.message.statusCode;
|
|
92
|
-
rres.statusCode = statusCode;
|
|
93
|
-
if (statusCode == httpm.HttpCodes.NotFound) {
|
|
94
|
-
resolve(rres);
|
|
95
|
-
}
|
|
96
|
-
let obj;
|
|
97
|
-
try {
|
|
98
|
-
let contents = yield res.readBody();
|
|
99
|
-
if (contents && contents.length > 0) {
|
|
100
|
-
obj = JSON.parse(contents);
|
|
101
|
-
if (options && options.responseProcessor) {
|
|
102
|
-
rres.result = options.responseProcessor(obj);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
rres.result = obj;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
catch (err) {
|
|
110
|
-
}
|
|
111
|
-
if (statusCode > 299) {
|
|
112
|
-
let msg;
|
|
113
|
-
if (obj && obj.message) {
|
|
114
|
-
msg = obj.message;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
msg = "Failed request: (" + statusCode + ")";
|
|
118
|
-
}
|
|
119
|
-
let err = new Error(msg);
|
|
120
|
-
err['statusCode'] = statusCode;
|
|
121
|
-
if (rres.result) {
|
|
122
|
-
err['result'] = rres.result;
|
|
123
|
-
}
|
|
124
|
-
reject(err);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
resolve(rres);
|
|
128
|
-
}
|
|
129
|
-
}));
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
exports.RestClient = RestClient;
|
|
134
|
-
//# sourceMappingURL=RestClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getUrl(requestUrl: string, baseUrl?: string): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUrl = getUrl;
|
|
4
|
-
const url = require("url");
|
|
5
|
-
function getUrl(requestUrl, baseUrl) {
|
|
6
|
-
if (!baseUrl) {
|
|
7
|
-
return requestUrl;
|
|
8
|
-
}
|
|
9
|
-
let base = url.parse(baseUrl);
|
|
10
|
-
let combined = url.parse(requestUrl);
|
|
11
|
-
combined.protocol = combined.protocol || base.protocol;
|
|
12
|
-
combined.auth = combined.auth || base.auth;
|
|
13
|
-
combined.host = combined.host || base.host;
|
|
14
|
-
let res = url.format(combined);
|
|
15
|
-
return res;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=Util.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import ifm = require('../Interfaces');
|
|
2
|
-
export declare class BasicCredentialHandler implements ifm.IRequestHandler {
|
|
3
|
-
username: string;
|
|
4
|
-
password: string;
|
|
5
|
-
constructor(username: string, password: string);
|
|
6
|
-
prepareRequest(options: any): void;
|
|
7
|
-
canHandleAuthentication(res: ifm.IHttpResponse): boolean;
|
|
8
|
-
handleAuthentication(httpClient: any, protocol: any, options: any, objs: any, finalCallback: any): void;
|
|
9
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasicCredentialHandler = void 0;
|
|
4
|
-
class BasicCredentialHandler {
|
|
5
|
-
constructor(username, password) {
|
|
6
|
-
this.username = username;
|
|
7
|
-
this.password = password;
|
|
8
|
-
}
|
|
9
|
-
prepareRequest(options) {
|
|
10
|
-
options.headers['Authorization'] = 'Basic ' + Buffer.from(this.username + ':' + this.password, 'utf8').toString('base64');
|
|
11
|
-
options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
|
|
12
|
-
}
|
|
13
|
-
canHandleAuthentication(res) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
handleAuthentication(httpClient, protocol, options, objs, finalCallback) {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.BasicCredentialHandler = BasicCredentialHandler;
|
|
20
|
-
//# sourceMappingURL=basiccreds.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import ifm = require('../Interfaces');
|
|
2
|
-
export declare class BearerCredentialHandler implements ifm.IRequestHandler {
|
|
3
|
-
token: string;
|
|
4
|
-
constructor(token: string);
|
|
5
|
-
prepareRequest(options: any): void;
|
|
6
|
-
canHandleAuthentication(res: ifm.IHttpResponse): boolean;
|
|
7
|
-
handleAuthentication(httpClient: any, protocol: any, options: any, objs: any, finalCallback: any): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BearerCredentialHandler = void 0;
|
|
4
|
-
class BearerCredentialHandler {
|
|
5
|
-
constructor(token) {
|
|
6
|
-
this.token = token;
|
|
7
|
-
}
|
|
8
|
-
prepareRequest(options) {
|
|
9
|
-
options.headers['Authorization'] = 'Bearer ' + this.token;
|
|
10
|
-
options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
|
|
11
|
-
}
|
|
12
|
-
canHandleAuthentication(res) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
handleAuthentication(httpClient, protocol, options, objs, finalCallback) {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.BearerCredentialHandler = BearerCredentialHandler;
|
|
19
|
-
//# sourceMappingURL=bearertoken.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import ifm = require('../Interfaces');
|
|
2
|
-
export declare class NtlmCredentialHandler implements ifm.IRequestHandler {
|
|
3
|
-
username: string;
|
|
4
|
-
password: string;
|
|
5
|
-
workstation: string;
|
|
6
|
-
domain: string;
|
|
7
|
-
constructor(username: string, password: string, domain?: string, workstation?: string);
|
|
8
|
-
prepareRequest(options: any): void;
|
|
9
|
-
canHandleAuthentication(res: ifm.IHttpResponse): boolean;
|
|
10
|
-
handleAuthentication(httpClient: any, protocol: any, options: any, objs: any, finalCallback: any): void;
|
|
11
|
-
private sendType1Message;
|
|
12
|
-
private sendType3Message;
|
|
13
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.NtlmCredentialHandler = void 0;
|
|
13
|
-
const http = require("http");
|
|
14
|
-
const https = require("https");
|
|
15
|
-
var _ = require("underscore");
|
|
16
|
-
var ntlm = require("../opensource/node-http-ntlm/ntlm");
|
|
17
|
-
class NtlmCredentialHandler {
|
|
18
|
-
constructor(username, password, domain, workstation) {
|
|
19
|
-
this.username = username;
|
|
20
|
-
this.password = password;
|
|
21
|
-
if (domain !== undefined) {
|
|
22
|
-
this.domain = domain;
|
|
23
|
-
}
|
|
24
|
-
if (workstation !== undefined) {
|
|
25
|
-
this.workstation = workstation;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
prepareRequest(options) {
|
|
29
|
-
if (options.agent) {
|
|
30
|
-
delete options.agent;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
canHandleAuthentication(res) {
|
|
34
|
-
if (res && res.statusCode === 401) {
|
|
35
|
-
var wwwAuthenticate = res.headers['www-authenticate'];
|
|
36
|
-
if (wwwAuthenticate !== undefined) {
|
|
37
|
-
var mechanisms = wwwAuthenticate.split(', ');
|
|
38
|
-
var idx = mechanisms.indexOf("NTLM");
|
|
39
|
-
if (idx >= 0) {
|
|
40
|
-
if (mechanisms[idx].length == 4) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
handleAuthentication(httpClient, protocol, options, objs, finalCallback) {
|
|
49
|
-
var ntlmOptions = _.extend(options, {
|
|
50
|
-
username: this.username,
|
|
51
|
-
password: this.password,
|
|
52
|
-
domain: this.domain || '',
|
|
53
|
-
workstation: this.workstation || ''
|
|
54
|
-
});
|
|
55
|
-
var keepaliveAgent;
|
|
56
|
-
if (httpClient.isSsl === true) {
|
|
57
|
-
keepaliveAgent = new https.Agent({});
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
keepaliveAgent = new http.Agent({ keepAlive: true });
|
|
61
|
-
}
|
|
62
|
-
let self = this;
|
|
63
|
-
this.sendType1Message(httpClient, protocol, ntlmOptions, objs, keepaliveAgent, function (err, res) {
|
|
64
|
-
if (err) {
|
|
65
|
-
return finalCallback(err, null, null);
|
|
66
|
-
}
|
|
67
|
-
setImmediate(function () {
|
|
68
|
-
self.sendType3Message(httpClient, protocol, ntlmOptions, objs, keepaliveAgent, res, finalCallback);
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
sendType1Message(httpClient, protocol, options, objs, keepaliveAgent, callback) {
|
|
73
|
-
var type1msg = ntlm.createType1Message(options);
|
|
74
|
-
var type1options = {
|
|
75
|
-
headers: {
|
|
76
|
-
'Connection': 'keep-alive',
|
|
77
|
-
'Authorization': type1msg
|
|
78
|
-
},
|
|
79
|
-
timeout: options.timeout || 0,
|
|
80
|
-
agent: keepaliveAgent,
|
|
81
|
-
allowRedirects: false
|
|
82
|
-
};
|
|
83
|
-
type1options = _.extend(type1options, _.omit(options, 'headers'));
|
|
84
|
-
httpClient.requestInternal(protocol, type1options, objs, callback);
|
|
85
|
-
}
|
|
86
|
-
sendType3Message(httpClient, protocol, options, objs, keepaliveAgent, res, callback) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
if (!res.headers['www-authenticate']) {
|
|
89
|
-
return callback(new Error('www-authenticate not found on response of second request'));
|
|
90
|
-
}
|
|
91
|
-
var type2msg = ntlm.parseType2Message(res.headers['www-authenticate']);
|
|
92
|
-
var type3msg = yield ntlm.createType3Message(type2msg, options);
|
|
93
|
-
var type3options = {
|
|
94
|
-
headers: {
|
|
95
|
-
'Authorization': type3msg
|
|
96
|
-
},
|
|
97
|
-
allowRedirects: false,
|
|
98
|
-
agent: keepaliveAgent
|
|
99
|
-
};
|
|
100
|
-
type3options.headers = _.extend(type3options.headers, options.headers);
|
|
101
|
-
type3options = _.extend(type3options, _.omit(options, 'headers'));
|
|
102
|
-
httpClient.requestInternal(protocol, type3options, objs, callback);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
exports.NtlmCredentialHandler = NtlmCredentialHandler;
|
|
107
|
-
//# sourceMappingURL=ntlm.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import ifm = require('../Interfaces');
|
|
2
|
-
export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler {
|
|
3
|
-
token: string;
|
|
4
|
-
constructor(token: string);
|
|
5
|
-
prepareRequest(options: any): void;
|
|
6
|
-
canHandleAuthentication(res: ifm.IHttpResponse): boolean;
|
|
7
|
-
handleAuthentication(httpClient: any, protocol: any, options: any, objs: any, finalCallback: any): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PersonalAccessTokenCredentialHandler = void 0;
|
|
4
|
-
class PersonalAccessTokenCredentialHandler {
|
|
5
|
-
constructor(token) {
|
|
6
|
-
this.token = token;
|
|
7
|
-
}
|
|
8
|
-
prepareRequest(options) {
|
|
9
|
-
options.headers['Authorization'] = 'Basic ' + Buffer.from('PAT:' + this.token, 'utf8').toString('base64');
|
|
10
|
-
options.headers['X-TFS-FedAuthRedirect'] = 'Suppress';
|
|
11
|
-
}
|
|
12
|
-
canHandleAuthentication(res) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
handleAuthentication(httpClient, protocol, options, objs, finalCallback) {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
|
|
19
|
-
//# sourceMappingURL=personalaccesstoken.js.map
|