@azure/identity 4.5.1-alpha.20250115.7 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -5
- package/dist/index.js +4211 -0
- package/dist/index.js.map +1 -0
- package/{dist/esm → dist-esm/src}/client/identityClient.js +7 -7
- package/dist-esm/src/client/identityClient.js.map +1 -0
- package/{dist/esm → dist-esm/src}/constants.js +2 -10
- package/dist-esm/src/constants.js.map +1 -0
- package/{dist/browser/credentials/authorizationCodeCredential.js → dist-esm/src/credentials/authorizationCodeCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/authorizationCodeCredential.js +6 -6
- package/dist-esm/src/credentials/authorizationCodeCredential.js.map +1 -0
- package/dist-esm/src/credentials/authorizationCodeCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/azureApplicationCredential.js → dist-esm/src/credentials/azureApplicationCredential.browser.js} +3 -3
- package/dist-esm/src/credentials/azureApplicationCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/azureApplicationCredential.js +2 -2
- package/dist-esm/src/credentials/azureApplicationCredential.js.map +1 -0
- package/dist-esm/src/credentials/azureApplicationCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/azureCliCredential.js → dist-esm/src/credentials/azureCliCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/azureCliCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/azureCliCredential.js +10 -24
- package/dist-esm/src/credentials/azureCliCredential.js.map +1 -0
- package/dist-esm/src/credentials/azureCliCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/azureDeveloperCliCredential.js → dist-esm/src/credentials/azureDeveloperCliCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/azureDeveloperCliCredential.js +8 -8
- package/dist-esm/src/credentials/azureDeveloperCliCredential.js.map +1 -0
- package/dist-esm/src/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/azurePipelinesCredential.js → dist-esm/src/credentials/azurePipelinesCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/azurePipelinesCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/azurePipelinesCredential.js +5 -5
- package/dist-esm/src/credentials/azurePipelinesCredential.js.map +1 -0
- package/dist-esm/src/credentials/azurePipelinesCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/azurePowerShellCredential.js → dist-esm/src/credentials/azurePowerShellCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/azurePowerShellCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/azurePowerShellCredential.js +6 -6
- package/dist-esm/src/credentials/azurePowerShellCredential.js.map +1 -0
- package/dist-esm/src/credentials/azurePowerShellCredentialOptions.js.map +1 -0
- package/dist-esm/src/credentials/brokerAuthOptions.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/chainedTokenCredential.js +5 -8
- package/dist-esm/src/credentials/chainedTokenCredential.js.map +1 -0
- package/{dist/browser/credentials/clientAssertionCredential.js → dist-esm/src/credentials/clientAssertionCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/clientAssertionCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/clientAssertionCredential.js +5 -5
- package/dist-esm/src/credentials/clientAssertionCredential.js.map +1 -0
- package/dist-esm/src/credentials/clientAssertionCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/clientCertificateCredential.js → dist-esm/src/credentials/clientCertificateCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/clientCertificateCredential.js +9 -12
- package/dist-esm/src/credentials/clientCertificateCredential.js.map +1 -0
- package/dist-esm/src/credentials/clientCertificateCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/clientSecretCredential.js → dist-esm/src/credentials/clientSecretCredential.browser.js} +6 -6
- package/dist-esm/src/credentials/clientSecretCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/clientSecretCredential.js +6 -6
- package/dist-esm/src/credentials/clientSecretCredential.js.map +1 -0
- package/dist-esm/src/credentials/clientSecretCredentialOptions.js.map +1 -0
- package/dist-esm/src/credentials/credentialPersistenceOptions.js.map +1 -0
- package/{dist/browser/credentials/defaultAzureCredential.js → dist-esm/src/credentials/defaultAzureCredential.browser.js} +3 -3
- package/dist-esm/src/credentials/defaultAzureCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/defaultAzureCredential.js +10 -23
- package/dist-esm/src/credentials/defaultAzureCredential.js.map +1 -0
- package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/deviceCodeCredential.js → dist-esm/src/credentials/deviceCodeCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/deviceCodeCredential.js +6 -6
- package/dist-esm/src/credentials/deviceCodeCredential.js.map +1 -0
- package/dist-esm/src/credentials/deviceCodeCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/environmentCredential.js → dist-esm/src/credentials/environmentCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/environmentCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/environmentCredential.js +7 -7
- package/dist-esm/src/credentials/environmentCredential.js.map +1 -0
- package/dist-esm/src/credentials/environmentCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/interactiveBrowserCredential.js → dist-esm/src/credentials/interactiveBrowserCredential.browser.js} +6 -6
- package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/interactiveBrowserCredential.js +6 -6
- package/{dist/commonjs → dist-esm/src}/credentials/interactiveBrowserCredential.js.map +1 -1
- package/dist-esm/src/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
- package/dist-esm/src/credentials/interactiveCredentialOptions.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +71 -0
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js +71 -0
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +140 -0
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +75 -0
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js +9 -0
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +95 -0
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/managedIdentityCredential/imdsMsi.js +38 -16
- package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
- package/{dist/browser/credentials/managedIdentityCredential/index.js → dist-esm/src/credentials/managedIdentityCredential/index.browser.js} +2 -2
- package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/index.js +37 -0
- package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js +309 -0
- package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js.map +1 -0
- package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +1 -0
- package/{dist/esm/credentials/managedIdentityCredential/index.js → dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js} +26 -31
- package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js.map +1 -0
- package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/tokenExchangeMsi.js +3 -6
- package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
- package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/utils.js +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +1 -0
- package/dist-esm/src/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/onBehalfOfCredential.js → dist-esm/src/credentials/onBehalfOfCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/onBehalfOfCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/onBehalfOfCredential.js +6 -6
- package/dist-esm/src/credentials/onBehalfOfCredential.js.map +1 -0
- package/dist-esm/src/credentials/onBehalfOfCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/usernamePasswordCredential.js → dist-esm/src/credentials/usernamePasswordCredential.browser.js} +6 -6
- package/dist-esm/src/credentials/usernamePasswordCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/usernamePasswordCredential.js +6 -6
- package/dist-esm/src/credentials/usernamePasswordCredential.js.map +1 -0
- package/dist-esm/src/credentials/usernamePasswordCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/visualStudioCodeCredential.js → dist-esm/src/credentials/visualStudioCodeCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/visualStudioCodeCredential.js +9 -9
- package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +1 -0
- package/dist-esm/src/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
- package/{dist/browser/credentials/workloadIdentityCredential.js → dist-esm/src/credentials/workloadIdentityCredential.browser.js} +2 -2
- package/dist-esm/src/credentials/workloadIdentityCredential.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/credentials/workloadIdentityCredential.js +5 -5
- package/dist-esm/src/credentials/workloadIdentityCredential.js.map +1 -0
- package/dist-esm/src/credentials/workloadIdentityCredentialOptions.js.map +1 -0
- package/dist-esm/src/errors.js.map +1 -0
- package/{dist/browser → dist-esm/src}/index.js +25 -25
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/msal/browserFlows/flows.js.map +1 -0
- package/{dist/esm → dist-esm/src}/msal/browserFlows/msalAuthCode.js +3 -3
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +1 -0
- package/{dist/browser → dist-esm/src}/msal/browserFlows/msalBrowserCommon.js +5 -5
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +1 -0
- package/dist-esm/src/msal/credentials.js.map +1 -0
- package/{dist/browser/msal/msal.js → dist-esm/src/msal/msal.browser.js} +1 -1
- package/dist-esm/src/msal/msal.browser.js.map +1 -0
- package/{dist/browser → dist-esm/src}/msal/nodeFlows/msalClient.js +16 -9
- package/dist-esm/src/msal/nodeFlows/msalClient.js.map +1 -0
- package/{dist/browser → dist-esm/src}/msal/nodeFlows/msalPlugins.js +1 -1
- package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +1 -0
- package/{dist/browser → dist-esm/src}/msal/types.js.map +1 -1
- package/{dist/browser → dist-esm/src}/msal/utils.js +8 -14
- package/dist-esm/src/msal/utils.js.map +1 -0
- package/{dist/browser/plugins/consumer.js → dist-esm/src/plugins/consumer.browser.js} +1 -1
- package/dist-esm/src/plugins/consumer.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/plugins/consumer.js +2 -2
- package/dist-esm/src/plugins/consumer.js.map +1 -0
- package/dist-esm/src/plugins/provider.js.map +1 -0
- package/dist-esm/src/tokenCredentialOptions.js.map +1 -0
- package/{dist/browser → dist-esm/src}/tokenProvider.js +0 -1
- package/dist-esm/src/tokenProvider.js.map +1 -0
- package/{dist/esm/util/authHostEnv-browser.mjs → dist-esm/src/util/authHostEnv.browser.js} +1 -1
- package/dist-esm/src/util/authHostEnv.browser.js.map +1 -0
- package/dist-esm/src/util/logging.js.map +1 -0
- package/{dist/browser/util/processMultiTenantRequest.js → dist-esm/src/util/processMultiTenantRequest.browser.js} +1 -1
- package/dist-esm/src/util/processMultiTenantRequest.browser.js.map +1 -0
- package/{dist/esm → dist-esm/src}/util/processMultiTenantRequest.js +2 -2
- package/{dist/commonjs → dist-esm/src}/util/processMultiTenantRequest.js.map +1 -1
- package/{dist/browser → dist-esm/src}/util/scopeUtils.js +1 -1
- package/dist-esm/src/util/scopeUtils.js.map +1 -0
- package/{dist/esm → dist-esm/src}/util/tenantIdUtils.js +3 -3
- package/dist-esm/src/util/tenantIdUtils.js.map +1 -0
- package/{dist/browser → dist-esm/src}/util/tracing.js +1 -1
- package/dist-esm/src/util/tracing.js.map +1 -0
- package/package.json +79 -65
- package/types/identity.d.ts +1853 -0
- package/dist/browser/client/identityClient.d.ts +0 -65
- package/dist/browser/client/identityClient.d.ts.map +0 -1
- package/dist/browser/client/identityClient.js +0 -248
- package/dist/browser/client/identityClient.js.map +0 -1
- package/dist/browser/constants.d.ts +0 -69
- package/dist/browser/constants.d.ts.map +0 -1
- package/dist/browser/constants.js +0 -75
- package/dist/browser/constants.js.map +0 -1
- package/dist/browser/credentials/authorityValidationOptions.d.ts +0 -16
- package/dist/browser/credentials/authorityValidationOptions.d.ts.map +0 -1
- package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/authorizationCodeCredential.d.ts +0 -11
- package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
- package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/authorizationCodeCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/azureApplicationCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azureApplicationCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azureCliCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azureCliCredential.d.ts +0 -13
- package/dist/browser/credentials/azureCliCredentialOptions.d.ts +0 -20
- package/dist/browser/credentials/azureCliCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azureCliCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +0 -13
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azurePipelinesCredential.d.ts +0 -13
- package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
- package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azurePipelinesCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azurePowerShellCredential.d.ts +0 -12
- package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
- package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azurePowerShellCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/brokerAuthOptions.d.ts +0 -13
- package/dist/browser/credentials/brokerAuthOptions.d.ts.map +0 -1
- package/dist/browser/credentials/brokerAuthOptions.js.map +0 -1
- package/dist/browser/credentials/browserCustomizationOptions.d.ts +0 -19
- package/dist/browser/credentials/browserCustomizationOptions.d.ts.map +0 -1
- package/dist/browser/credentials/chainedTokenCredential.d.ts +0 -51
- package/dist/browser/credentials/chainedTokenCredential.d.ts.map +0 -1
- package/dist/browser/credentials/chainedTokenCredential.js +0 -92
- package/dist/browser/credentials/chainedTokenCredential.js.map +0 -1
- package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/clientAssertionCredential.d.ts +0 -12
- package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts +0 -9
- package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/clientAssertionCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/clientCertificateCredential.d.ts +0 -13
- package/dist/browser/credentials/clientCertificateCredentialModels.d.ts +0 -31
- package/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
- package/dist/browser/credentials/clientCertificateCredentialModels.js +0 -4
- package/dist/browser/credentials/clientCertificateCredentialModels.js.map +0 -1
- package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts +0 -14
- package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/clientCertificateCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/clientSecretCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/clientSecretCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/clientSecretCredential.d.ts +0 -40
- package/dist/browser/credentials/clientSecretCredentialOptions.d.ts +0 -9
- package/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/clientSecretCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/credentialPersistenceOptions.d.ts +0 -30
- package/dist/browser/credentials/credentialPersistenceOptions.d.ts.map +0 -1
- package/dist/browser/credentials/credentialPersistenceOptions.js.map +0 -1
- package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/defaultAzureCredential.d.ts +0 -19
- package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +0 -49
- package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/deviceCodeCredential.d.ts +0 -13
- package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts +0 -53
- package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/deviceCodeCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/environmentCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/environmentCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/environmentCredential.d.ts +0 -13
- package/dist/browser/credentials/environmentCredentialOptions.d.ts +0 -9
- package/dist/browser/credentials/environmentCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/environmentCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/interactiveBrowserCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/interactiveBrowserCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/interactiveBrowserCredential.d.ts +0 -53
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/interactiveCredentialOptions.d.ts +0 -25
- package/dist/browser/credentials/interactiveCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/interactiveCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +0 -122
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/index.d.ts +0 -6
- package/dist/browser/credentials/managedIdentityCredential/models.d.ts +0 -24
- package/dist/browser/credentials/managedIdentityCredential/models.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/models.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/options.d.ts +0 -37
- package/dist/browser/credentials/managedIdentityCredential/options.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/options.js +0 -4
- package/dist/browser/credentials/managedIdentityCredential/options.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/utils.d.ts +0 -33
- package/dist/browser/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/utils.js.map +0 -1
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/onBehalfOfCredential.d.ts +0 -12
- package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
- package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/onBehalfOfCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/usernamePasswordCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/usernamePasswordCredential.d.ts +0 -40
- package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
- package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/usernamePasswordCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredential.d.ts +0 -15
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
- package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/workloadIdentityCredential.d.ts +0 -17
- package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
- package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/workloadIdentityCredentialOptions.js.map +0 -1
- package/dist/browser/errors.d.ts +0 -139
- package/dist/browser/errors.d.ts.map +0 -1
- package/dist/browser/errors.js.map +0 -1
- package/dist/browser/index.d.ts +0 -61
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.js.map +0 -1
- package/dist/browser/msal/browserFlows/flows.d.ts +0 -42
- package/dist/browser/msal/browserFlows/flows.d.ts.map +0 -1
- package/dist/browser/msal/browserFlows/flows.js.map +0 -1
- package/dist/browser/msal/browserFlows/msalAuthCode.d.ts +0 -48
- package/dist/browser/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
- package/dist/browser/msal/browserFlows/msalAuthCode.js +0 -203
- package/dist/browser/msal/browserFlows/msalAuthCode.js.map +0 -1
- package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
- package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/browser/msal/credentials.d.ts +0 -52
- package/dist/browser/msal/credentials.d.ts.map +0 -1
- package/dist/browser/msal/credentials.js.map +0 -1
- package/dist/browser/msal/msal-browser.d.mts.map +0 -1
- package/dist/browser/msal/msal-browser.mjs.map +0 -1
- package/dist/browser/msal/msal.d.ts +0 -3
- package/dist/browser/msal/nodeFlows/brokerOptions.d.ts +0 -44
- package/dist/browser/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
- package/dist/browser/msal/nodeFlows/msalClient.d.ts +0 -186
- package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +0 -1
- package/dist/browser/msal/nodeFlows/msalClient.js.map +0 -1
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +0 -91
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
- package/dist/browser/msal/nodeFlows/msalPlugins.js.map +0 -1
- package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
- package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
- package/dist/browser/msal/types.d.ts +0 -87
- package/dist/browser/msal/types.d.ts.map +0 -1
- package/dist/browser/msal/utils.d.ts +0 -95
- package/dist/browser/msal/utils.d.ts.map +0 -1
- package/dist/browser/msal/utils.js.map +0 -1
- package/dist/browser/package.json +0 -3
- package/dist/browser/plugins/consumer-browser.d.mts.map +0 -1
- package/dist/browser/plugins/consumer-browser.mjs.map +0 -1
- package/dist/browser/plugins/consumer.d.ts +0 -2
- package/dist/browser/plugins/provider.d.ts +0 -36
- package/dist/browser/plugins/provider.d.ts.map +0 -1
- package/dist/browser/plugins/provider.js.map +0 -1
- package/dist/browser/regionalAuthority.d.ts +0 -122
- package/dist/browser/regionalAuthority.d.ts.map +0 -1
- package/dist/browser/tokenCredentialOptions.d.ts +0 -28
- package/dist/browser/tokenCredentialOptions.d.ts.map +0 -1
- package/dist/browser/tokenCredentialOptions.js.map +0 -1
- package/dist/browser/tokenProvider.d.ts +0 -39
- package/dist/browser/tokenProvider.d.ts.map +0 -1
- package/dist/browser/tokenProvider.js.map +0 -1
- package/dist/browser/util/authHostEnv-browser.d.mts +0 -4
- package/dist/browser/util/authHostEnv-browser.d.mts.map +0 -1
- package/dist/browser/util/authHostEnv-browser.mjs +0 -7
- package/dist/browser/util/authHostEnv-browser.mjs.map +0 -1
- package/dist/browser/util/identityTokenEndpoint.d.ts +0 -2
- package/dist/browser/util/identityTokenEndpoint.d.ts.map +0 -1
- package/dist/browser/util/logging.d.ts +0 -70
- package/dist/browser/util/logging.d.ts.map +0 -1
- package/dist/browser/util/logging.js.map +0 -1
- package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +0 -1
- package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +0 -1
- package/dist/browser/util/processMultiTenantRequest.d.ts +0 -9
- package/dist/browser/util/processUtils.d.ts +0 -13
- package/dist/browser/util/processUtils.d.ts.map +0 -1
- package/dist/browser/util/scopeUtils.d.ts +0 -17
- package/dist/browser/util/scopeUtils.d.ts.map +0 -1
- package/dist/browser/util/scopeUtils.js.map +0 -1
- package/dist/browser/util/subscriptionUtils.d.ts +0 -6
- package/dist/browser/util/subscriptionUtils.d.ts.map +0 -1
- package/dist/browser/util/subscriptionUtils.js +0 -14
- package/dist/browser/util/subscriptionUtils.js.map +0 -1
- package/dist/browser/util/tenantIdUtils.d.ts +0 -15
- package/dist/browser/util/tenantIdUtils.d.ts.map +0 -1
- package/dist/browser/util/tenantIdUtils.js +0 -44
- package/dist/browser/util/tenantIdUtils.js.map +0 -1
- package/dist/browser/util/tracing.d.ts +0 -6
- package/dist/browser/util/tracing.d.ts.map +0 -1
- package/dist/browser/util/tracing.js.map +0 -1
- package/dist/commonjs/client/identityClient.d.ts +0 -65
- package/dist/commonjs/client/identityClient.d.ts.map +0 -1
- package/dist/commonjs/client/identityClient.js +0 -253
- package/dist/commonjs/client/identityClient.js.map +0 -1
- package/dist/commonjs/constants.d.ts +0 -69
- package/dist/commonjs/constants.d.ts.map +0 -1
- package/dist/commonjs/constants.js +0 -78
- package/dist/commonjs/constants.js.map +0 -1
- package/dist/commonjs/credentials/authorityValidationOptions.d.ts +0 -16
- package/dist/commonjs/credentials/authorityValidationOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/authorityValidationOptions.js +0 -5
- package/dist/commonjs/credentials/authorityValidationOptions.js.map +0 -1
- package/dist/commonjs/credentials/authorizationCodeCredential.d.ts +0 -73
- package/dist/commonjs/credentials/authorizationCodeCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/authorizationCodeCredential.js +0 -64
- package/dist/commonjs/credentials/authorizationCodeCredential.js.map +0 -1
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredential.js +0 -36
- package/dist/commonjs/credentials/azureApplicationCredential.js.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azureCliCredential.d.ts +0 -64
- package/dist/commonjs/credentials/azureCliCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureCliCredential.js +0 -194
- package/dist/commonjs/credentials/azureCliCredential.js.map +0 -1
- package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts +0 -20
- package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureCliCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts +0 -71
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js +0 -176
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +0 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azurePipelinesCredential.d.ts +0 -38
- package/dist/commonjs/credentials/azurePipelinesCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azurePipelinesCredential.js +0 -146
- package/dist/commonjs/credentials/azurePipelinesCredential.js.map +0 -1
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azurePowerShellCredential.d.ts +0 -75
- package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azurePowerShellCredential.js +0 -235
- package/dist/commonjs/credentials/azurePowerShellCredential.js.map +0 -1
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/brokerAuthOptions.d.ts +0 -13
- package/dist/commonjs/credentials/brokerAuthOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/brokerAuthOptions.js +0 -3
- package/dist/commonjs/credentials/brokerAuthOptions.js.map +0 -1
- package/dist/commonjs/credentials/browserCustomizationOptions.d.ts +0 -19
- package/dist/commonjs/credentials/browserCustomizationOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/browserCustomizationOptions.js +0 -5
- package/dist/commonjs/credentials/browserCustomizationOptions.js.map +0 -1
- package/dist/commonjs/credentials/chainedTokenCredential.d.ts +0 -51
- package/dist/commonjs/credentials/chainedTokenCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/chainedTokenCredential.js +0 -96
- package/dist/commonjs/credentials/chainedTokenCredential.js.map +0 -1
- package/dist/commonjs/credentials/clientAssertionCredential.d.ts +0 -33
- package/dist/commonjs/credentials/clientAssertionCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientAssertionCredential.js +0 -59
- package/dist/commonjs/credentials/clientAssertionCredential.js.map +0 -1
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts +0 -9
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredential.d.ts +0 -72
- package/dist/commonjs/credentials/clientCertificateCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredential.js +0 -127
- package/dist/commonjs/credentials/clientCertificateCredential.js.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts +0 -31
- package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js +0 -5
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts +0 -14
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/clientSecretCredential.d.ts +0 -37
- package/dist/commonjs/credentials/clientSecretCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientSecretCredential.js +0 -64
- package/dist/commonjs/credentials/clientSecretCredential.js.map +0 -1
- package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts +0 -9
- package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts +0 -30
- package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/credentialPersistenceOptions.js +0 -5
- package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +0 -1
- package/dist/commonjs/credentials/defaultAzureCredential.d.ts +0 -65
- package/dist/commonjs/credentials/defaultAzureCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/defaultAzureCredential.js +0 -171
- package/dist/commonjs/credentials/defaultAzureCredential.js.map +0 -1
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +0 -49
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/deviceCodeCredential.d.ts +0 -67
- package/dist/commonjs/credentials/deviceCodeCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/deviceCodeCredential.js +0 -96
- package/dist/commonjs/credentials/deviceCodeCredential.js.map +0 -1
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts +0 -53
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/environmentCredential.d.ts +0 -52
- package/dist/commonjs/credentials/environmentCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/environmentCredential.js +0 -135
- package/dist/commonjs/credentials/environmentCredential.js.map +0 -1
- package/dist/commonjs/credentials/environmentCredentialOptions.d.ts +0 -9
- package/dist/commonjs/credentials/environmentCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/environmentCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/environmentCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts +0 -56
- package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/interactiveBrowserCredential.js +0 -95
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts +0 -25
- package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/interactiveCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +0 -125
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -36
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts +0 -61
- package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/index.js +0 -221
- package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts +0 -24
- package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/models.js +0 -5
- package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts +0 -37
- package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/options.js +0 -5
- package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -35
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts +0 -33
- package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js +0 -82
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +0 -1
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/onBehalfOfCredential.d.ts +0 -105
- package/dist/commonjs/credentials/onBehalfOfCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/onBehalfOfCredential.js +0 -116
- package/dist/commonjs/credentials/onBehalfOfCredential.js.map +0 -1
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/usernamePasswordCredential.d.ts +0 -41
- package/dist/commonjs/credentials/usernamePasswordCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/usernamePasswordCredential.js +0 -71
- package/dist/commonjs/credentials/usernamePasswordCredential.js.map +0 -1
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts +0 -60
- package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredential.js +0 -196
- package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +0 -5
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
- package/dist/commonjs/credentials/workloadIdentityCredential.d.ts +0 -47
- package/dist/commonjs/credentials/workloadIdentityCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/workloadIdentityCredential.js +0 -118
- package/dist/commonjs/credentials/workloadIdentityCredential.js.map +0 -1
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +0 -1
- package/dist/commonjs/errors.d.ts +0 -139
- package/dist/commonjs/errors.d.ts.map +0 -1
- package/dist/commonjs/errors.js +0 -130
- package/dist/commonjs/errors.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -61
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/index.js +0 -69
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/msal/browserFlows/flows.d.ts +0 -42
- package/dist/commonjs/msal/browserFlows/flows.d.ts.map +0 -1
- package/dist/commonjs/msal/browserFlows/flows.js +0 -5
- package/dist/commonjs/msal/browserFlows/flows.js.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts +0 -48
- package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalAuthCode.js +0 -208
- package/dist/commonjs/msal/browserFlows/msalAuthCode.js.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +0 -121
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/commonjs/msal/credentials.d.ts +0 -52
- package/dist/commonjs/msal/credentials.d.ts.map +0 -1
- package/dist/commonjs/msal/credentials.js +0 -5
- package/dist/commonjs/msal/credentials.js.map +0 -1
- package/dist/commonjs/msal/msal.d.ts +0 -3
- package/dist/commonjs/msal/msal.d.ts.map +0 -1
- package/dist/commonjs/msal/msal.js +0 -9
- package/dist/commonjs/msal/msal.js.map +0 -1
- package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts +0 -44
- package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js +0 -3
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +0 -1
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +0 -186
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +0 -1
- package/dist/commonjs/msal/nodeFlows/msalClient.js +0 -482
- package/dist/commonjs/msal/nodeFlows/msalClient.js.map +0 -1
- package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts +0 -91
- package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js +0 -91
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +0 -1
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -5
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -1
- package/dist/commonjs/msal/types.d.ts +0 -87
- package/dist/commonjs/msal/types.d.ts.map +0 -1
- package/dist/commonjs/msal/types.js +0 -5
- package/dist/commonjs/msal/types.js.map +0 -1
- package/dist/commonjs/msal/utils.d.ts +0 -95
- package/dist/commonjs/msal/utils.d.ts.map +0 -1
- package/dist/commonjs/msal/utils.js +0 -253
- package/dist/commonjs/msal/utils.js.map +0 -1
- package/dist/commonjs/package.json +0 -3
- package/dist/commonjs/plugins/consumer.d.ts +0 -28
- package/dist/commonjs/plugins/consumer.d.ts.map +0 -1
- package/dist/commonjs/plugins/consumer.js +0 -46
- package/dist/commonjs/plugins/consumer.js.map +0 -1
- package/dist/commonjs/plugins/provider.d.ts +0 -36
- package/dist/commonjs/plugins/provider.d.ts.map +0 -1
- package/dist/commonjs/plugins/provider.js +0 -5
- package/dist/commonjs/plugins/provider.js.map +0 -1
- package/dist/commonjs/regionalAuthority.d.ts +0 -122
- package/dist/commonjs/regionalAuthority.d.ts.map +0 -1
- package/dist/commonjs/regionalAuthority.js +0 -144
- package/dist/commonjs/regionalAuthority.js.map +0 -1
- package/dist/commonjs/tokenCredentialOptions.d.ts +0 -28
- package/dist/commonjs/tokenCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/tokenCredentialOptions.js +0 -5
- package/dist/commonjs/tokenCredentialOptions.js.map +0 -1
- package/dist/commonjs/tokenProvider.d.ts +0 -39
- package/dist/commonjs/tokenProvider.d.ts.map +0 -1
- package/dist/commonjs/tokenProvider.js +0 -56
- package/dist/commonjs/tokenProvider.js.map +0 -1
- package/dist/commonjs/tsdoc-metadata.json +0 -11
- package/dist/commonjs/util/identityTokenEndpoint.d.ts +0 -2
- package/dist/commonjs/util/identityTokenEndpoint.d.ts.map +0 -1
- package/dist/commonjs/util/identityTokenEndpoint.js +0 -14
- package/dist/commonjs/util/identityTokenEndpoint.js.map +0 -1
- package/dist/commonjs/util/logging.d.ts +0 -70
- package/dist/commonjs/util/logging.d.ts.map +0 -1
- package/dist/commonjs/util/logging.js +0 -103
- package/dist/commonjs/util/logging.js.map +0 -1
- package/dist/commonjs/util/processMultiTenantRequest.d.ts +0 -10
- package/dist/commonjs/util/processMultiTenantRequest.d.ts.map +0 -1
- package/dist/commonjs/util/processMultiTenantRequest.js +0 -38
- package/dist/commonjs/util/processUtils.d.ts +0 -13
- package/dist/commonjs/util/processUtils.d.ts.map +0 -1
- package/dist/commonjs/util/processUtils.js +0 -36
- package/dist/commonjs/util/processUtils.js.map +0 -1
- package/dist/commonjs/util/scopeUtils.d.ts +0 -17
- package/dist/commonjs/util/scopeUtils.d.ts.map +0 -1
- package/dist/commonjs/util/scopeUtils.js +0 -34
- package/dist/commonjs/util/scopeUtils.js.map +0 -1
- package/dist/commonjs/util/subscriptionUtils.d.ts +0 -6
- package/dist/commonjs/util/subscriptionUtils.d.ts.map +0 -1
- package/dist/commonjs/util/subscriptionUtils.js +0 -17
- package/dist/commonjs/util/subscriptionUtils.js.map +0 -1
- package/dist/commonjs/util/tenantIdUtils.d.ts +0 -15
- package/dist/commonjs/util/tenantIdUtils.d.ts.map +0 -1
- package/dist/commonjs/util/tenantIdUtils.js +0 -51
- package/dist/commonjs/util/tenantIdUtils.js.map +0 -1
- package/dist/commonjs/util/tracing.d.ts +0 -6
- package/dist/commonjs/util/tracing.d.ts.map +0 -1
- package/dist/commonjs/util/tracing.js +0 -17
- package/dist/commonjs/util/tracing.js.map +0 -1
- package/dist/esm/client/identityClient.d.ts +0 -65
- package/dist/esm/client/identityClient.d.ts.map +0 -1
- package/dist/esm/client/identityClient.js.map +0 -1
- package/dist/esm/constants.d.ts +0 -69
- package/dist/esm/constants.d.ts.map +0 -1
- package/dist/esm/constants.js.map +0 -1
- package/dist/esm/credentials/authorityValidationOptions.d.ts +0 -16
- package/dist/esm/credentials/authorityValidationOptions.d.ts.map +0 -1
- package/dist/esm/credentials/authorityValidationOptions.js +0 -4
- package/dist/esm/credentials/authorityValidationOptions.js.map +0 -1
- package/dist/esm/credentials/authorizationCodeCredential.d.ts +0 -73
- package/dist/esm/credentials/authorizationCodeCredential.d.ts.map +0 -1
- package/dist/esm/credentials/authorizationCodeCredential.js.map +0 -1
- package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
- package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/authorizationCodeCredentialOptions.js +0 -4
- package/dist/esm/credentials/authorizationCodeCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/esm/credentials/azureApplicationCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azureApplicationCredential.js.map +0 -1
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azureApplicationCredentialOptions.js +0 -4
- package/dist/esm/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azureCliCredential.d.ts +0 -64
- package/dist/esm/credentials/azureCliCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azureCliCredential.js.map +0 -1
- package/dist/esm/credentials/azureCliCredentialOptions.d.ts +0 -20
- package/dist/esm/credentials/azureCliCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azureCliCredentialOptions.js +0 -4
- package/dist/esm/credentials/azureCliCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts +0 -71
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azureDeveloperCliCredential.js.map +0 -1
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js +0 -4
- package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azurePipelinesCredential.d.ts +0 -38
- package/dist/esm/credentials/azurePipelinesCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azurePipelinesCredential.js.map +0 -1
- package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
- package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azurePipelinesCredentialOptions.js +0 -4
- package/dist/esm/credentials/azurePipelinesCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azurePowerShellCredential.d.ts +0 -75
- package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azurePowerShellCredential.js.map +0 -1
- package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
- package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azurePowerShellCredentialOptions.js +0 -4
- package/dist/esm/credentials/azurePowerShellCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/brokerAuthOptions.d.ts +0 -13
- package/dist/esm/credentials/brokerAuthOptions.d.ts.map +0 -1
- package/dist/esm/credentials/brokerAuthOptions.js +0 -2
- package/dist/esm/credentials/brokerAuthOptions.js.map +0 -1
- package/dist/esm/credentials/browserCustomizationOptions.d.ts +0 -19
- package/dist/esm/credentials/browserCustomizationOptions.d.ts.map +0 -1
- package/dist/esm/credentials/browserCustomizationOptions.js +0 -4
- package/dist/esm/credentials/browserCustomizationOptions.js.map +0 -1
- package/dist/esm/credentials/chainedTokenCredential.d.ts +0 -51
- package/dist/esm/credentials/chainedTokenCredential.d.ts.map +0 -1
- package/dist/esm/credentials/chainedTokenCredential.js.map +0 -1
- package/dist/esm/credentials/clientAssertionCredential.d.ts +0 -33
- package/dist/esm/credentials/clientAssertionCredential.d.ts.map +0 -1
- package/dist/esm/credentials/clientAssertionCredential.js.map +0 -1
- package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts +0 -9
- package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/clientAssertionCredentialOptions.js +0 -4
- package/dist/esm/credentials/clientAssertionCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/clientCertificateCredential.d.ts +0 -72
- package/dist/esm/credentials/clientCertificateCredential.d.ts.map +0 -1
- package/dist/esm/credentials/clientCertificateCredential.js.map +0 -1
- package/dist/esm/credentials/clientCertificateCredentialModels.d.ts +0 -31
- package/dist/esm/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
- package/dist/esm/credentials/clientCertificateCredentialModels.js +0 -4
- package/dist/esm/credentials/clientCertificateCredentialModels.js.map +0 -1
- package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts +0 -14
- package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/clientCertificateCredentialOptions.js +0 -4
- package/dist/esm/credentials/clientCertificateCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/clientSecretCredential.d.ts +0 -37
- package/dist/esm/credentials/clientSecretCredential.d.ts.map +0 -1
- package/dist/esm/credentials/clientSecretCredential.js.map +0 -1
- package/dist/esm/credentials/clientSecretCredentialOptions.d.ts +0 -9
- package/dist/esm/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/clientSecretCredentialOptions.js +0 -4
- package/dist/esm/credentials/clientSecretCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/credentialPersistenceOptions.d.ts +0 -30
- package/dist/esm/credentials/credentialPersistenceOptions.d.ts.map +0 -1
- package/dist/esm/credentials/credentialPersistenceOptions.js +0 -4
- package/dist/esm/credentials/credentialPersistenceOptions.js.map +0 -1
- package/dist/esm/credentials/defaultAzureCredential.d.ts +0 -65
- package/dist/esm/credentials/defaultAzureCredential.d.ts.map +0 -1
- package/dist/esm/credentials/defaultAzureCredential.js.map +0 -1
- package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +0 -49
- package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/defaultAzureCredentialOptions.js +0 -4
- package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/deviceCodeCredential.d.ts +0 -67
- package/dist/esm/credentials/deviceCodeCredential.d.ts.map +0 -1
- package/dist/esm/credentials/deviceCodeCredential.js.map +0 -1
- package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts +0 -53
- package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/deviceCodeCredentialOptions.js +0 -4
- package/dist/esm/credentials/deviceCodeCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/environmentCredential.d.ts +0 -52
- package/dist/esm/credentials/environmentCredential.d.ts.map +0 -1
- package/dist/esm/credentials/environmentCredential.js.map +0 -1
- package/dist/esm/credentials/environmentCredentialOptions.d.ts +0 -9
- package/dist/esm/credentials/environmentCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/environmentCredentialOptions.js +0 -4
- package/dist/esm/credentials/environmentCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/interactiveBrowserCredential.d.ts +0 -56
- package/dist/esm/credentials/interactiveBrowserCredential.d.ts.map +0 -1
- package/dist/esm/credentials/interactiveBrowserCredential.js.map +0 -1
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.js +0 -4
- package/dist/esm/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/interactiveCredentialOptions.d.ts +0 -25
- package/dist/esm/credentials/interactiveCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/interactiveCredentialOptions.js +0 -4
- package/dist/esm/credentials/interactiveCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -33
- package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/index.d.ts +0 -61
- package/dist/esm/credentials/managedIdentityCredential/index.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/index.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/models.d.ts +0 -24
- package/dist/esm/credentials/managedIdentityCredential/models.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/models.js +0 -4
- package/dist/esm/credentials/managedIdentityCredential/models.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/options.d.ts +0 -37
- package/dist/esm/credentials/managedIdentityCredential/options.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/options.js +0 -4
- package/dist/esm/credentials/managedIdentityCredential/options.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -32
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/utils.d.ts +0 -33
- package/dist/esm/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
- package/dist/esm/credentials/managedIdentityCredential/utils.js +0 -77
- package/dist/esm/credentials/managedIdentityCredential/utils.js.map +0 -1
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.js +0 -4
- package/dist/esm/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/onBehalfOfCredential.d.ts +0 -105
- package/dist/esm/credentials/onBehalfOfCredential.d.ts.map +0 -1
- package/dist/esm/credentials/onBehalfOfCredential.js.map +0 -1
- package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
- package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/onBehalfOfCredentialOptions.js +0 -4
- package/dist/esm/credentials/onBehalfOfCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/usernamePasswordCredential.d.ts +0 -41
- package/dist/esm/credentials/usernamePasswordCredential.d.ts.map +0 -1
- package/dist/esm/credentials/usernamePasswordCredential.js.map +0 -1
- package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
- package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/usernamePasswordCredentialOptions.js +0 -4
- package/dist/esm/credentials/usernamePasswordCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredential.d.ts +0 -60
- package/dist/esm/credentials/visualStudioCodeCredential.d.ts.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredential.js.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.js +0 -4
- package/dist/esm/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js +0 -4
- package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
- package/dist/esm/credentials/workloadIdentityCredential.d.ts +0 -47
- package/dist/esm/credentials/workloadIdentityCredential.d.ts.map +0 -1
- package/dist/esm/credentials/workloadIdentityCredential.js.map +0 -1
- package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
- package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/workloadIdentityCredentialOptions.js +0 -4
- package/dist/esm/credentials/workloadIdentityCredentialOptions.js.map +0 -1
- package/dist/esm/errors.d.ts +0 -139
- package/dist/esm/errors.d.ts.map +0 -1
- package/dist/esm/errors.js +0 -123
- package/dist/esm/errors.js.map +0 -1
- package/dist/esm/index.d.ts +0 -61
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -34
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/msal/browserFlows/flows.d.ts +0 -42
- package/dist/esm/msal/browserFlows/flows.d.ts.map +0 -1
- package/dist/esm/msal/browserFlows/flows.js +0 -4
- package/dist/esm/msal/browserFlows/flows.js.map +0 -1
- package/dist/esm/msal/browserFlows/msalAuthCode.d.ts +0 -48
- package/dist/esm/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
- package/dist/esm/msal/browserFlows/msalAuthCode.js.map +0 -1
- package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
- package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js +0 -116
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/esm/msal/credentials.d.ts +0 -52
- package/dist/esm/msal/credentials.d.ts.map +0 -1
- package/dist/esm/msal/credentials.js +0 -4
- package/dist/esm/msal/credentials.js.map +0 -1
- package/dist/esm/msal/msal.d.ts +0 -3
- package/dist/esm/msal/msal.d.ts.map +0 -1
- package/dist/esm/msal/nodeFlows/brokerOptions.d.ts +0 -44
- package/dist/esm/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
- package/dist/esm/msal/nodeFlows/brokerOptions.js +0 -2
- package/dist/esm/msal/nodeFlows/brokerOptions.js.map +0 -1
- package/dist/esm/msal/nodeFlows/msalClient.d.ts +0 -186
- package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +0 -1
- package/dist/esm/msal/nodeFlows/msalClient.js +0 -477
- package/dist/esm/msal/nodeFlows/msalClient.js.map +0 -1
- package/dist/esm/msal/nodeFlows/msalPlugins.d.ts +0 -91
- package/dist/esm/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
- package/dist/esm/msal/nodeFlows/msalPlugins.js +0 -87
- package/dist/esm/msal/nodeFlows/msalPlugins.js.map +0 -1
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -4
- package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -1
- package/dist/esm/msal/types.d.ts +0 -87
- package/dist/esm/msal/types.d.ts.map +0 -1
- package/dist/esm/msal/types.js +0 -4
- package/dist/esm/msal/types.js.map +0 -1
- package/dist/esm/msal/utils.d.ts +0 -95
- package/dist/esm/msal/utils.d.ts.map +0 -1
- package/dist/esm/msal/utils.js +0 -238
- package/dist/esm/msal/utils.js.map +0 -1
- package/dist/esm/package.json +0 -3
- package/dist/esm/plugins/consumer.d.ts +0 -28
- package/dist/esm/plugins/consumer.d.ts.map +0 -1
- package/dist/esm/plugins/consumer.js.map +0 -1
- package/dist/esm/plugins/provider.d.ts +0 -36
- package/dist/esm/plugins/provider.d.ts.map +0 -1
- package/dist/esm/plugins/provider.js +0 -4
- package/dist/esm/plugins/provider.js.map +0 -1
- package/dist/esm/regionalAuthority.d.ts +0 -122
- package/dist/esm/regionalAuthority.d.ts.map +0 -1
- package/dist/esm/regionalAuthority.js +0 -140
- package/dist/esm/regionalAuthority.js.map +0 -1
- package/dist/esm/tokenCredentialOptions.d.ts +0 -28
- package/dist/esm/tokenCredentialOptions.d.ts.map +0 -1
- package/dist/esm/tokenCredentialOptions.js +0 -4
- package/dist/esm/tokenCredentialOptions.js.map +0 -1
- package/dist/esm/tokenProvider.d.ts +0 -39
- package/dist/esm/tokenProvider.d.ts.map +0 -1
- package/dist/esm/tokenProvider.js +0 -53
- package/dist/esm/tokenProvider.js.map +0 -1
- package/dist/esm/util/authHostEnv-browser.d.mts +0 -4
- package/dist/esm/util/authHostEnv-browser.d.mts.map +0 -1
- package/dist/esm/util/authHostEnv-browser.mjs.map +0 -1
- package/dist/esm/util/identityTokenEndpoint.d.ts +0 -2
- package/dist/esm/util/identityTokenEndpoint.d.ts.map +0 -1
- package/dist/esm/util/identityTokenEndpoint.js +0 -11
- package/dist/esm/util/identityTokenEndpoint.js.map +0 -1
- package/dist/esm/util/logging.d.ts +0 -70
- package/dist/esm/util/logging.d.ts.map +0 -1
- package/dist/esm/util/logging.js +0 -94
- package/dist/esm/util/logging.js.map +0 -1
- package/dist/esm/util/processMultiTenantRequest.d.ts +0 -10
- package/dist/esm/util/processMultiTenantRequest.d.ts.map +0 -1
- package/dist/esm/util/processMultiTenantRequest.js.map +0 -1
- package/dist/esm/util/processUtils.d.ts +0 -13
- package/dist/esm/util/processUtils.d.ts.map +0 -1
- package/dist/esm/util/processUtils.js +0 -32
- package/dist/esm/util/processUtils.js.map +0 -1
- package/dist/esm/util/scopeUtils.d.ts +0 -17
- package/dist/esm/util/scopeUtils.d.ts.map +0 -1
- package/dist/esm/util/scopeUtils.js +0 -29
- package/dist/esm/util/scopeUtils.js.map +0 -1
- package/dist/esm/util/subscriptionUtils.d.ts +0 -6
- package/dist/esm/util/subscriptionUtils.d.ts.map +0 -1
- package/dist/esm/util/subscriptionUtils.js +0 -14
- package/dist/esm/util/subscriptionUtils.js.map +0 -1
- package/dist/esm/util/tenantIdUtils.d.ts +0 -15
- package/dist/esm/util/tenantIdUtils.d.ts.map +0 -1
- package/dist/esm/util/tenantIdUtils.js.map +0 -1
- package/dist/esm/util/tracing.d.ts +0 -6
- package/dist/esm/util/tracing.d.ts.map +0 -1
- package/dist/esm/util/tracing.js +0 -14
- package/dist/esm/util/tracing.js.map +0 -1
- /package/{dist/browser → dist-esm/src}/credentials/authorityValidationOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/authorityValidationOptions.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/authorizationCodeCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/azureApplicationCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/azureCliCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/azureDeveloperCliCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/azurePipelinesCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/azurePowerShellCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/brokerAuthOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/browserCustomizationOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/browserCustomizationOptions.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/clientAssertionCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/clientCertificateCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/clientSecretCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/credentialPersistenceOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/defaultAzureCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/deviceCodeCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/environmentCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/interactiveBrowserCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/interactiveCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/models.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/multiTenantTokenCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/onBehalfOfCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/usernamePasswordCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialPlugin.js +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialPlugin.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/credentials/workloadIdentityCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/errors.js +0 -0
- /package/{dist/browser → dist-esm/src}/msal/browserFlows/flows.js +0 -0
- /package/{dist/browser → dist-esm/src}/msal/credentials.js +0 -0
- /package/{dist/esm → dist-esm/src}/msal/msal.js +0 -0
- /package/{dist/esm → dist-esm/src}/msal/msal.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/msal/nodeFlows/brokerOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/msal/nodeFlows/brokerOptions.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/msal/types.js +0 -0
- /package/{dist/browser → dist-esm/src}/plugins/provider.js +0 -0
- /package/{dist/browser → dist-esm/src}/regionalAuthority.js +0 -0
- /package/{dist/browser → dist-esm/src}/regionalAuthority.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/tokenCredentialOptions.js +0 -0
- /package/{dist/browser → dist-esm/src}/util/identityTokenEndpoint.js +0 -0
- /package/{dist/browser → dist-esm/src}/util/identityTokenEndpoint.js.map +0 -0
- /package/{dist/browser → dist-esm/src}/util/logging.js +0 -0
- /package/{dist/browser → dist-esm/src}/util/processUtils.js +0 -0
- /package/{dist/browser → dist-esm/src}/util/processUtils.js.map +0 -0
@@ -1,144 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.RegionalAuthority = void 0;
|
6
|
-
exports.calculateRegionalAuthority = calculateRegionalAuthority;
|
7
|
-
/**
|
8
|
-
* Helps specify a regional authority, or "AutoDiscoverRegion" to auto-detect the region.
|
9
|
-
*/
|
10
|
-
var RegionalAuthority;
|
11
|
-
(function (RegionalAuthority) {
|
12
|
-
/** Instructs MSAL to attempt to discover the region */
|
13
|
-
RegionalAuthority["AutoDiscoverRegion"] = "AutoDiscoverRegion";
|
14
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'westus' region. */
|
15
|
-
RegionalAuthority["USWest"] = "westus";
|
16
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'westus2' region. */
|
17
|
-
RegionalAuthority["USWest2"] = "westus2";
|
18
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'centralus' region. */
|
19
|
-
RegionalAuthority["USCentral"] = "centralus";
|
20
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'eastus' region. */
|
21
|
-
RegionalAuthority["USEast"] = "eastus";
|
22
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'eastus2' region. */
|
23
|
-
RegionalAuthority["USEast2"] = "eastus2";
|
24
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'northcentralus' region. */
|
25
|
-
RegionalAuthority["USNorthCentral"] = "northcentralus";
|
26
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'southcentralus' region. */
|
27
|
-
RegionalAuthority["USSouthCentral"] = "southcentralus";
|
28
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'westcentralus' region. */
|
29
|
-
RegionalAuthority["USWestCentral"] = "westcentralus";
|
30
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'canadacentral' region. */
|
31
|
-
RegionalAuthority["CanadaCentral"] = "canadacentral";
|
32
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'canadaeast' region. */
|
33
|
-
RegionalAuthority["CanadaEast"] = "canadaeast";
|
34
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'brazilsouth' region. */
|
35
|
-
RegionalAuthority["BrazilSouth"] = "brazilsouth";
|
36
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'northeurope' region. */
|
37
|
-
RegionalAuthority["EuropeNorth"] = "northeurope";
|
38
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'westeurope' region. */
|
39
|
-
RegionalAuthority["EuropeWest"] = "westeurope";
|
40
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'uksouth' region. */
|
41
|
-
RegionalAuthority["UKSouth"] = "uksouth";
|
42
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'ukwest' region. */
|
43
|
-
RegionalAuthority["UKWest"] = "ukwest";
|
44
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'francecentral' region. */
|
45
|
-
RegionalAuthority["FranceCentral"] = "francecentral";
|
46
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'francesouth' region. */
|
47
|
-
RegionalAuthority["FranceSouth"] = "francesouth";
|
48
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'switzerlandnorth' region. */
|
49
|
-
RegionalAuthority["SwitzerlandNorth"] = "switzerlandnorth";
|
50
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'switzerlandwest' region. */
|
51
|
-
RegionalAuthority["SwitzerlandWest"] = "switzerlandwest";
|
52
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'germanynorth' region. */
|
53
|
-
RegionalAuthority["GermanyNorth"] = "germanynorth";
|
54
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'germanywestcentral' region. */
|
55
|
-
RegionalAuthority["GermanyWestCentral"] = "germanywestcentral";
|
56
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'norwaywest' region. */
|
57
|
-
RegionalAuthority["NorwayWest"] = "norwaywest";
|
58
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'norwayeast' region. */
|
59
|
-
RegionalAuthority["NorwayEast"] = "norwayeast";
|
60
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'eastasia' region. */
|
61
|
-
RegionalAuthority["AsiaEast"] = "eastasia";
|
62
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'southeastasia' region. */
|
63
|
-
RegionalAuthority["AsiaSouthEast"] = "southeastasia";
|
64
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'japaneast' region. */
|
65
|
-
RegionalAuthority["JapanEast"] = "japaneast";
|
66
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'japanwest' region. */
|
67
|
-
RegionalAuthority["JapanWest"] = "japanwest";
|
68
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'australiaeast' region. */
|
69
|
-
RegionalAuthority["AustraliaEast"] = "australiaeast";
|
70
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'australiasoutheast' region. */
|
71
|
-
RegionalAuthority["AustraliaSouthEast"] = "australiasoutheast";
|
72
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'australiacentral' region. */
|
73
|
-
RegionalAuthority["AustraliaCentral"] = "australiacentral";
|
74
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'australiacentral2' region. */
|
75
|
-
RegionalAuthority["AustraliaCentral2"] = "australiacentral2";
|
76
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'centralindia' region. */
|
77
|
-
RegionalAuthority["IndiaCentral"] = "centralindia";
|
78
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'southindia' region. */
|
79
|
-
RegionalAuthority["IndiaSouth"] = "southindia";
|
80
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'westindia' region. */
|
81
|
-
RegionalAuthority["IndiaWest"] = "westindia";
|
82
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'koreasouth' region. */
|
83
|
-
RegionalAuthority["KoreaSouth"] = "koreasouth";
|
84
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'koreacentral' region. */
|
85
|
-
RegionalAuthority["KoreaCentral"] = "koreacentral";
|
86
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'uaecentral' region. */
|
87
|
-
RegionalAuthority["UAECentral"] = "uaecentral";
|
88
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'uaenorth' region. */
|
89
|
-
RegionalAuthority["UAENorth"] = "uaenorth";
|
90
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'southafricanorth' region. */
|
91
|
-
RegionalAuthority["SouthAfricaNorth"] = "southafricanorth";
|
92
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'southafricawest' region. */
|
93
|
-
RegionalAuthority["SouthAfricaWest"] = "southafricawest";
|
94
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'chinanorth' region. */
|
95
|
-
RegionalAuthority["ChinaNorth"] = "chinanorth";
|
96
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'chinaeast' region. */
|
97
|
-
RegionalAuthority["ChinaEast"] = "chinaeast";
|
98
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'chinanorth2' region. */
|
99
|
-
RegionalAuthority["ChinaNorth2"] = "chinanorth2";
|
100
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'chinaeast2' region. */
|
101
|
-
RegionalAuthority["ChinaEast2"] = "chinaeast2";
|
102
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'germanycentral' region. */
|
103
|
-
RegionalAuthority["GermanyCentral"] = "germanycentral";
|
104
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'germanynortheast' region. */
|
105
|
-
RegionalAuthority["GermanyNorthEast"] = "germanynortheast";
|
106
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usgovvirginia' region. */
|
107
|
-
RegionalAuthority["GovernmentUSVirginia"] = "usgovvirginia";
|
108
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usgoviowa' region. */
|
109
|
-
RegionalAuthority["GovernmentUSIowa"] = "usgoviowa";
|
110
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usgovarizona' region. */
|
111
|
-
RegionalAuthority["GovernmentUSArizona"] = "usgovarizona";
|
112
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usgovtexas' region. */
|
113
|
-
RegionalAuthority["GovernmentUSTexas"] = "usgovtexas";
|
114
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usdodeast' region. */
|
115
|
-
RegionalAuthority["GovernmentUSDodEast"] = "usdodeast";
|
116
|
-
/** Uses the {@link RegionalAuthority} for the Azure 'usdodcentral' region. */
|
117
|
-
RegionalAuthority["GovernmentUSDodCentral"] = "usdodcentral";
|
118
|
-
})(RegionalAuthority || (exports.RegionalAuthority = RegionalAuthority = {}));
|
119
|
-
/**
|
120
|
-
* Calculates the correct regional authority based on the supplied value
|
121
|
-
* and the AZURE_REGIONAL_AUTHORITY_NAME environment variable.
|
122
|
-
*
|
123
|
-
* Values will be returned verbatim, except for {@link RegionalAuthority.AutoDiscoverRegion}
|
124
|
-
* which is mapped to a value MSAL can understand.
|
125
|
-
*
|
126
|
-
* @internal
|
127
|
-
*/
|
128
|
-
function calculateRegionalAuthority(regionalAuthority) {
|
129
|
-
// Note: as of today only 3 credentials support regional authority, and the parameter
|
130
|
-
// is not exposed via the public API. Regional Authority is _only_ supported
|
131
|
-
// via the AZURE_REGIONAL_AUTHORITY_NAME env var and _only_ for: ClientSecretCredential, ClientCertificateCredential, and ClientAssertionCredential.
|
132
|
-
var _a, _b;
|
133
|
-
// Accepting the regionalAuthority parameter will allow us to support it in the future.
|
134
|
-
let azureRegion = regionalAuthority;
|
135
|
-
if (azureRegion === undefined &&
|
136
|
-
((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.AZURE_REGIONAL_AUTHORITY_NAME) !== undefined) {
|
137
|
-
azureRegion = process.env.AZURE_REGIONAL_AUTHORITY_NAME;
|
138
|
-
}
|
139
|
-
if (azureRegion === RegionalAuthority.AutoDiscoverRegion) {
|
140
|
-
return "AUTO_DISCOVER";
|
141
|
-
}
|
142
|
-
return azureRegion;
|
143
|
-
}
|
144
|
-
//# sourceMappingURL=regionalAuthority.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"regionalAuthority.js","sourceRoot":"","sources":["../../src/regionalAuthority.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA2HlC,gEAoBC;AA7ID;;GAEG;AACH,IAAY,iBA2GX;AA3GD,WAAY,iBAAiB;IAC3B,uDAAuD;IACvD,8DAAyC,CAAA;IACzC,wEAAwE;IACxE,sCAAiB,CAAA;IACjB,yEAAyE;IACzE,wCAAmB,CAAA;IACnB,2EAA2E;IAC3E,4CAAuB,CAAA;IACvB,wEAAwE;IACxE,sCAAiB,CAAA;IACjB,yEAAyE;IACzE,wCAAmB,CAAA;IACnB,gFAAgF;IAChF,sDAAiC,CAAA;IACjC,gFAAgF;IAChF,sDAAiC,CAAA;IACjC,+EAA+E;IAC/E,oDAA+B,CAAA;IAC/B,+EAA+E;IAC/E,oDAA+B,CAAA;IAC/B,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,6EAA6E;IAC7E,gDAA2B,CAAA;IAC3B,6EAA6E;IAC7E,gDAA2B,CAAA;IAC3B,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,yEAAyE;IACzE,wCAAmB,CAAA;IACnB,wEAAwE;IACxE,sCAAiB,CAAA;IACjB,+EAA+E;IAC/E,oDAA+B,CAAA;IAC/B,6EAA6E;IAC7E,gDAA2B,CAAA;IAC3B,kFAAkF;IAClF,0DAAqC,CAAA;IACrC,iFAAiF;IACjF,wDAAmC,CAAA;IACnC,8EAA8E;IAC9E,kDAA6B,CAAA;IAC7B,oFAAoF;IACpF,8DAAyC,CAAA;IACzC,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,0EAA0E;IAC1E,0CAAqB,CAAA;IACrB,+EAA+E;IAC/E,oDAA+B,CAAA;IAC/B,2EAA2E;IAC3E,4CAAuB,CAAA;IACvB,2EAA2E;IAC3E,4CAAuB,CAAA;IACvB,+EAA+E;IAC/E,oDAA+B,CAAA;IAC/B,oFAAoF;IACpF,8DAAyC,CAAA;IACzC,kFAAkF;IAClF,0DAAqC,CAAA;IACrC,mFAAmF;IACnF,4DAAuC,CAAA;IACvC,8EAA8E;IAC9E,kDAA6B,CAAA;IAC7B,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,2EAA2E;IAC3E,4CAAuB,CAAA;IACvB,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,8EAA8E;IAC9E,kDAA6B,CAAA;IAC7B,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,0EAA0E;IAC1E,0CAAqB,CAAA;IACrB,kFAAkF;IAClF,0DAAqC,CAAA;IACrC,iFAAiF;IACjF,wDAAmC,CAAA;IACnC,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,2EAA2E;IAC3E,4CAAuB,CAAA;IACvB,6EAA6E;IAC7E,gDAA2B,CAAA;IAC3B,4EAA4E;IAC5E,8CAAyB,CAAA;IACzB,gFAAgF;IAChF,sDAAiC,CAAA;IACjC,kFAAkF;IAClF,0DAAqC,CAAA;IACrC,+EAA+E;IAC/E,2DAAsC,CAAA;IACtC,2EAA2E;IAC3E,mDAA8B,CAAA;IAC9B,8EAA8E;IAC9E,yDAAoC,CAAA;IACpC,4EAA4E;IAC5E,qDAAgC,CAAA;IAChC,2EAA2E;IAC3E,sDAAiC,CAAA;IACjC,8EAA8E;IAC9E,4DAAuC,CAAA;AACzC,CAAC,EA3GW,iBAAiB,iCAAjB,iBAAiB,QA2G5B;AAED;;;;;;;;GAQG;AACH,SAAgB,0BAA0B,CAAC,iBAA0B;IACnE,qFAAqF;IACrF,4EAA4E;IAC5E,oJAAoJ;;IAEpJ,uFAAuF;IACvF,IAAI,WAAW,GAAG,iBAAiB,CAAC;IAEpC,IACE,WAAW,KAAK,SAAS;QACzB,CAAA,MAAA,MAAA,UAAU,CAAC,OAAO,0CAAE,GAAG,0CAAE,6BAA6B,MAAK,SAAS,EACpE,CAAC;QACD,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;IAC1D,CAAC;IAED,IAAI,WAAW,KAAK,iBAAiB,CAAC,kBAAkB,EAAE,CAAC;QACzD,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Helps specify a regional authority, or \"AutoDiscoverRegion\" to auto-detect the region.\n */\nexport enum RegionalAuthority {\n /** Instructs MSAL to attempt to discover the region */\n AutoDiscoverRegion = \"AutoDiscoverRegion\",\n /** Uses the {@link RegionalAuthority} for the Azure 'westus' region. */\n USWest = \"westus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'westus2' region. */\n USWest2 = \"westus2\",\n /** Uses the {@link RegionalAuthority} for the Azure 'centralus' region. */\n USCentral = \"centralus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'eastus' region. */\n USEast = \"eastus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'eastus2' region. */\n USEast2 = \"eastus2\",\n /** Uses the {@link RegionalAuthority} for the Azure 'northcentralus' region. */\n USNorthCentral = \"northcentralus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'southcentralus' region. */\n USSouthCentral = \"southcentralus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'westcentralus' region. */\n USWestCentral = \"westcentralus\",\n /** Uses the {@link RegionalAuthority} for the Azure 'canadacentral' region. */\n CanadaCentral = \"canadacentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'canadaeast' region. */\n CanadaEast = \"canadaeast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'brazilsouth' region. */\n BrazilSouth = \"brazilsouth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'northeurope' region. */\n EuropeNorth = \"northeurope\",\n /** Uses the {@link RegionalAuthority} for the Azure 'westeurope' region. */\n EuropeWest = \"westeurope\",\n /** Uses the {@link RegionalAuthority} for the Azure 'uksouth' region. */\n UKSouth = \"uksouth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'ukwest' region. */\n UKWest = \"ukwest\",\n /** Uses the {@link RegionalAuthority} for the Azure 'francecentral' region. */\n FranceCentral = \"francecentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'francesouth' region. */\n FranceSouth = \"francesouth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandnorth' region. */\n SwitzerlandNorth = \"switzerlandnorth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandwest' region. */\n SwitzerlandWest = \"switzerlandwest\",\n /** Uses the {@link RegionalAuthority} for the Azure 'germanynorth' region. */\n GermanyNorth = \"germanynorth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'germanywestcentral' region. */\n GermanyWestCentral = \"germanywestcentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'norwaywest' region. */\n NorwayWest = \"norwaywest\",\n /** Uses the {@link RegionalAuthority} for the Azure 'norwayeast' region. */\n NorwayEast = \"norwayeast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'eastasia' region. */\n AsiaEast = \"eastasia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'southeastasia' region. */\n AsiaSouthEast = \"southeastasia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'japaneast' region. */\n JapanEast = \"japaneast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'japanwest' region. */\n JapanWest = \"japanwest\",\n /** Uses the {@link RegionalAuthority} for the Azure 'australiaeast' region. */\n AustraliaEast = \"australiaeast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'australiasoutheast' region. */\n AustraliaSouthEast = \"australiasoutheast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral' region. */\n AustraliaCentral = \"australiacentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral2' region. */\n AustraliaCentral2 = \"australiacentral2\",\n /** Uses the {@link RegionalAuthority} for the Azure 'centralindia' region. */\n IndiaCentral = \"centralindia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'southindia' region. */\n IndiaSouth = \"southindia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'westindia' region. */\n IndiaWest = \"westindia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'koreasouth' region. */\n KoreaSouth = \"koreasouth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'koreacentral' region. */\n KoreaCentral = \"koreacentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'uaecentral' region. */\n UAECentral = \"uaecentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'uaenorth' region. */\n UAENorth = \"uaenorth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'southafricanorth' region. */\n SouthAfricaNorth = \"southafricanorth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'southafricawest' region. */\n SouthAfricaWest = \"southafricawest\",\n /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth' region. */\n ChinaNorth = \"chinanorth\",\n /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast' region. */\n ChinaEast = \"chinaeast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth2' region. */\n ChinaNorth2 = \"chinanorth2\",\n /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast2' region. */\n ChinaEast2 = \"chinaeast2\",\n /** Uses the {@link RegionalAuthority} for the Azure 'germanycentral' region. */\n GermanyCentral = \"germanycentral\",\n /** Uses the {@link RegionalAuthority} for the Azure 'germanynortheast' region. */\n GermanyNorthEast = \"germanynortheast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usgovvirginia' region. */\n GovernmentUSVirginia = \"usgovvirginia\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usgoviowa' region. */\n GovernmentUSIowa = \"usgoviowa\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usgovarizona' region. */\n GovernmentUSArizona = \"usgovarizona\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usgovtexas' region. */\n GovernmentUSTexas = \"usgovtexas\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usdodeast' region. */\n GovernmentUSDodEast = \"usdodeast\",\n /** Uses the {@link RegionalAuthority} for the Azure 'usdodcentral' region. */\n GovernmentUSDodCentral = \"usdodcentral\",\n}\n\n/**\n * Calculates the correct regional authority based on the supplied value\n * and the AZURE_REGIONAL_AUTHORITY_NAME environment variable.\n *\n * Values will be returned verbatim, except for {@link RegionalAuthority.AutoDiscoverRegion}\n * which is mapped to a value MSAL can understand.\n *\n * @internal\n */\nexport function calculateRegionalAuthority(regionalAuthority?: string): string | undefined {\n // Note: as of today only 3 credentials support regional authority, and the parameter\n // is not exposed via the public API. Regional Authority is _only_ supported\n // via the AZURE_REGIONAL_AUTHORITY_NAME env var and _only_ for: ClientSecretCredential, ClientCertificateCredential, and ClientAssertionCredential.\n\n // Accepting the regionalAuthority parameter will allow us to support it in the future.\n let azureRegion = regionalAuthority;\n\n if (\n azureRegion === undefined &&\n globalThis.process?.env?.AZURE_REGIONAL_AUTHORITY_NAME !== undefined\n ) {\n azureRegion = process.env.AZURE_REGIONAL_AUTHORITY_NAME;\n }\n\n if (azureRegion === RegionalAuthority.AutoDiscoverRegion) {\n return \"AUTO_DISCOVER\";\n }\n\n return azureRegion;\n}\n"]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import type { CommonClientOptions } from "@azure/core-client";
|
2
|
-
import type { LogPolicyOptions } from "@azure/core-rest-pipeline";
|
3
|
-
/**
|
4
|
-
* Provides options to configure how the Identity library makes authentication
|
5
|
-
* requests to Microsoft Entra ID.
|
6
|
-
*/
|
7
|
-
export interface TokenCredentialOptions extends CommonClientOptions {
|
8
|
-
/**
|
9
|
-
* The authority host to use for authentication requests.
|
10
|
-
* Possible values are available through {@link AzureAuthorityHosts}.
|
11
|
-
* The default is "https://login.microsoftonline.com".
|
12
|
-
*/
|
13
|
-
authorityHost?: string;
|
14
|
-
/**
|
15
|
-
* Allows users to configure settings for logging policy options, allow logging account information and personally identifiable information for customer support.
|
16
|
-
*/
|
17
|
-
loggingOptions?: LogPolicyOptions & {
|
18
|
-
/**
|
19
|
-
* Allows logging account information once the authentication flow succeeds.
|
20
|
-
*/
|
21
|
-
allowLoggingAccountIdentifiers?: boolean;
|
22
|
-
/**
|
23
|
-
* Allows logging personally identifiable information for customer support.
|
24
|
-
*/
|
25
|
-
enableUnsafeSupportLogging?: boolean;
|
26
|
-
};
|
27
|
-
}
|
28
|
-
//# sourceMappingURL=tokenCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenCredentialOptions.d.ts","sourceRoot":"","sources":["../../src/tokenCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,GAAG;QAClC;;WAEG;QACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC;;WAEG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACH"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenCredentialOptions.js","sourceRoot":"","sources":["../../src/tokenCredentialOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CommonClientOptions } from \"@azure/core-client\";\nimport type { LogPolicyOptions } from \"@azure/core-rest-pipeline\";\n\n/**\n * Provides options to configure how the Identity library makes authentication\n * requests to Microsoft Entra ID.\n */\nexport interface TokenCredentialOptions extends CommonClientOptions {\n /**\n * The authority host to use for authentication requests.\n * Possible values are available through {@link AzureAuthorityHosts}.\n * The default is \"https://login.microsoftonline.com\".\n */\n authorityHost?: string;\n /**\n * Allows users to configure settings for logging policy options, allow logging account information and personally identifiable information for customer support.\n */\n loggingOptions?: LogPolicyOptions & {\n /**\n * Allows logging account information once the authentication flow succeeds.\n */\n allowLoggingAccountIdentifiers?: boolean;\n /**\n * Allows logging personally identifiable information for customer support.\n */\n enableUnsafeSupportLogging?: boolean;\n };\n}\n"]}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import type { TokenCredential, TracingContext } from "@azure/core-auth";
|
2
|
-
/**
|
3
|
-
* The options to configure the token provider.
|
4
|
-
*/
|
5
|
-
export interface GetBearerTokenProviderOptions {
|
6
|
-
/** The abort signal to abort requests to get tokens */
|
7
|
-
abortSignal?: AbortSignal;
|
8
|
-
/** The tracing options for the requests to get tokens */
|
9
|
-
tracingOptions?: {
|
10
|
-
/**
|
11
|
-
* Tracing Context for the current request to get a token.
|
12
|
-
*/
|
13
|
-
tracingContext?: TracingContext;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* Returns a callback that provides a bearer token.
|
18
|
-
* For example, the bearer token can be used to authenticate a request as follows:
|
19
|
-
* ```ts snippet:token_provider_example
|
20
|
-
* import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
|
21
|
-
* import { createPipelineRequest } from "@azure/core-rest-pipeline";
|
22
|
-
*
|
23
|
-
* const credential = new DefaultAzureCredential();
|
24
|
-
* const scope = "https://cognitiveservices.azure.com/.default";
|
25
|
-
* const getAccessToken = getBearerTokenProvider(credential, scope);
|
26
|
-
* const token = await getAccessToken();
|
27
|
-
*
|
28
|
-
* // usage
|
29
|
-
* const request = createPipelineRequest({ url: "https://example.com" });
|
30
|
-
* request.headers.set("Authorization", `Bearer ${token}`);
|
31
|
-
* ```
|
32
|
-
*
|
33
|
-
* @param credential - The credential used to authenticate the request.
|
34
|
-
* @param scopes - The scopes required for the bearer token.
|
35
|
-
* @param options - Options to configure the token provider.
|
36
|
-
* @returns a callback that provides a bearer token.
|
37
|
-
*/
|
38
|
-
export declare function getBearerTokenProvider(credential: TokenCredential, scopes: string | string[], options?: GetBearerTokenProviderOptions): () => Promise<string>;
|
39
|
-
//# sourceMappingURL=tokenProvider.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenProvider.d.ts","sourceRoot":"","sources":["../../src/tokenProvider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOxE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,uDAAuD;IACvD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,cAAc,CAAC,EAAE,cAAc,CAAC;KACjC,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,eAAe,EAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,CAAC,EAAE,6BAA6B,GACtC,MAAM,OAAO,CAAC,MAAM,CAAC,CA6BvB"}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.getBearerTokenProvider = getBearerTokenProvider;
|
6
|
-
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
7
|
-
/**
|
8
|
-
* Returns a callback that provides a bearer token.
|
9
|
-
* For example, the bearer token can be used to authenticate a request as follows:
|
10
|
-
* ```ts snippet:token_provider_example
|
11
|
-
* import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
|
12
|
-
* import { createPipelineRequest } from "@azure/core-rest-pipeline";
|
13
|
-
*
|
14
|
-
* const credential = new DefaultAzureCredential();
|
15
|
-
* const scope = "https://cognitiveservices.azure.com/.default";
|
16
|
-
* const getAccessToken = getBearerTokenProvider(credential, scope);
|
17
|
-
* const token = await getAccessToken();
|
18
|
-
*
|
19
|
-
* // usage
|
20
|
-
* const request = createPipelineRequest({ url: "https://example.com" });
|
21
|
-
* request.headers.set("Authorization", `Bearer ${token}`);
|
22
|
-
* ```
|
23
|
-
*
|
24
|
-
* @param credential - The credential used to authenticate the request.
|
25
|
-
* @param scopes - The scopes required for the bearer token.
|
26
|
-
* @param options - Options to configure the token provider.
|
27
|
-
* @returns a callback that provides a bearer token.
|
28
|
-
*/
|
29
|
-
function getBearerTokenProvider(credential, scopes, options) {
|
30
|
-
const { abortSignal, tracingOptions } = options || {};
|
31
|
-
const pipeline = (0, core_rest_pipeline_1.createEmptyPipeline)();
|
32
|
-
pipeline.addPolicy((0, core_rest_pipeline_1.bearerTokenAuthenticationPolicy)({ credential, scopes }));
|
33
|
-
async function getRefreshedToken() {
|
34
|
-
var _a;
|
35
|
-
// Create a pipeline with just the bearer token policy
|
36
|
-
// and run a dummy request through it to get the token
|
37
|
-
const res = await pipeline.sendRequest({
|
38
|
-
sendRequest: (request) => Promise.resolve({
|
39
|
-
request,
|
40
|
-
status: 200,
|
41
|
-
headers: request.headers,
|
42
|
-
}),
|
43
|
-
}, (0, core_rest_pipeline_1.createPipelineRequest)({
|
44
|
-
url: "https://example.com",
|
45
|
-
abortSignal,
|
46
|
-
tracingOptions,
|
47
|
-
}));
|
48
|
-
const accessToken = (_a = res.headers.get("authorization")) === null || _a === void 0 ? void 0 : _a.split(" ")[1];
|
49
|
-
if (!accessToken) {
|
50
|
-
throw new Error("Failed to get access token");
|
51
|
-
}
|
52
|
-
return accessToken;
|
53
|
-
}
|
54
|
-
return getRefreshedToken;
|
55
|
-
}
|
56
|
-
//# sourceMappingURL=tokenProvider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenProvider.js","sourceRoot":"","sources":["../../src/tokenProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA8ClC,wDAiCC;AA5ED,kEAImC;AAiBnC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,sBAAsB,CACpC,UAA2B,EAC3B,MAAyB,EACzB,OAAuC;IAEvC,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IACtD,MAAM,QAAQ,GAAG,IAAA,wCAAmB,GAAE,CAAC;IACvC,QAAQ,CAAC,SAAS,CAAC,IAAA,oDAA+B,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5E,KAAK,UAAU,iBAAiB;;QAC9B,sDAAsD;QACtD,sDAAsD;QACtD,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,WAAW,CACpC;YACE,WAAW,EAAE,CAAC,OAAO,EAAE,EAAE,CACvB,OAAO,CAAC,OAAO,CAAC;gBACd,OAAO;gBACP,MAAM,EAAE,GAAG;gBACX,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB,CAAC;SACL,EACD,IAAA,0CAAqB,EAAC;YACpB,GAAG,EAAE,qBAAqB;YAC1B,WAAW;YACX,cAAc;SACf,CAAC,CACH,CAAC;QACF,MAAM,WAAW,GAAG,MAAA,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,0CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACpE,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential, TracingContext } from \"@azure/core-auth\";\nimport {\n bearerTokenAuthenticationPolicy,\n createEmptyPipeline,\n createPipelineRequest,\n} from \"@azure/core-rest-pipeline\";\n\n/**\n * The options to configure the token provider.\n */\nexport interface GetBearerTokenProviderOptions {\n /** The abort signal to abort requests to get tokens */\n abortSignal?: AbortSignal;\n /** The tracing options for the requests to get tokens */\n tracingOptions?: {\n /**\n * Tracing Context for the current request to get a token.\n */\n tracingContext?: TracingContext;\n };\n}\n\n/**\n * Returns a callback that provides a bearer token.\n * For example, the bearer token can be used to authenticate a request as follows:\n * ```ts snippet:token_provider_example\n * import { DefaultAzureCredential, getBearerTokenProvider } from \"@azure/identity\";\n * import { createPipelineRequest } from \"@azure/core-rest-pipeline\";\n *\n * const credential = new DefaultAzureCredential();\n * const scope = \"https://cognitiveservices.azure.com/.default\";\n * const getAccessToken = getBearerTokenProvider(credential, scope);\n * const token = await getAccessToken();\n *\n * // usage\n * const request = createPipelineRequest({ url: \"https://example.com\" });\n * request.headers.set(\"Authorization\", `Bearer ${token}`);\n * ```\n *\n * @param credential - The credential used to authenticate the request.\n * @param scopes - The scopes required for the bearer token.\n * @param options - Options to configure the token provider.\n * @returns a callback that provides a bearer token.\n */\nexport function getBearerTokenProvider(\n credential: TokenCredential,\n scopes: string | string[],\n options?: GetBearerTokenProviderOptions,\n): () => Promise<string> {\n const { abortSignal, tracingOptions } = options || {};\n const pipeline = createEmptyPipeline();\n pipeline.addPolicy(bearerTokenAuthenticationPolicy({ credential, scopes }));\n async function getRefreshedToken(): Promise<string> {\n // Create a pipeline with just the bearer token policy\n // and run a dummy request through it to get the token\n const res = await pipeline.sendRequest(\n {\n sendRequest: (request) =>\n Promise.resolve({\n request,\n status: 200,\n headers: request.headers,\n }),\n },\n createPipelineRequest({\n url: \"https://example.com\",\n abortSignal,\n tracingOptions,\n }),\n );\n const accessToken = res.headers.get(\"authorization\")?.split(\" \")[1];\n if (!accessToken) {\n throw new Error(\"Failed to get access token\");\n }\n return accessToken;\n }\n return getRefreshedToken;\n}\n"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
3
|
-
{
|
4
|
-
"tsdocVersion": "0.12",
|
5
|
-
"toolPackages": [
|
6
|
-
{
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
8
|
-
"packageVersion": "7.49.1"
|
9
|
-
}
|
10
|
-
]
|
11
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"identityTokenEndpoint.d.ts","sourceRoot":"","sources":["../../../src/util/identityTokenEndpoint.ts"],"names":[],"mappings":"AAGA,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMvE"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.getIdentityTokenEndpointSuffix = getIdentityTokenEndpointSuffix;
|
6
|
-
function getIdentityTokenEndpointSuffix(tenantId) {
|
7
|
-
if (tenantId === "adfs") {
|
8
|
-
return "oauth2/token";
|
9
|
-
}
|
10
|
-
else {
|
11
|
-
return "oauth2/v2.0/token";
|
12
|
-
}
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=identityTokenEndpoint.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"identityTokenEndpoint.js","sourceRoot":"","sources":["../../../src/util/identityTokenEndpoint.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,wEAMC;AAND,SAAgB,8BAA8B,CAAC,QAAgB;IAC7D,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;QACxB,OAAO,cAAc,CAAC;IACxB,CAAC;SAAM,CAAC;QACN,OAAO,mBAAmB,CAAC;IAC7B,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport function getIdentityTokenEndpointSuffix(tenantId: string): string {\n if (tenantId === \"adfs\") {\n return \"oauth2/token\";\n } else {\n return \"oauth2/v2.0/token\";\n }\n}\n"]}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import type { AzureLogger } from "@azure/logger";
|
2
|
-
/**
|
3
|
-
* The AzureLogger used for all clients within the identity package
|
4
|
-
*/
|
5
|
-
export declare const logger: AzureLogger;
|
6
|
-
interface EnvironmentAccumulator {
|
7
|
-
missing: string[];
|
8
|
-
assigned: string[];
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* Separates a list of environment variable names into a plain object with two arrays: an array of missing environment variables and another array with assigned environment variables.
|
12
|
-
* @param supportedEnvVars - List of environment variable names
|
13
|
-
*/
|
14
|
-
export declare function processEnvVars(supportedEnvVars: string[]): EnvironmentAccumulator;
|
15
|
-
/**
|
16
|
-
* Based on a given list of environment variable names,
|
17
|
-
* logs the environment variables currently assigned during the usage of a credential that goes by the given name.
|
18
|
-
* @param credentialName - Name of the credential in use
|
19
|
-
* @param supportedEnvVars - List of environment variables supported by that credential
|
20
|
-
*/
|
21
|
-
export declare function logEnvVars(credentialName: string, supportedEnvVars: string[]): void;
|
22
|
-
/**
|
23
|
-
* Formatting the success event on the credentials
|
24
|
-
*/
|
25
|
-
export declare function formatSuccess(scope: string | string[]): string;
|
26
|
-
/**
|
27
|
-
* Formatting the success event on the credentials
|
28
|
-
*/
|
29
|
-
export declare function formatError(scope: string | string[] | undefined, error: Error | string): string;
|
30
|
-
/**
|
31
|
-
* A CredentialLoggerInstance is a logger properly formatted to work in a credential's constructor, and its methods.
|
32
|
-
*/
|
33
|
-
export interface CredentialLoggerInstance {
|
34
|
-
title: string;
|
35
|
-
fullTitle: string;
|
36
|
-
info(message: string): void;
|
37
|
-
warning(message: string): void;
|
38
|
-
verbose(message: string): void;
|
39
|
-
error(err: string): void;
|
40
|
-
}
|
41
|
-
/**
|
42
|
-
* Generates a CredentialLoggerInstance.
|
43
|
-
*
|
44
|
-
* It logs with the format:
|
45
|
-
*
|
46
|
-
* `[title] => [message]`
|
47
|
-
*
|
48
|
-
*/
|
49
|
-
export declare function credentialLoggerInstance(title: string, parent?: CredentialLoggerInstance, log?: AzureLogger): CredentialLoggerInstance;
|
50
|
-
/**
|
51
|
-
* A CredentialLogger is a logger declared at the credential's constructor, and used at any point in the credential.
|
52
|
-
* It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.
|
53
|
-
*/
|
54
|
-
export interface CredentialLogger extends CredentialLoggerInstance {
|
55
|
-
parent: AzureLogger;
|
56
|
-
getToken: CredentialLoggerInstance;
|
57
|
-
}
|
58
|
-
/**
|
59
|
-
* Generates a CredentialLogger, which is a logger declared at the credential's constructor, and used at any point in the credential.
|
60
|
-
* It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.
|
61
|
-
*
|
62
|
-
* It logs with the format:
|
63
|
-
*
|
64
|
-
* `[title] => [message]`
|
65
|
-
* `[title] => getToken() => [message]`
|
66
|
-
*
|
67
|
-
*/
|
68
|
-
export declare function credentialLogger(title: string, log?: AzureLogger): CredentialLogger;
|
69
|
-
export {};
|
70
|
-
//# sourceMappingURL=logging.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/util/logging.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD;;GAEG;AACH,eAAO,MAAM,MAAM,aAAiC,CAAC;AAErD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,sBAAsB,CAYjF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,cAAc,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,IAAI,CAKnF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAM/F;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,wBAAwB,EACjC,GAAG,GAAE,WAAoB,GACxB,wBAAwB,CA2B1B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB;IAChE,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,wBAAwB,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,WAAoB,GAAG,gBAAgB,CAO3F"}
|
@@ -1,103 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.logger = void 0;
|
6
|
-
exports.processEnvVars = processEnvVars;
|
7
|
-
exports.logEnvVars = logEnvVars;
|
8
|
-
exports.formatSuccess = formatSuccess;
|
9
|
-
exports.formatError = formatError;
|
10
|
-
exports.credentialLoggerInstance = credentialLoggerInstance;
|
11
|
-
exports.credentialLogger = credentialLogger;
|
12
|
-
const logger_1 = require("@azure/logger");
|
13
|
-
/**
|
14
|
-
* The AzureLogger used for all clients within the identity package
|
15
|
-
*/
|
16
|
-
exports.logger = (0, logger_1.createClientLogger)("identity");
|
17
|
-
/**
|
18
|
-
* Separates a list of environment variable names into a plain object with two arrays: an array of missing environment variables and another array with assigned environment variables.
|
19
|
-
* @param supportedEnvVars - List of environment variable names
|
20
|
-
*/
|
21
|
-
function processEnvVars(supportedEnvVars) {
|
22
|
-
return supportedEnvVars.reduce((acc, envVariable) => {
|
23
|
-
if (process.env[envVariable]) {
|
24
|
-
acc.assigned.push(envVariable);
|
25
|
-
}
|
26
|
-
else {
|
27
|
-
acc.missing.push(envVariable);
|
28
|
-
}
|
29
|
-
return acc;
|
30
|
-
}, { missing: [], assigned: [] });
|
31
|
-
}
|
32
|
-
/**
|
33
|
-
* Based on a given list of environment variable names,
|
34
|
-
* logs the environment variables currently assigned during the usage of a credential that goes by the given name.
|
35
|
-
* @param credentialName - Name of the credential in use
|
36
|
-
* @param supportedEnvVars - List of environment variables supported by that credential
|
37
|
-
*/
|
38
|
-
function logEnvVars(credentialName, supportedEnvVars) {
|
39
|
-
const { assigned } = processEnvVars(supportedEnvVars);
|
40
|
-
exports.logger.info(`${credentialName} => Found the following environment variables: ${assigned.join(", ")}`);
|
41
|
-
}
|
42
|
-
/**
|
43
|
-
* Formatting the success event on the credentials
|
44
|
-
*/
|
45
|
-
function formatSuccess(scope) {
|
46
|
-
return `SUCCESS. Scopes: ${Array.isArray(scope) ? scope.join(", ") : scope}.`;
|
47
|
-
}
|
48
|
-
/**
|
49
|
-
* Formatting the success event on the credentials
|
50
|
-
*/
|
51
|
-
function formatError(scope, error) {
|
52
|
-
let message = "ERROR.";
|
53
|
-
if (scope === null || scope === void 0 ? void 0 : scope.length) {
|
54
|
-
message += ` Scopes: ${Array.isArray(scope) ? scope.join(", ") : scope}.`;
|
55
|
-
}
|
56
|
-
return `${message} Error message: ${typeof error === "string" ? error : error.message}.`;
|
57
|
-
}
|
58
|
-
/**
|
59
|
-
* Generates a CredentialLoggerInstance.
|
60
|
-
*
|
61
|
-
* It logs with the format:
|
62
|
-
*
|
63
|
-
* `[title] => [message]`
|
64
|
-
*
|
65
|
-
*/
|
66
|
-
function credentialLoggerInstance(title, parent, log = exports.logger) {
|
67
|
-
const fullTitle = parent ? `${parent.fullTitle} ${title}` : title;
|
68
|
-
function info(message) {
|
69
|
-
log.info(`${fullTitle} =>`, message);
|
70
|
-
}
|
71
|
-
function warning(message) {
|
72
|
-
log.warning(`${fullTitle} =>`, message);
|
73
|
-
}
|
74
|
-
function verbose(message) {
|
75
|
-
log.verbose(`${fullTitle} =>`, message);
|
76
|
-
}
|
77
|
-
function error(message) {
|
78
|
-
log.error(`${fullTitle} =>`, message);
|
79
|
-
}
|
80
|
-
return {
|
81
|
-
title,
|
82
|
-
fullTitle,
|
83
|
-
info,
|
84
|
-
warning,
|
85
|
-
verbose,
|
86
|
-
error,
|
87
|
-
};
|
88
|
-
}
|
89
|
-
/**
|
90
|
-
* Generates a CredentialLogger, which is a logger declared at the credential's constructor, and used at any point in the credential.
|
91
|
-
* It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.
|
92
|
-
*
|
93
|
-
* It logs with the format:
|
94
|
-
*
|
95
|
-
* `[title] => [message]`
|
96
|
-
* `[title] => getToken() => [message]`
|
97
|
-
*
|
98
|
-
*/
|
99
|
-
function credentialLogger(title, log = exports.logger) {
|
100
|
-
const credLogger = credentialLoggerInstance(title, undefined, log);
|
101
|
-
return Object.assign(Object.assign({}, credLogger), { parent: log, getToken: credentialLoggerInstance("=> getToken()", credLogger, log) });
|
102
|
-
}
|
103
|
-
//# sourceMappingURL=logging.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../../src/util/logging.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAmBlC,wCAYC;AAQD,gCAKC;AAKD,sCAEC;AAKD,kCAMC;AAsBD,4DA+BC;AAqBD,4CAOC;AA5ID,0CAAmD;AAEnD;;GAEG;AACU,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,UAAU,CAAC,CAAC;AAOrD;;;GAGG;AACH,SAAgB,cAAc,CAAC,gBAA0B;IACvD,OAAO,gBAAgB,CAAC,MAAM,CAC5B,CAAC,GAA2B,EAAE,WAAmB,EAAE,EAAE;QACnD,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAC7B,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAChC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC9B,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,cAAsB,EAAE,gBAA0B;IAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;IACtD,cAAM,CAAC,IAAI,CACT,GAAG,cAAc,kDAAkD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,KAAwB;IACpD,OAAO,oBAAoB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;AAChF,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAoC,EAAE,KAAqB;IACrF,IAAI,OAAO,GAAG,QAAQ,CAAC;IACvB,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE,CAAC;QAClB,OAAO,IAAI,YAAY,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;IAC5E,CAAC;IACD,OAAO,GAAG,OAAO,mBAAmB,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC;AAC3F,CAAC;AAcD;;;;;;;GAOG;AACH,SAAgB,wBAAwB,CACtC,KAAa,EACb,MAAiC,EACjC,MAAmB,cAAM;IAEzB,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,SAAS,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAElE,SAAS,IAAI,CAAC,OAAe;QAC3B,GAAG,CAAC,IAAI,CAAC,GAAG,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,SAAS,OAAO,CAAC,OAAe;QAC9B,GAAG,CAAC,OAAO,CAAC,GAAG,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,SAAS,OAAO,CAAC,OAAe;QAC9B,GAAG,CAAC,OAAO,CAAC,GAAG,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,SAAS,KAAK,CAAC,OAAe;QAC5B,GAAG,CAAC,KAAK,CAAC,GAAG,SAAS,KAAK,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED,OAAO;QACL,KAAK;QACL,SAAS;QACT,IAAI;QACJ,OAAO;QACP,OAAO;QACP,KAAK;KACN,CAAC;AACJ,CAAC;AAWD;;;;;;;;;GASG;AACH,SAAgB,gBAAgB,CAAC,KAAa,EAAE,MAAmB,cAAM;IACvE,MAAM,UAAU,GAAG,wBAAwB,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACnE,uCACK,UAAU,KACb,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,wBAAwB,CAAC,eAAe,EAAE,UAAU,EAAE,GAAG,CAAC,IACpE;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureLogger } from \"@azure/logger\";\nimport { createClientLogger } from \"@azure/logger\";\n\n/**\n * The AzureLogger used for all clients within the identity package\n */\nexport const logger = createClientLogger(\"identity\");\n\ninterface EnvironmentAccumulator {\n missing: string[];\n assigned: string[];\n}\n\n/**\n * Separates a list of environment variable names into a plain object with two arrays: an array of missing environment variables and another array with assigned environment variables.\n * @param supportedEnvVars - List of environment variable names\n */\nexport function processEnvVars(supportedEnvVars: string[]): EnvironmentAccumulator {\n return supportedEnvVars.reduce(\n (acc: EnvironmentAccumulator, envVariable: string) => {\n if (process.env[envVariable]) {\n acc.assigned.push(envVariable);\n } else {\n acc.missing.push(envVariable);\n }\n return acc;\n },\n { missing: [], assigned: [] },\n );\n}\n\n/**\n * Based on a given list of environment variable names,\n * logs the environment variables currently assigned during the usage of a credential that goes by the given name.\n * @param credentialName - Name of the credential in use\n * @param supportedEnvVars - List of environment variables supported by that credential\n */\nexport function logEnvVars(credentialName: string, supportedEnvVars: string[]): void {\n const { assigned } = processEnvVars(supportedEnvVars);\n logger.info(\n `${credentialName} => Found the following environment variables: ${assigned.join(\", \")}`,\n );\n}\n\n/**\n * Formatting the success event on the credentials\n */\nexport function formatSuccess(scope: string | string[]): string {\n return `SUCCESS. Scopes: ${Array.isArray(scope) ? scope.join(\", \") : scope}.`;\n}\n\n/**\n * Formatting the success event on the credentials\n */\nexport function formatError(scope: string | string[] | undefined, error: Error | string): string {\n let message = \"ERROR.\";\n if (scope?.length) {\n message += ` Scopes: ${Array.isArray(scope) ? scope.join(\", \") : scope}.`;\n }\n return `${message} Error message: ${typeof error === \"string\" ? error : error.message}.`;\n}\n\n/**\n * A CredentialLoggerInstance is a logger properly formatted to work in a credential's constructor, and its methods.\n */\nexport interface CredentialLoggerInstance {\n title: string;\n fullTitle: string;\n info(message: string): void;\n warning(message: string): void;\n verbose(message: string): void;\n error(err: string): void;\n}\n\n/**\n * Generates a CredentialLoggerInstance.\n *\n * It logs with the format:\n *\n * `[title] => [message]`\n *\n */\nexport function credentialLoggerInstance(\n title: string,\n parent?: CredentialLoggerInstance,\n log: AzureLogger = logger,\n): CredentialLoggerInstance {\n const fullTitle = parent ? `${parent.fullTitle} ${title}` : title;\n\n function info(message: string): void {\n log.info(`${fullTitle} =>`, message);\n }\n\n function warning(message: string): void {\n log.warning(`${fullTitle} =>`, message);\n }\n\n function verbose(message: string): void {\n log.verbose(`${fullTitle} =>`, message);\n }\n\n function error(message: string): void {\n log.error(`${fullTitle} =>`, message);\n }\n\n return {\n title,\n fullTitle,\n info,\n warning,\n verbose,\n error,\n };\n}\n\n/**\n * A CredentialLogger is a logger declared at the credential's constructor, and used at any point in the credential.\n * It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.\n */\nexport interface CredentialLogger extends CredentialLoggerInstance {\n parent: AzureLogger;\n getToken: CredentialLoggerInstance;\n}\n\n/**\n * Generates a CredentialLogger, which is a logger declared at the credential's constructor, and used at any point in the credential.\n * It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.\n *\n * It logs with the format:\n *\n * `[title] => [message]`\n * `[title] => getToken() => [message]`\n *\n */\nexport function credentialLogger(title: string, log: AzureLogger = logger): CredentialLogger {\n const credLogger = credentialLoggerInstance(title, undefined, log);\n return {\n ...credLogger,\n parent: log,\n getToken: credentialLoggerInstance(\"=> getToken()\", credLogger, log),\n };\n}\n"]}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { GetTokenOptions } from "@azure/core-auth";
|
2
|
-
import type { CredentialLogger } from "./logging.js";
|
3
|
-
/**
|
4
|
-
* Of getToken contains a tenantId, this functions allows picking this tenantId as the appropriate for authentication,
|
5
|
-
* unless multitenant authentication has been disabled through the AZURE_IDENTITY_DISABLE_MULTITENANTAUTH (on Node.js),
|
6
|
-
* or unless the original tenant Id is `adfs`.
|
7
|
-
* @internal
|
8
|
-
*/
|
9
|
-
export declare function processMultiTenantRequest(tenantId?: string, getTokenOptions?: GetTokenOptions, additionallyAllowedTenantIds?: string[], logger?: CredentialLogger): string | undefined;
|
10
|
-
//# sourceMappingURL=processMultiTenantRequest.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"processMultiTenantRequest.d.ts","sourceRoot":"","sources":["../../../src/util/processMultiTenantRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,CAAC,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,eAAe,EACjC,4BAA4B,GAAE,MAAM,EAAO,EAC3C,MAAM,CAAC,EAAE,gBAAgB,GACxB,MAAM,GAAG,SAAS,CAqBpB"}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.processMultiTenantRequest = processMultiTenantRequest;
|
6
|
-
const errors_js_1 = require("../errors.js");
|
7
|
-
function createConfigurationErrorMessage(tenantId) {
|
8
|
-
return `The current credential is not configured to acquire tokens for tenant ${tenantId}. To enable acquiring tokens for this tenant add it to the AdditionallyAllowedTenants on the credential options, or add "*" to AdditionallyAllowedTenants to allow acquiring tokens for any tenant.`;
|
9
|
-
}
|
10
|
-
/**
|
11
|
-
* Of getToken contains a tenantId, this functions allows picking this tenantId as the appropriate for authentication,
|
12
|
-
* unless multitenant authentication has been disabled through the AZURE_IDENTITY_DISABLE_MULTITENANTAUTH (on Node.js),
|
13
|
-
* or unless the original tenant Id is `adfs`.
|
14
|
-
* @internal
|
15
|
-
*/
|
16
|
-
function processMultiTenantRequest(tenantId, getTokenOptions, additionallyAllowedTenantIds = [], logger) {
|
17
|
-
var _a;
|
18
|
-
let resolvedTenantId;
|
19
|
-
if (process.env.AZURE_IDENTITY_DISABLE_MULTITENANTAUTH) {
|
20
|
-
resolvedTenantId = tenantId;
|
21
|
-
}
|
22
|
-
else if (tenantId === "adfs") {
|
23
|
-
resolvedTenantId = tenantId;
|
24
|
-
}
|
25
|
-
else {
|
26
|
-
resolvedTenantId = (_a = getTokenOptions === null || getTokenOptions === void 0 ? void 0 : getTokenOptions.tenantId) !== null && _a !== void 0 ? _a : tenantId;
|
27
|
-
}
|
28
|
-
if (tenantId &&
|
29
|
-
resolvedTenantId !== tenantId &&
|
30
|
-
!additionallyAllowedTenantIds.includes("*") &&
|
31
|
-
!additionallyAllowedTenantIds.some((t) => t.localeCompare(resolvedTenantId) === 0)) {
|
32
|
-
const message = createConfigurationErrorMessage(resolvedTenantId);
|
33
|
-
logger === null || logger === void 0 ? void 0 : logger.info(message);
|
34
|
-
throw new errors_js_1.CredentialUnavailableError(message);
|
35
|
-
}
|
36
|
-
return resolvedTenantId;
|
37
|
-
}
|
38
|
-
//# sourceMappingURL=processMultiTenantRequest.js.map
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import * as childProcess from "child_process";
|
2
|
-
/**
|
3
|
-
* Easy to mock childProcess utils.
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export declare const processUtils: {
|
7
|
-
/**
|
8
|
-
* Promisifying childProcess.execFile
|
9
|
-
* @internal
|
10
|
-
*/
|
11
|
-
execFile(file: string, params: string[], options?: childProcess.ExecFileOptionsWithStringEncoding): Promise<string | Buffer>;
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=processUtils.d.ts.map
|