@azure/identity 4.1.0-alpha.20240305.3 → 4.1.0-alpha.20240314.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.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/dist/index.js +60 -60
- package/dist/index.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalClient.js +31 -15
- package/dist-esm/src/msal/nodeFlows/msalClient.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js +10 -2
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -39,6 +39,66 @@ function _interopNamespaceDefault(e) {
|
|
|
39
39
|
var msalCommon__namespace = /*#__PURE__*/_interopNamespaceDefault(msalCommon);
|
|
40
40
|
var child_process__namespace = /*#__PURE__*/_interopNamespaceDefault(child_process);
|
|
41
41
|
|
|
42
|
+
// Copyright (c) Microsoft Corporation.
|
|
43
|
+
// Licensed under the MIT license.
|
|
44
|
+
/**
|
|
45
|
+
* Current version of the `@azure/identity` package.
|
|
46
|
+
*/
|
|
47
|
+
const SDK_VERSION = `4.1.0-beta.2`;
|
|
48
|
+
/**
|
|
49
|
+
* The default client ID for authentication
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
// TODO: temporary - this is the Azure CLI clientID - we'll replace it when
|
|
53
|
+
// Developer Sign On application is available
|
|
54
|
+
// https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/Constants.cs#L9
|
|
55
|
+
const DeveloperSignOnClientId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46";
|
|
56
|
+
/**
|
|
57
|
+
* The default tenant for authentication
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
const DefaultTenantId = "common";
|
|
61
|
+
/**
|
|
62
|
+
* A list of known Azure authority hosts
|
|
63
|
+
*/
|
|
64
|
+
exports.AzureAuthorityHosts = void 0;
|
|
65
|
+
(function (AzureAuthorityHosts) {
|
|
66
|
+
/**
|
|
67
|
+
* China-based Azure Authority Host
|
|
68
|
+
*/
|
|
69
|
+
AzureAuthorityHosts["AzureChina"] = "https://login.chinacloudapi.cn";
|
|
70
|
+
/**
|
|
71
|
+
* Germany-based Azure Authority Host
|
|
72
|
+
*/
|
|
73
|
+
AzureAuthorityHosts["AzureGermany"] = "https://login.microsoftonline.de";
|
|
74
|
+
/**
|
|
75
|
+
* US Government Azure Authority Host
|
|
76
|
+
*/
|
|
77
|
+
AzureAuthorityHosts["AzureGovernment"] = "https://login.microsoftonline.us";
|
|
78
|
+
/**
|
|
79
|
+
* Public Cloud Azure Authority Host
|
|
80
|
+
*/
|
|
81
|
+
AzureAuthorityHosts["AzurePublicCloud"] = "https://login.microsoftonline.com";
|
|
82
|
+
})(exports.AzureAuthorityHosts || (exports.AzureAuthorityHosts = {}));
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* The default authority host.
|
|
86
|
+
*/
|
|
87
|
+
const DefaultAuthorityHost = exports.AzureAuthorityHosts.AzurePublicCloud;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* Allow acquiring tokens for any tenant for multi-tentant auth.
|
|
91
|
+
*/
|
|
92
|
+
const ALL_TENANTS = ["*"];
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
const CACHE_CAE_SUFFIX = ".cae";
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
const CACHE_NON_CAE_SUFFIX = ".nocae";
|
|
101
|
+
|
|
42
102
|
// Copyright (c) Microsoft Corporation.
|
|
43
103
|
// Licensed under the MIT license.
|
|
44
104
|
/**
|
|
@@ -154,66 +214,6 @@ function credentialLogger(title, log = logger$p) {
|
|
|
154
214
|
return Object.assign(Object.assign({}, credLogger), { parent: log, getToken: credentialLoggerInstance("=> getToken()", credLogger, log) });
|
|
155
215
|
}
|
|
156
216
|
|
|
157
|
-
// Copyright (c) Microsoft Corporation.
|
|
158
|
-
// Licensed under the MIT license.
|
|
159
|
-
/**
|
|
160
|
-
* Current version of the `@azure/identity` package.
|
|
161
|
-
*/
|
|
162
|
-
const SDK_VERSION = `4.1.0-beta.2`;
|
|
163
|
-
/**
|
|
164
|
-
* The default client ID for authentication
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
// TODO: temporary - this is the Azure CLI clientID - we'll replace it when
|
|
168
|
-
// Developer Sign On application is available
|
|
169
|
-
// https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/Constants.cs#L9
|
|
170
|
-
const DeveloperSignOnClientId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46";
|
|
171
|
-
/**
|
|
172
|
-
* The default tenant for authentication
|
|
173
|
-
* @internal
|
|
174
|
-
*/
|
|
175
|
-
const DefaultTenantId = "common";
|
|
176
|
-
/**
|
|
177
|
-
* A list of known Azure authority hosts
|
|
178
|
-
*/
|
|
179
|
-
exports.AzureAuthorityHosts = void 0;
|
|
180
|
-
(function (AzureAuthorityHosts) {
|
|
181
|
-
/**
|
|
182
|
-
* China-based Azure Authority Host
|
|
183
|
-
*/
|
|
184
|
-
AzureAuthorityHosts["AzureChina"] = "https://login.chinacloudapi.cn";
|
|
185
|
-
/**
|
|
186
|
-
* Germany-based Azure Authority Host
|
|
187
|
-
*/
|
|
188
|
-
AzureAuthorityHosts["AzureGermany"] = "https://login.microsoftonline.de";
|
|
189
|
-
/**
|
|
190
|
-
* US Government Azure Authority Host
|
|
191
|
-
*/
|
|
192
|
-
AzureAuthorityHosts["AzureGovernment"] = "https://login.microsoftonline.us";
|
|
193
|
-
/**
|
|
194
|
-
* Public Cloud Azure Authority Host
|
|
195
|
-
*/
|
|
196
|
-
AzureAuthorityHosts["AzurePublicCloud"] = "https://login.microsoftonline.com";
|
|
197
|
-
})(exports.AzureAuthorityHosts || (exports.AzureAuthorityHosts = {}));
|
|
198
|
-
/**
|
|
199
|
-
* @internal
|
|
200
|
-
* The default authority host.
|
|
201
|
-
*/
|
|
202
|
-
const DefaultAuthorityHost = exports.AzureAuthorityHosts.AzurePublicCloud;
|
|
203
|
-
/**
|
|
204
|
-
* @internal
|
|
205
|
-
* Allow acquiring tokens for any tenant for multi-tentant auth.
|
|
206
|
-
*/
|
|
207
|
-
const ALL_TENANTS = ["*"];
|
|
208
|
-
/**
|
|
209
|
-
* @internal
|
|
210
|
-
*/
|
|
211
|
-
const CACHE_CAE_SUFFIX = ".cae";
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
const CACHE_NON_CAE_SUFFIX = ".nocae";
|
|
216
|
-
|
|
217
217
|
// Copyright (c) Microsoft Corporation.
|
|
218
218
|
// Licensed under the MIT license.
|
|
219
219
|
function isErrorResponse(errorResponse) {
|