@azure/identity 3.2.0-alpha.20230502.2 → 3.2.0-alpha.20230509.2
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/credentials/authorityValidationOptions.js.map +1 -1
- package/dist-esm/src/credentials/defaultAzureCredential.js +3 -3
- package/dist-esm/src/credentials/defaultAzureCredential.js.map +1 -1
- package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -1
- package/package.json +1 -1
- package/types/identity.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -257,7 +257,7 @@ function credentialLogger(title, log = logger$n) {
|
|
|
257
257
|
/**
|
|
258
258
|
* Current version of the `@azure/identity` package.
|
|
259
259
|
*/
|
|
260
|
-
const SDK_VERSION = `3.2.0
|
|
260
|
+
const SDK_VERSION = `3.2.0`;
|
|
261
261
|
/**
|
|
262
262
|
* The default client ID for authentication
|
|
263
263
|
* @internal
|
|
@@ -2074,7 +2074,7 @@ function tokenExchangeMsi() {
|
|
|
2074
2074
|
async getToken(configuration, getTokenOptions = {}) {
|
|
2075
2075
|
const { scopes, clientId } = configuration;
|
|
2076
2076
|
const identityClientTokenCredentialOptions = {};
|
|
2077
|
-
const workloadIdentityCredential = new WorkloadIdentityCredential(Object.assign(Object.assign({ clientId, tenantId: process.env.AZURE_TENANT_ID, tokenFilePath: process.env.AZURE_FEDERATED_TOKEN_FILE }, identityClientTokenCredentialOptions), {
|
|
2077
|
+
const workloadIdentityCredential = new WorkloadIdentityCredential(Object.assign(Object.assign({ clientId, tenantId: process.env.AZURE_TENANT_ID, tokenFilePath: process.env.AZURE_FEDERATED_TOKEN_FILE }, identityClientTokenCredentialOptions), { disableInstanceDiscovery: true }));
|
|
2078
2078
|
const token = await workloadIdentityCredential.getToken(scopes, getTokenOptions);
|
|
2079
2079
|
return token;
|
|
2080
2080
|
},
|
|
@@ -3592,17 +3592,17 @@ class DefaultWorkloadIdentityCredential extends WorkloadIdentityCredential {
|
|
|
3592
3592
|
}
|
|
3593
3593
|
class DefaultAzureDeveloperCliCredential extends AzureDeveloperCliCredential {
|
|
3594
3594
|
constructor(options) {
|
|
3595
|
-
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.
|
|
3595
|
+
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.processTimeoutInMs }, options));
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
3598
|
class DefaultAzureCliCredential extends AzureCliCredential {
|
|
3599
3599
|
constructor(options) {
|
|
3600
|
-
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.
|
|
3600
|
+
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.processTimeoutInMs }, options));
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
class DefaultAzurePowershellCredential extends AzurePowerShellCredential {
|
|
3604
3604
|
constructor(options) {
|
|
3605
|
-
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.
|
|
3605
|
+
super(Object.assign({ processTimeoutInMs: options === null || options === void 0 ? void 0 : options.processTimeoutInMs }, options));
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
const defaultCredentials = [
|