@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,122 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { createHttpHeaders, createPipelineRequest } from "@azure/core-rest-pipeline";
|
4
|
-
import { isError } from "@azure/core-util";
|
5
|
-
import { credentialLogger } from "../../util/logging.js";
|
6
|
-
import { mapScopesToResource } from "./utils.js";
|
7
|
-
import { tracingClient } from "../../util/tracing.js";
|
8
|
-
const msiName = "ManagedIdentityCredential - IMDS";
|
9
|
-
const logger = credentialLogger(msiName);
|
10
|
-
const imdsHost = "http://169.254.169.254";
|
11
|
-
const imdsEndpointPath = "/metadata/identity/oauth2/token";
|
12
|
-
const imdsApiVersion = "2018-02-01";
|
13
|
-
/**
|
14
|
-
* Generates the options used on the request for an access token.
|
15
|
-
*/
|
16
|
-
function prepareRequestOptions(scopes, clientId, resourceId, options) {
|
17
|
-
var _a;
|
18
|
-
const resource = mapScopesToResource(scopes);
|
19
|
-
if (!resource) {
|
20
|
-
throw new Error(`${msiName}: Multiple scopes are not supported.`);
|
21
|
-
}
|
22
|
-
const { skipQuery, skipMetadataHeader } = options || {};
|
23
|
-
let query = "";
|
24
|
-
// Pod Identity will try to process this request even if the Metadata header is missing.
|
25
|
-
// We can exclude the request query to ensure no IMDS endpoint tries to process the ping request.
|
26
|
-
if (!skipQuery) {
|
27
|
-
const queryParameters = {
|
28
|
-
resource,
|
29
|
-
"api-version": imdsApiVersion,
|
30
|
-
};
|
31
|
-
if (clientId) {
|
32
|
-
queryParameters.client_id = clientId;
|
33
|
-
}
|
34
|
-
if (resourceId) {
|
35
|
-
queryParameters.msi_res_id = resourceId;
|
36
|
-
}
|
37
|
-
const params = new URLSearchParams(queryParameters);
|
38
|
-
query = `?${params.toString()}`;
|
39
|
-
}
|
40
|
-
const url = new URL(imdsEndpointPath, (_a = process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) !== null && _a !== void 0 ? _a : imdsHost);
|
41
|
-
const rawHeaders = {
|
42
|
-
Accept: "application/json",
|
43
|
-
Metadata: "true",
|
44
|
-
};
|
45
|
-
// Remove the Metadata header to invoke a request error from some IMDS endpoints.
|
46
|
-
if (skipMetadataHeader) {
|
47
|
-
delete rawHeaders.Metadata;
|
48
|
-
}
|
49
|
-
return {
|
50
|
-
// In this case, the `?` should be added in the "query" variable `skipQuery` is not set.
|
51
|
-
url: `${url}${query}`,
|
52
|
-
method: "GET",
|
53
|
-
headers: createHttpHeaders(rawHeaders),
|
54
|
-
};
|
55
|
-
}
|
56
|
-
/**
|
57
|
-
* Defines how to determine whether the Azure IMDS MSI is available.
|
58
|
-
*
|
59
|
-
* Actually getting the token once we determine IMDS is available is handled by MSAL.
|
60
|
-
*/
|
61
|
-
export const imdsMsi = {
|
62
|
-
name: "imdsMsi",
|
63
|
-
async isAvailable(options) {
|
64
|
-
const { scopes, identityClient, clientId, resourceId, getTokenOptions } = options;
|
65
|
-
const resource = mapScopesToResource(scopes);
|
66
|
-
if (!resource) {
|
67
|
-
logger.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
|
68
|
-
return false;
|
69
|
-
}
|
70
|
-
// if the PodIdentityEndpoint environment variable was set no need to probe the endpoint, it can be assumed to exist
|
71
|
-
if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) {
|
72
|
-
return true;
|
73
|
-
}
|
74
|
-
if (!identityClient) {
|
75
|
-
throw new Error("Missing IdentityClient");
|
76
|
-
}
|
77
|
-
const requestOptions = prepareRequestOptions(resource, clientId, resourceId, {
|
78
|
-
skipMetadataHeader: true,
|
79
|
-
skipQuery: true,
|
80
|
-
});
|
81
|
-
return tracingClient.withSpan("ManagedIdentityCredential-pingImdsEndpoint", getTokenOptions !== null && getTokenOptions !== void 0 ? getTokenOptions : {}, async (updatedOptions) => {
|
82
|
-
var _a, _b;
|
83
|
-
requestOptions.tracingOptions = updatedOptions.tracingOptions;
|
84
|
-
// Create a request with a timeout since we expect that
|
85
|
-
// not having a "Metadata" header should cause an error to be
|
86
|
-
// returned quickly from the endpoint, proving its availability.
|
87
|
-
const request = createPipelineRequest(requestOptions);
|
88
|
-
// Default to 1000 if the default of 0 is used.
|
89
|
-
// Negative values can still be used to disable the timeout.
|
90
|
-
request.timeout = ((_a = updatedOptions.requestOptions) === null || _a === void 0 ? void 0 : _a.timeout) || 1000;
|
91
|
-
// This MSI uses the imdsEndpoint to get the token, which only uses http://
|
92
|
-
request.allowInsecureConnection = true;
|
93
|
-
let response;
|
94
|
-
try {
|
95
|
-
logger.info(`${msiName}: Pinging the Azure IMDS endpoint`);
|
96
|
-
response = await identityClient.sendRequest(request);
|
97
|
-
}
|
98
|
-
catch (err) {
|
99
|
-
// If the request failed, or Node.js was unable to establish a connection,
|
100
|
-
// or the host was down, we'll assume the IMDS endpoint isn't available.
|
101
|
-
if (isError(err)) {
|
102
|
-
logger.verbose(`${msiName}: Caught error ${err.name}: ${err.message}`);
|
103
|
-
}
|
104
|
-
// This is a special case for Docker Desktop which responds with a 403 with a message that contains "A socket operation was attempted to an unreachable network" or "A socket operation was attempted to an unreachable host"
|
105
|
-
// rather than just timing out, as expected.
|
106
|
-
logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);
|
107
|
-
return false;
|
108
|
-
}
|
109
|
-
if (response.status === 403) {
|
110
|
-
if ((_b = response.bodyAsText) === null || _b === void 0 ? void 0 : _b.includes("unreachable")) {
|
111
|
-
logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);
|
112
|
-
logger.info(`${msiName}: ${response.bodyAsText}`);
|
113
|
-
return false;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
// If we received any response, the endpoint is available
|
117
|
-
logger.info(`${msiName}: The Azure IMDS endpoint is available`);
|
118
|
-
return true;
|
119
|
-
});
|
120
|
-
},
|
121
|
-
};
|
122
|
-
//# sourceMappingURL=imdsMsi.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"imdsMsi.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsMsi.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,MAAM,OAAO,GAAG,kCAAkC,CAAC;AACnD,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAEzC,MAAM,QAAQ,GAAG,wBAAwB,CAAC;AAC1C,MAAM,gBAAgB,GAAG,iCAAiC,CAAC;AAC3D,MAAM,cAAc,GAAG,YAAY,CAAC;AAEpC;;GAEG;AACH,SAAS,qBAAqB,CAC5B,MAAyB,EACzB,QAAiB,EACjB,UAAmB,EACnB,OAGC;;IAED,MAAM,QAAQ,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,sCAAsC,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IACxD,IAAI,KAAK,GAAG,EAAE,CAAC;IAEf,wFAAwF;IACxF,iGAAiG;IACjG,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,eAAe,GAA2B;YAC9C,QAAQ;YACR,aAAa,EAAE,cAAc;SAC9B,CAAC;QACF,IAAI,QAAQ,EAAE,CAAC;YACb,eAAe,CAAC,SAAS,GAAG,QAAQ,CAAC;QACvC,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACf,eAAe,CAAC,UAAU,GAAG,UAAU,CAAC;QAC1C,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,eAAe,CAAC,CAAC;QACpD,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,gBAAgB,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,iCAAiC,mCAAI,QAAQ,CAAC,CAAC;IAEjG,MAAM,UAAU,GAA2B;QACzC,MAAM,EAAE,kBAAkB;QAC1B,QAAQ,EAAE,MAAM;KACjB,CAAC;IAEF,iFAAiF;IACjF,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,UAAU,CAAC,QAAQ,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,wFAAwF;QACxF,GAAG,EAAE,GAAG,GAAG,GAAG,KAAK,EAAE;QACrB,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC;KACvC,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,CAAC,WAAW,CAAC,OAMjB;QACC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;QAClF,MAAM,QAAQ,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,mDAAmD,CAAC,CAAC;YAC3E,OAAO,KAAK,CAAC;QACf,CAAC;QAED,oHAAoH;QACpH,IAAI,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,cAAc,GAAG,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE;YAC3E,kBAAkB,EAAE,IAAI;YACxB,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,OAAO,aAAa,CAAC,QAAQ,CAC3B,4CAA4C,EAC5C,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,EAAE,EACrB,KAAK,EAAE,cAAc,EAAE,EAAE;;YACvB,cAAc,CAAC,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;YAE9D,uDAAuD;YACvD,6DAA6D;YAC7D,gEAAgE;YAChE,MAAM,OAAO,GAAG,qBAAqB,CAAC,cAAc,CAAC,CAAC;YAEtD,+CAA+C;YAC/C,4DAA4D;YAC5D,OAAO,CAAC,OAAO,GAAG,CAAA,MAAA,cAAc,CAAC,cAAc,0CAAE,OAAO,KAAI,IAAI,CAAC;YAEjE,2EAA2E;YAC3E,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;YACvC,IAAI,QAA0B,CAAC;YAC/B,IAAI,CAAC;gBACH,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,mCAAmC,CAAC,CAAC;gBAC3D,QAAQ,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACvD,CAAC;YAAC,OAAO,GAAY,EAAE,CAAC;gBACtB,0EAA0E;gBAC1E,wEAAwE;gBACxE,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;oBACjB,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,kBAAkB,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;gBACzE,CAAC;gBACD,6NAA6N;gBAC7N,4CAA4C;gBAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,0CAA0C,CAAC,CAAC;gBAClE,OAAO,KAAK,CAAC;YACf,CAAC;YACD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,IAAI,MAAA,QAAQ,CAAC,UAAU,0CAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;oBACjD,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,0CAA0C,CAAC,CAAC;oBAClE,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;oBAClD,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;YACD,yDAAyD;YACzD,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,wCAAwC,CAAC,CAAC;YAChE,OAAO,IAAI,CAAC;QACd,CAAC,CACF,CAAC;IACJ,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelineRequestOptions, PipelineResponse } from \"@azure/core-rest-pipeline\";\nimport { createHttpHeaders, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { isError } from \"@azure/core-util\";\n\nimport type { GetTokenOptions } from \"@azure/core-auth\";\nimport { credentialLogger } from \"../../util/logging.js\";\nimport { mapScopesToResource } from \"./utils.js\";\nimport { tracingClient } from \"../../util/tracing.js\";\nimport type { IdentityClient } from \"../../client/identityClient.js\";\n\nconst msiName = \"ManagedIdentityCredential - IMDS\";\nconst logger = credentialLogger(msiName);\n\nconst imdsHost = \"http://169.254.169.254\";\nconst imdsEndpointPath = \"/metadata/identity/oauth2/token\";\nconst imdsApiVersion = \"2018-02-01\";\n\n/**\n * Generates the options used on the request for an access token.\n */\nfunction prepareRequestOptions(\n scopes: string | string[],\n clientId?: string,\n resourceId?: string,\n options?: {\n skipQuery?: boolean;\n skipMetadataHeader?: boolean;\n },\n): PipelineRequestOptions {\n const resource = mapScopesToResource(scopes);\n if (!resource) {\n throw new Error(`${msiName}: Multiple scopes are not supported.`);\n }\n\n const { skipQuery, skipMetadataHeader } = options || {};\n let query = \"\";\n\n // Pod Identity will try to process this request even if the Metadata header is missing.\n // We can exclude the request query to ensure no IMDS endpoint tries to process the ping request.\n if (!skipQuery) {\n const queryParameters: Record<string, string> = {\n resource,\n \"api-version\": imdsApiVersion,\n };\n if (clientId) {\n queryParameters.client_id = clientId;\n }\n if (resourceId) {\n queryParameters.msi_res_id = resourceId;\n }\n const params = new URLSearchParams(queryParameters);\n query = `?${params.toString()}`;\n }\n\n const url = new URL(imdsEndpointPath, process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST ?? imdsHost);\n\n const rawHeaders: Record<string, string> = {\n Accept: \"application/json\",\n Metadata: \"true\",\n };\n\n // Remove the Metadata header to invoke a request error from some IMDS endpoints.\n if (skipMetadataHeader) {\n delete rawHeaders.Metadata;\n }\n\n return {\n // In this case, the `?` should be added in the \"query\" variable `skipQuery` is not set.\n url: `${url}${query}`,\n method: \"GET\",\n headers: createHttpHeaders(rawHeaders),\n };\n}\n\n/**\n * Defines how to determine whether the Azure IMDS MSI is available.\n *\n * Actually getting the token once we determine IMDS is available is handled by MSAL.\n */\nexport const imdsMsi = {\n name: \"imdsMsi\",\n async isAvailable(options: {\n scopes: string | string[];\n identityClient?: IdentityClient;\n clientId?: string;\n resourceId?: string;\n getTokenOptions?: GetTokenOptions;\n }): Promise<boolean> {\n const { scopes, identityClient, clientId, resourceId, getTokenOptions } = options;\n const resource = mapScopesToResource(scopes);\n if (!resource) {\n logger.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);\n return false;\n }\n\n // if the PodIdentityEndpoint environment variable was set no need to probe the endpoint, it can be assumed to exist\n if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) {\n return true;\n }\n\n if (!identityClient) {\n throw new Error(\"Missing IdentityClient\");\n }\n\n const requestOptions = prepareRequestOptions(resource, clientId, resourceId, {\n skipMetadataHeader: true,\n skipQuery: true,\n });\n\n return tracingClient.withSpan(\n \"ManagedIdentityCredential-pingImdsEndpoint\",\n getTokenOptions ?? {},\n async (updatedOptions) => {\n requestOptions.tracingOptions = updatedOptions.tracingOptions;\n\n // Create a request with a timeout since we expect that\n // not having a \"Metadata\" header should cause an error to be\n // returned quickly from the endpoint, proving its availability.\n const request = createPipelineRequest(requestOptions);\n\n // Default to 1000 if the default of 0 is used.\n // Negative values can still be used to disable the timeout.\n request.timeout = updatedOptions.requestOptions?.timeout || 1000;\n\n // This MSI uses the imdsEndpoint to get the token, which only uses http://\n request.allowInsecureConnection = true;\n let response: PipelineResponse;\n try {\n logger.info(`${msiName}: Pinging the Azure IMDS endpoint`);\n response = await identityClient.sendRequest(request);\n } catch (err: unknown) {\n // If the request failed, or Node.js was unable to establish a connection,\n // or the host was down, we'll assume the IMDS endpoint isn't available.\n if (isError(err)) {\n logger.verbose(`${msiName}: Caught error ${err.name}: ${err.message}`);\n }\n // This is a special case for Docker Desktop which responds with a 403 with a message that contains \"A socket operation was attempted to an unreachable network\" or \"A socket operation was attempted to an unreachable host\"\n // rather than just timing out, as expected.\n logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);\n return false;\n }\n if (response.status === 403) {\n if (response.bodyAsText?.includes(\"unreachable\")) {\n logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);\n logger.info(`${msiName}: ${response.bodyAsText}`);\n return false;\n }\n }\n // If we received any response, the endpoint is available\n logger.info(`${msiName}: The Azure IMDS endpoint is available`);\n return true;\n },\n );\n },\n};\n"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { PipelinePolicy } from "@azure/core-rest-pipeline";
|
2
|
-
import type { MSIConfiguration } from "./models.js";
|
3
|
-
/**
|
4
|
-
* An additional policy that retries on 404 errors. The default retry policy does not retry on
|
5
|
-
* 404s, but the IMDS endpoint can return 404s when the token is not yet available. This policy
|
6
|
-
* will retry on 404s with an exponential backoff.
|
7
|
-
*
|
8
|
-
* @param msiRetryConfig - The retry configuration for the MSI credential.
|
9
|
-
* @returns - The policy that will retry on 404s.
|
10
|
-
*/
|
11
|
-
export declare function imdsRetryPolicy(msiRetryConfig: MSIConfiguration["retryConfig"]): PipelinePolicy;
|
12
|
-
//# sourceMappingURL=imdsRetryPolicy.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"imdsRetryPolicy.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsRetryPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMpD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,cAAc,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,cAAc,CAqB/F"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"imdsRetryPolicy.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsRetryPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,0EAA0E;AAC1E,MAAM,iCAAiC,GAAG,IAAI,GAAG,EAAE,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,cAA+C;IAC7E,OAAO,WAAW,CAChB;QACE;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;gBAClC,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,MAAK,GAAG,EAAE,CAAC;oBAC7B,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;gBAChC,CAAC;gBAED,OAAO,mBAAmB,CAAC,UAAU,EAAE;oBACrC,cAAc,EAAE,cAAc,CAAC,cAAc;oBAC7C,iBAAiB,EAAE,iCAAiC;iBACrD,CAAC,CAAC;YACL,CAAC;SACF;KACF,EACD;QACE,UAAU,EAAE,cAAc,CAAC,UAAU;KACtC,CACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelinePolicy } from \"@azure/core-rest-pipeline\";\nimport { retryPolicy } from \"@azure/core-rest-pipeline\";\n\nimport type { MSIConfiguration } from \"./models.js\";\nimport { calculateRetryDelay } from \"@azure/core-util\";\n\n// Matches the default retry configuration in expontentialRetryStrategy.ts\nconst DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1000 * 64;\n\n/**\n * An additional policy that retries on 404 errors. The default retry policy does not retry on\n * 404s, but the IMDS endpoint can return 404s when the token is not yet available. This policy\n * will retry on 404s with an exponential backoff.\n *\n * @param msiRetryConfig - The retry configuration for the MSI credential.\n * @returns - The policy that will retry on 404s.\n */\nexport function imdsRetryPolicy(msiRetryConfig: MSIConfiguration[\"retryConfig\"]): PipelinePolicy {\n return retryPolicy(\n [\n {\n name: \"imdsRetryPolicy\",\n retry: ({ retryCount, response }) => {\n if (response?.status !== 404) {\n return { skipStrategy: true };\n }\n\n return calculateRetryDelay(retryCount, {\n retryDelayInMs: msiRetryConfig.startDelayInMs,\n maxRetryDelayInMs: DEFAULT_CLIENT_MAX_RETRY_INTERVAL,\n });\n },\n },\n ],\n {\n maxRetries: msiRetryConfig.maxRetries,\n },\n );\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-browser.d.mts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/index-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AASrE,qBAAa,yBAA0B,YAAW,eAAe;;IAMlD,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-browser.mjs","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/index-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,4DAA4D,CAC7D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAE7D,MAAM,OAAO,yBAAyB;IACpC;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\n\nimport { credentialLogger, formatError } from \"../../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"ManagedIdentityCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"ManagedIdentityCredential\");\n\nexport class ManagedIdentityCredential implements TokenCredential {\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public async getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { AccessToken } from "@azure/core-auth";
|
2
|
-
import type { IdentityClient } from "../../client/identityClient.js";
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export interface MSIConfiguration {
|
7
|
-
retryConfig: {
|
8
|
-
maxRetries: number;
|
9
|
-
startDelayInMs: number;
|
10
|
-
intervalIncrement: number;
|
11
|
-
};
|
12
|
-
identityClient: IdentityClient;
|
13
|
-
scopes: string | string[];
|
14
|
-
clientId?: string;
|
15
|
-
resourceId?: string;
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* @internal
|
19
|
-
* Represents an access token for {@link ManagedIdentity} for internal usage,
|
20
|
-
* with an expiration time and the time in which token should refresh.
|
21
|
-
*/
|
22
|
-
export declare interface MSIToken extends AccessToken {
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=models.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/models.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,QAAS,SAAQ,WAAW;CAAG"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken } from \"@azure/core-auth\";\n\nimport type { IdentityClient } from \"../../client/identityClient.js\";\n\n/**\n * @internal\n */\nexport interface MSIConfiguration {\n retryConfig: {\n maxRetries: number;\n startDelayInMs: number;\n intervalIncrement: number;\n };\n identityClient: IdentityClient;\n scopes: string | string[];\n clientId?: string;\n resourceId?: string;\n}\n\n/**\n * @internal\n * Represents an access token for {@link ManagedIdentity} for internal usage,\n * with an expiration time and the time in which token should refresh.\n */\nexport declare interface MSIToken extends AccessToken {}\n"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import type { TokenCredentialOptions } from "../../tokenCredentialOptions.js";
|
2
|
-
/**
|
3
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
4
|
-
* This variation supports `clientId` and not `resourceId`, since only one of both is supported.
|
5
|
-
*/
|
6
|
-
export interface ManagedIdentityCredentialClientIdOptions extends TokenCredentialOptions {
|
7
|
-
/**
|
8
|
-
* The client ID of the user - assigned identity, or app registration(when working with AKS pod - identity).
|
9
|
-
*/
|
10
|
-
clientId?: string;
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
14
|
-
* This variation supports `resourceId` and not `clientId`, since only one of both is supported.
|
15
|
-
*/
|
16
|
-
export interface ManagedIdentityCredentialResourceIdOptions extends TokenCredentialOptions {
|
17
|
-
/**
|
18
|
-
* Allows specifying a custom resource Id.
|
19
|
-
* In scenarios such as when user assigned identities are created using an ARM template,
|
20
|
-
* where the resource Id of the identity is known but the client Id can't be known ahead of time,
|
21
|
-
* this parameter allows programs to use these user assigned identities
|
22
|
-
* without having to first determine the client Id of the created identity.
|
23
|
-
*/
|
24
|
-
resourceId: string;
|
25
|
-
}
|
26
|
-
/**
|
27
|
-
* Options to send on the {@link ManagedIdentityCredential} constructor.
|
28
|
-
* This variation supports `objectId` as a constructor argument.
|
29
|
-
*/
|
30
|
-
export interface ManagedIdentityCredentialObjectIdOptions extends TokenCredentialOptions {
|
31
|
-
/**
|
32
|
-
* Allows specifying the object ID of the underlying service principal used to authenticate a user-assigned managed identity.
|
33
|
-
* This is an alternative to providing a client ID or resource ID and is not required for system-assigned managed identities.
|
34
|
-
*/
|
35
|
-
objectId: string;
|
36
|
-
}
|
37
|
-
//# sourceMappingURL=options.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,wCAAyC,SAAQ,sBAAsB;IACtF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,0CAA2C,SAAQ,sBAAsB;IACxF;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,wCAAyC,SAAQ,sBAAsB;IACtF;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredentialOptions } from \"../../tokenCredentialOptions.js\";\n\n/**\n * Options to send on the {@link ManagedIdentityCredential} constructor.\n * This variation supports `clientId` and not `resourceId`, since only one of both is supported.\n */\nexport interface ManagedIdentityCredentialClientIdOptions extends TokenCredentialOptions {\n /**\n * The client ID of the user - assigned identity, or app registration(when working with AKS pod - identity).\n */\n clientId?: string;\n}\n\n/**\n * Options to send on the {@link ManagedIdentityCredential} constructor.\n * This variation supports `resourceId` and not `clientId`, since only one of both is supported.\n */\nexport interface ManagedIdentityCredentialResourceIdOptions extends TokenCredentialOptions {\n /**\n * Allows specifying a custom resource Id.\n * In scenarios such as when user assigned identities are created using an ARM template,\n * where the resource Id of the identity is known but the client Id can't be known ahead of time,\n * this parameter allows programs to use these user assigned identities\n * without having to first determine the client Id of the created identity.\n */\n resourceId: string;\n}\n\n/**\n * Options to send on the {@link ManagedIdentityCredential} constructor.\n * This variation supports `objectId` as a constructor argument.\n */\nexport interface ManagedIdentityCredentialObjectIdOptions extends TokenCredentialOptions {\n /**\n * Allows specifying the object ID of the underlying service principal used to authenticate a user-assigned managed identity.\n * This is an alternative to providing a client ID or resource ID and is not required for system-assigned managed identities.\n */\n objectId: string;\n}\n"]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { AccessToken, GetTokenOptions } from "@azure/core-auth";
|
2
|
-
import type { MSIConfiguration } from "./models.js";
|
3
|
-
/**
|
4
|
-
* Defines how to determine whether the token exchange MSI is available, and also how to retrieve a token from the token exchange MSI.
|
5
|
-
*
|
6
|
-
* Token exchange MSI (used by AKS) is the only MSI implementation handled entirely by Azure Identity.
|
7
|
-
* The rest have been migrated to MSAL.
|
8
|
-
*/
|
9
|
-
export declare const tokenExchangeMsi: {
|
10
|
-
name: string;
|
11
|
-
isAvailable(clientId?: string): Promise<boolean>;
|
12
|
-
getToken(configuration: MSIConfiguration, getTokenOptions?: GetTokenOptions): Promise<AccessToken | null>;
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=tokenExchangeMsi.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenExchangeMsi.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/tokenExchangeMsi.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQpD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;2BAEE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;4BAerC,gBAAgB,oBACd,eAAe,GAC/B,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAY/B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tokenExchangeMsi.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/tokenExchangeMsi.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,MAAM,OAAO,GAAG,4CAA4C,CAAC;AAC7D,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,kBAAkB;IACxB,KAAK,CAAC,WAAW,CAAC,QAAiB;QACjC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;QACxB,MAAM,MAAM,GAAG,OAAO,CACpB,CAAC,QAAQ,IAAI,GAAG,CAAC,eAAe,CAAC;YAC/B,GAAG,CAAC,eAAe;YACnB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CACzC,CAAC;QACF,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CACT,GAAG,OAAO,qKAAqK,CAChL,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,KAAK,CAAC,QAAQ,CACZ,aAA+B,EAC/B,kBAAmC,EAAE;QAErC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC;QAC3C,MAAM,oCAAoC,GAAG,EAAE,CAAC;QAChD,MAAM,0BAA0B,GAAG,IAAI,0BAA0B,CAAC,8BAChE,QAAQ,EACR,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,EACrC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B,IAClD,oCAAoC,KACvC,wBAAwB,EAAE,IAAI,GACM,CAAC,CAAC;QACxC,OAAO,0BAA0B,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACtE,CAAC;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions } from \"@azure/core-auth\";\nimport type { MSIConfiguration } from \"./models.js\";\nimport { WorkloadIdentityCredential } from \"../workloadIdentityCredential.js\";\nimport { credentialLogger } from \"../../util/logging.js\";\nimport type { WorkloadIdentityCredentialOptions } from \"../workloadIdentityCredentialOptions.js\";\n\nconst msiName = \"ManagedIdentityCredential - Token Exchange\";\nconst logger = credentialLogger(msiName);\n\n/**\n * Defines how to determine whether the token exchange MSI is available, and also how to retrieve a token from the token exchange MSI.\n *\n * Token exchange MSI (used by AKS) is the only MSI implementation handled entirely by Azure Identity.\n * The rest have been migrated to MSAL.\n */\nexport const tokenExchangeMsi = {\n name: \"tokenExchangeMsi\",\n async isAvailable(clientId?: string): Promise<boolean> {\n const env = process.env;\n const result = Boolean(\n (clientId || env.AZURE_CLIENT_ID) &&\n env.AZURE_TENANT_ID &&\n process.env.AZURE_FEDERATED_TOKEN_FILE,\n );\n if (!result) {\n logger.info(\n `${msiName}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`,\n );\n }\n return result;\n },\n async getToken(\n configuration: MSIConfiguration,\n getTokenOptions: GetTokenOptions = {},\n ): Promise<AccessToken | null> {\n const { scopes, clientId } = configuration;\n const identityClientTokenCredentialOptions = {};\n const workloadIdentityCredential = new WorkloadIdentityCredential({\n clientId,\n tenantId: process.env.AZURE_TENANT_ID,\n tokenFilePath: process.env.AZURE_FEDERATED_TOKEN_FILE,\n ...identityClientTokenCredentialOptions,\n disableInstanceDiscovery: true,\n } as WorkloadIdentityCredentialOptions);\n return workloadIdentityCredential.getToken(scopes, getTokenOptions);\n },\n};\n"]}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Most MSIs send requests to the IMDS endpoint, or a similar endpoint.
|
3
|
-
* These are GET requests that require sending a `resource` parameter on the query.
|
4
|
-
* This resource can be derived from the scopes received through the getToken call, as long as only one scope is received.
|
5
|
-
* Multiple scopes assume that the resulting token will have access to multiple resources, which won't be the case.
|
6
|
-
*
|
7
|
-
* For that reason, when we encounter multiple scopes, we return undefined.
|
8
|
-
* It's up to the individual MSI implementations to throw the errors (which helps us provide less generic errors).
|
9
|
-
*/
|
10
|
-
export declare function mapScopesToResource(scopes: string | string[]): string | undefined;
|
11
|
-
/**
|
12
|
-
* Internal type roughly matching the raw responses of the authentication endpoints.
|
13
|
-
*
|
14
|
-
* @internal
|
15
|
-
*/
|
16
|
-
export interface TokenResponseParsedBody {
|
17
|
-
access_token?: string;
|
18
|
-
refresh_token?: string;
|
19
|
-
expires_in: number;
|
20
|
-
expires_on?: number | string;
|
21
|
-
refresh_on?: number | string;
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* Given a token response, return the expiration timestamp as the number of milliseconds from the Unix epoch.
|
25
|
-
* @param body - A parsed response body from the authentication endpoint.
|
26
|
-
*/
|
27
|
-
export declare function parseExpirationTimestamp(body: TokenResponseParsedBody): number;
|
28
|
-
/**
|
29
|
-
* Given a token response, return the expiration timestamp as the number of milliseconds from the Unix epoch.
|
30
|
-
* @param body - A parsed response body from the authentication endpoint.
|
31
|
-
*/
|
32
|
-
export declare function parseRefreshTimestamp(body: TokenResponseParsedBody): number | undefined;
|
33
|
-
//# sourceMappingURL=utils.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/utils.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAiBjF;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,uBAAuB,GAAG,MAAM,CAwB9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,uBAAuB,GAAG,MAAM,GAAG,SAAS,CAqBvF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAyB;IAC3D,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO;QACT,CAAC;QAED,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;SAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,KAAK,GAAG,MAAM,CAAC;IACjB,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAChE,CAAC;AAeD;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAA6B;IACpE,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IAChC,CAAC;IAED,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACxC,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YACrB,OAAO,QAAQ,GAAG,IAAI,CAAC;QACzB,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;YACnB,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAED,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IAC7C,CAAC;IAED,MAAM,IAAI,KAAK,CACb,2DAA2D,IAAI,CAAC,UAAU,kBAAkB,IAAI,CAAC,UAAU,GAAG,CAC/G,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAA6B;IACjE,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QACpB,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAChC,CAAC;QAED,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;YACxC,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YAClC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACrB,OAAO,QAAQ,GAAG,IAAI,CAAC;YACzB,CAAC;YAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC3C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnB,OAAO,MAAM,CAAC;YAChB,CAAC;QACH,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,qDAAqD,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IAC3F,CAAC;SAAM,CAAC;QACN,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nconst DefaultScopeSuffix = \"/.default\";\n\n/**\n * Most MSIs send requests to the IMDS endpoint, or a similar endpoint.\n * These are GET requests that require sending a `resource` parameter on the query.\n * This resource can be derived from the scopes received through the getToken call, as long as only one scope is received.\n * Multiple scopes assume that the resulting token will have access to multiple resources, which won't be the case.\n *\n * For that reason, when we encounter multiple scopes, we return undefined.\n * It's up to the individual MSI implementations to throw the errors (which helps us provide less generic errors).\n */\nexport function mapScopesToResource(scopes: string | string[]): string | undefined {\n let scope = \"\";\n if (Array.isArray(scopes)) {\n if (scopes.length !== 1) {\n return;\n }\n\n scope = scopes[0];\n } else if (typeof scopes === \"string\") {\n scope = scopes;\n }\n\n if (!scope.endsWith(DefaultScopeSuffix)) {\n return scope;\n }\n\n return scope.substr(0, scope.lastIndexOf(DefaultScopeSuffix));\n}\n\n/**\n * Internal type roughly matching the raw responses of the authentication endpoints.\n *\n * @internal\n */\nexport interface TokenResponseParsedBody {\n access_token?: string;\n refresh_token?: string;\n expires_in: number;\n expires_on?: number | string;\n refresh_on?: number | string;\n}\n\n/**\n * Given a token response, return the expiration timestamp as the number of milliseconds from the Unix epoch.\n * @param body - A parsed response body from the authentication endpoint.\n */\nexport function parseExpirationTimestamp(body: TokenResponseParsedBody): number {\n if (typeof body.expires_on === \"number\") {\n return body.expires_on * 1000;\n }\n\n if (typeof body.expires_on === \"string\") {\n const asNumber = +body.expires_on;\n if (!isNaN(asNumber)) {\n return asNumber * 1000;\n }\n\n const asDate = Date.parse(body.expires_on);\n if (!isNaN(asDate)) {\n return asDate;\n }\n }\n\n if (typeof body.expires_in === \"number\") {\n return Date.now() + body.expires_in * 1000;\n }\n\n throw new Error(\n `Failed to parse token expiration from body. expires_in=\"${body.expires_in}\", expires_on=\"${body.expires_on}\"`,\n );\n}\n\n/**\n * Given a token response, return the expiration timestamp as the number of milliseconds from the Unix epoch.\n * @param body - A parsed response body from the authentication endpoint.\n */\nexport function parseRefreshTimestamp(body: TokenResponseParsedBody): number | undefined {\n if (body.refresh_on) {\n if (typeof body.refresh_on === \"number\") {\n return body.refresh_on * 1000;\n }\n\n if (typeof body.refresh_on === \"string\") {\n const asNumber = +body.refresh_on;\n if (!isNaN(asNumber)) {\n return asNumber * 1000;\n }\n\n const asDate = Date.parse(body.refresh_on);\n if (!isNaN(asDate)) {\n return asDate;\n }\n }\n throw new Error(`Failed to parse refresh_on from body. refresh_on=\"${body.refresh_on}\"`);\n } else {\n return undefined;\n }\n}\n"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { TokenCredentialOptions } from "../tokenCredentialOptions.js";
|
2
|
-
/**
|
3
|
-
* Options for multi-tenant applications which allows for additionally allowed tenants.
|
4
|
-
*/
|
5
|
-
export interface MultiTenantTokenCredentialOptions extends TokenCredentialOptions {
|
6
|
-
/**
|
7
|
-
* For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens.
|
8
|
-
* Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the application is installed.
|
9
|
-
*/
|
10
|
-
additionallyAllowedTenants?: string[];
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=multiTenantTokenCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"multiTenantTokenCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/multiTenantTokenCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,sBAAsB;IAC/E;;;OAGG;IACH,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;CACvC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"multiTenantTokenCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/multiTenantTokenCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredentialOptions } from \"../tokenCredentialOptions.js\";\n\n/**\n * Options for multi-tenant applications which allows for additionally allowed tenants.\n */\nexport interface MultiTenantTokenCredentialOptions extends TokenCredentialOptions {\n /**\n * For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens.\n * Add the wildcard value \"*\" to allow the credential to acquire tokens for any tenant the application is installed.\n */\n additionallyAllowedTenants?: string[];\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"onBehalfOfCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/onBehalfOfCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOrE;;GAEG;AACH,qBAAa,oBAAqB,YAAW,eAAe;IAC1D;;OAEG;;IAMI,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"onBehalfOfCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/onBehalfOfCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAC9C,MAAM,wBAAwB,GAAG,IAAI,KAAK,CAAC,GAAG,cAAc,iCAAiC,CAAC,CAAC;AAC/F,MAAM,MAAM,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst credentialName = \"OnBehalfOfCredential\";\nconst BrowserNotSupportedError = new Error(`${credentialName}: Not supported in the browser.`);\nconst logger = credentialLogger(credentialName);\n\n/**\n * Enables authentication to Microsoft Entra ID using the [On Behalf Of flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow).\n */\nexport class OnBehalfOfCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
2
|
-
/**
|
3
|
-
* Enables authentication to Microsoft Entra ID using the [On Behalf Of flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow).
|
4
|
-
*/
|
5
|
-
export declare class OnBehalfOfCredential implements TokenCredential {
|
6
|
-
/**
|
7
|
-
* Only available in Node.js
|
8
|
-
*/
|
9
|
-
constructor();
|
10
|
-
getToken(): Promise<AccessToken | null>;
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=onBehalfOfCredential-browser.d.mts.map
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
2
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
3
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
4
|
-
/**
|
5
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a secret.
|
6
|
-
*/
|
7
|
-
export interface OnBehalfOfCredentialSecretOptions {
|
8
|
-
/**
|
9
|
-
* The Microsoft Entra tenant (directory) ID.
|
10
|
-
*/
|
11
|
-
tenantId: string;
|
12
|
-
/**
|
13
|
-
* The client (application) ID of an App Registration in the tenant.
|
14
|
-
*/
|
15
|
-
clientId: string;
|
16
|
-
/**
|
17
|
-
* A client secret that was generated for the App Registration.
|
18
|
-
*/
|
19
|
-
clientSecret: string;
|
20
|
-
/**
|
21
|
-
* The user assertion for the On-Behalf-Of flow.
|
22
|
-
*/
|
23
|
-
userAssertionToken: string;
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a certificate.
|
27
|
-
*/
|
28
|
-
export interface OnBehalfOfCredentialCertificateOptions {
|
29
|
-
/**
|
30
|
-
* The Microsoft Entra tenant (directory) ID.
|
31
|
-
*/
|
32
|
-
tenantId: string;
|
33
|
-
/**
|
34
|
-
* The client (application) ID of an App Registration in the tenant.
|
35
|
-
*/
|
36
|
-
clientId: string;
|
37
|
-
/**
|
38
|
-
* The path to a PEM-encoded public/private key certificate on the filesystem.
|
39
|
-
*/
|
40
|
-
certificatePath: string;
|
41
|
-
/**
|
42
|
-
* The user assertion for the On-Behalf-Of flow.
|
43
|
-
*/
|
44
|
-
userAssertionToken: string;
|
45
|
-
/**
|
46
|
-
* Option to include x5c header for SubjectName and Issuer name authorization.
|
47
|
-
* Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
|
48
|
-
*/
|
49
|
-
sendCertificateChain?: boolean;
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* Defines the parameters to authenticate the {@link OnBehalfOfCredential} with an assertion.
|
53
|
-
*/
|
54
|
-
export interface OnBehalfOfCredentialAssertionOptions {
|
55
|
-
/**
|
56
|
-
* The Microsoft Entra tenant (directory) ID.
|
57
|
-
*/
|
58
|
-
tenantId: string;
|
59
|
-
/**
|
60
|
-
* The client (application) ID of an App Registration in the tenant.
|
61
|
-
*/
|
62
|
-
clientId: string;
|
63
|
-
/**
|
64
|
-
* A function that retrieves the client assertion for the credential to use
|
65
|
-
*/
|
66
|
-
getAssertion: () => Promise<string>;
|
67
|
-
/**
|
68
|
-
* The user assertion for the On-Behalf-Of flow.
|
69
|
-
*/
|
70
|
-
userAssertionToken: string;
|
71
|
-
}
|
72
|
-
/**
|
73
|
-
* Optional parameters for the {@link OnBehalfOfCredential} class.
|
74
|
-
*/
|
75
|
-
export type OnBehalfOfCredentialOptions = (OnBehalfOfCredentialSecretOptions | OnBehalfOfCredentialCertificateOptions | OnBehalfOfCredentialAssertionOptions) & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions & AuthorityValidationOptions;
|
76
|
-
//# sourceMappingURL=onBehalfOfCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"onBehalfOfCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/onBehalfOfCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACpC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AACD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACtC,iCAAiC,GACjC,sCAAsC,GACtC,oCAAoC,CACvC,GACC,iCAAiC,GACjC,4BAA4B,GAC5B,0BAA0B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"onBehalfOfCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/onBehalfOfCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a secret.\n */\nexport interface OnBehalfOfCredentialSecretOptions {\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId: string;\n /**\n * The client (application) ID of an App Registration in the tenant.\n */\n clientId: string;\n /**\n * A client secret that was generated for the App Registration.\n */\n clientSecret: string;\n /**\n * The user assertion for the On-Behalf-Of flow.\n */\n userAssertionToken: string;\n}\n\n/**\n * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a certificate.\n */\nexport interface OnBehalfOfCredentialCertificateOptions {\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId: string;\n /**\n * The client (application) ID of an App Registration in the tenant.\n */\n clientId: string;\n /**\n * The path to a PEM-encoded public/private key certificate on the filesystem.\n */\n certificatePath: string;\n /**\n * The user assertion for the On-Behalf-Of flow.\n */\n userAssertionToken: string;\n /**\n * Option to include x5c header for SubjectName and Issuer name authorization.\n * Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim\n */\n sendCertificateChain?: boolean;\n}\n\n/**\n * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with an assertion.\n */\nexport interface OnBehalfOfCredentialAssertionOptions {\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId: string;\n /**\n * The client (application) ID of an App Registration in the tenant.\n */\n clientId: string;\n /**\n * A function that retrieves the client assertion for the credential to use\n */\n getAssertion: () => Promise<string>;\n /**\n * The user assertion for the On-Behalf-Of flow.\n */\n userAssertionToken: string;\n}\n/**\n * Optional parameters for the {@link OnBehalfOfCredential} class.\n */\nexport type OnBehalfOfCredentialOptions = (\n | OnBehalfOfCredentialSecretOptions\n | OnBehalfOfCredentialCertificateOptions\n | OnBehalfOfCredentialAssertionOptions\n) &\n MultiTenantTokenCredentialOptions &\n CredentialPersistenceOptions &\n AuthorityValidationOptions;\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"usernamePasswordCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/usernamePasswordCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAStF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAMhG;;;;;GAKG;AACH,qBAAa,0BAA2B,YAAW,eAAe;IAChE,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IAEzB;;;;;;;;;;OAUG;gBAED,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iCAAiC;IAc7C;;;;;;;;;OASG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAuC/B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"usernamePasswordCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/usernamePasswordCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,mCAAmC,GACpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,GAAG,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IAQrC;;;;;;;;;;OAUG;IACH,YACE,cAAsB,EACtB,QAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,OAA2C;QAE3C,aAAa,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;QAEtC,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC/B,IAAI,CAAC,4BAA4B,GAAG,mCAAmC,CACrE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B,CACpC,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,QAAQ,CACnB,MAAyB,EACzB,UAA2B,EAAE;QAE7B,OAAO,aAAa,CAAC,QAAQ,CAC3B,qCAAqC,EACrC,OAAO,EACP,KAAK,EAAE,UAAU,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,yBAAyB,CACxC,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,IAAI,CAAC,4BAA4B,CAClC,CAAC;YACF,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAE/B,MAAM,SAAS,GAAG,8BAA8B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChE,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC;gBACjC,aAAa,EAAE,OAAO;gBACtB,UAAU,EAAE,UAAU;gBACtB,SAAS,EAAE,IAAI,CAAC,QAAQ;gBACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,KAAK,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aAC9D,CAAC,CAAC;YACH,MAAM,WAAW,GAAG,qBAAqB,CAAC;gBACxC,GAAG,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,IAAI,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE;gBACzE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;gBACvB,OAAO,EAAE,iBAAiB,CAAC;oBACzB,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,mCAAmC;iBACpD,CAAC;gBACF,WAAW,EAAE,OAAO,IAAI,OAAO,CAAC,WAAW;gBAC3C,cAAc,EAAE,UAAU,CAAC,cAAc;aAC1C,CAAC,CAAC;YAEH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;YAC9E,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;YAC5C,OAAO,CAAC,aAAa,IAAI,aAAa,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;QAC9D,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport {\n checkTenantId,\n processMultiTenantRequest,\n resolveAdditionallyAllowedTenantIds,\n} from \"../util/tenantIdUtils.js\";\nimport { createHttpHeaders, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { credentialLogger, formatSuccess } from \"../util/logging.js\";\nimport { IdentityClient } from \"../client/identityClient.js\";\nimport type { UsernamePasswordCredentialOptions } from \"./usernamePasswordCredentialOptions.js\";\nimport { getIdentityTokenEndpointSuffix } from \"../util/identityTokenEndpoint.js\";\nimport { tracingClient } from \"../util/tracing.js\";\n\nconst logger = credentialLogger(\"UsernamePasswordCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID with a user's\n * username and password. This credential requires a high degree of\n * trust so you should only use it when other, more secure credential\n * types can't be used.\n */\nexport class UsernamePasswordCredential implements TokenCredential {\n private identityClient: IdentityClient;\n private tenantId: string;\n private additionallyAllowedTenantIds: string[];\n private clientId: string;\n private username: string;\n private password: string;\n\n /**\n * Creates an instance of the UsernamePasswordCredential with the details\n * needed to authenticate against Microsoft Entra ID with a username\n * and password.\n *\n * @param tenantIdOrName - The Microsoft Entra tenant (directory) ID or name.\n * @param clientId - The client (application) ID of an App Registration in the tenant.\n * @param username - The user account's e-mail address (user name).\n * @param password - The user account's account password\n * @param options - Options for configuring the client which makes the authentication request.\n */\n constructor(\n tenantIdOrName: string,\n clientId: string,\n username: string,\n password: string,\n options?: UsernamePasswordCredentialOptions,\n ) {\n checkTenantId(logger, tenantIdOrName);\n\n this.identityClient = new IdentityClient(options);\n this.tenantId = tenantIdOrName;\n this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(\n options?.additionallyAllowedTenants,\n );\n this.clientId = clientId;\n this.username = username;\n this.password = password;\n }\n\n /**\n * Authenticates with Microsoft Entra ID and returns an access token if\n * successful. If authentication cannot be performed at this time, this method may\n * return null. If an error occurs during authentication, an {@link AuthenticationError}\n * containing failure details will be thrown.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n public async getToken(\n scopes: string | string[],\n options: GetTokenOptions = {},\n ): Promise<AccessToken | null> {\n return tracingClient.withSpan(\n \"UsernamePasswordCredential.getToken\",\n options,\n async (newOptions) => {\n const tenantId = processMultiTenantRequest(\n this.tenantId,\n newOptions,\n this.additionallyAllowedTenantIds,\n );\n newOptions.tenantId = tenantId;\n\n const urlSuffix = getIdentityTokenEndpointSuffix(this.tenantId);\n const params = new URLSearchParams({\n response_type: \"token\",\n grant_type: \"password\",\n client_id: this.clientId,\n username: this.username,\n password: this.password,\n scope: typeof scopes === \"string\" ? scopes : scopes.join(\" \"),\n });\n const webResource = createPipelineRequest({\n url: `${this.identityClient.authorityHost}/${this.tenantId}/${urlSuffix}`,\n method: \"POST\",\n body: params.toString(),\n headers: createHttpHeaders({\n Accept: \"application/json\",\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n }),\n abortSignal: options && options.abortSignal,\n tracingOptions: newOptions.tracingOptions,\n });\n\n const tokenResponse = await this.identityClient.sendTokenRequest(webResource);\n logger.getToken.info(formatSuccess(scopes));\n return (tokenResponse && tokenResponse.accessToken) || null;\n },\n );\n }\n}\n"]}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
|
2
|
-
import type { UsernamePasswordCredentialOptions } from "./usernamePasswordCredentialOptions.js";
|
3
|
-
/**
|
4
|
-
* Enables authentication to Microsoft Entra ID with a user's
|
5
|
-
* username and password. This credential requires a high degree of
|
6
|
-
* trust so you should only use it when other, more secure credential
|
7
|
-
* types can't be used.
|
8
|
-
*/
|
9
|
-
export declare class UsernamePasswordCredential implements TokenCredential {
|
10
|
-
private identityClient;
|
11
|
-
private tenantId;
|
12
|
-
private additionallyAllowedTenantIds;
|
13
|
-
private clientId;
|
14
|
-
private username;
|
15
|
-
private password;
|
16
|
-
/**
|
17
|
-
* Creates an instance of the UsernamePasswordCredential with the details
|
18
|
-
* needed to authenticate against Microsoft Entra ID with a username
|
19
|
-
* and password.
|
20
|
-
*
|
21
|
-
* @param tenantIdOrName - The Microsoft Entra tenant (directory) ID or name.
|
22
|
-
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
23
|
-
* @param username - The user account's e-mail address (user name).
|
24
|
-
* @param password - The user account's account password
|
25
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
26
|
-
*/
|
27
|
-
constructor(tenantIdOrName: string, clientId: string, username: string, password: string, options?: UsernamePasswordCredentialOptions);
|
28
|
-
/**
|
29
|
-
* Authenticates with Microsoft Entra ID and returns an access token if
|
30
|
-
* successful. If authentication cannot be performed at this time, this method may
|
31
|
-
* return null. If an error occurs during authentication, an {@link AuthenticationError}
|
32
|
-
* containing failure details will be thrown.
|
33
|
-
*
|
34
|
-
* @param scopes - The list of scopes for which the token will have access.
|
35
|
-
* @param options - The options used to configure any requests this
|
36
|
-
* TokenCredential implementation might make.
|
37
|
-
*/
|
38
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
39
|
-
}
|
40
|
-
//# sourceMappingURL=usernamePasswordCredential-browser.d.mts.map
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
2
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
3
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
4
|
-
/**
|
5
|
-
* Defines options for the {@link UsernamePasswordCredential} class.
|
6
|
-
*/
|
7
|
-
export interface UsernamePasswordCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=usernamePasswordCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"usernamePasswordCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/usernamePasswordCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;CAAG"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"usernamePasswordCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/usernamePasswordCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Defines options for the {@link UsernamePasswordCredential} class.\n */\nexport interface UsernamePasswordCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"visualStudioCodeCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/visualStudioCodeCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE,eAAO,MAAM,uBAAuB;4BACE,KAAK;CAK1C,CAAC;AAEF;;GAEG;AACH,qBAAa,0BAA2B,YAAW,eAAe;IAChE;;OAEG;;IAMI,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"visualStudioCodeCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/visualStudioCodeCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,6DAA6D,CAC9D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,sBAAsB,CAAC,OAAc;QACvC,MAAM,IAAI,KAAK,CACb,qJAAqJ,CACtJ,CAAC;IACJ,CAAC;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,0BAA0B;IACrC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"VisualStudioCodeCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"VisualStudioCodeCredential\");\n\nexport const vsCodeCredentialControl = {\n set vsCodeCredentialFinder(_finder: never) {\n throw new Error(\n \"Attempted to register a VisualStudioCodeCredential provider plugin in the browser. This environment is not supported by VisualStudioCodeCredential.\",\n );\n },\n};\n\n/**\n * Connects to Azure using the credential provided by the VSCode extension 'Azure Account'.\n */\nexport class VisualStudioCodeCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|