azure-pipelines-tasks-azurermdeploycommon 2.198.1 → 3.207.0
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/Tests/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-arm-rest",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -60,10 +60,9 @@
|
|
|
60
60
|
"dev": true
|
|
61
61
|
},
|
|
62
62
|
"lodash": {
|
|
63
|
-
"version": "4.17.
|
|
64
|
-
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.
|
|
65
|
-
"integrity": "sha512-
|
|
66
|
-
"dev": true
|
|
63
|
+
"version": "4.17.21",
|
|
64
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
|
65
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
|
67
66
|
},
|
|
68
67
|
"minimist": {
|
|
69
68
|
"version": "0.0.8",
|
package/Tests/package.json
CHANGED
|
@@ -153,7 +153,7 @@ class ApplicationTokenCredentials {
|
|
|
153
153
|
var deferred = Q.defer();
|
|
154
154
|
let webRequest = new webClient.WebRequest();
|
|
155
155
|
webRequest.method = "POST";
|
|
156
|
-
webRequest.uri = this.authorityUrl + this.domain + "/oauth2/token/";
|
|
156
|
+
webRequest.uri = this.authorityUrl + (this.isADFSEnabled ? "" : this.domain) + "/oauth2/token/";
|
|
157
157
|
webRequest.body = querystring.stringify({
|
|
158
158
|
resource: this.activeDirectoryResourceId,
|
|
159
159
|
client_id: this.clientId,
|
|
@@ -205,7 +205,7 @@ export class ApplicationTokenCredentials {
|
|
|
205
205
|
var deferred = Q.defer<string>();
|
|
206
206
|
let webRequest = new webClient.WebRequest();
|
|
207
207
|
webRequest.method = "POST";
|
|
208
|
-
webRequest.uri = this.authorityUrl + this.domain + "/oauth2/token/";
|
|
208
|
+
webRequest.uri = this.authorityUrl + (this.isADFSEnabled ? "" : this.domain) + "/oauth2/token/";
|
|
209
209
|
webRequest.body = querystring.stringify({
|
|
210
210
|
resource: this.activeDirectoryResourceId,
|
|
211
211
|
client_id: this.clientId,
|
|
@@ -292,4 +292,4 @@ function getJWT(url: string, clientId: string, tenantId: string, pemFilePath: st
|
|
|
292
292
|
|
|
293
293
|
var token = jwt.sign(jwtObject, pemFileContent,{ algorithm: 'RS256', header :additionalHeaders });
|
|
294
294
|
return token;
|
|
295
|
-
}
|
|
295
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-pipelines-tasks-azurermdeploycommon",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.207.0",
|
|
4
4
|
"description": "Common Lib for Azure ARM REST apis",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"@types/mocha": "^5.2.7",
|
|
20
20
|
"@types/node": "^10.17.0",
|
|
21
21
|
"@types/q": "1.0.7",
|
|
22
|
+
"archiver": "2.1.1",
|
|
23
|
+
"azure-pipelines-task-lib": "^3.1.0",
|
|
24
|
+
"decompress-zip": "^0.3.3",
|
|
22
25
|
"jsonwebtoken": "7.3.0",
|
|
26
|
+
"ltx": "2.6.2",
|
|
27
|
+
"node-stream-zip": "1.7.0",
|
|
23
28
|
"q": "1.5.1",
|
|
24
29
|
"typed-rest-client": "^1.8.4",
|
|
25
|
-
"azure-pipelines-task-lib": "^3.1.0",
|
|
26
|
-
"archiver": "2.1.1",
|
|
27
|
-
"decompress-zip": "0.3.0",
|
|
28
|
-
"ltx": "2.6.2",
|
|
29
30
|
"winreg": "1.2.2",
|
|
30
|
-
"xml2js": "0.4.13"
|
|
31
|
-
"node-stream-zip": "1.7.0"
|
|
31
|
+
"xml2js": "0.4.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "4.0.2"
|