@azure/identity 4.6.0 → 4.6.1-alpha.20250116.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.
- package/README.md +5 -1
- package/dist/browser/client/identityClient.d.ts +65 -0
- package/dist/browser/client/identityClient.d.ts.map +1 -0
- package/dist/browser/client/identityClient.js +248 -0
- package/dist/browser/client/identityClient.js.map +1 -0
- package/dist/browser/constants.d.ts +69 -0
- package/dist/browser/constants.d.ts.map +1 -0
- package/dist/browser/constants.js +75 -0
- package/dist/browser/constants.js.map +1 -0
- package/dist/browser/credentials/authorityValidationOptions.d.ts +16 -0
- package/dist/browser/credentials/authorityValidationOptions.d.ts.map +1 -0
- package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/authorizationCodeCredential.d.ts +11 -0
- package/dist/browser/credentials/authorizationCodeCredential.js +16 -0
- package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
- package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/authorizationCodeCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/azureApplicationCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/azureApplicationCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/azureApplicationCredential.d.ts +24 -0
- package/dist/browser/credentials/azureApplicationCredential.js +34 -0
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts +13 -0
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/azureApplicationCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/azureCliCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/azureCliCredential.d.ts +13 -0
- package/dist/browser/credentials/azureCliCredential.js +23 -0
- package/dist/browser/credentials/azureCliCredentialOptions.d.ts +20 -0
- package/dist/browser/credentials/azureCliCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/azureCliCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +13 -0
- package/dist/browser/credentials/azureDeveloperCliCredential.js +23 -0
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/azurePipelinesCredential.d.ts +13 -0
- package/dist/browser/credentials/azurePipelinesCredential.js +23 -0
- package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
- package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/azurePipelinesCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/azurePowerShellCredential.d.ts +12 -0
- package/dist/browser/credentials/azurePowerShellCredential.js +22 -0
- package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
- package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/azurePowerShellCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/brokerAuthOptions.d.ts +13 -0
- package/dist/browser/credentials/brokerAuthOptions.d.ts.map +1 -0
- package/dist/browser/credentials/brokerAuthOptions.js.map +1 -0
- package/dist/browser/credentials/browserCustomizationOptions.d.ts +19 -0
- package/dist/browser/credentials/browserCustomizationOptions.d.ts.map +1 -0
- package/dist/browser/credentials/chainedTokenCredential.d.ts +51 -0
- package/dist/browser/credentials/chainedTokenCredential.d.ts.map +1 -0
- package/dist/browser/credentials/chainedTokenCredential.js +92 -0
- package/dist/browser/credentials/chainedTokenCredential.js.map +1 -0
- package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/clientAssertionCredential.d.ts +12 -0
- package/dist/browser/credentials/clientAssertionCredential.js +22 -0
- package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts +9 -0
- package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/clientAssertionCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/clientCertificateCredential.d.ts +13 -0
- package/dist/browser/credentials/clientCertificateCredential.js +23 -0
- package/dist/browser/credentials/clientCertificateCredentialModels.d.ts +31 -0
- package/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
- package/dist/browser/credentials/clientCertificateCredentialModels.js +4 -0
- package/dist/browser/credentials/clientCertificateCredentialModels.js.map +1 -0
- package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts +14 -0
- package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/clientCertificateCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/clientSecretCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/clientSecretCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/clientSecretCredential.d.ts +40 -0
- package/dist/browser/credentials/clientSecretCredential.js +83 -0
- package/dist/browser/credentials/clientSecretCredentialOptions.d.ts +9 -0
- package/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/clientSecretCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/credentialPersistenceOptions.d.ts +30 -0
- package/dist/browser/credentials/credentialPersistenceOptions.d.ts.map +1 -0
- package/dist/browser/credentials/credentialPersistenceOptions.js.map +1 -0
- package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/defaultAzureCredential.d.ts +19 -0
- package/dist/browser/credentials/defaultAzureCredential.js +29 -0
- package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +49 -0
- package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/deviceCodeCredential.d.ts +13 -0
- package/dist/browser/credentials/deviceCodeCredential.js +23 -0
- package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts +53 -0
- package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/deviceCodeCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/environmentCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/environmentCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/environmentCredential.d.ts +13 -0
- package/dist/browser/credentials/environmentCredential.js +23 -0
- package/dist/browser/credentials/environmentCredentialOptions.d.ts +9 -0
- package/dist/browser/credentials/environmentCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/environmentCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/interactiveBrowserCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/interactiveBrowserCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/interactiveBrowserCredential.d.ts +53 -0
- package/dist/browser/credentials/interactiveBrowserCredential.js +86 -0
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/interactiveCredentialOptions.d.ts +25 -0
- package/dist/browser/credentials/interactiveCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/interactiveCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +122 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/index.d.ts +6 -0
- package/dist/browser/credentials/managedIdentityCredential/index.js +16 -0
- package/dist/browser/credentials/managedIdentityCredential/models.d.ts +24 -0
- package/dist/browser/credentials/managedIdentityCredential/models.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/models.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/options.d.ts +37 -0
- package/dist/browser/credentials/managedIdentityCredential/options.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/options.js +4 -0
- package/dist/browser/credentials/managedIdentityCredential/options.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js +32 -0
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/utils.d.ts +33 -0
- package/dist/browser/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
- package/dist/browser/credentials/managedIdentityCredential/utils.js +77 -0
- package/dist/browser/credentials/managedIdentityCredential/utils.js.map +1 -0
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/onBehalfOfCredential.d.ts +12 -0
- package/dist/browser/credentials/onBehalfOfCredential.js +23 -0
- package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
- package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/onBehalfOfCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/usernamePasswordCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/usernamePasswordCredential.d.ts +40 -0
- package/dist/browser/credentials/usernamePasswordCredential.js +77 -0
- package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
- package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/usernamePasswordCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/visualStudioCodeCredential.d.ts +15 -0
- package/dist/browser/credentials/visualStudioCodeCredential.js +27 -0
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
- package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/workloadIdentityCredential.d.ts +17 -0
- package/dist/browser/credentials/workloadIdentityCredential.js +27 -0
- package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
- package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
- package/dist/browser/credentials/workloadIdentityCredentialOptions.js.map +1 -0
- package/dist/browser/errors.d.ts +139 -0
- package/dist/browser/errors.d.ts.map +1 -0
- package/dist/browser/errors.js.map +1 -0
- package/dist/browser/index.d.ts +61 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +34 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/msal/browserFlows/flows.d.ts +42 -0
- package/dist/browser/msal/browserFlows/flows.d.ts.map +1 -0
- package/dist/browser/msal/browserFlows/flows.js.map +1 -0
- package/dist/browser/msal/browserFlows/msalAuthCode.d.ts +48 -0
- package/dist/browser/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
- package/dist/browser/msal/browserFlows/msalAuthCode.js +203 -0
- package/dist/browser/msal/browserFlows/msalAuthCode.js.map +1 -0
- package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
- package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
- package/dist/browser/msal/browserFlows/msalBrowserCommon.js +116 -0
- package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +1 -0
- package/dist/browser/msal/credentials.d.ts +52 -0
- package/dist/browser/msal/credentials.d.ts.map +1 -0
- package/dist/browser/msal/credentials.js.map +1 -0
- package/dist/browser/msal/msal-browser.d.mts.map +1 -0
- package/dist/browser/msal/msal-browser.mjs.map +1 -0
- package/dist/browser/msal/msal.d.ts +3 -0
- package/dist/browser/msal/msal.js +5 -0
- package/dist/browser/msal/nodeFlows/brokerOptions.d.ts +44 -0
- package/dist/browser/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
- package/dist/browser/msal/nodeFlows/msalClient.d.ts +186 -0
- package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +1 -0
- package/dist/browser/msal/nodeFlows/msalClient.js +477 -0
- package/dist/browser/msal/nodeFlows/msalClient.js.map +1 -0
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +91 -0
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
- package/dist/browser/msal/nodeFlows/msalPlugins.js +87 -0
- package/dist/browser/msal/nodeFlows/msalPlugins.js.map +1 -0
- package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
- package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
- package/dist/browser/msal/types.d.ts +87 -0
- package/dist/browser/msal/types.d.ts.map +1 -0
- package/dist/browser/msal/types.js.map +1 -0
- package/dist/browser/msal/utils.d.ts +95 -0
- package/dist/browser/msal/utils.d.ts.map +1 -0
- package/dist/browser/msal/utils.js +238 -0
- package/dist/browser/msal/utils.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/plugins/consumer-browser.d.mts.map +1 -0
- package/dist/browser/plugins/consumer-browser.mjs.map +1 -0
- package/dist/browser/plugins/consumer.d.ts +2 -0
- package/dist/browser/plugins/consumer.js +7 -0
- package/dist/browser/plugins/provider.d.ts +36 -0
- package/dist/browser/plugins/provider.d.ts.map +1 -0
- package/dist/browser/plugins/provider.js.map +1 -0
- package/dist/browser/regionalAuthority.d.ts +122 -0
- package/dist/browser/regionalAuthority.d.ts.map +1 -0
- package/dist/browser/tokenCredentialOptions.d.ts +28 -0
- package/dist/browser/tokenCredentialOptions.d.ts.map +1 -0
- package/dist/browser/tokenCredentialOptions.js.map +1 -0
- package/dist/browser/tokenProvider.d.ts +39 -0
- package/dist/browser/tokenProvider.d.ts.map +1 -0
- package/dist/browser/tokenProvider.js +53 -0
- package/dist/browser/tokenProvider.js.map +1 -0
- package/dist/browser/util/authHostEnv-browser.d.mts +4 -0
- package/dist/browser/util/authHostEnv-browser.d.mts.map +1 -0
- package/dist/browser/util/authHostEnv-browser.mjs +7 -0
- package/dist/browser/util/authHostEnv-browser.mjs.map +1 -0
- package/dist/browser/util/identityTokenEndpoint.d.ts +2 -0
- package/dist/browser/util/identityTokenEndpoint.d.ts.map +1 -0
- package/dist/browser/util/logging.d.ts +70 -0
- package/dist/browser/util/logging.d.ts.map +1 -0
- package/dist/browser/util/logging.js.map +1 -0
- package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +1 -0
- package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +1 -0
- package/dist/browser/util/processMultiTenantRequest.d.ts +9 -0
- package/dist/browser/util/processMultiTenantRequest.js +29 -0
- package/dist/browser/util/processUtils.d.ts +13 -0
- package/dist/browser/util/processUtils.d.ts.map +1 -0
- package/dist/browser/util/scopeUtils.d.ts +17 -0
- package/dist/browser/util/scopeUtils.d.ts.map +1 -0
- package/dist/browser/util/scopeUtils.js +29 -0
- package/dist/browser/util/scopeUtils.js.map +1 -0
- package/dist/browser/util/subscriptionUtils.d.ts +6 -0
- package/dist/browser/util/subscriptionUtils.d.ts.map +1 -0
- package/dist/browser/util/subscriptionUtils.js +14 -0
- package/dist/browser/util/subscriptionUtils.js.map +1 -0
- package/dist/browser/util/tenantIdUtils.d.ts +15 -0
- package/dist/browser/util/tenantIdUtils.d.ts.map +1 -0
- package/dist/browser/util/tenantIdUtils.js +44 -0
- package/dist/browser/util/tenantIdUtils.js.map +1 -0
- package/dist/browser/util/tracing.d.ts +6 -0
- package/dist/browser/util/tracing.d.ts.map +1 -0
- package/dist/browser/util/tracing.js +14 -0
- package/dist/browser/util/tracing.js.map +1 -0
- package/dist/commonjs/client/identityClient.d.ts +65 -0
- package/dist/commonjs/client/identityClient.d.ts.map +1 -0
- package/dist/commonjs/client/identityClient.js +253 -0
- package/dist/commonjs/client/identityClient.js.map +1 -0
- package/dist/commonjs/constants.d.ts +69 -0
- package/dist/commonjs/constants.d.ts.map +1 -0
- package/dist/commonjs/constants.js +78 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/credentials/authorityValidationOptions.d.ts +16 -0
- package/dist/commonjs/credentials/authorityValidationOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/authorityValidationOptions.js +5 -0
- package/dist/commonjs/credentials/authorityValidationOptions.js.map +1 -0
- package/dist/commonjs/credentials/authorizationCodeCredential.d.ts +73 -0
- package/dist/commonjs/credentials/authorizationCodeCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/authorizationCodeCredential.js +64 -0
- package/dist/commonjs/credentials/authorizationCodeCredential.js.map +1 -0
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts +24 -0
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureApplicationCredential.js +36 -0
- package/dist/commonjs/credentials/azureApplicationCredential.js.map +1 -0
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts +13 -0
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/azureCliCredential.d.ts +64 -0
- package/dist/commonjs/credentials/azureCliCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureCliCredential.js +194 -0
- package/dist/commonjs/credentials/azureCliCredential.js.map +1 -0
- package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts +20 -0
- package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureCliCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts +71 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js +176 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +1 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/azurePipelinesCredential.d.ts +38 -0
- package/dist/commonjs/credentials/azurePipelinesCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/azurePipelinesCredential.js +146 -0
- package/dist/commonjs/credentials/azurePipelinesCredential.js.map +1 -0
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/azurePowerShellCredential.d.ts +75 -0
- package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/azurePowerShellCredential.js +235 -0
- package/dist/commonjs/credentials/azurePowerShellCredential.js.map +1 -0
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/brokerAuthOptions.d.ts +13 -0
- package/dist/commonjs/credentials/brokerAuthOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/brokerAuthOptions.js +3 -0
- package/dist/commonjs/credentials/brokerAuthOptions.js.map +1 -0
- package/dist/commonjs/credentials/browserCustomizationOptions.d.ts +19 -0
- package/dist/commonjs/credentials/browserCustomizationOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/browserCustomizationOptions.js +5 -0
- package/dist/commonjs/credentials/browserCustomizationOptions.js.map +1 -0
- package/dist/commonjs/credentials/chainedTokenCredential.d.ts +51 -0
- package/dist/commonjs/credentials/chainedTokenCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/chainedTokenCredential.js +96 -0
- package/dist/commonjs/credentials/chainedTokenCredential.js.map +1 -0
- package/dist/commonjs/credentials/clientAssertionCredential.d.ts +33 -0
- package/dist/commonjs/credentials/clientAssertionCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientAssertionCredential.js +59 -0
- package/dist/commonjs/credentials/clientAssertionCredential.js.map +1 -0
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts +9 -0
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredential.d.ts +72 -0
- package/dist/commonjs/credentials/clientCertificateCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredential.js +127 -0
- package/dist/commonjs/credentials/clientCertificateCredential.js.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts +31 -0
- package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js +5 -0
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts +14 -0
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/clientSecretCredential.d.ts +37 -0
- package/dist/commonjs/credentials/clientSecretCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientSecretCredential.js +64 -0
- package/dist/commonjs/credentials/clientSecretCredential.js.map +1 -0
- package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts +9 -0
- package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts +30 -0
- package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/credentialPersistenceOptions.js +5 -0
- package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +1 -0
- package/dist/commonjs/credentials/defaultAzureCredential.d.ts +65 -0
- package/dist/commonjs/credentials/defaultAzureCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/defaultAzureCredential.js +171 -0
- package/dist/commonjs/credentials/defaultAzureCredential.js.map +1 -0
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +49 -0
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/deviceCodeCredential.d.ts +67 -0
- package/dist/commonjs/credentials/deviceCodeCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/deviceCodeCredential.js +96 -0
- package/dist/commonjs/credentials/deviceCodeCredential.js.map +1 -0
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts +53 -0
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/environmentCredential.d.ts +52 -0
- package/dist/commonjs/credentials/environmentCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/environmentCredential.js +135 -0
- package/dist/commonjs/credentials/environmentCredential.js.map +1 -0
- package/dist/commonjs/credentials/environmentCredentialOptions.d.ts +9 -0
- package/dist/commonjs/credentials/environmentCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/environmentCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/environmentCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts +56 -0
- package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/interactiveBrowserCredential.js +95 -0
- package/dist/commonjs/credentials/interactiveBrowserCredential.js.map +1 -0
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts +25 -0
- package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/interactiveCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +125 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +36 -0
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts +61 -0
- package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/index.js +221 -0
- package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts +24 -0
- package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/models.js +5 -0
- package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts +37 -0
- package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/options.js +5 -0
- package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +35 -0
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts +33 -0
- package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js +82 -0
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +1 -0
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/onBehalfOfCredential.d.ts +105 -0
- package/dist/commonjs/credentials/onBehalfOfCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/onBehalfOfCredential.js +116 -0
- package/dist/commonjs/credentials/onBehalfOfCredential.js.map +1 -0
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/usernamePasswordCredential.d.ts +41 -0
- package/dist/commonjs/credentials/usernamePasswordCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/usernamePasswordCredential.js +71 -0
- package/dist/commonjs/credentials/usernamePasswordCredential.js.map +1 -0
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts +60 -0
- package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredential.js +196 -0
- package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +5 -0
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +1 -0
- package/dist/commonjs/credentials/workloadIdentityCredential.d.ts +47 -0
- package/dist/commonjs/credentials/workloadIdentityCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/workloadIdentityCredential.js +118 -0
- package/dist/commonjs/credentials/workloadIdentityCredential.js.map +1 -0
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +5 -0
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +1 -0
- package/dist/commonjs/errors.d.ts +139 -0
- package/dist/commonjs/errors.d.ts.map +1 -0
- package/dist/commonjs/errors.js +130 -0
- package/dist/commonjs/errors.js.map +1 -0
- package/dist/commonjs/index.d.ts +61 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +69 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/msal/browserFlows/flows.d.ts +42 -0
- package/dist/commonjs/msal/browserFlows/flows.d.ts.map +1 -0
- package/dist/commonjs/msal/browserFlows/flows.js +5 -0
- package/dist/commonjs/msal/browserFlows/flows.js.map +1 -0
- package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts +48 -0
- package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
- package/dist/commonjs/msal/browserFlows/msalAuthCode.js +208 -0
- package/dist/commonjs/msal/browserFlows/msalAuthCode.js.map +1 -0
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +121 -0
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +1 -0
- package/dist/commonjs/msal/credentials.d.ts +52 -0
- package/dist/commonjs/msal/credentials.d.ts.map +1 -0
- package/dist/commonjs/msal/credentials.js +5 -0
- package/dist/commonjs/msal/credentials.js.map +1 -0
- package/dist/commonjs/msal/msal.d.ts +3 -0
- package/dist/commonjs/msal/msal.d.ts.map +1 -0
- package/dist/commonjs/msal/msal.js +9 -0
- package/dist/commonjs/msal/msal.js.map +1 -0
- package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts +44 -0
- package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js +3 -0
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +1 -0
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +186 -0
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +1 -0
- package/dist/commonjs/msal/nodeFlows/msalClient.js +482 -0
- package/dist/commonjs/msal/nodeFlows/msalClient.js.map +1 -0
- package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts +91 -0
- package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js +91 -0
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +1 -0
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +5 -0
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +1 -0
- package/dist/commonjs/msal/types.d.ts +87 -0
- package/dist/commonjs/msal/types.d.ts.map +1 -0
- package/dist/commonjs/msal/types.js +5 -0
- package/dist/commonjs/msal/types.js.map +1 -0
- package/dist/commonjs/msal/utils.d.ts +95 -0
- package/dist/commonjs/msal/utils.d.ts.map +1 -0
- package/dist/commonjs/msal/utils.js +253 -0
- package/dist/commonjs/msal/utils.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/plugins/consumer.d.ts +28 -0
- package/dist/commonjs/plugins/consumer.d.ts.map +1 -0
- package/dist/commonjs/plugins/consumer.js +46 -0
- package/dist/commonjs/plugins/consumer.js.map +1 -0
- package/dist/commonjs/plugins/provider.d.ts +36 -0
- package/dist/commonjs/plugins/provider.d.ts.map +1 -0
- package/dist/commonjs/plugins/provider.js +5 -0
- package/dist/commonjs/plugins/provider.js.map +1 -0
- package/dist/commonjs/regionalAuthority.d.ts +122 -0
- package/dist/commonjs/regionalAuthority.d.ts.map +1 -0
- package/dist/commonjs/regionalAuthority.js +144 -0
- package/dist/commonjs/regionalAuthority.js.map +1 -0
- package/dist/commonjs/tokenCredentialOptions.d.ts +28 -0
- package/dist/commonjs/tokenCredentialOptions.d.ts.map +1 -0
- package/dist/commonjs/tokenCredentialOptions.js +5 -0
- package/dist/commonjs/tokenCredentialOptions.js.map +1 -0
- package/dist/commonjs/tokenProvider.d.ts +39 -0
- package/dist/commonjs/tokenProvider.d.ts.map +1 -0
- package/dist/commonjs/tokenProvider.js +56 -0
- package/dist/commonjs/tokenProvider.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/util/identityTokenEndpoint.d.ts +2 -0
- package/dist/commonjs/util/identityTokenEndpoint.d.ts.map +1 -0
- package/dist/commonjs/util/identityTokenEndpoint.js +14 -0
- package/dist/commonjs/util/identityTokenEndpoint.js.map +1 -0
- package/dist/commonjs/util/logging.d.ts +70 -0
- package/dist/commonjs/util/logging.d.ts.map +1 -0
- package/dist/commonjs/util/logging.js +103 -0
- package/dist/commonjs/util/logging.js.map +1 -0
- package/dist/commonjs/util/processMultiTenantRequest.d.ts +10 -0
- package/dist/commonjs/util/processMultiTenantRequest.d.ts.map +1 -0
- package/dist/commonjs/util/processMultiTenantRequest.js +38 -0
- package/dist/commonjs/util/processMultiTenantRequest.js.map +1 -0
- package/dist/commonjs/util/processUtils.d.ts +13 -0
- package/dist/commonjs/util/processUtils.d.ts.map +1 -0
- package/dist/commonjs/util/processUtils.js +36 -0
- package/dist/commonjs/util/processUtils.js.map +1 -0
- package/dist/commonjs/util/scopeUtils.d.ts +17 -0
- package/dist/commonjs/util/scopeUtils.d.ts.map +1 -0
- package/dist/commonjs/util/scopeUtils.js +34 -0
- package/dist/commonjs/util/scopeUtils.js.map +1 -0
- package/dist/commonjs/util/subscriptionUtils.d.ts +6 -0
- package/dist/commonjs/util/subscriptionUtils.d.ts.map +1 -0
- package/dist/commonjs/util/subscriptionUtils.js +17 -0
- package/dist/commonjs/util/subscriptionUtils.js.map +1 -0
- package/dist/commonjs/util/tenantIdUtils.d.ts +15 -0
- package/dist/commonjs/util/tenantIdUtils.d.ts.map +1 -0
- package/dist/commonjs/util/tenantIdUtils.js +51 -0
- package/dist/commonjs/util/tenantIdUtils.js.map +1 -0
- package/dist/commonjs/util/tracing.d.ts +6 -0
- package/dist/commonjs/util/tracing.d.ts.map +1 -0
- package/dist/commonjs/util/tracing.js +17 -0
- package/dist/commonjs/util/tracing.js.map +1 -0
- package/dist/esm/client/identityClient.d.ts +65 -0
- package/dist/esm/client/identityClient.d.ts.map +1 -0
- package/dist/esm/client/identityClient.js +248 -0
- package/dist/esm/client/identityClient.js.map +1 -0
- package/dist/esm/constants.d.ts +69 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +75 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/credentials/authorityValidationOptions.d.ts +16 -0
- package/dist/esm/credentials/authorityValidationOptions.d.ts.map +1 -0
- package/dist/esm/credentials/authorityValidationOptions.js +4 -0
- package/dist/esm/credentials/authorityValidationOptions.js.map +1 -0
- package/dist/esm/credentials/authorizationCodeCredential.d.ts +73 -0
- package/dist/esm/credentials/authorizationCodeCredential.d.ts.map +1 -0
- package/dist/esm/credentials/authorizationCodeCredential.js +60 -0
- package/dist/esm/credentials/authorizationCodeCredential.js.map +1 -0
- package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
- package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/authorizationCodeCredentialOptions.js +4 -0
- package/dist/esm/credentials/authorizationCodeCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/azureApplicationCredential.d.ts +24 -0
- package/dist/esm/credentials/azureApplicationCredential.d.ts.map +1 -0
- package/dist/esm/credentials/azureApplicationCredential.js +32 -0
- package/dist/esm/credentials/azureApplicationCredential.js.map +1 -0
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts +13 -0
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/azureApplicationCredentialOptions.js +4 -0
- package/dist/esm/credentials/azureApplicationCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/azureCliCredential.d.ts +64 -0
- package/dist/esm/credentials/azureCliCredential.d.ts.map +1 -0
- package/dist/esm/credentials/azureCliCredential.js +189 -0
- package/dist/esm/credentials/azureCliCredential.js.map +1 -0
- package/dist/esm/credentials/azureCliCredentialOptions.d.ts +20 -0
- package/dist/esm/credentials/azureCliCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/azureCliCredentialOptions.js +4 -0
- package/dist/esm/credentials/azureCliCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts +71 -0
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +1 -0
- package/dist/esm/credentials/azureDeveloperCliCredential.js +171 -0
- package/dist/esm/credentials/azureDeveloperCliCredential.js.map +1 -0
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js +4 -0
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/azurePipelinesCredential.d.ts +38 -0
- package/dist/esm/credentials/azurePipelinesCredential.d.ts.map +1 -0
- package/dist/esm/credentials/azurePipelinesCredential.js +141 -0
- package/dist/esm/credentials/azurePipelinesCredential.js.map +1 -0
- package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
- package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/azurePipelinesCredentialOptions.js +4 -0
- package/dist/esm/credentials/azurePipelinesCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/azurePowerShellCredential.d.ts +75 -0
- package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +1 -0
- package/dist/esm/credentials/azurePowerShellCredential.js +229 -0
- package/dist/esm/credentials/azurePowerShellCredential.js.map +1 -0
- package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
- package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/azurePowerShellCredentialOptions.js +4 -0
- package/dist/esm/credentials/azurePowerShellCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/brokerAuthOptions.d.ts +13 -0
- package/dist/esm/credentials/brokerAuthOptions.d.ts.map +1 -0
- package/dist/esm/credentials/brokerAuthOptions.js +2 -0
- package/dist/esm/credentials/brokerAuthOptions.js.map +1 -0
- package/dist/esm/credentials/browserCustomizationOptions.d.ts +19 -0
- package/dist/esm/credentials/browserCustomizationOptions.d.ts.map +1 -0
- package/dist/esm/credentials/browserCustomizationOptions.js +4 -0
- package/dist/esm/credentials/browserCustomizationOptions.js.map +1 -0
- package/dist/esm/credentials/chainedTokenCredential.d.ts +51 -0
- package/dist/esm/credentials/chainedTokenCredential.d.ts.map +1 -0
- package/dist/esm/credentials/chainedTokenCredential.js +92 -0
- package/dist/esm/credentials/chainedTokenCredential.js.map +1 -0
- package/dist/esm/credentials/clientAssertionCredential.d.ts +33 -0
- package/dist/esm/credentials/clientAssertionCredential.d.ts.map +1 -0
- package/dist/esm/credentials/clientAssertionCredential.js +55 -0
- package/dist/esm/credentials/clientAssertionCredential.js.map +1 -0
- package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts +9 -0
- package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/clientAssertionCredentialOptions.js +4 -0
- package/dist/esm/credentials/clientAssertionCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/clientCertificateCredential.d.ts +72 -0
- package/dist/esm/credentials/clientCertificateCredential.d.ts.map +1 -0
- package/dist/esm/credentials/clientCertificateCredential.js +122 -0
- package/dist/esm/credentials/clientCertificateCredential.js.map +1 -0
- package/dist/esm/credentials/clientCertificateCredentialModels.d.ts +31 -0
- package/dist/esm/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
- package/dist/esm/credentials/clientCertificateCredentialModels.js +4 -0
- package/dist/esm/credentials/clientCertificateCredentialModels.js.map +1 -0
- package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts +14 -0
- package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/clientCertificateCredentialOptions.js +4 -0
- package/dist/esm/credentials/clientCertificateCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/clientSecretCredential.d.ts +37 -0
- package/dist/esm/credentials/clientSecretCredential.d.ts.map +1 -0
- package/dist/esm/credentials/clientSecretCredential.js +60 -0
- package/dist/esm/credentials/clientSecretCredential.js.map +1 -0
- package/dist/esm/credentials/clientSecretCredentialOptions.d.ts +9 -0
- package/dist/esm/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/clientSecretCredentialOptions.js +4 -0
- package/dist/esm/credentials/clientSecretCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/credentialPersistenceOptions.d.ts +30 -0
- package/dist/esm/credentials/credentialPersistenceOptions.d.ts.map +1 -0
- package/dist/esm/credentials/credentialPersistenceOptions.js +4 -0
- package/dist/esm/credentials/credentialPersistenceOptions.js.map +1 -0
- package/dist/esm/credentials/defaultAzureCredential.d.ts +65 -0
- package/dist/esm/credentials/defaultAzureCredential.d.ts.map +1 -0
- package/dist/esm/credentials/defaultAzureCredential.js +164 -0
- package/dist/esm/credentials/defaultAzureCredential.js.map +1 -0
- package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +49 -0
- package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/defaultAzureCredentialOptions.js +4 -0
- package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/deviceCodeCredential.d.ts +67 -0
- package/dist/esm/credentials/deviceCodeCredential.d.ts.map +1 -0
- package/dist/esm/credentials/deviceCodeCredential.js +91 -0
- package/dist/esm/credentials/deviceCodeCredential.js.map +1 -0
- package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts +53 -0
- package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/deviceCodeCredentialOptions.js +4 -0
- package/dist/esm/credentials/deviceCodeCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/environmentCredential.d.ts +52 -0
- package/dist/esm/credentials/environmentCredential.d.ts.map +1 -0
- package/dist/esm/credentials/environmentCredential.js +130 -0
- package/dist/esm/credentials/environmentCredential.js.map +1 -0
- package/dist/esm/credentials/environmentCredentialOptions.d.ts +9 -0
- package/dist/esm/credentials/environmentCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/environmentCredentialOptions.js +4 -0
- package/dist/esm/credentials/environmentCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/interactiveBrowserCredential.d.ts +56 -0
- package/dist/esm/credentials/interactiveBrowserCredential.d.ts.map +1 -0
- package/dist/esm/credentials/interactiveBrowserCredential.js +91 -0
- package/dist/esm/credentials/interactiveBrowserCredential.js.map +1 -0
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.js +4 -0
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/interactiveCredentialOptions.d.ts +25 -0
- package/dist/esm/credentials/interactiveCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/interactiveCredentialOptions.js +4 -0
- package/dist/esm/credentials/interactiveCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js +122 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js +33 -0
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/index.d.ts +61 -0
- package/dist/esm/credentials/managedIdentityCredential/index.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/index.js +217 -0
- package/dist/esm/credentials/managedIdentityCredential/index.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/models.d.ts +24 -0
- package/dist/esm/credentials/managedIdentityCredential/models.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/models.js +4 -0
- package/dist/esm/credentials/managedIdentityCredential/models.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/options.d.ts +37 -0
- package/dist/esm/credentials/managedIdentityCredential/options.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/options.js +4 -0
- package/dist/esm/credentials/managedIdentityCredential/options.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js +32 -0
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/utils.d.ts +33 -0
- package/dist/esm/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
- package/dist/esm/credentials/managedIdentityCredential/utils.js +77 -0
- package/dist/esm/credentials/managedIdentityCredential/utils.js.map +1 -0
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.js +4 -0
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/onBehalfOfCredential.d.ts +105 -0
- package/dist/esm/credentials/onBehalfOfCredential.d.ts.map +1 -0
- package/dist/esm/credentials/onBehalfOfCredential.js +112 -0
- package/dist/esm/credentials/onBehalfOfCredential.js.map +1 -0
- package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
- package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/onBehalfOfCredentialOptions.js +4 -0
- package/dist/esm/credentials/onBehalfOfCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/usernamePasswordCredential.d.ts +41 -0
- package/dist/esm/credentials/usernamePasswordCredential.d.ts.map +1 -0
- package/dist/esm/credentials/usernamePasswordCredential.js +67 -0
- package/dist/esm/credentials/usernamePasswordCredential.js.map +1 -0
- package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
- package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/usernamePasswordCredentialOptions.js +4 -0
- package/dist/esm/credentials/usernamePasswordCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredential.d.ts +60 -0
- package/dist/esm/credentials/visualStudioCodeCredential.d.ts.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredential.js +190 -0
- package/dist/esm/credentials/visualStudioCodeCredential.js.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.js +4 -0
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js +4 -0
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js.map +1 -0
- package/dist/esm/credentials/workloadIdentityCredential.d.ts +47 -0
- package/dist/esm/credentials/workloadIdentityCredential.d.ts.map +1 -0
- package/dist/esm/credentials/workloadIdentityCredential.js +114 -0
- package/dist/esm/credentials/workloadIdentityCredential.js.map +1 -0
- package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
- package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
- package/dist/esm/credentials/workloadIdentityCredentialOptions.js +4 -0
- package/dist/esm/credentials/workloadIdentityCredentialOptions.js.map +1 -0
- package/dist/esm/errors.d.ts +139 -0
- package/dist/esm/errors.d.ts.map +1 -0
- package/dist/esm/errors.js +123 -0
- package/dist/esm/errors.js.map +1 -0
- package/dist/esm/index.d.ts +61 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +34 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/msal/browserFlows/flows.d.ts +42 -0
- package/dist/esm/msal/browserFlows/flows.d.ts.map +1 -0
- package/dist/esm/msal/browserFlows/flows.js +4 -0
- package/dist/esm/msal/browserFlows/flows.js.map +1 -0
- package/dist/esm/msal/browserFlows/msalAuthCode.d.ts +48 -0
- package/dist/esm/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
- package/dist/esm/msal/browserFlows/msalAuthCode.js +203 -0
- package/dist/esm/msal/browserFlows/msalAuthCode.js.map +1 -0
- package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
- package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js +116 -0
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +1 -0
- package/dist/esm/msal/credentials.d.ts +52 -0
- package/dist/esm/msal/credentials.d.ts.map +1 -0
- package/dist/esm/msal/credentials.js +4 -0
- package/dist/esm/msal/credentials.js.map +1 -0
- package/dist/esm/msal/msal.d.ts +3 -0
- package/dist/esm/msal/msal.d.ts.map +1 -0
- package/dist/esm/msal/nodeFlows/brokerOptions.d.ts +44 -0
- package/dist/esm/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
- package/dist/esm/msal/nodeFlows/brokerOptions.js +2 -0
- package/dist/esm/msal/nodeFlows/brokerOptions.js.map +1 -0
- package/dist/esm/msal/nodeFlows/msalClient.d.ts +186 -0
- package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +1 -0
- package/dist/esm/msal/nodeFlows/msalClient.js +477 -0
- package/dist/esm/msal/nodeFlows/msalClient.js.map +1 -0
- package/dist/esm/msal/nodeFlows/msalPlugins.d.ts +91 -0
- package/dist/esm/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
- package/dist/esm/msal/nodeFlows/msalPlugins.js +87 -0
- package/dist/esm/msal/nodeFlows/msalPlugins.js.map +1 -0
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js +4 -0
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js.map +1 -0
- package/dist/esm/msal/types.d.ts +87 -0
- package/dist/esm/msal/types.d.ts.map +1 -0
- package/dist/esm/msal/types.js +4 -0
- package/dist/esm/msal/types.js.map +1 -0
- package/dist/esm/msal/utils.d.ts +95 -0
- package/dist/esm/msal/utils.d.ts.map +1 -0
- package/dist/esm/msal/utils.js +238 -0
- package/dist/esm/msal/utils.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/plugins/consumer.d.ts +28 -0
- package/dist/esm/plugins/consumer.d.ts.map +1 -0
- package/dist/esm/plugins/consumer.js +43 -0
- package/dist/esm/plugins/consumer.js.map +1 -0
- package/dist/esm/plugins/provider.d.ts +36 -0
- package/dist/esm/plugins/provider.d.ts.map +1 -0
- package/dist/esm/plugins/provider.js +4 -0
- package/dist/esm/plugins/provider.js.map +1 -0
- package/dist/esm/regionalAuthority.d.ts +122 -0
- package/dist/esm/regionalAuthority.d.ts.map +1 -0
- package/dist/esm/regionalAuthority.js +140 -0
- package/dist/esm/regionalAuthority.js.map +1 -0
- package/dist/esm/tokenCredentialOptions.d.ts +28 -0
- package/dist/esm/tokenCredentialOptions.d.ts.map +1 -0
- package/dist/esm/tokenCredentialOptions.js +4 -0
- package/dist/esm/tokenCredentialOptions.js.map +1 -0
- package/dist/esm/tokenProvider.d.ts +39 -0
- package/dist/esm/tokenProvider.d.ts.map +1 -0
- package/dist/esm/tokenProvider.js +53 -0
- package/dist/esm/tokenProvider.js.map +1 -0
- package/dist/esm/util/authHostEnv-browser.d.mts +4 -0
- package/dist/esm/util/authHostEnv-browser.d.mts.map +1 -0
- package/dist/esm/util/authHostEnv-browser.mjs +7 -0
- package/dist/esm/util/authHostEnv-browser.mjs.map +1 -0
- package/dist/esm/util/identityTokenEndpoint.d.ts +2 -0
- package/dist/esm/util/identityTokenEndpoint.d.ts.map +1 -0
- package/dist/esm/util/identityTokenEndpoint.js +11 -0
- package/dist/esm/util/identityTokenEndpoint.js.map +1 -0
- package/dist/esm/util/logging.d.ts +70 -0
- package/dist/esm/util/logging.d.ts.map +1 -0
- package/dist/esm/util/logging.js +94 -0
- package/dist/esm/util/logging.js.map +1 -0
- package/dist/esm/util/processMultiTenantRequest.d.ts +10 -0
- package/dist/esm/util/processMultiTenantRequest.d.ts.map +1 -0
- package/dist/esm/util/processMultiTenantRequest.js +35 -0
- package/dist/esm/util/processMultiTenantRequest.js.map +1 -0
- package/dist/esm/util/processUtils.d.ts +13 -0
- package/dist/esm/util/processUtils.d.ts.map +1 -0
- package/dist/esm/util/processUtils.js +32 -0
- package/dist/esm/util/processUtils.js.map +1 -0
- package/dist/esm/util/scopeUtils.d.ts +17 -0
- package/dist/esm/util/scopeUtils.d.ts.map +1 -0
- package/dist/esm/util/scopeUtils.js +29 -0
- package/dist/esm/util/scopeUtils.js.map +1 -0
- package/dist/esm/util/subscriptionUtils.d.ts +6 -0
- package/dist/esm/util/subscriptionUtils.d.ts.map +1 -0
- package/dist/esm/util/subscriptionUtils.js +14 -0
- package/dist/esm/util/subscriptionUtils.js.map +1 -0
- package/dist/esm/util/tenantIdUtils.d.ts +15 -0
- package/dist/esm/util/tenantIdUtils.d.ts.map +1 -0
- package/dist/esm/util/tenantIdUtils.js +44 -0
- package/dist/esm/util/tenantIdUtils.js.map +1 -0
- package/dist/esm/util/tracing.d.ts +6 -0
- package/dist/esm/util/tracing.d.ts.map +1 -0
- package/dist/esm/util/tracing.js +14 -0
- package/dist/esm/util/tracing.js.map +1 -0
- package/package.json +65 -79
- package/dist/index.js +0 -4211
- package/dist/index.js.map +0 -1
- package/dist-esm/src/client/identityClient.js +0 -248
- package/dist-esm/src/client/identityClient.js.map +0 -1
- package/dist-esm/src/constants.js +0 -67
- package/dist-esm/src/constants.js.map +0 -1
- package/dist-esm/src/credentials/authorizationCodeCredential.browser.js +0 -16
- package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/authorizationCodeCredential.js +0 -60
- package/dist-esm/src/credentials/authorizationCodeCredential.js.map +0 -1
- package/dist-esm/src/credentials/authorizationCodeCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/azureApplicationCredential.browser.js +0 -34
- package/dist-esm/src/credentials/azureApplicationCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/azureApplicationCredential.js +0 -32
- package/dist-esm/src/credentials/azureApplicationCredential.js.map +0 -1
- package/dist-esm/src/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/azureCliCredential.browser.js +0 -23
- package/dist-esm/src/credentials/azureCliCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/azureCliCredential.js +0 -175
- package/dist-esm/src/credentials/azureCliCredential.js.map +0 -1
- package/dist-esm/src/credentials/azureCliCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js +0 -23
- package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/azureDeveloperCliCredential.js +0 -171
- package/dist-esm/src/credentials/azureDeveloperCliCredential.js.map +0 -1
- package/dist-esm/src/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/azurePipelinesCredential.browser.js +0 -23
- package/dist-esm/src/credentials/azurePipelinesCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/azurePipelinesCredential.js +0 -141
- package/dist-esm/src/credentials/azurePipelinesCredential.js.map +0 -1
- package/dist-esm/src/credentials/azurePipelinesCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/azurePowerShellCredential.browser.js +0 -22
- package/dist-esm/src/credentials/azurePowerShellCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/azurePowerShellCredential.js +0 -229
- package/dist-esm/src/credentials/azurePowerShellCredential.js.map +0 -1
- package/dist-esm/src/credentials/azurePowerShellCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/brokerAuthOptions.js.map +0 -1
- package/dist-esm/src/credentials/chainedTokenCredential.js +0 -89
- package/dist-esm/src/credentials/chainedTokenCredential.js.map +0 -1
- package/dist-esm/src/credentials/clientAssertionCredential.browser.js +0 -22
- package/dist-esm/src/credentials/clientAssertionCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/clientAssertionCredential.js +0 -55
- package/dist-esm/src/credentials/clientAssertionCredential.js.map +0 -1
- package/dist-esm/src/credentials/clientAssertionCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/clientCertificateCredential.browser.js +0 -23
- package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/clientCertificateCredential.js +0 -119
- package/dist-esm/src/credentials/clientCertificateCredential.js.map +0 -1
- package/dist-esm/src/credentials/clientCertificateCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/clientSecretCredential.browser.js +0 -83
- package/dist-esm/src/credentials/clientSecretCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/clientSecretCredential.js +0 -60
- package/dist-esm/src/credentials/clientSecretCredential.js.map +0 -1
- package/dist-esm/src/credentials/clientSecretCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/credentialPersistenceOptions.js.map +0 -1
- package/dist-esm/src/credentials/defaultAzureCredential.browser.js +0 -29
- package/dist-esm/src/credentials/defaultAzureCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/defaultAzureCredential.js +0 -151
- package/dist-esm/src/credentials/defaultAzureCredential.js.map +0 -1
- package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/deviceCodeCredential.browser.js +0 -23
- package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/deviceCodeCredential.js +0 -91
- package/dist-esm/src/credentials/deviceCodeCredential.js.map +0 -1
- package/dist-esm/src/credentials/deviceCodeCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/environmentCredential.browser.js +0 -23
- package/dist-esm/src/credentials/environmentCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/environmentCredential.js +0 -130
- package/dist-esm/src/credentials/environmentCredential.js.map +0 -1
- package/dist-esm/src/credentials/environmentCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js +0 -86
- package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/interactiveBrowserCredential.js +0 -91
- package/dist-esm/src/credentials/interactiveBrowserCredential.js.map +0 -1
- package/dist-esm/src/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/interactiveCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +0 -71
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js +0 -71
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +0 -140
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +0 -75
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js +0 -9
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +0 -95
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js +0 -144
- package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js +0 -16
- package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/index.js +0 -37
- package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js +0 -309
- package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js +0 -212
- package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -29
- package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
- package/dist-esm/src/credentials/managedIdentityCredential/utils.js +0 -77
- package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +0 -1
- package/dist-esm/src/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/onBehalfOfCredential.browser.js +0 -23
- package/dist-esm/src/credentials/onBehalfOfCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/onBehalfOfCredential.js +0 -112
- package/dist-esm/src/credentials/onBehalfOfCredential.js.map +0 -1
- package/dist-esm/src/credentials/onBehalfOfCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/usernamePasswordCredential.browser.js +0 -77
- package/dist-esm/src/credentials/usernamePasswordCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/usernamePasswordCredential.js +0 -67
- package/dist-esm/src/credentials/usernamePasswordCredential.js.map +0 -1
- package/dist-esm/src/credentials/usernamePasswordCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js +0 -27
- package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/visualStudioCodeCredential.js +0 -190
- package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +0 -1
- package/dist-esm/src/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
- package/dist-esm/src/credentials/workloadIdentityCredential.browser.js +0 -27
- package/dist-esm/src/credentials/workloadIdentityCredential.browser.js.map +0 -1
- package/dist-esm/src/credentials/workloadIdentityCredential.js +0 -114
- package/dist-esm/src/credentials/workloadIdentityCredential.js.map +0 -1
- package/dist-esm/src/credentials/workloadIdentityCredentialOptions.js.map +0 -1
- package/dist-esm/src/errors.js.map +0 -1
- package/dist-esm/src/index.js +0 -34
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/msal/browserFlows/flows.js.map +0 -1
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js +0 -203
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +0 -1
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js +0 -116
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist-esm/src/msal/credentials.js.map +0 -1
- package/dist-esm/src/msal/msal.browser.js +0 -5
- package/dist-esm/src/msal/msal.browser.js.map +0 -1
- package/dist-esm/src/msal/nodeFlows/msalClient.js +0 -484
- package/dist-esm/src/msal/nodeFlows/msalClient.js.map +0 -1
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js +0 -87
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +0 -1
- package/dist-esm/src/msal/types.js.map +0 -1
- package/dist-esm/src/msal/utils.js +0 -232
- package/dist-esm/src/msal/utils.js.map +0 -1
- package/dist-esm/src/plugins/consumer.browser.js +0 -7
- package/dist-esm/src/plugins/consumer.browser.js.map +0 -1
- package/dist-esm/src/plugins/consumer.js +0 -43
- package/dist-esm/src/plugins/consumer.js.map +0 -1
- package/dist-esm/src/plugins/provider.js.map +0 -1
- package/dist-esm/src/tokenCredentialOptions.js.map +0 -1
- package/dist-esm/src/tokenProvider.js +0 -52
- package/dist-esm/src/tokenProvider.js.map +0 -1
- package/dist-esm/src/util/authHostEnv.browser.js +0 -7
- package/dist-esm/src/util/authHostEnv.browser.js.map +0 -1
- package/dist-esm/src/util/logging.js.map +0 -1
- package/dist-esm/src/util/processMultiTenantRequest.browser.js +0 -29
- package/dist-esm/src/util/processMultiTenantRequest.browser.js.map +0 -1
- package/dist-esm/src/util/processMultiTenantRequest.js +0 -35
- package/dist-esm/src/util/processMultiTenantRequest.js.map +0 -1
- package/dist-esm/src/util/scopeUtils.js +0 -29
- package/dist-esm/src/util/scopeUtils.js.map +0 -1
- package/dist-esm/src/util/tenantIdUtils.js +0 -44
- package/dist-esm/src/util/tenantIdUtils.js.map +0 -1
- package/dist-esm/src/util/tracing.js +0 -14
- package/dist-esm/src/util/tracing.js.map +0 -1
- package/types/identity.d.ts +0 -1853
- /package/{dist-esm/src → dist/browser}/credentials/authorityValidationOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/authorityValidationOptions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/authorizationCodeCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/azureApplicationCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/azureCliCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/azureDeveloperCliCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/azurePipelinesCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/azurePowerShellCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/brokerAuthOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/browserCustomizationOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/browserCustomizationOptions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/clientAssertionCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/clientCertificateCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/clientSecretCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/credentialPersistenceOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/defaultAzureCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/deviceCodeCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/environmentCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/interactiveBrowserCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/interactiveCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/managedIdentityCredential/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/multiTenantTokenCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/onBehalfOfCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/usernamePasswordCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialPlugin.js +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialPlugin.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/credentials/workloadIdentityCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/errors.js +0 -0
- /package/{dist-esm/src → dist/browser}/msal/browserFlows/flows.js +0 -0
- /package/{dist-esm/src → dist/browser}/msal/credentials.js +0 -0
- /package/{dist-esm/src → dist/browser}/msal/nodeFlows/brokerOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/msal/nodeFlows/brokerOptions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/msal/types.js +0 -0
- /package/{dist-esm/src → dist/browser}/plugins/provider.js +0 -0
- /package/{dist-esm/src → dist/browser}/regionalAuthority.js +0 -0
- /package/{dist-esm/src → dist/browser}/regionalAuthority.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/tokenCredentialOptions.js +0 -0
- /package/{dist-esm/src → dist/browser}/util/identityTokenEndpoint.js +0 -0
- /package/{dist-esm/src → dist/browser}/util/identityTokenEndpoint.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/util/logging.js +0 -0
- /package/{dist-esm/src → dist/browser}/util/processUtils.js +0 -0
- /package/{dist-esm/src → dist/browser}/util/processUtils.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/msal/msal.js +0 -0
- /package/{dist-esm/src → dist/esm}/msal/msal.js.map +0 -0
package/types/identity.d.ts
DELETED
|
@@ -1,1853 +0,0 @@
|
|
|
1
|
-
import { AccessToken } from '@azure/core-auth';
|
|
2
|
-
import { AzureLogger } from '@azure/logger';
|
|
3
|
-
import { CommonClientOptions } from '@azure/core-client';
|
|
4
|
-
import { GetTokenOptions } from '@azure/core-auth';
|
|
5
|
-
import { LogPolicyOptions } from '@azure/core-rest-pipeline';
|
|
6
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
7
|
-
import type { TracingContext } from '@azure/core-auth';
|
|
8
|
-
|
|
9
|
-
export { AccessToken }
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Provides an `errors` array containing {@link AuthenticationError} instance
|
|
13
|
-
* for authentication failures from credentials in a {@link ChainedTokenCredential}.
|
|
14
|
-
*/
|
|
15
|
-
export declare class AggregateAuthenticationError extends Error {
|
|
16
|
-
/**
|
|
17
|
-
* The array of error objects that were thrown while trying to authenticate
|
|
18
|
-
* with the credentials in a {@link ChainedTokenCredential}.
|
|
19
|
-
*/
|
|
20
|
-
errors: any[];
|
|
21
|
-
constructor(errors: any[], errorMessage?: string);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The Error.name value of an AggregateAuthenticationError
|
|
26
|
-
*/
|
|
27
|
-
export declare const AggregateAuthenticationErrorName = "AggregateAuthenticationError";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Provides details about a failure to authenticate with Azure Active
|
|
31
|
-
* Directory. The `errorResponse` field contains more details about
|
|
32
|
-
* the specific failure.
|
|
33
|
-
*/
|
|
34
|
-
export declare class AuthenticationError extends Error {
|
|
35
|
-
/**
|
|
36
|
-
* The HTTP status code returned from the authentication request.
|
|
37
|
-
*/
|
|
38
|
-
readonly statusCode: number;
|
|
39
|
-
/**
|
|
40
|
-
* The error response details.
|
|
41
|
-
*/
|
|
42
|
-
readonly errorResponse: ErrorResponse;
|
|
43
|
-
constructor(statusCode: number, errorBody: object | string | undefined | null, options?: {
|
|
44
|
-
cause?: unknown;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The Error.name value of an AuthenticationError
|
|
50
|
-
*/
|
|
51
|
-
export declare const AuthenticationErrorName = "AuthenticationError";
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The record to use to find the cached tokens in the cache.
|
|
55
|
-
*/
|
|
56
|
-
export declare interface AuthenticationRecord {
|
|
57
|
-
/**
|
|
58
|
-
* The associated authority, if used.
|
|
59
|
-
*/
|
|
60
|
-
authority: string;
|
|
61
|
-
/**
|
|
62
|
-
* The home account Id.
|
|
63
|
-
*/
|
|
64
|
-
homeAccountId: string;
|
|
65
|
-
/**
|
|
66
|
-
* The associated client ID.
|
|
67
|
-
*/
|
|
68
|
-
clientId: string;
|
|
69
|
-
/**
|
|
70
|
-
* The associated tenant ID.
|
|
71
|
-
*/
|
|
72
|
-
tenantId: string;
|
|
73
|
-
/**
|
|
74
|
-
* The username of the logged in account.
|
|
75
|
-
*/
|
|
76
|
-
username: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Error used to enforce authentication after trying to retrieve a token silently.
|
|
81
|
-
*/
|
|
82
|
-
export declare class AuthenticationRequiredError extends Error {
|
|
83
|
-
/**
|
|
84
|
-
* The list of scopes for which the token will have access.
|
|
85
|
-
*/
|
|
86
|
-
scopes: string[];
|
|
87
|
-
/**
|
|
88
|
-
* The options passed to the getToken request.
|
|
89
|
-
*/
|
|
90
|
-
getTokenOptions?: GetTokenOptions;
|
|
91
|
-
constructor(
|
|
92
|
-
/**
|
|
93
|
-
* Optional parameters. A message can be specified. The {@link GetTokenOptions} of the request can also be specified to more easily associate the error with the received parameters.
|
|
94
|
-
*/
|
|
95
|
-
options: AuthenticationRequiredErrorOptions);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Optional parameters to the {@link AuthenticationRequiredError}
|
|
100
|
-
*/
|
|
101
|
-
export declare interface AuthenticationRequiredErrorOptions {
|
|
102
|
-
/**
|
|
103
|
-
* The list of scopes for which the token will have access.
|
|
104
|
-
*/
|
|
105
|
-
scopes: string[];
|
|
106
|
-
/**
|
|
107
|
-
* The options passed to the getToken request.
|
|
108
|
-
*/
|
|
109
|
-
getTokenOptions?: GetTokenOptions;
|
|
110
|
-
/**
|
|
111
|
-
* The message of the error.
|
|
112
|
-
*/
|
|
113
|
-
message?: string;
|
|
114
|
-
/**
|
|
115
|
-
* The underlying cause, if any, that caused the authentication to fail.
|
|
116
|
-
*/
|
|
117
|
-
cause?: unknown;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Provides options to configure how the Identity library
|
|
122
|
-
* does authority validation during authentication requests
|
|
123
|
-
* to Microsoft Entra ID.
|
|
124
|
-
*/
|
|
125
|
-
export declare interface AuthorityValidationOptions {
|
|
126
|
-
/**
|
|
127
|
-
* The field determines whether instance discovery is performed when attempting to authenticate.
|
|
128
|
-
* Setting this to `true` will completely disable both instance discovery and authority validation.
|
|
129
|
-
* As a result, it's crucial to ensure that the configured authority host is valid and trustworthy.
|
|
130
|
-
* This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack.
|
|
131
|
-
* The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority.
|
|
132
|
-
*/
|
|
133
|
-
disableInstanceDiscovery?: boolean;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Enables authentication to Microsoft Entra ID using an authorization code
|
|
138
|
-
* that was obtained through the authorization code flow, described in more detail
|
|
139
|
-
* in the Microsoft Entra ID documentation:
|
|
140
|
-
*
|
|
141
|
-
* https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow
|
|
142
|
-
*/
|
|
143
|
-
export declare class AuthorizationCodeCredential implements TokenCredential {
|
|
144
|
-
private msalClient;
|
|
145
|
-
private disableAutomaticAuthentication?;
|
|
146
|
-
private authorizationCode;
|
|
147
|
-
private redirectUri;
|
|
148
|
-
private tenantId?;
|
|
149
|
-
private additionallyAllowedTenantIds;
|
|
150
|
-
private clientSecret?;
|
|
151
|
-
/**
|
|
152
|
-
* Creates an instance of AuthorizationCodeCredential with the details needed
|
|
153
|
-
* to request an access token using an authentication that was obtained
|
|
154
|
-
* from Microsoft Entra ID.
|
|
155
|
-
*
|
|
156
|
-
* It is currently necessary for the user of this credential to initiate
|
|
157
|
-
* the authorization code flow to obtain an authorization code to be used
|
|
158
|
-
* with this credential. A full example of this flow is provided here:
|
|
159
|
-
*
|
|
160
|
-
* https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/v2/manual/authorizationCodeSample.ts
|
|
161
|
-
*
|
|
162
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID or name.
|
|
163
|
-
* 'common' may be used when dealing with multi-tenant scenarios.
|
|
164
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
165
|
-
* @param clientSecret - A client secret that was generated for the App Registration
|
|
166
|
-
* @param authorizationCode - An authorization code that was received from following the
|
|
167
|
-
authorization code flow. This authorization code must not
|
|
168
|
-
have already been used to obtain an access token.
|
|
169
|
-
* @param redirectUri - The redirect URI that was used to request the authorization code.
|
|
170
|
-
Must be the same URI that is configured for the App Registration.
|
|
171
|
-
* @param options - Options for configuring the client which makes the access token request.
|
|
172
|
-
*/
|
|
173
|
-
constructor(tenantId: string | "common", clientId: string, clientSecret: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
|
|
174
|
-
/**
|
|
175
|
-
* Creates an instance of AuthorizationCodeCredential with the details needed
|
|
176
|
-
* to request an access token using an authentication that was obtained
|
|
177
|
-
* from Microsoft Entra ID.
|
|
178
|
-
*
|
|
179
|
-
* It is currently necessary for the user of this credential to initiate
|
|
180
|
-
* the authorization code flow to obtain an authorization code to be used
|
|
181
|
-
* with this credential. A full example of this flow is provided here:
|
|
182
|
-
*
|
|
183
|
-
* https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/v2/manual/authorizationCodeSample.ts
|
|
184
|
-
*
|
|
185
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID or name.
|
|
186
|
-
* 'common' may be used when dealing with multi-tenant scenarios.
|
|
187
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
188
|
-
* @param authorizationCode - An authorization code that was received from following the
|
|
189
|
-
authorization code flow. This authorization code must not
|
|
190
|
-
have already been used to obtain an access token.
|
|
191
|
-
* @param redirectUri - The redirect URI that was used to request the authorization code.
|
|
192
|
-
Must be the same URI that is configured for the App Registration.
|
|
193
|
-
* @param options - Options for configuring the client which makes the access token request.
|
|
194
|
-
*/
|
|
195
|
-
constructor(tenantId: string | "common", clientId: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
|
|
196
|
-
/**
|
|
197
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
198
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
199
|
-
*
|
|
200
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
201
|
-
* @param options - The options used to configure any requests this
|
|
202
|
-
* TokenCredential implementation might make.
|
|
203
|
-
*/
|
|
204
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Options for the {@link AuthorizationCodeCredential}
|
|
209
|
-
*/
|
|
210
|
-
export declare interface AuthorizationCodeCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* A list of known Azure authority hosts
|
|
215
|
-
*/
|
|
216
|
-
export declare enum AzureAuthorityHosts {
|
|
217
|
-
/**
|
|
218
|
-
* China-based Azure Authority Host
|
|
219
|
-
*/
|
|
220
|
-
AzureChina = "https://login.chinacloudapi.cn",
|
|
221
|
-
/**
|
|
222
|
-
* Germany-based Azure Authority Host
|
|
223
|
-
*/
|
|
224
|
-
AzureGermany = "https://login.microsoftonline.de",
|
|
225
|
-
/**
|
|
226
|
-
* US Government Azure Authority Host
|
|
227
|
-
*/
|
|
228
|
-
AzureGovernment = "https://login.microsoftonline.us",
|
|
229
|
-
/**
|
|
230
|
-
* Public Cloud Azure Authority Host
|
|
231
|
-
*/
|
|
232
|
-
AzurePublicCloud = "https://login.microsoftonline.com"
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* This credential will use the currently logged-in user login information
|
|
237
|
-
* via the Azure CLI ('az') commandline tool.
|
|
238
|
-
* To do so, it will read the user access token and expire time
|
|
239
|
-
* with Azure CLI command "az account get-access-token".
|
|
240
|
-
*/
|
|
241
|
-
export declare class AzureCliCredential implements TokenCredential {
|
|
242
|
-
private tenantId?;
|
|
243
|
-
private additionallyAllowedTenantIds;
|
|
244
|
-
private timeout?;
|
|
245
|
-
/**
|
|
246
|
-
* Creates an instance of the {@link AzureCliCredential}.
|
|
247
|
-
*
|
|
248
|
-
* To use this credential, ensure that you have already logged
|
|
249
|
-
* in via the 'az' tool using the command "az login" from the commandline.
|
|
250
|
-
*
|
|
251
|
-
* @param options - Options, to optionally allow multi-tenant requests.
|
|
252
|
-
*/
|
|
253
|
-
constructor(options?: AzureCliCredentialOptions);
|
|
254
|
-
/**
|
|
255
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
256
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
257
|
-
*
|
|
258
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
259
|
-
* @param options - The options used to configure any requests this
|
|
260
|
-
* TokenCredential implementation might make.
|
|
261
|
-
*/
|
|
262
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
263
|
-
/**
|
|
264
|
-
* Parses the raw JSON response from the Azure CLI into a usable AccessToken object
|
|
265
|
-
*
|
|
266
|
-
* @param rawResponse - The raw JSON response from the Azure CLI
|
|
267
|
-
* @returns An access token with the expiry time parsed from the raw response
|
|
268
|
-
*
|
|
269
|
-
* The expiryTime of the credential's access token, in milliseconds, is calculated as follows:
|
|
270
|
-
*
|
|
271
|
-
* When available, expires_on (introduced in Azure CLI v2.54.0) will be preferred. Otherwise falls back to expiresOn.
|
|
272
|
-
*/
|
|
273
|
-
private parseRawResponse;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Options for the {@link AzureCliCredential}
|
|
278
|
-
*/
|
|
279
|
-
export declare interface AzureCliCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
280
|
-
/**
|
|
281
|
-
* Allows specifying a tenant ID
|
|
282
|
-
*/
|
|
283
|
-
tenantId?: string;
|
|
284
|
-
/**
|
|
285
|
-
* Process timeout configurable for making token requests, provided in milliseconds
|
|
286
|
-
*/
|
|
287
|
-
processTimeoutInMs?: number;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Azure Developer CLI is a command-line interface tool that allows developers to create, manage, and deploy
|
|
292
|
-
* resources in Azure. It's built on top of the Azure CLI and provides additional functionality specific
|
|
293
|
-
* to Azure developers. It allows users to authenticate as a user and/or a service principal against
|
|
294
|
-
* <a href="https://learn.microsoft.com/entra/fundamentals/">Microsoft Entra ID</a>. The
|
|
295
|
-
* AzureDeveloperCliCredential authenticates in a development environment and acquires a token on behalf of
|
|
296
|
-
* the logged-in user or service principal in the Azure Developer CLI. It acts as the Azure Developer CLI logged in user or
|
|
297
|
-
* service principal and executes an Azure CLI command underneath to authenticate the application against
|
|
298
|
-
* Microsoft Entra ID.
|
|
299
|
-
*
|
|
300
|
-
* <h2> Configure AzureDeveloperCliCredential </h2>
|
|
301
|
-
*
|
|
302
|
-
* To use this credential, the developer needs to authenticate locally in Azure Developer CLI using one of the
|
|
303
|
-
* commands below:
|
|
304
|
-
*
|
|
305
|
-
* <ol>
|
|
306
|
-
* <li>Run "azd auth login" in Azure Developer CLI to authenticate interactively as a user.</li>
|
|
307
|
-
* <li>Run "azd auth login --client-id clientID --client-secret clientSecret
|
|
308
|
-
* --tenant-id tenantID" to authenticate as a service principal.</li>
|
|
309
|
-
* </ol>
|
|
310
|
-
*
|
|
311
|
-
* You may need to repeat this process after a certain time period, depending on the refresh token validity in your
|
|
312
|
-
* organization. Generally, the refresh token validity period is a few weeks to a few months.
|
|
313
|
-
* AzureDeveloperCliCredential will prompt you to sign in again.
|
|
314
|
-
*/
|
|
315
|
-
export declare class AzureDeveloperCliCredential implements TokenCredential {
|
|
316
|
-
private tenantId?;
|
|
317
|
-
private additionallyAllowedTenantIds;
|
|
318
|
-
private timeout?;
|
|
319
|
-
/**
|
|
320
|
-
* Creates an instance of the {@link AzureDeveloperCliCredential}.
|
|
321
|
-
*
|
|
322
|
-
* To use this credential, ensure that you have already logged
|
|
323
|
-
* in via the 'azd' tool using the command "azd auth login" from the commandline.
|
|
324
|
-
*
|
|
325
|
-
* @param options - Options, to optionally allow multi-tenant requests.
|
|
326
|
-
*/
|
|
327
|
-
constructor(options?: AzureDeveloperCliCredentialOptions);
|
|
328
|
-
/**
|
|
329
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
330
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
331
|
-
*
|
|
332
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
333
|
-
* @param options - The options used to configure any requests this
|
|
334
|
-
* TokenCredential implementation might make.
|
|
335
|
-
*/
|
|
336
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Options for the {@link AzureDeveloperCliCredential}
|
|
341
|
-
*/
|
|
342
|
-
export declare interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
343
|
-
/**
|
|
344
|
-
* Allows specifying a tenant ID
|
|
345
|
-
*/
|
|
346
|
-
tenantId?: string;
|
|
347
|
-
/**
|
|
348
|
-
* Process timeout configurable for making token requests, provided in milliseconds
|
|
349
|
-
*/
|
|
350
|
-
processTimeoutInMs?: number;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* This credential is designed to be used in Azure Pipelines with service connections
|
|
355
|
-
* as a setup for workload identity federation.
|
|
356
|
-
*/
|
|
357
|
-
export declare class AzurePipelinesCredential implements TokenCredential {
|
|
358
|
-
private clientAssertionCredential;
|
|
359
|
-
private identityClient;
|
|
360
|
-
/**
|
|
361
|
-
* AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
|
|
362
|
-
* @param tenantId - tenantId associated with the service connection
|
|
363
|
-
* @param clientId - clientId associated with the service connection
|
|
364
|
-
* @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key
|
|
365
|
-
* @param systemAccessToken - The pipeline's <see href="https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops%26tabs=yaml#systemaccesstoken">System.AccessToken</see> value.
|
|
366
|
-
* @param options - The identity client options to use for authentication.
|
|
367
|
-
*/
|
|
368
|
-
constructor(tenantId: string, clientId: string, serviceConnectionId: string, systemAccessToken: string, options?: AzurePipelinesCredentialOptions);
|
|
369
|
-
/**
|
|
370
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
371
|
-
* If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.
|
|
372
|
-
*
|
|
373
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
374
|
-
* @param options - The options used to configure any requests this
|
|
375
|
-
* TokenCredential implementation might make.
|
|
376
|
-
*/
|
|
377
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
378
|
-
/**
|
|
379
|
-
*
|
|
380
|
-
* @param oidcRequestUrl - oidc request url
|
|
381
|
-
* @param systemAccessToken - system access token
|
|
382
|
-
* @returns OIDC token from Azure Pipelines
|
|
383
|
-
*/
|
|
384
|
-
private requestOidcToken;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Optional parameters for the {@link AzurePipelinesCredential} class.
|
|
389
|
-
*/
|
|
390
|
-
export declare interface AzurePipelinesCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* This credential will use the currently logged-in user information from the
|
|
395
|
-
* Azure PowerShell module. To do so, it will read the user access token and
|
|
396
|
-
* expire time with Azure PowerShell command `Get-AzAccessToken -ResourceUrl {ResourceScope}`
|
|
397
|
-
*/
|
|
398
|
-
export declare class AzurePowerShellCredential implements TokenCredential {
|
|
399
|
-
private tenantId?;
|
|
400
|
-
private additionallyAllowedTenantIds;
|
|
401
|
-
private timeout?;
|
|
402
|
-
/**
|
|
403
|
-
* Creates an instance of the {@link AzurePowerShellCredential}.
|
|
404
|
-
*
|
|
405
|
-
* To use this credential:
|
|
406
|
-
* - Install the Azure Az PowerShell module with:
|
|
407
|
-
* `Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force`.
|
|
408
|
-
* - You have already logged in to Azure PowerShell using the command
|
|
409
|
-
* `Connect-AzAccount` from the command line.
|
|
410
|
-
*
|
|
411
|
-
* @param options - Options, to optionally allow multi-tenant requests.
|
|
412
|
-
*/
|
|
413
|
-
constructor(options?: AzurePowerShellCredentialOptions);
|
|
414
|
-
/**
|
|
415
|
-
* Gets the access token from Azure PowerShell
|
|
416
|
-
* @param resource - The resource to use when getting the token
|
|
417
|
-
*/
|
|
418
|
-
private getAzurePowerShellAccessToken;
|
|
419
|
-
/**
|
|
420
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
421
|
-
* If the authentication cannot be performed through PowerShell, a {@link CredentialUnavailableError} will be thrown.
|
|
422
|
-
*
|
|
423
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
424
|
-
* @param options - The options used to configure any requests this TokenCredential implementation might make.
|
|
425
|
-
*/
|
|
426
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Options for the {@link AzurePowerShellCredential}
|
|
431
|
-
*/
|
|
432
|
-
export declare interface AzurePowerShellCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
433
|
-
/**
|
|
434
|
-
* Allows specifying a tenant ID
|
|
435
|
-
*/
|
|
436
|
-
tenantId?: string;
|
|
437
|
-
/**
|
|
438
|
-
* Process timeout configurable for making token requests, provided in milliseconds
|
|
439
|
-
*/
|
|
440
|
-
processTimeoutInMs?: number;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Configuration options for InteractiveBrowserCredential
|
|
445
|
-
* to support WAM Broker Authentication.
|
|
446
|
-
*/
|
|
447
|
-
export declare interface BrokerAuthOptions {
|
|
448
|
-
/**
|
|
449
|
-
* Options to allow broker authentication when using InteractiveBrowserCredential
|
|
450
|
-
*
|
|
451
|
-
*/
|
|
452
|
-
brokerOptions?: BrokerOptions;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* Parameters when WAM broker authentication is disabled.
|
|
457
|
-
*/
|
|
458
|
-
export declare interface BrokerDisabledOptions {
|
|
459
|
-
/**
|
|
460
|
-
* If set to true, broker will be enabled for WAM support on Windows.
|
|
461
|
-
*/
|
|
462
|
-
enabled: false;
|
|
463
|
-
/**
|
|
464
|
-
* If set to true, MSA account will be passed through, required for WAM authentication.
|
|
465
|
-
*/
|
|
466
|
-
legacyEnableMsaPassthrough?: undefined;
|
|
467
|
-
/**
|
|
468
|
-
* Window handle for parent window, required for WAM authentication.
|
|
469
|
-
*/
|
|
470
|
-
parentWindowHandle: undefined;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* Parameters when WAM broker authentication is enabled.
|
|
475
|
-
*/
|
|
476
|
-
export declare interface BrokerEnabledOptions {
|
|
477
|
-
/**
|
|
478
|
-
* If set to true, broker will be enabled for WAM support on Windows.
|
|
479
|
-
*/
|
|
480
|
-
enabled: true;
|
|
481
|
-
/**
|
|
482
|
-
* If set to true, MSA account will be passed through, required for WAM authentication.
|
|
483
|
-
*/
|
|
484
|
-
legacyEnableMsaPassthrough?: boolean;
|
|
485
|
-
/**
|
|
486
|
-
* Window handle for parent window, required for WAM authentication.
|
|
487
|
-
*/
|
|
488
|
-
parentWindowHandle: Uint8Array;
|
|
489
|
-
/**
|
|
490
|
-
* If set to true, the credential will attempt to use the default broker account for authentication before falling back to interactive authentication.
|
|
491
|
-
* Default is set to false.
|
|
492
|
-
*/
|
|
493
|
-
useDefaultBrokerAccount?: boolean;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Parameters that enable WAM broker authentication in the InteractiveBrowserCredential.
|
|
498
|
-
*/
|
|
499
|
-
export declare type BrokerOptions = BrokerEnabledOptions | BrokerDisabledOptions;
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Shared configuration options for browser customization
|
|
503
|
-
*/
|
|
504
|
-
export declare interface BrowserCustomizationOptions {
|
|
505
|
-
/**
|
|
506
|
-
* Shared configuration options for browser customization
|
|
507
|
-
*/
|
|
508
|
-
browserCustomizationOptions?: {
|
|
509
|
-
/**
|
|
510
|
-
* Format for error messages for display in browser
|
|
511
|
-
*/
|
|
512
|
-
errorMessage?: string;
|
|
513
|
-
/**
|
|
514
|
-
* Format for success messages for display in browser
|
|
515
|
-
*/
|
|
516
|
-
successMessage?: string;
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* (Browser-only feature)
|
|
522
|
-
* The "login style" to use in the authentication flow:
|
|
523
|
-
* - "redirect" redirects the user to the authentication page and then
|
|
524
|
-
* redirects them back to the page once authentication is completed.
|
|
525
|
-
* - "popup" opens a new browser window through with the redirect flow
|
|
526
|
-
* is initiated. The user's existing browser window does not leave
|
|
527
|
-
* the current page
|
|
528
|
-
*/
|
|
529
|
-
export declare type BrowserLoginStyle = "redirect" | "popup";
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Enables multiple `TokenCredential` implementations to be tried in order
|
|
533
|
-
* until one of the getToken methods returns an access token.
|
|
534
|
-
*/
|
|
535
|
-
export declare class ChainedTokenCredential implements TokenCredential {
|
|
536
|
-
private _sources;
|
|
537
|
-
/**
|
|
538
|
-
* Creates an instance of ChainedTokenCredential using the given credentials.
|
|
539
|
-
*
|
|
540
|
-
* @param sources - `TokenCredential` implementations to be tried in order.
|
|
541
|
-
*
|
|
542
|
-
* Example usage:
|
|
543
|
-
* ```ts snippet:chained_token_credential_example
|
|
544
|
-
* import { ClientSecretCredential, ChainedTokenCredential } from "@azure/identity";
|
|
545
|
-
*
|
|
546
|
-
* const tenantId = "<tenant-id>";
|
|
547
|
-
* const clientId = "<client-id>";
|
|
548
|
-
* const clientSecret = "<client-secret>";
|
|
549
|
-
* const anotherClientId = "<another-client-id>";
|
|
550
|
-
* const anotherSecret = "<another-client-secret>";
|
|
551
|
-
* const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
|
|
552
|
-
* const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret);
|
|
553
|
-
* const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);
|
|
554
|
-
* ```
|
|
555
|
-
*/
|
|
556
|
-
constructor(...sources: TokenCredential[]);
|
|
557
|
-
/**
|
|
558
|
-
* Returns the first access token returned by one of the chained
|
|
559
|
-
* `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
|
|
560
|
-
* when one or more credentials throws an {@link AuthenticationError} and
|
|
561
|
-
* no credentials have returned an access token.
|
|
562
|
-
*
|
|
563
|
-
* This method is called automatically by Azure SDK client libraries. You may call this method
|
|
564
|
-
* directly, but you must also handle token caching and token refreshing.
|
|
565
|
-
*
|
|
566
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
567
|
-
* @param options - The options used to configure any requests this
|
|
568
|
-
* `TokenCredential` implementation might make.
|
|
569
|
-
*/
|
|
570
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
571
|
-
private getTokenInternal;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Authenticates a service principal with a JWT assertion.
|
|
576
|
-
*/
|
|
577
|
-
export declare class ClientAssertionCredential implements TokenCredential {
|
|
578
|
-
private msalClient;
|
|
579
|
-
private tenantId;
|
|
580
|
-
private additionallyAllowedTenantIds;
|
|
581
|
-
private getAssertion;
|
|
582
|
-
private options;
|
|
583
|
-
/**
|
|
584
|
-
* Creates an instance of the ClientAssertionCredential with the details
|
|
585
|
-
* needed to authenticate against Microsoft Entra ID with a client
|
|
586
|
-
* assertion provided by the developer through the `getAssertion` function parameter.
|
|
587
|
-
*
|
|
588
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
|
589
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
590
|
-
* @param getAssertion - A function that retrieves the assertion for the credential to use.
|
|
591
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
592
|
-
*/
|
|
593
|
-
constructor(tenantId: string, clientId: string, getAssertion: () => Promise<string>, options?: ClientAssertionCredentialOptions);
|
|
594
|
-
/**
|
|
595
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
596
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
597
|
-
*
|
|
598
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
599
|
-
* @param options - The options used to configure any requests this
|
|
600
|
-
* TokenCredential implementation might make.
|
|
601
|
-
*/
|
|
602
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* Options for the {@link ClientAssertionCredential}
|
|
607
|
-
*/
|
|
608
|
-
export declare interface ClientAssertionCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
|
613
|
-
* certificate that is assigned to an App Registration. More information
|
|
614
|
-
* on how to configure certificate authentication can be found here:
|
|
615
|
-
*
|
|
616
|
-
* https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-azure-ad
|
|
617
|
-
*
|
|
618
|
-
*/
|
|
619
|
-
export declare class ClientCertificateCredential implements TokenCredential {
|
|
620
|
-
private tenantId;
|
|
621
|
-
private additionallyAllowedTenantIds;
|
|
622
|
-
private certificateConfiguration;
|
|
623
|
-
private sendCertificateChain?;
|
|
624
|
-
private msalClient;
|
|
625
|
-
/**
|
|
626
|
-
* Creates an instance of the ClientCertificateCredential with the details
|
|
627
|
-
* needed to authenticate against Microsoft Entra ID with a certificate.
|
|
628
|
-
*
|
|
629
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
|
630
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
631
|
-
* @param certificatePath - The path to a PEM-encoded public/private key certificate on the filesystem.
|
|
632
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
633
|
-
*/
|
|
634
|
-
constructor(tenantId: string, clientId: string, certificatePath: string, options?: ClientCertificateCredentialOptions);
|
|
635
|
-
/**
|
|
636
|
-
* Creates an instance of the ClientCertificateCredential with the details
|
|
637
|
-
* needed to authenticate against Microsoft Entra ID with a certificate.
|
|
638
|
-
*
|
|
639
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
|
640
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
641
|
-
* @param configuration - Other parameters required, including the path of the certificate on the filesystem.
|
|
642
|
-
* If the type is ignored, we will throw the value of the path to a PEM certificate.
|
|
643
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
644
|
-
*/
|
|
645
|
-
constructor(tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificatePath, options?: ClientCertificateCredentialOptions);
|
|
646
|
-
/**
|
|
647
|
-
* Creates an instance of the ClientCertificateCredential with the details
|
|
648
|
-
* needed to authenticate against Microsoft Entra ID with a certificate.
|
|
649
|
-
*
|
|
650
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
|
651
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
652
|
-
* @param configuration - Other parameters required, including the PEM-encoded certificate as a string.
|
|
653
|
-
* If the type is ignored, we will throw the value of the PEM-encoded certificate.
|
|
654
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
655
|
-
*/
|
|
656
|
-
constructor(tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificate, options?: ClientCertificateCredentialOptions);
|
|
657
|
-
/**
|
|
658
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
659
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
660
|
-
*
|
|
661
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
662
|
-
* @param options - The options used to configure any requests this
|
|
663
|
-
* TokenCredential implementation might make.
|
|
664
|
-
*/
|
|
665
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
666
|
-
private buildClientCertificate;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Optional parameters for the {@link ClientCertificateCredential} class.
|
|
671
|
-
*/
|
|
672
|
-
export declare interface ClientCertificateCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
673
|
-
/**
|
|
674
|
-
* Option to include x5c header for SubjectName and Issuer name authorization.
|
|
675
|
-
* Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
|
|
676
|
-
*/
|
|
677
|
-
sendCertificateChain?: boolean;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Required configuration options for the {@link ClientCertificateCredential}, with either the string contents of a PEM certificate, or the path to a PEM certificate.
|
|
682
|
-
*/
|
|
683
|
-
export declare type ClientCertificateCredentialPEMConfiguration = ClientCertificatePEMCertificate | ClientCertificatePEMCertificatePath;
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Required configuration options for the {@link ClientCertificateCredential}, with the string contents of a PEM certificate
|
|
687
|
-
*/
|
|
688
|
-
export declare interface ClientCertificatePEMCertificate {
|
|
689
|
-
/**
|
|
690
|
-
* The PEM-encoded public/private key certificate on the filesystem.
|
|
691
|
-
*/
|
|
692
|
-
certificate: string;
|
|
693
|
-
/**
|
|
694
|
-
* The password for the certificate file.
|
|
695
|
-
*/
|
|
696
|
-
certificatePassword?: string;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Required configuration options for the {@link ClientCertificateCredential}, with the path to a PEM certificate.
|
|
701
|
-
*/
|
|
702
|
-
export declare interface ClientCertificatePEMCertificatePath {
|
|
703
|
-
/**
|
|
704
|
-
* The path to the PEM-encoded public/private key certificate on the filesystem.
|
|
705
|
-
*/
|
|
706
|
-
certificatePath: string;
|
|
707
|
-
/**
|
|
708
|
-
* The password for the certificate file.
|
|
709
|
-
*/
|
|
710
|
-
certificatePassword?: string;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Enables authentication to Microsoft Entra ID using a client secret
|
|
715
|
-
* that was generated for an App Registration. More information on how
|
|
716
|
-
* to configure a client secret can be found here:
|
|
717
|
-
*
|
|
718
|
-
* https://learn.microsoft.com/entra/identity-platform/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application
|
|
719
|
-
*
|
|
720
|
-
*/
|
|
721
|
-
export declare class ClientSecretCredential implements TokenCredential {
|
|
722
|
-
private tenantId;
|
|
723
|
-
private additionallyAllowedTenantIds;
|
|
724
|
-
private msalClient;
|
|
725
|
-
private clientSecret;
|
|
726
|
-
/**
|
|
727
|
-
* Creates an instance of the ClientSecretCredential with the details
|
|
728
|
-
* needed to authenticate against Microsoft Entra ID with a client
|
|
729
|
-
* secret.
|
|
730
|
-
*
|
|
731
|
-
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
|
732
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
733
|
-
* @param clientSecret - A client secret that was generated for the App Registration.
|
|
734
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
735
|
-
*/
|
|
736
|
-
constructor(tenantId: string, clientId: string, clientSecret: string, options?: ClientSecretCredentialOptions);
|
|
737
|
-
/**
|
|
738
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
739
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
740
|
-
*
|
|
741
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
742
|
-
* @param options - The options used to configure any requests this
|
|
743
|
-
* TokenCredential implementation might make.
|
|
744
|
-
*/
|
|
745
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Optional parameters for the {@link ClientSecretCredential} class.
|
|
750
|
-
*/
|
|
751
|
-
export declare interface ClientSecretCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Shared configuration options for credentials that support persistent token
|
|
756
|
-
* caching.
|
|
757
|
-
*/
|
|
758
|
-
export declare interface CredentialPersistenceOptions {
|
|
759
|
-
/**
|
|
760
|
-
* Options to provide to the persistence layer (if one is available) when
|
|
761
|
-
* storing credentials.
|
|
762
|
-
*
|
|
763
|
-
* You must first register a persistence provider plugin. See the
|
|
764
|
-
* `@azure/identity-cache-persistence` package on NPM.
|
|
765
|
-
*
|
|
766
|
-
* Example:
|
|
767
|
-
*
|
|
768
|
-
* ```ts snippet:credential_persistence_options_example
|
|
769
|
-
* import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
|
|
770
|
-
*
|
|
771
|
-
* useIdentityPlugin(cachePersistencePlugin);
|
|
772
|
-
* const credential = new DeviceCodeCredential({
|
|
773
|
-
* tokenCachePersistenceOptions: {
|
|
774
|
-
* enabled: true,
|
|
775
|
-
* },
|
|
776
|
-
* });
|
|
777
|
-
* ```
|
|
778
|
-
*/
|
|
779
|
-
tokenCachePersistenceOptions?: TokenCachePersistenceOptions;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* This signifies that the credential that was tried in a chained credential
|
|
784
|
-
* was not available to be used as the credential. Rather than treating this as
|
|
785
|
-
* an error that should halt the chain, it's caught and the chain continues
|
|
786
|
-
*/
|
|
787
|
-
export declare class CredentialUnavailableError extends Error {
|
|
788
|
-
constructor(message?: string, options?: {
|
|
789
|
-
cause?: unknown;
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* The Error.name value of an CredentialUnavailable
|
|
795
|
-
*/
|
|
796
|
-
export declare const CredentialUnavailableErrorName = "CredentialUnavailableError";
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
|
800
|
-
* work for most applications that use the Azure SDK.
|
|
801
|
-
*/
|
|
802
|
-
export declare class DefaultAzureCredential extends ChainedTokenCredential {
|
|
803
|
-
/**
|
|
804
|
-
* Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialClientIdOptions}
|
|
805
|
-
*
|
|
806
|
-
* This credential provides a default {@link ChainedTokenCredential} configuration that should
|
|
807
|
-
* work for most applications that use the Azure SDK.
|
|
808
|
-
*
|
|
809
|
-
* The following credential types will be tried, in order:
|
|
810
|
-
*
|
|
811
|
-
* - {@link EnvironmentCredential}
|
|
812
|
-
* - {@link WorkloadIdentityCredential}
|
|
813
|
-
* - {@link ManagedIdentityCredential}
|
|
814
|
-
* - {@link AzureCliCredential}
|
|
815
|
-
* - {@link AzurePowerShellCredential}
|
|
816
|
-
* - {@link AzureDeveloperCliCredential}
|
|
817
|
-
*
|
|
818
|
-
* Consult the documentation of these credential types for more information
|
|
819
|
-
* on how they attempt authentication.
|
|
820
|
-
*
|
|
821
|
-
* @param options - Optional parameters. See {@link DefaultAzureCredentialClientIdOptions}.
|
|
822
|
-
*/
|
|
823
|
-
constructor(options?: DefaultAzureCredentialClientIdOptions);
|
|
824
|
-
/**
|
|
825
|
-
* Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialResourceIdOptions}
|
|
826
|
-
*
|
|
827
|
-
* This credential provides a default {@link ChainedTokenCredential} configuration that should
|
|
828
|
-
* work for most applications that use the Azure SDK.
|
|
829
|
-
*
|
|
830
|
-
* The following credential types will be tried, in order:
|
|
831
|
-
*
|
|
832
|
-
* - {@link EnvironmentCredential}
|
|
833
|
-
* - {@link WorkloadIdentityCredential}
|
|
834
|
-
* - {@link ManagedIdentityCredential}
|
|
835
|
-
* - {@link AzureCliCredential}
|
|
836
|
-
* - {@link AzurePowerShellCredential}
|
|
837
|
-
* - {@link AzureDeveloperCliCredential}
|
|
838
|
-
*
|
|
839
|
-
* Consult the documentation of these credential types for more information
|
|
840
|
-
* on how they attempt authentication.
|
|
841
|
-
*
|
|
842
|
-
* @param options - Optional parameters. See {@link DefaultAzureCredentialResourceIdOptions}.
|
|
843
|
-
*/
|
|
844
|
-
constructor(options?: DefaultAzureCredentialResourceIdOptions);
|
|
845
|
-
/**
|
|
846
|
-
* Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialOptions}
|
|
847
|
-
*
|
|
848
|
-
* This credential provides a default {@link ChainedTokenCredential} configuration that should
|
|
849
|
-
* work for most applications that use the Azure SDK.
|
|
850
|
-
*
|
|
851
|
-
* The following credential types will be tried, in order:
|
|
852
|
-
*
|
|
853
|
-
* - {@link EnvironmentCredential}
|
|
854
|
-
* - {@link WorkloadIdentityCredential}
|
|
855
|
-
* - {@link ManagedIdentityCredential}
|
|
856
|
-
* - {@link AzureCliCredential}
|
|
857
|
-
* - {@link AzurePowerShellCredential}
|
|
858
|
-
* - {@link AzureDeveloperCliCredential}
|
|
859
|
-
*
|
|
860
|
-
* Consult the documentation of these credential types for more information
|
|
861
|
-
* on how they attempt authentication.
|
|
862
|
-
*
|
|
863
|
-
* @param options - Optional parameters. See {@link DefaultAzureCredentialOptions}.
|
|
864
|
-
*/
|
|
865
|
-
constructor(options?: DefaultAzureCredentialOptions);
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Provides options to configure the {@link DefaultAzureCredential} class.
|
|
870
|
-
* This variation supports `managedIdentityClientId` and not `managedIdentityResourceId`, since only one of both is supported.
|
|
871
|
-
*/
|
|
872
|
-
export declare interface DefaultAzureCredentialClientIdOptions extends DefaultAzureCredentialOptions {
|
|
873
|
-
/**
|
|
874
|
-
* Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
|
|
875
|
-
* This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
|
876
|
-
*/
|
|
877
|
-
managedIdentityClientId?: string;
|
|
878
|
-
/**
|
|
879
|
-
* Optionally pass in a user assigned client ID to be used by the {@link WorkloadIdentityCredential}.
|
|
880
|
-
* This client ID can also be passed through to the {@link WorkloadIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
|
881
|
-
*/
|
|
882
|
-
workloadIdentityClientId?: string;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* Provides options to configure the {@link DefaultAzureCredential} class.
|
|
887
|
-
*/
|
|
888
|
-
export declare interface DefaultAzureCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
889
|
-
/**
|
|
890
|
-
* Optionally pass in a Tenant ID to be used as part of the credential.
|
|
891
|
-
* By default it may use a generic tenant ID depending on the underlying credential.
|
|
892
|
-
*/
|
|
893
|
-
tenantId?: string;
|
|
894
|
-
/**
|
|
895
|
-
* Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowershellCredential},
|
|
896
|
-
* {@link AzureDeveloperCliCredential} and {@link AzureCliCredential}.
|
|
897
|
-
* Process timeout for credentials should be provided in milliseconds.
|
|
898
|
-
*/
|
|
899
|
-
processTimeoutInMs?: number;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* Provides options to configure the {@link DefaultAzureCredential} class.
|
|
904
|
-
* This variation supports `managedIdentityResourceId` and not `managedIdentityClientId`, since only one of both is supported.
|
|
905
|
-
*/
|
|
906
|
-
export declare interface DefaultAzureCredentialResourceIdOptions extends DefaultAzureCredentialOptions {
|
|
907
|
-
/**
|
|
908
|
-
* Optionally pass in a resource ID to be used by the {@link ManagedIdentityCredential}.
|
|
909
|
-
* In scenarios such as when user assigned identities are created using an ARM template,
|
|
910
|
-
* where the resource Id of the identity is known but the client Id can't be known ahead of time,
|
|
911
|
-
* this parameter allows programs to use these user assigned identities
|
|
912
|
-
* without having to first determine the client Id of the created identity.
|
|
913
|
-
*/
|
|
914
|
-
managedIdentityResourceId: string;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* Deserializes a previously serialized authentication record from a string into an object.
|
|
919
|
-
*
|
|
920
|
-
* The input string must contain the following properties:
|
|
921
|
-
*
|
|
922
|
-
* - "authority"
|
|
923
|
-
* - "homeAccountId"
|
|
924
|
-
* - "clientId"
|
|
925
|
-
* - "tenantId"
|
|
926
|
-
* - "username"
|
|
927
|
-
* - "version"
|
|
928
|
-
*
|
|
929
|
-
* If the version we receive is unsupported, an error will be thrown.
|
|
930
|
-
*
|
|
931
|
-
* At the moment, the only available version is: "1.0", which is always set when the authentication record is serialized.
|
|
932
|
-
*
|
|
933
|
-
* @param serializedRecord - Authentication record previously serialized into string.
|
|
934
|
-
* @returns AuthenticationRecord.
|
|
935
|
-
*/
|
|
936
|
-
export declare function deserializeAuthenticationRecord(serializedRecord: string): AuthenticationRecord;
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Enables authentication to Microsoft Entra ID using a device code
|
|
940
|
-
* that the user can enter into https://microsoft.com/devicelogin.
|
|
941
|
-
*/
|
|
942
|
-
export declare class DeviceCodeCredential implements TokenCredential {
|
|
943
|
-
private tenantId?;
|
|
944
|
-
private additionallyAllowedTenantIds;
|
|
945
|
-
private disableAutomaticAuthentication?;
|
|
946
|
-
private msalClient;
|
|
947
|
-
private userPromptCallback;
|
|
948
|
-
/**
|
|
949
|
-
* Creates an instance of DeviceCodeCredential with the details needed
|
|
950
|
-
* to initiate the device code authorization flow with Microsoft Entra ID.
|
|
951
|
-
*
|
|
952
|
-
* A message will be logged, giving users a code that they can use to authenticate once they go to https://microsoft.com/devicelogin
|
|
953
|
-
*
|
|
954
|
-
* Developers can configure how this message is shown by passing a custom `userPromptCallback`:
|
|
955
|
-
*
|
|
956
|
-
* ```ts snippet:device_code_credential_example
|
|
957
|
-
* import { DeviceCodeCredential } from "@azure/identity";
|
|
958
|
-
*
|
|
959
|
-
* const credential = new DeviceCodeCredential({
|
|
960
|
-
* tenantId: process.env.AZURE_TENANT_ID,
|
|
961
|
-
* clientId: process.env.AZURE_CLIENT_ID,
|
|
962
|
-
* userPromptCallback: (info) => {
|
|
963
|
-
* console.log("CUSTOMIZED PROMPT CALLBACK", info.message);
|
|
964
|
-
* },
|
|
965
|
-
* });
|
|
966
|
-
* ```
|
|
967
|
-
*
|
|
968
|
-
* @param options - Options for configuring the client which makes the authentication requests.
|
|
969
|
-
*/
|
|
970
|
-
constructor(options?: DeviceCodeCredentialOptions);
|
|
971
|
-
/**
|
|
972
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
973
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
974
|
-
*
|
|
975
|
-
* If the user provided the option `disableAutomaticAuthentication`,
|
|
976
|
-
* once the token can't be retrieved silently,
|
|
977
|
-
* this method won't attempt to request user interaction to retrieve the token.
|
|
978
|
-
*
|
|
979
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
980
|
-
* @param options - The options used to configure any requests this
|
|
981
|
-
* TokenCredential implementation might make.
|
|
982
|
-
*/
|
|
983
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
984
|
-
/**
|
|
985
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
986
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
987
|
-
*
|
|
988
|
-
* If the token can't be retrieved silently, this method will always generate a challenge for the user.
|
|
989
|
-
*
|
|
990
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
991
|
-
* @param options - The options used to configure any requests this
|
|
992
|
-
* TokenCredential implementation might make.
|
|
993
|
-
*/
|
|
994
|
-
authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Defines options for the InteractiveBrowserCredential class for Node.js.
|
|
999
|
-
*/
|
|
1000
|
-
export declare interface DeviceCodeCredentialOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions {
|
|
1001
|
-
/**
|
|
1002
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1003
|
-
*/
|
|
1004
|
-
tenantId?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* Client ID of the Microsoft Entra application that users will sign into.
|
|
1007
|
-
* It is recommended that developers register their applications and assign appropriate roles.
|
|
1008
|
-
* For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
|
|
1009
|
-
* If not specified, users will authenticate to an Azure development application,
|
|
1010
|
-
* which is not recommended for production scenarios.
|
|
1011
|
-
*/
|
|
1012
|
-
clientId?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* A callback function that will be invoked to show {@link DeviceCodeInfo} to the user.
|
|
1015
|
-
* If left unassigned, we will automatically log the device code information
|
|
1016
|
-
* and the authentication instructions in the console.
|
|
1017
|
-
*/
|
|
1018
|
-
userPromptCallback?: DeviceCodePromptCallback;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
/**
|
|
1022
|
-
* Provides the user code and verification URI where the code must be
|
|
1023
|
-
* entered. Also provides a message to display to the user which
|
|
1024
|
-
* contains an instruction with these details.
|
|
1025
|
-
*/
|
|
1026
|
-
export declare interface DeviceCodeInfo {
|
|
1027
|
-
/**
|
|
1028
|
-
* The device code that the user must enter into the verification page.
|
|
1029
|
-
*/
|
|
1030
|
-
userCode: string;
|
|
1031
|
-
/**
|
|
1032
|
-
* The verification URI to which the user must navigate to enter the device
|
|
1033
|
-
* code.
|
|
1034
|
-
*/
|
|
1035
|
-
verificationUri: string;
|
|
1036
|
-
/**
|
|
1037
|
-
* A message that may be shown to the user to instruct them on how to enter
|
|
1038
|
-
* the device code in the page specified by the verification URI.
|
|
1039
|
-
*/
|
|
1040
|
-
message: string;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
/**
|
|
1044
|
-
* Defines the signature of a callback which will be passed to
|
|
1045
|
-
* DeviceCodeCredential for the purpose of displaying authentication
|
|
1046
|
-
* details to the user.
|
|
1047
|
-
*/
|
|
1048
|
-
export declare type DeviceCodePromptCallback = (deviceCodeInfo: DeviceCodeInfo) => void;
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* Enables authentication to Microsoft Entra ID using a client secret or certificate, or as a user
|
|
1052
|
-
* with a username and password.
|
|
1053
|
-
*/
|
|
1054
|
-
export declare class EnvironmentCredential implements TokenCredential {
|
|
1055
|
-
private _credential?;
|
|
1056
|
-
/**
|
|
1057
|
-
* Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.
|
|
1058
|
-
*
|
|
1059
|
-
* Required environment variables:
|
|
1060
|
-
* - `AZURE_TENANT_ID`: The Microsoft Entra tenant (directory) ID.
|
|
1061
|
-
* - `AZURE_CLIENT_ID`: The client (application) ID of an App Registration in the tenant.
|
|
1062
|
-
*
|
|
1063
|
-
* If setting the AZURE_TENANT_ID, then you can also set the additionally allowed tenants
|
|
1064
|
-
* - `AZURE_ADDITIONALLY_ALLOWED_TENANTS`: For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens with a single semicolon delimited string. Use * to allow all tenants.
|
|
1065
|
-
*
|
|
1066
|
-
* Environment variables used for client credential authentication:
|
|
1067
|
-
* - `AZURE_CLIENT_SECRET`: A client secret that was generated for the App Registration.
|
|
1068
|
-
* - `AZURE_CLIENT_CERTIFICATE_PATH`: The path to a PEM certificate to use during the authentication, instead of the client secret.
|
|
1069
|
-
* - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the certificate file.
|
|
1070
|
-
* - `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN`: (optional) indicates that the certificate chain should be set in x5c header to support subject name / issuer based authentication.
|
|
1071
|
-
*
|
|
1072
|
-
* Alternatively, users can provide environment variables for username and password authentication:
|
|
1073
|
-
* - `AZURE_USERNAME`: Username to authenticate with.
|
|
1074
|
-
* - `AZURE_PASSWORD`: Password to authenticate with.
|
|
1075
|
-
*
|
|
1076
|
-
* If the environment variables required to perform the authentication are missing, a {@link CredentialUnavailableError} will be thrown.
|
|
1077
|
-
* If the authentication fails, or if there's an unknown error, an {@link AuthenticationError} will be thrown.
|
|
1078
|
-
*
|
|
1079
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
1080
|
-
*/
|
|
1081
|
-
constructor(options?: EnvironmentCredentialOptions);
|
|
1082
|
-
/**
|
|
1083
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1084
|
-
*
|
|
1085
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1086
|
-
* @param options - Optional parameters. See {@link GetTokenOptions}.
|
|
1087
|
-
*/
|
|
1088
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* Enables authentication to Microsoft Entra ID depending on the available environment variables.
|
|
1093
|
-
* Defines options for the EnvironmentCredential class.
|
|
1094
|
-
*/
|
|
1095
|
-
export declare interface EnvironmentCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* See the official documentation for more details:
|
|
1100
|
-
*
|
|
1101
|
-
* https://learn.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code#error-response-1
|
|
1102
|
-
*
|
|
1103
|
-
* NOTE: This documentation is for v1 OAuth support but the same error
|
|
1104
|
-
* response details still apply to v2.
|
|
1105
|
-
*/
|
|
1106
|
-
export declare interface ErrorResponse {
|
|
1107
|
-
/**
|
|
1108
|
-
* The string identifier for the error.
|
|
1109
|
-
*/
|
|
1110
|
-
error: string;
|
|
1111
|
-
/**
|
|
1112
|
-
* The error's description.
|
|
1113
|
-
*/
|
|
1114
|
-
errorDescription: string;
|
|
1115
|
-
/**
|
|
1116
|
-
* An array of codes pertaining to the error(s) that occurred.
|
|
1117
|
-
*/
|
|
1118
|
-
errorCodes?: number[];
|
|
1119
|
-
/**
|
|
1120
|
-
* The timestamp at which the error occurred.
|
|
1121
|
-
*/
|
|
1122
|
-
timestamp?: string;
|
|
1123
|
-
/**
|
|
1124
|
-
* The trace identifier for this error occurrence.
|
|
1125
|
-
*/
|
|
1126
|
-
traceId?: string;
|
|
1127
|
-
/**
|
|
1128
|
-
* The correlation ID to be used for tracking the source of the error.
|
|
1129
|
-
*/
|
|
1130
|
-
correlationId?: string;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* Returns a callback that provides a bearer token.
|
|
1135
|
-
* For example, the bearer token can be used to authenticate a request as follows:
|
|
1136
|
-
* ```ts snippet:token_provider_example
|
|
1137
|
-
* import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
|
|
1138
|
-
* import { createPipelineRequest } from "@azure/core-rest-pipeline";
|
|
1139
|
-
*
|
|
1140
|
-
* const credential = new DefaultAzureCredential();
|
|
1141
|
-
* const scope = "https://cognitiveservices.azure.com/.default";
|
|
1142
|
-
* const getAccessToken = getBearerTokenProvider(credential, scope);
|
|
1143
|
-
* const token = await getAccessToken();
|
|
1144
|
-
* // usage
|
|
1145
|
-
* const request = createPipelineRequest({ url: "https://example.com" });
|
|
1146
|
-
* request.headers.set("Authorization", `Bearer ${token}`);
|
|
1147
|
-
* ```
|
|
1148
|
-
*
|
|
1149
|
-
* @param credential - The credential used to authenticate the request.
|
|
1150
|
-
* @param scopes - The scopes required for the bearer token.
|
|
1151
|
-
* @param options - Options to configure the token provider.
|
|
1152
|
-
* @returns a callback that provides a bearer token.
|
|
1153
|
-
*/
|
|
1154
|
-
export declare function getBearerTokenProvider(credential: TokenCredential, scopes: string | string[], options?: GetBearerTokenProviderOptions): () => Promise<string>;
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* The options to configure the token provider.
|
|
1158
|
-
*/
|
|
1159
|
-
export declare interface GetBearerTokenProviderOptions {
|
|
1160
|
-
/** The abort signal to abort requests to get tokens */
|
|
1161
|
-
abortSignal?: AbortSignal;
|
|
1162
|
-
/** The tracing options for the requests to get tokens */
|
|
1163
|
-
tracingOptions?: {
|
|
1164
|
-
/**
|
|
1165
|
-
* Tracing Context for the current request to get a token.
|
|
1166
|
-
*/
|
|
1167
|
-
tracingContext?: TracingContext;
|
|
1168
|
-
};
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* Returns a new instance of the {@link DefaultAzureCredential}.
|
|
1173
|
-
*/
|
|
1174
|
-
export declare function getDefaultAzureCredential(): TokenCredential;
|
|
1175
|
-
|
|
1176
|
-
export { GetTokenOptions }
|
|
1177
|
-
|
|
1178
|
-
/**
|
|
1179
|
-
* The type of an Azure Identity plugin, a function accepting a plugin
|
|
1180
|
-
* context.
|
|
1181
|
-
*/
|
|
1182
|
-
export declare type IdentityPlugin = (context: unknown) => void;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Enables authentication to Microsoft Entra ID inside of the web browser
|
|
1186
|
-
* using the interactive login flow.
|
|
1187
|
-
*/
|
|
1188
|
-
export declare class InteractiveBrowserCredential implements TokenCredential {
|
|
1189
|
-
private tenantId?;
|
|
1190
|
-
private additionallyAllowedTenantIds;
|
|
1191
|
-
private msalClient;
|
|
1192
|
-
private disableAutomaticAuthentication?;
|
|
1193
|
-
private browserCustomizationOptions;
|
|
1194
|
-
private loginHint?;
|
|
1195
|
-
/**
|
|
1196
|
-
* Creates an instance of InteractiveBrowserCredential with the details needed.
|
|
1197
|
-
*
|
|
1198
|
-
* This credential uses the [Authorization Code Flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow).
|
|
1199
|
-
* On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.
|
|
1200
|
-
* On browsers, it authenticates via popups. The `loginStyle` optional parameter can be set to `redirect` to authenticate by redirecting the user to an Azure secure login page, which then will redirect the user back to the web application where the authentication started.
|
|
1201
|
-
*
|
|
1202
|
-
* For Node.js, if a `clientId` is provided, the Microsoft Entra application will need to be configured to have a "Mobile and desktop applications" redirect endpoint.
|
|
1203
|
-
* Follow our guide on [setting up Redirect URIs for Desktop apps that calls to web APIs](https://learn.microsoft.com/entra/identity-platform/scenario-desktop-app-registration#redirect-uris).
|
|
1204
|
-
*
|
|
1205
|
-
* @param options - Options for configuring the client which makes the authentication requests.
|
|
1206
|
-
*/
|
|
1207
|
-
constructor(options: InteractiveBrowserCredentialNodeOptions | InteractiveBrowserCredentialInBrowserOptions);
|
|
1208
|
-
/**
|
|
1209
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1210
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1211
|
-
*
|
|
1212
|
-
* If the user provided the option `disableAutomaticAuthentication`,
|
|
1213
|
-
* once the token can't be retrieved silently,
|
|
1214
|
-
* this method won't attempt to request user interaction to retrieve the token.
|
|
1215
|
-
*
|
|
1216
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1217
|
-
* @param options - The options used to configure any requests this
|
|
1218
|
-
* TokenCredential implementation might make.
|
|
1219
|
-
*/
|
|
1220
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1221
|
-
/**
|
|
1222
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1223
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1224
|
-
*
|
|
1225
|
-
* If the token can't be retrieved silently, this method will always generate a challenge for the user.
|
|
1226
|
-
*
|
|
1227
|
-
* On Node.js, this credential has [Proof Key for Code Exchange (PKCE)](https://datatracker.ietf.org/doc/html/rfc7636) enabled by default.
|
|
1228
|
-
* PKCE is a security feature that mitigates authentication code interception attacks.
|
|
1229
|
-
*
|
|
1230
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1231
|
-
* @param options - The options used to configure any requests this
|
|
1232
|
-
* TokenCredential implementation might make.
|
|
1233
|
-
*/
|
|
1234
|
-
authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
/**
|
|
1238
|
-
* Defines the common options for the InteractiveBrowserCredential class.
|
|
1239
|
-
*/
|
|
1240
|
-
export declare interface InteractiveBrowserCredentialInBrowserOptions extends InteractiveCredentialOptions {
|
|
1241
|
-
/**
|
|
1242
|
-
* Gets the redirect URI of the application. This should be same as the value
|
|
1243
|
-
* in the application registration portal. Defaults to `window.location.href`.
|
|
1244
|
-
* This field is no longer required for Node.js.
|
|
1245
|
-
*/
|
|
1246
|
-
redirectUri?: string | (() => string);
|
|
1247
|
-
/**
|
|
1248
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1249
|
-
*/
|
|
1250
|
-
tenantId?: string;
|
|
1251
|
-
/**
|
|
1252
|
-
* The Client ID of the Microsoft Entra application that users will sign into.
|
|
1253
|
-
* This parameter is required on the browser.
|
|
1254
|
-
* Developers need to register their applications and assign appropriate roles.
|
|
1255
|
-
* For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
|
|
1256
|
-
*/
|
|
1257
|
-
clientId: string;
|
|
1258
|
-
/**
|
|
1259
|
-
* Specifies whether a redirect or a popup window should be used to
|
|
1260
|
-
* initiate the user authentication flow. Possible values are "redirect"
|
|
1261
|
-
* or "popup" (default) for browser and "popup" (default) for node.
|
|
1262
|
-
*
|
|
1263
|
-
*/
|
|
1264
|
-
loginStyle?: BrowserLoginStyle;
|
|
1265
|
-
/**
|
|
1266
|
-
* loginHint allows a user name to be pre-selected for interactive logins.
|
|
1267
|
-
* Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
|
|
1268
|
-
*/
|
|
1269
|
-
loginHint?: string;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
/**
|
|
1273
|
-
* Defines the common options for the InteractiveBrowserCredential class.
|
|
1274
|
-
*/
|
|
1275
|
-
export declare interface InteractiveBrowserCredentialNodeOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions, BrowserCustomizationOptions, BrokerAuthOptions {
|
|
1276
|
-
/**
|
|
1277
|
-
* Gets the redirect URI of the application. This should be same as the value
|
|
1278
|
-
* in the application registration portal. Defaults to `window.location.href`.
|
|
1279
|
-
* This field is no longer required for Node.js.
|
|
1280
|
-
*/
|
|
1281
|
-
redirectUri?: string | (() => string);
|
|
1282
|
-
/**
|
|
1283
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1284
|
-
*/
|
|
1285
|
-
tenantId?: string;
|
|
1286
|
-
/**
|
|
1287
|
-
* The Client ID of the Microsoft Entra application that users will sign into.
|
|
1288
|
-
* It is recommended that developers register their applications and assign appropriate roles.
|
|
1289
|
-
* For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
|
|
1290
|
-
* If not specified, users will authenticate to an Azure development application,
|
|
1291
|
-
* which is not recommended for production scenarios.
|
|
1292
|
-
*/
|
|
1293
|
-
clientId?: string;
|
|
1294
|
-
/**
|
|
1295
|
-
* loginHint allows a user name to be pre-selected for interactive logins.
|
|
1296
|
-
* Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
|
|
1297
|
-
*/
|
|
1298
|
-
loginHint?: string;
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
/**
|
|
1302
|
-
* Common constructor options for the Identity credentials that requires user interaction.
|
|
1303
|
-
*/
|
|
1304
|
-
export declare interface InteractiveCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
1305
|
-
/**
|
|
1306
|
-
* Result of a previous authentication that can be used to retrieve the cached credentials of each individual account.
|
|
1307
|
-
* This is necessary to provide in case the application wants to work with more than one account per
|
|
1308
|
-
* Client ID and Tenant ID pair.
|
|
1309
|
-
*
|
|
1310
|
-
* This record can be retrieved by calling to the credential's `authenticate()` method, as follows:
|
|
1311
|
-
*
|
|
1312
|
-
* const authenticationRecord = await credential.authenticate();
|
|
1313
|
-
*
|
|
1314
|
-
*/
|
|
1315
|
-
authenticationRecord?: AuthenticationRecord;
|
|
1316
|
-
/**
|
|
1317
|
-
* Makes getToken throw if a manual authentication is necessary.
|
|
1318
|
-
* Developers will need to call to `authenticate()` to control when to manually authenticate.
|
|
1319
|
-
*/
|
|
1320
|
-
disableAutomaticAuthentication?: boolean;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* The AzureLogger used for all clients within the identity package
|
|
1325
|
-
*/
|
|
1326
|
-
export declare const logger: AzureLogger;
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* Attempts authentication using a managed identity available at the deployment environment.
|
|
1330
|
-
* This authentication type works in Azure VMs, App Service instances, Azure Functions applications,
|
|
1331
|
-
* Azure Kubernetes Services, Azure Service Fabric instances and inside of the Azure Cloud Shell.
|
|
1332
|
-
*
|
|
1333
|
-
* More information about configuring managed identities can be found here:
|
|
1334
|
-
* https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
|
|
1335
|
-
*/
|
|
1336
|
-
export declare class ManagedIdentityCredential implements TokenCredential {
|
|
1337
|
-
private implProvider;
|
|
1338
|
-
/**
|
|
1339
|
-
* Creates an instance of ManagedIdentityCredential with the client ID of a
|
|
1340
|
-
* user-assigned identity, or app registration (when working with AKS pod-identity).
|
|
1341
|
-
*
|
|
1342
|
-
* @param clientId - The client ID of the user-assigned identity, or app registration (when working with AKS pod-identity).
|
|
1343
|
-
* @param options - Options for configuring the client which makes the access token request.
|
|
1344
|
-
*/
|
|
1345
|
-
constructor(clientId: string, options?: TokenCredentialOptions);
|
|
1346
|
-
/**
|
|
1347
|
-
* Creates an instance of ManagedIdentityCredential with a client ID
|
|
1348
|
-
*
|
|
1349
|
-
* @param options - Options for configuring the client which makes the access token request.
|
|
1350
|
-
*/
|
|
1351
|
-
constructor(options?: ManagedIdentityCredentialClientIdOptions);
|
|
1352
|
-
/**
|
|
1353
|
-
* Creates an instance of ManagedIdentityCredential with a resource ID
|
|
1354
|
-
*
|
|
1355
|
-
* @param options - Options for configuring the resource which makes the access token request.
|
|
1356
|
-
*/
|
|
1357
|
-
constructor(options?: ManagedIdentityCredentialResourceIdOptions);
|
|
1358
|
-
/**
|
|
1359
|
-
* Creates an instance of ManagedIdentityCredential with an object ID
|
|
1360
|
-
*
|
|
1361
|
-
* @param options - Options for configuring the resource which makes the access token request.
|
|
1362
|
-
*/
|
|
1363
|
-
constructor(options?: ManagedIdentityCredentialObjectIdOptions);
|
|
1364
|
-
/**
|
|
1365
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1366
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1367
|
-
* If an unexpected error occurs, an {@link AuthenticationError} will be thrown with the details of the failure.
|
|
1368
|
-
*
|
|
1369
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1370
|
-
* @param options - The options used to configure any requests this
|
|
1371
|
-
* TokenCredential implementation might make.
|
|
1372
|
-
*/
|
|
1373
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
|
1378
|
-
* This variation supports `clientId` and not `resourceId`, since only one of both is supported.
|
|
1379
|
-
*/
|
|
1380
|
-
export declare interface ManagedIdentityCredentialClientIdOptions extends TokenCredentialOptions {
|
|
1381
|
-
/**
|
|
1382
|
-
* The client ID of the user - assigned identity, or app registration(when working with AKS pod - identity).
|
|
1383
|
-
*/
|
|
1384
|
-
clientId?: string;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
|
1389
|
-
* This variation supports `objectId` as a constructor argument.
|
|
1390
|
-
*/
|
|
1391
|
-
export declare interface ManagedIdentityCredentialObjectIdOptions extends TokenCredentialOptions {
|
|
1392
|
-
/**
|
|
1393
|
-
* Allows specifying the object ID of the underlying service principal used to authenticate a user-assigned managed identity.
|
|
1394
|
-
* This is an alternative to providing a client ID or resource ID and is not required for system-assigned managed identities.
|
|
1395
|
-
*/
|
|
1396
|
-
objectId: string;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
|
1401
|
-
* This variation supports `resourceId` and not `clientId`, since only one of both is supported.
|
|
1402
|
-
*/
|
|
1403
|
-
export declare interface ManagedIdentityCredentialResourceIdOptions extends TokenCredentialOptions {
|
|
1404
|
-
/**
|
|
1405
|
-
* Allows specifying a custom resource Id.
|
|
1406
|
-
* In scenarios such as when user assigned identities are created using an ARM template,
|
|
1407
|
-
* where the resource Id of the identity is known but the client Id can't be known ahead of time,
|
|
1408
|
-
* this parameter allows programs to use these user assigned identities
|
|
1409
|
-
* without having to first determine the client Id of the created identity.
|
|
1410
|
-
*/
|
|
1411
|
-
resourceId: string;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
/**
|
|
1415
|
-
* Options for multi-tenant applications which allows for additionally allowed tenants.
|
|
1416
|
-
*/
|
|
1417
|
-
export declare interface MultiTenantTokenCredentialOptions extends TokenCredentialOptions {
|
|
1418
|
-
/**
|
|
1419
|
-
* For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens.
|
|
1420
|
-
* Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the application is installed.
|
|
1421
|
-
*/
|
|
1422
|
-
additionallyAllowedTenants?: string[];
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
/**
|
|
1426
|
-
* Enables authentication to Microsoft Entra ID using the [On Behalf Of flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow).
|
|
1427
|
-
*/
|
|
1428
|
-
export declare class OnBehalfOfCredential implements TokenCredential {
|
|
1429
|
-
private tenantId;
|
|
1430
|
-
private additionallyAllowedTenantIds;
|
|
1431
|
-
private msalClient;
|
|
1432
|
-
private sendCertificateChain?;
|
|
1433
|
-
private certificatePath?;
|
|
1434
|
-
private clientSecret?;
|
|
1435
|
-
private userAssertionToken;
|
|
1436
|
-
private clientAssertion?;
|
|
1437
|
-
/**
|
|
1438
|
-
* Creates an instance of the {@link OnBehalfOfCredential} with the details
|
|
1439
|
-
* needed to authenticate against Microsoft Entra ID with path to a PEM certificate,
|
|
1440
|
-
* and an user assertion.
|
|
1441
|
-
*
|
|
1442
|
-
* Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
|
|
1443
|
-
*
|
|
1444
|
-
* ```ts snippet:on_behalf_of_credential_pem_example
|
|
1445
|
-
* import { OnBehalfOfCredential } from "@azure/identity";
|
|
1446
|
-
* import { KeyClient } from "@azure/keyvault-keys";
|
|
1447
|
-
*
|
|
1448
|
-
* const tokenCredential = new OnBehalfOfCredential({
|
|
1449
|
-
* tenantId: "tenant-id",
|
|
1450
|
-
* clientId: "client-id",
|
|
1451
|
-
* certificatePath: "/path/to/certificate.pem",
|
|
1452
|
-
* userAssertionToken: "access-token",
|
|
1453
|
-
* });
|
|
1454
|
-
* const client = new KeyClient("vault-url", tokenCredential);
|
|
1455
|
-
* await client.getKey("key-name");
|
|
1456
|
-
* ```
|
|
1457
|
-
*
|
|
1458
|
-
* @param options - Optional parameters, generally common across credentials.
|
|
1459
|
-
*/
|
|
1460
|
-
constructor(options: OnBehalfOfCredentialCertificateOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
|
|
1461
|
-
/**
|
|
1462
|
-
* Creates an instance of the {@link OnBehalfOfCredential} with the details
|
|
1463
|
-
* needed to authenticate against Microsoft Entra ID with a client
|
|
1464
|
-
* secret and an user assertion.
|
|
1465
|
-
*
|
|
1466
|
-
* Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
|
|
1467
|
-
*
|
|
1468
|
-
* ```ts snippet:on_behalf_of_credential_secret_example
|
|
1469
|
-
* import { OnBehalfOfCredential } from "@azure/identity";
|
|
1470
|
-
* import { KeyClient } from "@azure/keyvault-keys";
|
|
1471
|
-
*
|
|
1472
|
-
* const tokenCredential = new OnBehalfOfCredential({
|
|
1473
|
-
* tenantId: "tenant-id",
|
|
1474
|
-
* clientId: "client-id",
|
|
1475
|
-
* clientSecret: "client-secret",
|
|
1476
|
-
* userAssertionToken: "access-token",
|
|
1477
|
-
* });
|
|
1478
|
-
* const client = new KeyClient("vault-url", tokenCredential);
|
|
1479
|
-
* await client.getKey("key-name");
|
|
1480
|
-
* ```
|
|
1481
|
-
*
|
|
1482
|
-
* @param options - Optional parameters, generally common across credentials.
|
|
1483
|
-
*/
|
|
1484
|
-
constructor(options: OnBehalfOfCredentialSecretOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
|
|
1485
|
-
/**
|
|
1486
|
-
* Creates an instance of the {@link OnBehalfOfCredential} with the details
|
|
1487
|
-
* needed to authenticate against Microsoft Entra ID with a client `getAssertion`
|
|
1488
|
-
* and an user assertion.
|
|
1489
|
-
*
|
|
1490
|
-
* Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
|
|
1491
|
-
*
|
|
1492
|
-
* ```ts snippet:on_behalf_of_credential_assertion_example
|
|
1493
|
-
* import { OnBehalfOfCredential } from "@azure/identity";
|
|
1494
|
-
* import { KeyClient } from "@azure/keyvault-keys";
|
|
1495
|
-
*
|
|
1496
|
-
* const tokenCredential = new OnBehalfOfCredential({
|
|
1497
|
-
* tenantId: "tenant-id",
|
|
1498
|
-
* clientId: "client-id",
|
|
1499
|
-
* getAssertion: () => {
|
|
1500
|
-
* return Promise.resolve("my-jwt");
|
|
1501
|
-
* },
|
|
1502
|
-
* userAssertionToken: "access-token",
|
|
1503
|
-
* });
|
|
1504
|
-
* const client = new KeyClient("vault-url", tokenCredential);
|
|
1505
|
-
* await client.getKey("key-name");
|
|
1506
|
-
* ```
|
|
1507
|
-
*
|
|
1508
|
-
* @param options - Optional parameters, generally common across credentials.
|
|
1509
|
-
*/
|
|
1510
|
-
constructor(options: OnBehalfOfCredentialAssertionOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
|
|
1511
|
-
/**
|
|
1512
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1513
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1514
|
-
*
|
|
1515
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1516
|
-
* @param options - The options used to configure the underlying network requests.
|
|
1517
|
-
*/
|
|
1518
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1519
|
-
private buildClientCertificate;
|
|
1520
|
-
private parseCertificate;
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with an assertion.
|
|
1525
|
-
*/
|
|
1526
|
-
export declare interface OnBehalfOfCredentialAssertionOptions {
|
|
1527
|
-
/**
|
|
1528
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1529
|
-
*/
|
|
1530
|
-
tenantId: string;
|
|
1531
|
-
/**
|
|
1532
|
-
* The client (application) ID of an App Registration in the tenant.
|
|
1533
|
-
*/
|
|
1534
|
-
clientId: string;
|
|
1535
|
-
/**
|
|
1536
|
-
* A function that retrieves the client assertion for the credential to use
|
|
1537
|
-
*/
|
|
1538
|
-
getAssertion: () => Promise<string>;
|
|
1539
|
-
/**
|
|
1540
|
-
* The user assertion for the On-Behalf-Of flow.
|
|
1541
|
-
*/
|
|
1542
|
-
userAssertionToken: string;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a certificate.
|
|
1547
|
-
*/
|
|
1548
|
-
export declare interface OnBehalfOfCredentialCertificateOptions {
|
|
1549
|
-
/**
|
|
1550
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1551
|
-
*/
|
|
1552
|
-
tenantId: string;
|
|
1553
|
-
/**
|
|
1554
|
-
* The client (application) ID of an App Registration in the tenant.
|
|
1555
|
-
*/
|
|
1556
|
-
clientId: string;
|
|
1557
|
-
/**
|
|
1558
|
-
* The path to a PEM-encoded public/private key certificate on the filesystem.
|
|
1559
|
-
*/
|
|
1560
|
-
certificatePath: string;
|
|
1561
|
-
/**
|
|
1562
|
-
* The user assertion for the On-Behalf-Of flow.
|
|
1563
|
-
*/
|
|
1564
|
-
userAssertionToken: string;
|
|
1565
|
-
/**
|
|
1566
|
-
* Option to include x5c header for SubjectName and Issuer name authorization.
|
|
1567
|
-
* Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
|
|
1568
|
-
*/
|
|
1569
|
-
sendCertificateChain?: boolean;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Optional parameters for the {@link OnBehalfOfCredential} class.
|
|
1574
|
-
*/
|
|
1575
|
-
export declare type OnBehalfOfCredentialOptions = (OnBehalfOfCredentialSecretOptions | OnBehalfOfCredentialCertificateOptions | OnBehalfOfCredentialAssertionOptions) & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions & AuthorityValidationOptions;
|
|
1576
|
-
|
|
1577
|
-
/**
|
|
1578
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a secret.
|
|
1579
|
-
*/
|
|
1580
|
-
export declare interface OnBehalfOfCredentialSecretOptions {
|
|
1581
|
-
/**
|
|
1582
|
-
* The Microsoft Entra tenant (directory) ID.
|
|
1583
|
-
*/
|
|
1584
|
-
tenantId: string;
|
|
1585
|
-
/**
|
|
1586
|
-
* The client (application) ID of an App Registration in the tenant.
|
|
1587
|
-
*/
|
|
1588
|
-
clientId: string;
|
|
1589
|
-
/**
|
|
1590
|
-
* A client secret that was generated for the App Registration.
|
|
1591
|
-
*/
|
|
1592
|
-
clientSecret: string;
|
|
1593
|
-
/**
|
|
1594
|
-
* The user assertion for the On-Behalf-Of flow.
|
|
1595
|
-
*/
|
|
1596
|
-
userAssertionToken: string;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* Serializes an `AuthenticationRecord` into a string.
|
|
1601
|
-
*
|
|
1602
|
-
* The output of a serialized authentication record will contain the following properties:
|
|
1603
|
-
*
|
|
1604
|
-
* - "authority"
|
|
1605
|
-
* - "homeAccountId"
|
|
1606
|
-
* - "clientId"
|
|
1607
|
-
* - "tenantId"
|
|
1608
|
-
* - "username"
|
|
1609
|
-
* - "version"
|
|
1610
|
-
*
|
|
1611
|
-
* To later convert this string to a serialized `AuthenticationRecord`, please use the exported function `deserializeAuthenticationRecord()`.
|
|
1612
|
-
*/
|
|
1613
|
-
export declare function serializeAuthenticationRecord(record: AuthenticationRecord): string;
|
|
1614
|
-
|
|
1615
|
-
/**
|
|
1616
|
-
* Parameters that enable token cache persistence in the Identity credentials.
|
|
1617
|
-
*/
|
|
1618
|
-
export declare interface TokenCachePersistenceOptions {
|
|
1619
|
-
/**
|
|
1620
|
-
* If set to true, persistent token caching will be enabled for this credential instance.
|
|
1621
|
-
*/
|
|
1622
|
-
enabled: boolean;
|
|
1623
|
-
/**
|
|
1624
|
-
* Unique identifier for the persistent token cache.
|
|
1625
|
-
*
|
|
1626
|
-
* Based on this identifier, the persistence file will be located in any of the following places:
|
|
1627
|
-
* - Darwin: '/Users/user/.IdentityService/<name>'
|
|
1628
|
-
* - Windows 8+: 'C:\\Users\\user\\AppData\\Local\\.IdentityService\\<name>'
|
|
1629
|
-
* - Linux: '/home/user/.IdentityService/<name>'
|
|
1630
|
-
*/
|
|
1631
|
-
name?: string;
|
|
1632
|
-
/**
|
|
1633
|
-
* If set to true, the cache will be stored without encryption if no OS level user encryption is available.
|
|
1634
|
-
* When set to false, the PersistentTokenCache will throw an error if no OS level user encryption is available.
|
|
1635
|
-
*/
|
|
1636
|
-
unsafeAllowUnencryptedStorage?: boolean;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
export { TokenCredential }
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* Provides options to configure how the Identity library makes authentication
|
|
1643
|
-
* requests to Microsoft Entra ID.
|
|
1644
|
-
*/
|
|
1645
|
-
export declare interface TokenCredentialOptions extends CommonClientOptions {
|
|
1646
|
-
/**
|
|
1647
|
-
* The authority host to use for authentication requests.
|
|
1648
|
-
* Possible values are available through {@link AzureAuthorityHosts}.
|
|
1649
|
-
* The default is "https://login.microsoftonline.com".
|
|
1650
|
-
*/
|
|
1651
|
-
authorityHost?: string;
|
|
1652
|
-
/**
|
|
1653
|
-
* Allows users to configure settings for logging policy options, allow logging account information and personally identifiable information for customer support.
|
|
1654
|
-
*/
|
|
1655
|
-
loggingOptions?: LogPolicyOptions & {
|
|
1656
|
-
/**
|
|
1657
|
-
* Allows logging account information once the authentication flow succeeds.
|
|
1658
|
-
*/
|
|
1659
|
-
allowLoggingAccountIdentifiers?: boolean;
|
|
1660
|
-
/**
|
|
1661
|
-
* Allows logging personally identifiable information for customer support.
|
|
1662
|
-
*/
|
|
1663
|
-
enableUnsafeSupportLogging?: boolean;
|
|
1664
|
-
};
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
/**
|
|
1668
|
-
* Extend Azure Identity with additional functionality. Pass a plugin from
|
|
1669
|
-
* a plugin package, such as:
|
|
1670
|
-
*
|
|
1671
|
-
* - `@azure/identity-cache-persistence`: provides persistent token caching
|
|
1672
|
-
* - `@azure/identity-vscode`: provides the dependencies of
|
|
1673
|
-
* `VisualStudioCodeCredential` and enables it
|
|
1674
|
-
*
|
|
1675
|
-
* Example:
|
|
1676
|
-
*
|
|
1677
|
-
* ```ts snippet:consumer_example
|
|
1678
|
-
* import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
|
|
1679
|
-
*
|
|
1680
|
-
* useIdentityPlugin(cachePersistencePlugin);
|
|
1681
|
-
* // The plugin has the capability to extend `DeviceCodeCredential` and to
|
|
1682
|
-
* // add middleware to the underlying credentials, such as persistence.
|
|
1683
|
-
* const credential = new DeviceCodeCredential({
|
|
1684
|
-
* tokenCachePersistenceOptions: {
|
|
1685
|
-
* enabled: true,
|
|
1686
|
-
* },
|
|
1687
|
-
* });
|
|
1688
|
-
* ```
|
|
1689
|
-
*
|
|
1690
|
-
* @param plugin - the plugin to register
|
|
1691
|
-
*/
|
|
1692
|
-
export declare function useIdentityPlugin(plugin: IdentityPlugin): void;
|
|
1693
|
-
|
|
1694
|
-
/**
|
|
1695
|
-
* Enables authentication to Microsoft Entra ID with a user's
|
|
1696
|
-
* username and password. This credential requires a high degree of
|
|
1697
|
-
* trust so you should only use it when other, more secure credential
|
|
1698
|
-
* types can't be used.
|
|
1699
|
-
*/
|
|
1700
|
-
export declare class UsernamePasswordCredential implements TokenCredential {
|
|
1701
|
-
private tenantId;
|
|
1702
|
-
private additionallyAllowedTenantIds;
|
|
1703
|
-
private msalClient;
|
|
1704
|
-
private username;
|
|
1705
|
-
private password;
|
|
1706
|
-
/**
|
|
1707
|
-
* Creates an instance of the UsernamePasswordCredential with the details
|
|
1708
|
-
* needed to authenticate against Microsoft Entra ID with a username
|
|
1709
|
-
* and password.
|
|
1710
|
-
*
|
|
1711
|
-
* @param tenantId - The Microsoft Entra tenant (directory).
|
|
1712
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
|
1713
|
-
* @param username - The user account's e-mail address (user name).
|
|
1714
|
-
* @param password - The user account's account password
|
|
1715
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
1716
|
-
*/
|
|
1717
|
-
constructor(tenantId: string, clientId: string, username: string, password: string, options?: UsernamePasswordCredentialOptions);
|
|
1718
|
-
/**
|
|
1719
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1720
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1721
|
-
*
|
|
1722
|
-
* If the user provided the option `disableAutomaticAuthentication`,
|
|
1723
|
-
* once the token can't be retrieved silently,
|
|
1724
|
-
* this method won't attempt to request user interaction to retrieve the token.
|
|
1725
|
-
*
|
|
1726
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1727
|
-
* @param options - The options used to configure any requests this
|
|
1728
|
-
* TokenCredential implementation might make.
|
|
1729
|
-
*/
|
|
1730
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
/**
|
|
1734
|
-
* Defines options for the {@link UsernamePasswordCredential} class.
|
|
1735
|
-
*/
|
|
1736
|
-
export declare interface UsernamePasswordCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* Connects to Azure using the credential provided by the VSCode extension 'Azure Account'.
|
|
1741
|
-
* Once the user has logged in via the extension, this credential can share the same refresh token
|
|
1742
|
-
* that is cached by the extension.
|
|
1743
|
-
*
|
|
1744
|
-
* It's a [known issue](https://github.com/Azure/azure-sdk-for-js/issues/20500) that this credential doesn't
|
|
1745
|
-
* work with [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account)
|
|
1746
|
-
* versions newer than **0.9.11**. A long-term fix to this problem is in progress. In the meantime, consider
|
|
1747
|
-
* authenticating with {@link AzureCliCredential}.
|
|
1748
|
-
*/
|
|
1749
|
-
export declare class VisualStudioCodeCredential implements TokenCredential {
|
|
1750
|
-
private identityClient;
|
|
1751
|
-
private tenantId;
|
|
1752
|
-
private additionallyAllowedTenantIds;
|
|
1753
|
-
private cloudName;
|
|
1754
|
-
/**
|
|
1755
|
-
* Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
|
|
1756
|
-
*
|
|
1757
|
-
* **Note**: `VisualStudioCodeCredential` is provided by a plugin package:
|
|
1758
|
-
* `@azure/identity-vscode`. If this package is not installed and registered
|
|
1759
|
-
* using the plugin API (`useIdentityPlugin`), then authentication using
|
|
1760
|
-
* `VisualStudioCodeCredential` will not be available.
|
|
1761
|
-
*
|
|
1762
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
|
1763
|
-
*/
|
|
1764
|
-
constructor(options?: VisualStudioCodeCredentialOptions);
|
|
1765
|
-
/**
|
|
1766
|
-
* Runs preparations for any further getToken request.
|
|
1767
|
-
*/
|
|
1768
|
-
private prepare;
|
|
1769
|
-
/**
|
|
1770
|
-
* The promise of the single preparation that will be executed at the first getToken request for an instance of this class.
|
|
1771
|
-
*/
|
|
1772
|
-
private preparePromise;
|
|
1773
|
-
/**
|
|
1774
|
-
* Runs preparations for any further getToken, but only once.
|
|
1775
|
-
*/
|
|
1776
|
-
private prepareOnce;
|
|
1777
|
-
/**
|
|
1778
|
-
* Returns the token found by searching VSCode's authentication cache or
|
|
1779
|
-
* returns null if no token could be found.
|
|
1780
|
-
*
|
|
1781
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1782
|
-
* @param options - The options used to configure any requests this
|
|
1783
|
-
* `TokenCredential` implementation might make.
|
|
1784
|
-
*/
|
|
1785
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
/**
|
|
1789
|
-
* Provides options to configure the Visual Studio Code credential.
|
|
1790
|
-
*/
|
|
1791
|
-
export declare interface VisualStudioCodeCredentialOptions extends MultiTenantTokenCredentialOptions {
|
|
1792
|
-
/**
|
|
1793
|
-
* Optionally pass in a Tenant ID to be used as part of the credential
|
|
1794
|
-
*/
|
|
1795
|
-
tenantId?: string;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* Workload Identity authentication is a feature in Azure that allows applications running on virtual machines (VMs)
|
|
1800
|
-
* to access other Azure resources without the need for a service principal or managed identity. With Workload Identity
|
|
1801
|
-
* authentication, applications authenticate themselves using their own identity, rather than using a shared service
|
|
1802
|
-
* principal or managed identity. Under the hood, Workload Identity authentication uses the concept of Service Account
|
|
1803
|
-
* Credentials (SACs), which are automatically created by Azure and stored securely in the VM. By using Workload
|
|
1804
|
-
* Identity authentication, you can avoid the need to manage and rotate service principals or managed identities for
|
|
1805
|
-
* each application on each VM. Additionally, because SACs are created automatically and managed by Azure, you don't
|
|
1806
|
-
* need to worry about storing and securing sensitive credentials themselves.
|
|
1807
|
-
* The WorkloadIdentityCredential supports Microsoft Entra Workload ID authentication on Azure Kubernetes and acquires
|
|
1808
|
-
* a token using the SACs available in the Azure Kubernetes environment.
|
|
1809
|
-
* Refer to <a href="https://learn.microsoft.com/azure/aks/workload-identity-overview">Microsoft Entra
|
|
1810
|
-
* Workload ID</a> for more information.
|
|
1811
|
-
*/
|
|
1812
|
-
export declare class WorkloadIdentityCredential implements TokenCredential {
|
|
1813
|
-
private client;
|
|
1814
|
-
private azureFederatedTokenFileContent;
|
|
1815
|
-
private cacheDate;
|
|
1816
|
-
private federatedTokenFilePath;
|
|
1817
|
-
/**
|
|
1818
|
-
* WorkloadIdentityCredential supports Microsoft Entra Workload ID on Kubernetes.
|
|
1819
|
-
*
|
|
1820
|
-
* @param options - The identity client options to use for authentication.
|
|
1821
|
-
*/
|
|
1822
|
-
constructor(options?: WorkloadIdentityCredentialOptions);
|
|
1823
|
-
/**
|
|
1824
|
-
* Authenticates with Microsoft Entra ID and returns an access token if successful.
|
|
1825
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
1826
|
-
*
|
|
1827
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
1828
|
-
* @param options - The options used to configure any requests this
|
|
1829
|
-
* TokenCredential implementation might make.
|
|
1830
|
-
*/
|
|
1831
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
|
1832
|
-
private readFileContents;
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Options for the {@link WorkloadIdentityCredential}
|
|
1837
|
-
*/
|
|
1838
|
-
export declare interface WorkloadIdentityCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
|
1839
|
-
/**
|
|
1840
|
-
* ID of the application's Microsoft Entra tenant. Also called its directory ID.
|
|
1841
|
-
*/
|
|
1842
|
-
tenantId?: string;
|
|
1843
|
-
/**
|
|
1844
|
-
* The client ID of a Microsoft Entra app registration.
|
|
1845
|
-
*/
|
|
1846
|
-
clientId?: string;
|
|
1847
|
-
/**
|
|
1848
|
-
* The path to a file containing a Kubernetes service account token that authenticates the identity.
|
|
1849
|
-
*/
|
|
1850
|
-
tokenFilePath?: string;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
export { }
|