@azure/identity 4.14.0-beta.2 → 4.14.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client/identityClient.d.ts.map +1 -1
- package/dist/browser/client/identityClient.js +2 -1
- package/dist/browser/client/identityClient.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/credentials/{authorizationCodeCredential.d.ts → authorizationCodeCredential-browser.d.mts} +2 -2
- package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{authorizationCodeCredential.js → authorizationCodeCredential-browser.mjs} +1 -1
- package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/azureCliCredential-browser.d.mts +14 -0
- package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{azureCliCredential.js → azureCliCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/azureCliCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts +14 -0
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{azureDeveloperCliCredential.js → azureDeveloperCliCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts +14 -0
- package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{azurePipelinesCredential.js → azurePipelinesCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts +13 -0
- package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{azurePowerShellCredential.js → azurePowerShellCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/clientAssertionCredential-browser.d.mts +13 -0
- package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{clientAssertionCredential.js → clientAssertionCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/clientCertificateCredential-browser.d.mts +15 -0
- package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{clientCertificateCredential.js → clientCertificateCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/{defaultAzureCredential.d.ts → defaultAzureCredential-browser.d.mts} +2 -2
- package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{defaultAzureCredential.js → defaultAzureCredential-browser.mjs} +1 -1
- package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +2 -2
- package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +1 -1
- package/dist/browser/credentials/deviceCodeCredential-browser.d.mts +14 -0
- package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{deviceCodeCredential.js → deviceCodeCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/environmentCredential-browser.d.mts +14 -0
- package/dist/browser/credentials/environmentCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{environmentCredential.js → environmentCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/environmentCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts +11 -0
- package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +1 -1
- package/dist/browser/credentials/managedIdentityCredential/{index.js → index-browser.mjs} +2 -2
- package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +1 -1
- package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts +13 -0
- package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{onBehalfOfCredential.js → onBehalfOfCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/{visualStudioCodeCredential.d.ts → visualStudioCodeCredential-browser.d.mts} +4 -3
- package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{visualStudioCodeCredential.js → visualStudioCodeCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +1 -1
- package/dist/browser/credentials/{workloadIdentityCredential.d.ts → workloadIdentityCredential-browser.d.mts} +4 -3
- package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +1 -1
- package/dist/browser/credentials/{workloadIdentityCredential.js → workloadIdentityCredential-browser.mjs} +2 -2
- package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +51 -51
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +19 -19
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -1
- package/dist/browser/msal/browserFlows/msalBrowserCommon.js +2 -3
- package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +1 -1
- package/dist/browser/msal/msal-browser.d.mts +2 -0
- package/dist/browser/msal/msal-browser.d.mts.map +1 -1
- package/dist/browser/msal/msal-browser.mjs +4 -0
- package/dist/browser/msal/msal-browser.mjs.map +1 -1
- package/dist/browser/msal/utils.d.ts +5 -4
- package/dist/browser/msal/utils.d.ts.map +1 -1
- package/dist/browser/msal/utils.js +16 -11
- package/dist/browser/msal/utils.js.map +1 -1
- package/dist/browser/util/{processMultiTenantRequest.d.ts → processMultiTenantRequest-browser.d.mts} +2 -1
- package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +1 -1
- package/dist/browser/util/{processMultiTenantRequest.js → processMultiTenantRequest-browser.mjs} +1 -1
- package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +1 -1
- package/dist/browser/util/tenantIdUtils.d.ts +1 -1
- package/dist/browser/util/tenantIdUtils.d.ts.map +1 -1
- package/dist/browser/util/tenantIdUtils.js +1 -1
- package/dist/browser/util/tenantIdUtils.js.map +1 -1
- package/dist/commonjs/client/identityClient.d.ts.map +1 -1
- package/dist/commonjs/client/identityClient.js +295 -288
- package/dist/commonjs/client/identityClient.js.map +7 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +61 -78
- package/dist/commonjs/constants.js.map +7 -1
- package/dist/commonjs/credentials/authorityValidationOptions.js +16 -5
- package/dist/commonjs/credentials/authorityValidationOptions.js.map +7 -1
- package/dist/commonjs/credentials/authorizationCodeCredential.js +98 -74
- package/dist/commonjs/credentials/authorizationCodeCredential.js.map +7 -1
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/azureCliCredential.d.ts.map +1 -1
- package/dist/commonjs/credentials/azureCliCredential.js +246 -214
- package/dist/commonjs/credentials/azureCliCredential.js.map +7 -1
- package/dist/commonjs/credentials/azureCliCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts +12 -4
- package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js +262 -224
- package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +7 -1
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/azurePipelinesCredential.js +173 -135
- package/dist/commonjs/credentials/azurePipelinesCredential.js.map +7 -1
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +1 -1
- package/dist/commonjs/credentials/azurePowerShellCredential.js +205 -205
- package/dist/commonjs/credentials/azurePowerShellCredential.js.map +7 -1
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/brokerAuthOptions.js +16 -3
- package/dist/commonjs/credentials/brokerAuthOptions.js.map +7 -1
- package/dist/commonjs/credentials/brokerCredential.js +103 -70
- package/dist/commonjs/credentials/brokerCredential.js.map +7 -1
- package/dist/commonjs/credentials/browserCustomizationOptions.js +16 -5
- package/dist/commonjs/credentials/browserCustomizationOptions.js.map +7 -1
- package/dist/commonjs/credentials/chainedTokenCredential.js +113 -93
- package/dist/commonjs/credentials/chainedTokenCredential.js.map +7 -1
- package/dist/commonjs/credentials/clientAssertionCredential.js +101 -63
- package/dist/commonjs/credentials/clientAssertionCredential.js.map +7 -1
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/clientCertificateCredential.js +129 -123
- package/dist/commonjs/credentials/clientCertificateCredential.js.map +7 -1
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js +16 -5
- package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +7 -1
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/clientSecretCredential.js +96 -67
- package/dist/commonjs/credentials/clientSecretCredential.js.map +7 -1
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/credentialPersistenceOptions.js +16 -5
- package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +7 -1
- package/dist/commonjs/credentials/defaultAzureCredential.js +121 -159
- package/dist/commonjs/credentials/defaultAzureCredential.js.map +7 -1
- package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js +110 -140
- package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js.map +7 -1
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +2 -2
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/deviceCodeCredential.js +132 -103
- package/dist/commonjs/credentials/deviceCodeCredential.js.map +7 -1
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/environmentCredential.js +157 -123
- package/dist/commonjs/credentials/environmentCredential.js.map +7 -1
- package/dist/commonjs/credentials/environmentCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/environmentCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/interactiveBrowserCredential.js +144 -107
- package/dist/commonjs/credentials/interactiveBrowserCredential.js.map +7 -1
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/interactiveCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +92 -91
- package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +51 -44
- package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/index.js +256 -242
- package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/models.js +16 -5
- package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/options.js +16 -5
- package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +56 -39
- package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +7 -1
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js +79 -75
- package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +7 -1
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/onBehalfOfCredential.js +168 -126
- package/dist/commonjs/credentials/onBehalfOfCredential.js.map +7 -1
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/usernamePasswordCredential.js +112 -75
- package/dist/commonjs/credentials/usernamePasswordCredential.js.map +7 -1
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/visualStudioCodeCredential.js +144 -132
- package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +7 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +7 -1
- package/dist/commonjs/credentials/workloadIdentityCredential.js +284 -274
- package/dist/commonjs/credentials/workloadIdentityCredential.js.map +7 -1
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +16 -5
- package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +7 -1
- package/dist/commonjs/errors.js +131 -132
- package/dist/commonjs/errors.js.map +7 -1
- package/dist/commonjs/index.d.ts +33 -33
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +115 -67
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/msal/msal.d.ts +1 -2
- package/dist/commonjs/msal/msal.d.ts.map +1 -1
- package/dist/commonjs/msal/msal.js +30 -9
- package/dist/commonjs/msal/msal.js.map +7 -1
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js +16 -3
- package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +7 -1
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +2 -2
- package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +1 -1
- package/dist/commonjs/msal/nodeFlows/msalClient.js +450 -478
- package/dist/commonjs/msal/nodeFlows/msalClient.js.map +7 -1
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js +140 -147
- package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +7 -1
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +16 -5
- package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +7 -1
- package/dist/commonjs/msal/types.js +16 -5
- package/dist/commonjs/msal/types.js.map +7 -1
- package/dist/commonjs/msal/utils.d.ts +5 -4
- package/dist/commonjs/msal/utils.d.ts.map +1 -1
- package/dist/commonjs/msal/utils.js +176 -211
- package/dist/commonjs/msal/utils.js.map +7 -1
- package/dist/commonjs/plugins/consumer.js +32 -40
- package/dist/commonjs/plugins/consumer.js.map +7 -1
- package/dist/commonjs/plugins/provider.js +16 -5
- package/dist/commonjs/plugins/provider.js.map +7 -1
- package/dist/commonjs/regionalAuthority.js +93 -141
- package/dist/commonjs/regionalAuthority.js.map +7 -1
- package/dist/commonjs/tokenCredentialOptions.js +16 -5
- package/dist/commonjs/tokenCredentialOptions.js.map +7 -1
- package/dist/commonjs/tokenProvider.js +52 -52
- package/dist/commonjs/tokenProvider.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/util/authorityHost.js +34 -19
- package/dist/commonjs/util/authorityHost.js.map +7 -1
- package/dist/commonjs/util/certificatesUtils.js +54 -45
- package/dist/commonjs/util/certificatesUtils.js.map +7 -1
- package/dist/commonjs/util/identityTokenEndpoint.js +32 -12
- package/dist/commonjs/util/identityTokenEndpoint.js.map +7 -1
- package/dist/commonjs/util/logging.js +91 -97
- package/dist/commonjs/util/logging.js.map +7 -1
- package/dist/commonjs/util/processMultiTenantRequest.js +43 -33
- package/dist/commonjs/util/processMultiTenantRequest.js.map +7 -1
- package/dist/commonjs/util/processUtils.js +60 -35
- package/dist/commonjs/util/processUtils.js.map +7 -1
- package/dist/commonjs/util/scopeUtils.js +39 -28
- package/dist/commonjs/util/scopeUtils.js.map +7 -1
- package/dist/commonjs/util/subscriptionUtils.js +35 -17
- package/dist/commonjs/util/subscriptionUtils.js.map +7 -1
- package/dist/commonjs/util/tenantIdUtils.d.ts.map +1 -1
- package/dist/commonjs/util/tenantIdUtils.js +61 -45
- package/dist/commonjs/util/tenantIdUtils.js.map +7 -1
- package/dist/commonjs/util/tracing.js +33 -16
- package/dist/commonjs/util/tracing.js.map +7 -1
- package/dist/esm/client/identityClient.d.ts.map +1 -1
- package/dist/esm/client/identityClient.js +2 -1
- package/dist/esm/client/identityClient.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/credentials/azureCliCredential.d.ts.map +1 -1
- package/dist/esm/credentials/azureCliCredential.js +2 -1
- package/dist/esm/credentials/azureCliCredential.js.map +1 -1
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts +12 -4
- package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
- package/dist/esm/credentials/azureDeveloperCliCredential.js +40 -14
- package/dist/esm/credentials/azureDeveloperCliCredential.js.map +1 -1
- package/dist/esm/credentials/azurePipelinesCredential.js.map +1 -1
- package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +1 -1
- package/dist/esm/credentials/azurePowerShellCredential.js +2 -1
- package/dist/esm/credentials/azurePowerShellCredential.js.map +1 -1
- package/dist/esm/credentials/defaultAzureCredential.js.map +1 -1
- package/dist/esm/credentials/defaultAzureCredentialFunctions.js.map +1 -1
- package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +2 -2
- package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +1 -1
- package/dist/esm/credentials/environmentCredential.js.map +1 -1
- package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -1
- package/dist/esm/credentials/workloadIdentityCredential.js.map +1 -1
- package/dist/esm/index.d.ts +33 -33
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/msal/msal.d.ts +1 -2
- package/dist/esm/msal/msal.d.ts.map +1 -1
- package/dist/esm/msal/msal.js +1 -2
- package/dist/esm/msal/msal.js.map +1 -1
- package/dist/esm/msal/nodeFlows/msalClient.d.ts +2 -2
- package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +1 -1
- package/dist/esm/msal/nodeFlows/msalClient.js +3 -3
- package/dist/esm/msal/nodeFlows/msalClient.js.map +1 -1
- package/dist/esm/msal/utils.d.ts +5 -4
- package/dist/esm/msal/utils.d.ts.map +1 -1
- package/dist/esm/msal/utils.js +16 -11
- package/dist/esm/msal/utils.js.map +1 -1
- package/dist/esm/util/tenantIdUtils.d.ts.map +1 -1
- package/dist/esm/util/tenantIdUtils.js.map +1 -1
- package/dist/workerd/client/identityClient.d.ts.map +1 -1
- package/dist/workerd/client/identityClient.js +2 -1
- package/dist/workerd/client/identityClient.js.map +1 -1
- package/dist/workerd/constants.d.ts +1 -1
- package/dist/workerd/constants.js +1 -1
- package/dist/workerd/constants.js.map +1 -1
- package/dist/workerd/credentials/azureCliCredential.d.ts.map +1 -1
- package/dist/workerd/credentials/azureCliCredential.js +2 -1
- package/dist/workerd/credentials/azureCliCredential.js.map +1 -1
- package/dist/workerd/credentials/azureDeveloperCliCredential.d.ts +12 -4
- package/dist/workerd/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
- package/dist/workerd/credentials/azureDeveloperCliCredential.js +40 -14
- package/dist/workerd/credentials/azureDeveloperCliCredential.js.map +1 -1
- package/dist/workerd/credentials/azurePipelinesCredential.js.map +1 -1
- package/dist/workerd/credentials/azurePowerShellCredential.d.ts.map +1 -1
- package/dist/workerd/credentials/azurePowerShellCredential.js +2 -1
- package/dist/workerd/credentials/azurePowerShellCredential.js.map +1 -1
- package/dist/workerd/credentials/defaultAzureCredential.js.map +1 -1
- package/dist/workerd/credentials/defaultAzureCredentialFunctions.js.map +1 -1
- package/dist/workerd/credentials/defaultAzureCredentialOptions.d.ts +2 -2
- package/dist/workerd/credentials/defaultAzureCredentialOptions.js.map +1 -1
- package/dist/workerd/credentials/environmentCredential.js.map +1 -1
- package/dist/workerd/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -1
- package/dist/workerd/credentials/workloadIdentityCredential.js.map +1 -1
- package/dist/workerd/index.d.ts +33 -33
- package/dist/workerd/index.d.ts.map +1 -1
- package/dist/workerd/index.js.map +1 -1
- package/dist/workerd/msal/msal.d.ts +1 -2
- package/dist/workerd/msal/msal.d.ts.map +1 -1
- package/dist/workerd/msal/msal.js +1 -2
- package/dist/workerd/msal/msal.js.map +1 -1
- package/dist/workerd/msal/nodeFlows/msalClient.d.ts +2 -2
- package/dist/workerd/msal/nodeFlows/msalClient.d.ts.map +1 -1
- package/dist/workerd/msal/nodeFlows/msalClient.js +3 -3
- package/dist/workerd/msal/nodeFlows/msalClient.js.map +1 -1
- package/dist/workerd/msal/utils.d.ts +5 -4
- package/dist/workerd/msal/utils.d.ts.map +1 -1
- package/dist/workerd/msal/utils.js +16 -11
- package/dist/workerd/msal/utils.js.map +1 -1
- package/dist/workerd/util/tenantIdUtils.d.ts.map +1 -1
- package/dist/workerd/util/tenantIdUtils.js.map +1 -1
- package/package.json +29 -36
- package/dist/browser/credentials/azureCliCredential.d.ts +0 -13
- package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +0 -13
- package/dist/browser/credentials/azurePipelinesCredential.d.ts +0 -13
- package/dist/browser/credentials/azurePowerShellCredential.d.ts +0 -12
- package/dist/browser/credentials/brokerCredential.d.ts +0 -35
- package/dist/browser/credentials/brokerCredential.d.ts.map +0 -1
- package/dist/browser/credentials/brokerCredential.js +0 -68
- package/dist/browser/credentials/brokerCredential.js.map +0 -1
- package/dist/browser/credentials/clientAssertionCredential.d.ts +0 -12
- package/dist/browser/credentials/clientCertificateCredential.d.ts +0 -13
- package/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts +0 -64
- package/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts.map +0 -1
- package/dist/browser/credentials/defaultAzureCredentialFunctions.js +0 -147
- package/dist/browser/credentials/defaultAzureCredentialFunctions.js.map +0 -1
- package/dist/browser/credentials/deviceCodeCredential.d.ts +0 -13
- package/dist/browser/credentials/environmentCredential.d.ts +0 -13
- 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 -97
- package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -13
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -43
- package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.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 +0 -4
- package/dist/browser/credentials/managedIdentityCredential/models.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 +0 -38
- package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
- package/dist/browser/credentials/onBehalfOfCredential.d.ts +0 -12
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.js +0 -4
- package/dist/browser/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
- package/dist/browser/msal/msal.d.ts +0 -3
- package/dist/browser/msal/msal.js +0 -5
- package/dist/browser/msal/nodeFlows/msalClient.d.ts +0 -205
- package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +0 -1
- package/dist/browser/msal/nodeFlows/msalClient.js +0 -499
- package/dist/browser/msal/nodeFlows/msalClient.js.map +0 -1
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +0 -109
- package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
- package/dist/browser/msal/nodeFlows/msalPlugins.js +0 -160
- package/dist/browser/msal/nodeFlows/msalPlugins.js.map +0 -1
- package/dist/browser/regionalAuthority.d.ts +0 -122
- package/dist/browser/regionalAuthority.d.ts.map +0 -1
- package/dist/browser/regionalAuthority.js +0 -139
- package/dist/browser/regionalAuthority.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/certificatesUtils.d.ts +0 -13
- package/dist/browser/util/certificatesUtils.d.ts.map +0 -1
- package/dist/browser/util/certificatesUtils.js +0 -47
- package/dist/browser/util/certificatesUtils.js.map +0 -1
- package/dist/browser/util/processUtils.d.ts +0 -13
- package/dist/browser/util/processUtils.d.ts.map +0 -1
- package/dist/browser/util/processUtils.js +0 -32
- package/dist/browser/util/processUtils.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 -16
- package/dist/browser/util/subscriptionUtils.js.map +0 -1
- package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
- 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/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +0 -265
- package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
- package/dist/commonjs/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
- package/dist/commonjs/msal/browserFlows/msalBrowserOptions.js +0 -5
- package/dist/commonjs/msal/browserFlows/msalBrowserOptions.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/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
- 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/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
- package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js +0 -261
- package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/esm/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
- package/dist/esm/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
- package/dist/esm/msal/browserFlows/msalBrowserOptions.js +0 -4
- package/dist/esm/msal/browserFlows/msalBrowserOptions.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/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 +0 -7
- package/dist/esm/util/authHostEnv-browser.mjs.map +0 -1
- package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
- package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
- package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.js +0 -4
- package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
- package/dist/workerd/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
- package/dist/workerd/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
- package/dist/workerd/msal/browserFlows/msalBrowserCommon.js +0 -261
- package/dist/workerd/msal/browserFlows/msalBrowserCommon.js.map +0 -1
- package/dist/workerd/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
- package/dist/workerd/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
- package/dist/workerd/msal/browserFlows/msalBrowserOptions.js +0 -4
- package/dist/workerd/msal/browserFlows/msalBrowserOptions.js.map +0 -1
- package/dist/workerd/msal/credentials.d.ts +0 -52
- package/dist/workerd/msal/credentials.d.ts.map +0 -1
- package/dist/workerd/msal/credentials.js +0 -4
- package/dist/workerd/msal/credentials.js.map +0 -1
- package/dist/workerd/util/authHostEnv-browser.d.mts +0 -4
- package/dist/workerd/util/authHostEnv-browser.d.mts.map +0 -1
- package/dist/workerd/util/authHostEnv-browser.mjs +0 -7
- package/dist/workerd/util/authHostEnv-browser.mjs.map +0 -1
- /package/dist/browser/credentials/{clientSecretCredential.d.ts → clientSecretCredential-browser.d.mts} +0 -0
- /package/dist/browser/credentials/{clientSecretCredential.js → clientSecretCredential-browser.mjs} +0 -0
- /package/dist/browser/credentials/{interactiveBrowserCredential.d.ts → interactiveBrowserCredential-browser.d.mts} +0 -0
- /package/dist/browser/credentials/{interactiveBrowserCredential.js → interactiveBrowserCredential-browser.mjs} +0 -0
- /package/dist/browser/credentials/{usernamePasswordCredential.d.ts → usernamePasswordCredential-browser.d.mts} +0 -0
- /package/dist/browser/credentials/{usernamePasswordCredential.js → usernamePasswordCredential-browser.mjs} +0 -0
- /package/dist/browser/plugins/{consumer.d.ts → consumer-browser.d.mts} +0 -0
- /package/dist/browser/plugins/{consumer.js → consumer-browser.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "4.14.0-beta.
|
|
4
|
+
"version": "4.14.0-beta.4",
|
|
5
5
|
"description": "Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -37,7 +37,11 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=20.0.0"
|
|
39
39
|
},
|
|
40
|
-
"repository":
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/Azure/azure-sdk-for-js",
|
|
43
|
+
"directory": "sdk/identity/identity"
|
|
44
|
+
},
|
|
41
45
|
"keywords": [
|
|
42
46
|
"azure",
|
|
43
47
|
"cloud",
|
|
@@ -56,6 +60,12 @@
|
|
|
56
60
|
},
|
|
57
61
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity/README.md",
|
|
58
62
|
"sideEffects": false,
|
|
63
|
+
"imports": {
|
|
64
|
+
"#platform/*": {
|
|
65
|
+
"browser": "./src/*-browser.mts",
|
|
66
|
+
"default": "./src/*.ts"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
59
69
|
"dependencies": {
|
|
60
70
|
"@azure/abort-controller": "^2.0.0",
|
|
61
71
|
"@azure/core-auth": "^1.9.0",
|
|
@@ -64,8 +74,8 @@
|
|
|
64
74
|
"@azure/core-tracing": "^1.0.0",
|
|
65
75
|
"@azure/core-util": "^1.11.0",
|
|
66
76
|
"@azure/logger": "^1.0.0",
|
|
67
|
-
"@azure/msal-browser": "^
|
|
68
|
-
"@azure/msal-node": "^
|
|
77
|
+
"@azure/msal-browser": "^5.5.0",
|
|
78
|
+
"@azure/msal-node": "^5.1.0",
|
|
69
79
|
"open": "^11.0.0",
|
|
70
80
|
"tslib": "^2.2.0"
|
|
71
81
|
},
|
|
@@ -74,53 +84,36 @@
|
|
|
74
84
|
"@types/jsonwebtoken": "^9.0.0",
|
|
75
85
|
"@types/ms": "^2.1.0",
|
|
76
86
|
"@types/node": "^20.19.25",
|
|
77
|
-
"@vitest/browser-playwright": "^4.
|
|
78
|
-
"@vitest/coverage-istanbul": "^4.
|
|
87
|
+
"@vitest/browser-playwright": "^4.1.2",
|
|
88
|
+
"@vitest/coverage-istanbul": "^4.1.2",
|
|
79
89
|
"assertion-error": "^2.0.1",
|
|
80
90
|
"cross-env": "^10.1.0",
|
|
81
91
|
"dotenv": "^16.6.1",
|
|
82
92
|
"eslint": "^9.39.1",
|
|
83
93
|
"jsonwebtoken": "^9.0.0",
|
|
84
94
|
"ms": "^2.1.3",
|
|
85
|
-
"playwright": "^1.
|
|
95
|
+
"playwright": "^1.60.0",
|
|
86
96
|
"prettier": "^3.6.2",
|
|
87
97
|
"rimraf": "^6.1.0",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"vitest": "^4.0.8",
|
|
98
|
+
"typescript": "~6.0.2",
|
|
99
|
+
"vitest": "^4.1.2",
|
|
91
100
|
"@azure-tools/test-recorder": "^4.1.1",
|
|
92
101
|
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
93
102
|
"@azure/dev-tool": "^1.0.0",
|
|
94
103
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
95
104
|
},
|
|
96
105
|
"type": "module",
|
|
97
|
-
"tshy": {
|
|
98
|
-
"project": "../../../tsconfig.src.build.json",
|
|
99
|
-
"exports": {
|
|
100
|
-
"./package.json": "./package.json",
|
|
101
|
-
".": "./src/index.ts"
|
|
102
|
-
},
|
|
103
|
-
"dialects": [
|
|
104
|
-
"esm",
|
|
105
|
-
"commonjs"
|
|
106
|
-
],
|
|
107
|
-
"esmDialects": [
|
|
108
|
-
"workerd",
|
|
109
|
-
"browser"
|
|
110
|
-
],
|
|
111
|
-
"selfLink": false
|
|
112
|
-
},
|
|
113
106
|
"exports": {
|
|
114
107
|
"./package.json": "./package.json",
|
|
115
108
|
".": {
|
|
116
|
-
"workerd": {
|
|
117
|
-
"types": "./dist/workerd/index.d.ts",
|
|
118
|
-
"default": "./dist/workerd/index.js"
|
|
119
|
-
},
|
|
120
109
|
"browser": {
|
|
121
110
|
"types": "./dist/browser/index.d.ts",
|
|
122
111
|
"default": "./dist/browser/index.js"
|
|
123
112
|
},
|
|
113
|
+
"workerd": {
|
|
114
|
+
"types": "./dist/workerd/index.d.ts",
|
|
115
|
+
"default": "./dist/workerd/index.js"
|
|
116
|
+
},
|
|
124
117
|
"import": {
|
|
125
118
|
"types": "./dist/esm/index.d.ts",
|
|
126
119
|
"default": "./dist/esm/index.js"
|
|
@@ -133,18 +126,18 @@
|
|
|
133
126
|
},
|
|
134
127
|
"scripts": {
|
|
135
128
|
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
136
|
-
"build:samples": "tsc -p tsconfig.samples.json",
|
|
137
|
-
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
129
|
+
"build:samples": "tsc -p config/tsconfig.samples.json",
|
|
130
|
+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
|
|
138
131
|
"clean": "rimraf --glob dist dist-* types *.tgz *.log",
|
|
139
132
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
140
133
|
"extract-api": "dev-tool run build-package && dev-tool run extract-api",
|
|
141
|
-
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
134
|
+
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
|
|
142
135
|
"lint": "eslint package.json src test --ignore-pattern 'test/integration/**'",
|
|
143
136
|
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion] --ignore-pattern 'test/integration/**'",
|
|
144
137
|
"pack": "pnpm pack 2>&1",
|
|
145
|
-
"test": "npm run test:node && npm run test:browser",
|
|
146
|
-
"test:browser": "
|
|
147
|
-
"test:node": "dev-tool run
|
|
138
|
+
"test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
|
|
139
|
+
"test:browser": "dev-tool run test:vitest --browser",
|
|
140
|
+
"test:node": "dev-tool run test:vitest",
|
|
148
141
|
"test:node:managed-identity": "dev-tool run test:vitest -- --config ./vitest.managed-identity.config.ts",
|
|
149
142
|
"test:node:no-timeouts": "dev-tool run test:vitest -- --test-timeout=0",
|
|
150
143
|
"update-snippets": "dev-tool run update-snippets"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* This credential will use the currently logged-in user login information
|
|
4
|
-
* via the Azure CLI ('az') commandline tool.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AzureCliCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=azureCliCredential-browser.d.mts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* This credential will use the currently logged-in user login information
|
|
4
|
-
* via the Azure Developer CLI ('azd') commandline tool.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AzureDeveloperCliCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=azureDeveloperCliCredential-browser.d.mts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
|
4
|
-
* certificate that is assigned to an App Registration.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AzurePipelinesCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=azurePipelinesCredential-browser.d.mts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.
|
|
4
|
-
*/
|
|
5
|
-
export declare class AzurePowerShellCredential implements TokenCredential {
|
|
6
|
-
/**
|
|
7
|
-
* Only available in Node.js
|
|
8
|
-
*/
|
|
9
|
-
constructor();
|
|
10
|
-
getToken(): Promise<AccessToken | null>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=azurePowerShellCredential-browser.d.mts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
import type { TokenCredentialOptions } from "../tokenCredentialOptions.js";
|
|
3
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
|
4
|
-
/**
|
|
5
|
-
* Enables authentication to Microsoft Entra ID using WAM (Web Account Manager) broker.
|
|
6
|
-
* This credential uses the default account logged into the OS via a broker.
|
|
7
|
-
*/
|
|
8
|
-
export declare class BrokerCredential implements TokenCredential {
|
|
9
|
-
private brokerMsalClient;
|
|
10
|
-
private brokerTenantId?;
|
|
11
|
-
private brokerAdditionallyAllowedTenantIds;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of BrokerCredential with the required broker options.
|
|
14
|
-
*
|
|
15
|
-
* This credential uses WAM (Web Account Manager) for authentication, which provides
|
|
16
|
-
* better security and user experience on Windows platforms.
|
|
17
|
-
*
|
|
18
|
-
* @param options - Options for configuring the broker credential, including required broker options.
|
|
19
|
-
*/
|
|
20
|
-
constructor(options: {
|
|
21
|
-
tenantId?: string;
|
|
22
|
-
} & TokenCredentialOptions & MultiTenantTokenCredentialOptions);
|
|
23
|
-
/**
|
|
24
|
-
* Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.
|
|
25
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
26
|
-
*
|
|
27
|
-
* This method extends the base getToken method to support silentAuthenticationOnly option
|
|
28
|
-
* when using broker authentication.
|
|
29
|
-
*
|
|
30
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
31
|
-
* @param options - The options used to configure the token request, including silentAuthenticationOnly option.
|
|
32
|
-
*/
|
|
33
|
-
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=brokerCredential.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brokerCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/brokerCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAatF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAKhG;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,eAAe;IACtD,OAAO,CAAC,gBAAgB,CAAa;IACrC,OAAO,CAAC,cAAc,CAAC,CAAS;IAChC,OAAO,CAAC,kCAAkC,CAAW;IAErD;;;;;;;OAOG;gBAED,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,sBAAsB,GAAG,iCAAiC;IAuB7F;;;;;;;;;OASG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;CA4B/F"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { processMultiTenantRequest, resolveAdditionallyAllowedTenantIds, resolveTenantId, } from "../util/tenantIdUtils.js";
|
|
4
|
-
import { credentialLogger, formatError } from "../util/logging.js";
|
|
5
|
-
import { ensureScopes } from "../util/scopeUtils.js";
|
|
6
|
-
import { tracingClient } from "../util/tracing.js";
|
|
7
|
-
import { createMsalClient } from "../msal/nodeFlows/msalClient.js";
|
|
8
|
-
import { DeveloperSignOnClientId } from "../constants.js";
|
|
9
|
-
import { CredentialUnavailableError } from "../errors.js";
|
|
10
|
-
const logger = credentialLogger("BrokerCredential");
|
|
11
|
-
/**
|
|
12
|
-
* Enables authentication to Microsoft Entra ID using WAM (Web Account Manager) broker.
|
|
13
|
-
* This credential uses the default account logged into the OS via a broker.
|
|
14
|
-
*/
|
|
15
|
-
export class BrokerCredential {
|
|
16
|
-
brokerMsalClient;
|
|
17
|
-
brokerTenantId;
|
|
18
|
-
brokerAdditionallyAllowedTenantIds;
|
|
19
|
-
/**
|
|
20
|
-
* Creates an instance of BrokerCredential with the required broker options.
|
|
21
|
-
*
|
|
22
|
-
* This credential uses WAM (Web Account Manager) for authentication, which provides
|
|
23
|
-
* better security and user experience on Windows platforms.
|
|
24
|
-
*
|
|
25
|
-
* @param options - Options for configuring the broker credential, including required broker options.
|
|
26
|
-
*/
|
|
27
|
-
constructor(options) {
|
|
28
|
-
this.brokerTenantId = resolveTenantId(logger, options.tenantId);
|
|
29
|
-
this.brokerAdditionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(options?.additionallyAllowedTenants);
|
|
30
|
-
const msalClientOptions = {
|
|
31
|
-
...options,
|
|
32
|
-
logger,
|
|
33
|
-
brokerOptions: {
|
|
34
|
-
enabled: true,
|
|
35
|
-
parentWindowHandle: new Uint8Array(0),
|
|
36
|
-
useDefaultBrokerAccount: true,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
this.brokerMsalClient = createMsalClient(DeveloperSignOnClientId, this.brokerTenantId, msalClientOptions);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.
|
|
43
|
-
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
|
44
|
-
*
|
|
45
|
-
* This method extends the base getToken method to support silentAuthenticationOnly option
|
|
46
|
-
* when using broker authentication.
|
|
47
|
-
*
|
|
48
|
-
* @param scopes - The list of scopes for which the token will have access.
|
|
49
|
-
* @param options - The options used to configure the token request, including silentAuthenticationOnly option.
|
|
50
|
-
*/
|
|
51
|
-
async getToken(scopes, options = {}) {
|
|
52
|
-
return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
|
|
53
|
-
newOptions.tenantId = processMultiTenantRequest(this.brokerTenantId, newOptions, this.brokerAdditionallyAllowedTenantIds, logger);
|
|
54
|
-
const arrayScopes = ensureScopes(scopes);
|
|
55
|
-
try {
|
|
56
|
-
return this.brokerMsalClient.getBrokeredToken(arrayScopes, true, {
|
|
57
|
-
...newOptions,
|
|
58
|
-
disableAutomaticAuthentication: true,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
catch (e) {
|
|
62
|
-
logger.getToken.info(formatError(arrayScopes, e));
|
|
63
|
-
throw new CredentialUnavailableError("Failed to acquire token using broker authentication", { cause: e });
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=brokerCredential.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brokerCredential.js","sourceRoot":"","sources":["../../../src/credentials/brokerCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EACzB,mCAAmC,EACnC,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IACnB,gBAAgB,CAAa;IAC7B,cAAc,CAAU;IACxB,kCAAkC,CAAW;IAErD;;;;;;;OAOG;IACH,YACE,OAA2F;QAE3F,IAAI,CAAC,cAAc,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChE,IAAI,CAAC,kCAAkC,GAAG,mCAAmC,CAC3E,OAAO,EAAE,0BAA0B,CACpC,CAAC;QACF,MAAM,iBAAiB,GAAsB;YAC3C,GAAG,OAAO;YACV,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,IAAI;gBACb,kBAAkB,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC;gBACrC,uBAAuB,EAAE,IAAI;aAC9B;SACF,CAAC;QAEF,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CACtC,uBAAuB,EACvB,IAAI,CAAC,cAAc,EACnB,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,QAAQ,CAAC,MAAyB,EAAE,UAA2B,EAAE;QACrE,OAAO,aAAa,CAAC,QAAQ,CAC3B,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,WAAW,EACnC,OAAO,EACP,KAAK,EAAE,UAAU,EAAE,EAAE;YACnB,UAAU,CAAC,QAAQ,GAAG,yBAAyB,CAC7C,IAAI,CAAC,cAAc,EACnB,UAAU,EACV,IAAI,CAAC,kCAAkC,EACvC,MAAM,CACP,CAAC;YAEF,MAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;YACzC,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,EAAE;oBAC/D,GAAG,UAAU;oBACb,8BAA8B,EAAE,IAAI;iBACrC,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,CAAM,EAAE,CAAC;gBAChB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;gBAClD,MAAM,IAAI,0BAA0B,CAClC,qDAAqD,EACrD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;YACJ,CAAC;QACH,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 processMultiTenantRequest,\n resolveAdditionallyAllowedTenantIds,\n resolveTenantId,\n} from \"../util/tenantIdUtils.js\";\n\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport { ensureScopes } from \"../util/scopeUtils.js\";\nimport { tracingClient } from \"../util/tracing.js\";\nimport type { MsalClient, MsalClientOptions } from \"../msal/nodeFlows/msalClient.js\";\nimport { createMsalClient } from \"../msal/nodeFlows/msalClient.js\";\nimport { DeveloperSignOnClientId } from \"../constants.js\";\nimport type { TokenCredentialOptions } from \"../tokenCredentialOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\nimport { CredentialUnavailableError } from \"../errors.js\";\n\nconst logger = credentialLogger(\"BrokerCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using WAM (Web Account Manager) broker.\n * This credential uses the default account logged into the OS via a broker.\n */\nexport class BrokerCredential implements TokenCredential {\n private brokerMsalClient: MsalClient;\n private brokerTenantId?: string;\n private brokerAdditionallyAllowedTenantIds: string[];\n\n /**\n * Creates an instance of BrokerCredential with the required broker options.\n *\n * This credential uses WAM (Web Account Manager) for authentication, which provides\n * better security and user experience on Windows platforms.\n *\n * @param options - Options for configuring the broker credential, including required broker options.\n */\n constructor(\n options: { tenantId?: string } & TokenCredentialOptions & MultiTenantTokenCredentialOptions,\n ) {\n this.brokerTenantId = resolveTenantId(logger, options.tenantId);\n this.brokerAdditionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(\n options?.additionallyAllowedTenants,\n );\n const msalClientOptions: MsalClientOptions = {\n ...options,\n logger,\n brokerOptions: {\n enabled: true,\n parentWindowHandle: new Uint8Array(0),\n useDefaultBrokerAccount: true,\n },\n };\n\n this.brokerMsalClient = createMsalClient(\n DeveloperSignOnClientId,\n this.brokerTenantId,\n msalClientOptions,\n );\n }\n\n /**\n * Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.\n * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.\n *\n * This method extends the base getToken method to support silentAuthenticationOnly option\n * when using broker authentication.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure the token request, including silentAuthenticationOnly option.\n */\n async getToken(scopes: string | string[], options: GetTokenOptions = {}): Promise<AccessToken> {\n return tracingClient.withSpan(\n `${this.constructor.name}.getToken`,\n options,\n async (newOptions) => {\n newOptions.tenantId = processMultiTenantRequest(\n this.brokerTenantId,\n newOptions,\n this.brokerAdditionallyAllowedTenantIds,\n logger,\n );\n\n const arrayScopes = ensureScopes(scopes);\n try {\n return this.brokerMsalClient.getBrokeredToken(arrayScopes, true, {\n ...newOptions,\n disableAutomaticAuthentication: true,\n });\n } catch (e: any) {\n logger.getToken.info(formatError(arrayScopes, e));\n throw new CredentialUnavailableError(\n \"Failed to acquire token using broker authentication\",\n { cause: e },\n );\n }\n },\n );\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* Authenticates a service principal with a JWT assertion.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ClientAssertionCredential implements TokenCredential {
|
|
6
|
-
/**
|
|
7
|
-
* Only available in Node.js
|
|
8
|
-
*/
|
|
9
|
-
constructor();
|
|
10
|
-
getToken(): Promise<AccessToken | null>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=clientAssertionCredential-browser.d.mts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
|
4
|
-
* certificate that is assigned to an App Registration.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ClientCertificateCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=clientCertificateCredential-browser.d.mts.map
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { TokenCredential } from "@azure/core-auth";
|
|
2
|
-
import type { DefaultAzureCredentialClientIdOptions, DefaultAzureCredentialOptions, DefaultAzureCredentialResourceIdOptions } from "./defaultAzureCredentialOptions.js";
|
|
3
|
-
/**
|
|
4
|
-
* Creates a {@link BrokerCredential} instance with the provided options.
|
|
5
|
-
* This credential uses the Windows Authentication Manager (WAM) broker for authentication.
|
|
6
|
-
* It will only attempt to authenticate silently using the default broker account
|
|
7
|
-
*
|
|
8
|
-
* @param options - Options for configuring the credential.
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare function createDefaultBrokerCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a {@link VisualStudioCodeCredential} from the provided options.
|
|
15
|
-
* @param options - Options to configure the credential.
|
|
16
|
-
*
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
export declare function createDefaultVisualStudioCodeCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a {@link ManagedIdentityCredential} from the provided options.
|
|
22
|
-
* @param options - Options to configure the credential.
|
|
23
|
-
*
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
export declare function createDefaultManagedIdentityCredential(options?: (DefaultAzureCredentialOptions | DefaultAzureCredentialResourceIdOptions | DefaultAzureCredentialClientIdOptions) & {
|
|
27
|
-
sendProbeRequest?: boolean;
|
|
28
|
-
}): TokenCredential;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a {@link WorkloadIdentityCredential} from the provided options.
|
|
31
|
-
* @param options - Options to configure the credential.
|
|
32
|
-
*
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
export declare function createDefaultWorkloadIdentityCredential(options?: DefaultAzureCredentialOptions | DefaultAzureCredentialClientIdOptions): TokenCredential;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a {@link AzureDeveloperCliCredential} from the provided options.
|
|
38
|
-
* @param options - Options to configure the credential.
|
|
39
|
-
*
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
export declare function createDefaultAzureDeveloperCliCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
43
|
-
/**
|
|
44
|
-
* Creates a {@link AzureCliCredential} from the provided options.
|
|
45
|
-
* @param options - Options to configure the credential.
|
|
46
|
-
*
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
export declare function createDefaultAzureCliCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
50
|
-
/**
|
|
51
|
-
* Creates a {@link AzurePowerShellCredential} from the provided options.
|
|
52
|
-
* @param options - Options to configure the credential.
|
|
53
|
-
*
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
export declare function createDefaultAzurePowershellCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
57
|
-
/**
|
|
58
|
-
* Creates an {@link EnvironmentCredential} from the provided options.
|
|
59
|
-
* @param options - Options to configure the credential.
|
|
60
|
-
*
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
export declare function createDefaultEnvironmentCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
|
64
|
-
//# sourceMappingURL=defaultAzureCredentialFunctions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAzureCredentialFunctions.d.ts","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredentialFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EACV,qCAAqC,EACrC,6BAA6B,EAC7B,uCAAuC,EACxC,MAAM,oCAAoC,CAAC;AAe5C;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,GAAE,CACL,6BAA6B,GAC7B,uCAAuC,GACvC,qCAAqC,CACxC,GAAG;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GACtC,eAAe,CAkDjB;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,CAAC,EAAE,6BAA6B,GAAG,qCAAqC,GAC9E,eAAe,CA4BjB;AAED;;;;;GAKG;AACH,wBAAgB,wCAAwC,CACtD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { EnvironmentCredential } from "./environmentCredential.js";
|
|
4
|
-
import { ManagedIdentityCredential } from "./managedIdentityCredential/index.js";
|
|
5
|
-
import { WorkloadIdentityCredential } from "./workloadIdentityCredential.js";
|
|
6
|
-
import { AzureDeveloperCliCredential } from "./azureDeveloperCliCredential.js";
|
|
7
|
-
import { AzureCliCredential } from "./azureCliCredential.js";
|
|
8
|
-
import { AzurePowerShellCredential } from "./azurePowerShellCredential.js";
|
|
9
|
-
import { VisualStudioCodeCredential } from "./visualStudioCodeCredential.js";
|
|
10
|
-
import { BrokerCredential } from "./brokerCredential.js";
|
|
11
|
-
/**
|
|
12
|
-
* Creates a {@link BrokerCredential} instance with the provided options.
|
|
13
|
-
* This credential uses the Windows Authentication Manager (WAM) broker for authentication.
|
|
14
|
-
* It will only attempt to authenticate silently using the default broker account
|
|
15
|
-
*
|
|
16
|
-
* @param options - Options for configuring the credential.
|
|
17
|
-
*
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export function createDefaultBrokerCredential(options = {}) {
|
|
21
|
-
return new BrokerCredential(options);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Creates a {@link VisualStudioCodeCredential} from the provided options.
|
|
25
|
-
* @param options - Options to configure the credential.
|
|
26
|
-
*
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
export function createDefaultVisualStudioCodeCredential(options = {}) {
|
|
30
|
-
return new VisualStudioCodeCredential(options);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Creates a {@link ManagedIdentityCredential} from the provided options.
|
|
34
|
-
* @param options - Options to configure the credential.
|
|
35
|
-
*
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
export function createDefaultManagedIdentityCredential(options = {}) {
|
|
39
|
-
options.retryOptions ??= {
|
|
40
|
-
maxRetries: 5,
|
|
41
|
-
retryDelayInMs: 800,
|
|
42
|
-
};
|
|
43
|
-
// ManagedIdentityCredential inside DAC chain should send a probe request by default.
|
|
44
|
-
// This is different from standalone ManagedIdentityCredential behavior
|
|
45
|
-
// or when AZURE_TOKEN_CREDENTIALS is set to only ManagedIdentityCredential.
|
|
46
|
-
options.sendProbeRequest ??= true;
|
|
47
|
-
const managedIdentityClientId = options?.managedIdentityClientId ??
|
|
48
|
-
process.env.AZURE_CLIENT_ID;
|
|
49
|
-
const workloadIdentityClientId = options?.workloadIdentityClientId ??
|
|
50
|
-
managedIdentityClientId;
|
|
51
|
-
const managedResourceId = options
|
|
52
|
-
?.managedIdentityResourceId;
|
|
53
|
-
const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;
|
|
54
|
-
const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;
|
|
55
|
-
if (managedResourceId) {
|
|
56
|
-
const managedIdentityResourceIdOptions = {
|
|
57
|
-
...options,
|
|
58
|
-
resourceId: managedResourceId,
|
|
59
|
-
};
|
|
60
|
-
return new ManagedIdentityCredential(managedIdentityResourceIdOptions);
|
|
61
|
-
}
|
|
62
|
-
if (workloadFile && workloadIdentityClientId) {
|
|
63
|
-
const workloadIdentityCredentialOptions = {
|
|
64
|
-
...options,
|
|
65
|
-
tenantId: tenantId,
|
|
66
|
-
};
|
|
67
|
-
return new ManagedIdentityCredential(workloadIdentityClientId, workloadIdentityCredentialOptions);
|
|
68
|
-
}
|
|
69
|
-
if (managedIdentityClientId) {
|
|
70
|
-
const managedIdentityClientOptions = {
|
|
71
|
-
...options,
|
|
72
|
-
clientId: managedIdentityClientId,
|
|
73
|
-
};
|
|
74
|
-
return new ManagedIdentityCredential(managedIdentityClientOptions);
|
|
75
|
-
}
|
|
76
|
-
// We may be able to return a UnavailableCredential here, but that may be a breaking change
|
|
77
|
-
return new ManagedIdentityCredential(options);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates a {@link WorkloadIdentityCredential} from the provided options.
|
|
81
|
-
* @param options - Options to configure the credential.
|
|
82
|
-
*
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
export function createDefaultWorkloadIdentityCredential(options) {
|
|
86
|
-
const managedIdentityClientId = options?.managedIdentityClientId ??
|
|
87
|
-
process.env.AZURE_CLIENT_ID;
|
|
88
|
-
const workloadIdentityClientId = options?.workloadIdentityClientId ??
|
|
89
|
-
managedIdentityClientId;
|
|
90
|
-
const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;
|
|
91
|
-
const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;
|
|
92
|
-
if (workloadFile && workloadIdentityClientId) {
|
|
93
|
-
const workloadIdentityCredentialOptions = {
|
|
94
|
-
...options,
|
|
95
|
-
tenantId,
|
|
96
|
-
clientId: workloadIdentityClientId,
|
|
97
|
-
tokenFilePath: workloadFile,
|
|
98
|
-
};
|
|
99
|
-
return new WorkloadIdentityCredential(workloadIdentityCredentialOptions);
|
|
100
|
-
}
|
|
101
|
-
if (tenantId) {
|
|
102
|
-
const workloadIdentityClientTenantOptions = {
|
|
103
|
-
...options,
|
|
104
|
-
tenantId,
|
|
105
|
-
};
|
|
106
|
-
return new WorkloadIdentityCredential(workloadIdentityClientTenantOptions);
|
|
107
|
-
}
|
|
108
|
-
// We may be able to return a UnavailableCredential here, but that may be a breaking change
|
|
109
|
-
return new WorkloadIdentityCredential(options);
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Creates a {@link AzureDeveloperCliCredential} from the provided options.
|
|
113
|
-
* @param options - Options to configure the credential.
|
|
114
|
-
*
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
|
-
export function createDefaultAzureDeveloperCliCredential(options = {}) {
|
|
118
|
-
return new AzureDeveloperCliCredential(options);
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Creates a {@link AzureCliCredential} from the provided options.
|
|
122
|
-
* @param options - Options to configure the credential.
|
|
123
|
-
*
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
126
|
-
export function createDefaultAzureCliCredential(options = {}) {
|
|
127
|
-
return new AzureCliCredential(options);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Creates a {@link AzurePowerShellCredential} from the provided options.
|
|
131
|
-
* @param options - Options to configure the credential.
|
|
132
|
-
*
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
|
-
export function createDefaultAzurePowershellCredential(options = {}) {
|
|
136
|
-
return new AzurePowerShellCredential(options);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Creates an {@link EnvironmentCredential} from the provided options.
|
|
140
|
-
* @param options - Options to configure the credential.
|
|
141
|
-
*
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
export function createDefaultEnvironmentCredential(options = {}) {
|
|
145
|
-
return new EnvironmentCredential(options);
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=defaultAzureCredentialFunctions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultAzureCredentialFunctions.js","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredentialFunctions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAC3C,UAAyC,EAAE;IAE3C,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uCAAuC,CACrD,UAAyC,EAAE;IAE3C,OAAO,IAAI,0BAA0B,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sCAAsC,CACpD,UAIqC,EAAE;IAEvC,OAAO,CAAC,YAAY,KAAK;QACvB,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,GAAG;KACpB,CAAC;IACF,qFAAqF;IACrF,uEAAuE;IACvE,4EAA4E;IAC5E,OAAO,CAAC,gBAAgB,KAAK,IAAI,CAAC;IAClC,MAAM,uBAAuB,GAC1B,OAAiD,EAAE,uBAAuB;QAC3E,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC9B,MAAM,wBAAwB,GAC3B,OAAiD,EAAE,wBAAwB;QAC5E,uBAAuB,CAAC;IAC1B,MAAM,iBAAiB,GAAI,OAAmD;QAC5E,EAAE,yBAAyB,CAAC;IAC9B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC5D,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAClE,IAAI,iBAAiB,EAAE,CAAC;QACtB,MAAM,gCAAgC,GAA+C;YACnF,GAAG,OAAO;YACV,UAAU,EAAE,iBAAiB;SAC9B,CAAC;QACF,OAAO,IAAI,yBAAyB,CAAC,gCAAgC,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,YAAY,IAAI,wBAAwB,EAAE,CAAC;QAC7C,MAAM,iCAAiC,GAAkC;YACvE,GAAG,OAAO;YACV,QAAQ,EAAE,QAAQ;SACnB,CAAC;QAEF,OAAO,IAAI,yBAAyB,CAClC,wBAAwB,EACxB,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAED,IAAI,uBAAuB,EAAE,CAAC;QAC5B,MAAM,4BAA4B,GAA6C;YAC7E,GAAG,OAAO;YACV,QAAQ,EAAE,uBAAuB;SAClC,CAAC;QAEF,OAAO,IAAI,yBAAyB,CAAC,4BAA4B,CAAC,CAAC;IACrE,CAAC;IAED,2FAA2F;IAC3F,OAAO,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uCAAuC,CACrD,OAA+E;IAE/E,MAAM,uBAAuB,GAC1B,OAAiD,EAAE,uBAAuB;QAC3E,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC9B,MAAM,wBAAwB,GAC3B,OAAiD,EAAE,wBAAwB;QAC5E,uBAAuB,CAAC;IAC1B,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAC5D,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAClE,IAAI,YAAY,IAAI,wBAAwB,EAAE,CAAC;QAC7C,MAAM,iCAAiC,GAAsC;YAC3E,GAAG,OAAO;YACV,QAAQ;YACR,QAAQ,EAAE,wBAAwB;YAClC,aAAa,EAAE,YAAY;SAC5B,CAAC;QACF,OAAO,IAAI,0BAA0B,CAAC,iCAAiC,CAAC,CAAC;IAC3E,CAAC;IACD,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,mCAAmC,GAAsC;YAC7E,GAAG,OAAO;YACV,QAAQ;SACT,CAAC;QACF,OAAO,IAAI,0BAA0B,CAAC,mCAAmC,CAAC,CAAC;IAC7E,CAAC;IAED,2FAA2F;IAC3F,OAAO,IAAI,0BAA0B,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wCAAwC,CACtD,UAAyC,EAAE;IAE3C,OAAO,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC7C,UAAyC,EAAE;IAE3C,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sCAAsC,CACpD,UAAyC,EAAE;IAE3C,OAAO,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CAChD,UAAyC,EAAE;IAE3C,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type {\n DefaultAzureCredentialClientIdOptions,\n DefaultAzureCredentialOptions,\n DefaultAzureCredentialResourceIdOptions,\n} from \"./defaultAzureCredentialOptions.js\";\nimport { EnvironmentCredential } from \"./environmentCredential.js\";\nimport type {\n ManagedIdentityCredentialClientIdOptions,\n ManagedIdentityCredentialResourceIdOptions,\n} from \"./managedIdentityCredential/options.js\";\nimport { ManagedIdentityCredential } from \"./managedIdentityCredential/index.js\";\nimport { WorkloadIdentityCredential } from \"./workloadIdentityCredential.js\";\nimport { AzureDeveloperCliCredential } from \"./azureDeveloperCliCredential.js\";\nimport { AzureCliCredential } from \"./azureCliCredential.js\";\nimport { AzurePowerShellCredential } from \"./azurePowerShellCredential.js\";\nimport type { WorkloadIdentityCredentialOptions } from \"./workloadIdentityCredentialOptions.js\";\nimport { VisualStudioCodeCredential } from \"./visualStudioCodeCredential.js\";\nimport { BrokerCredential } from \"./brokerCredential.js\";\n\n/**\n * Creates a {@link BrokerCredential} instance with the provided options.\n * This credential uses the Windows Authentication Manager (WAM) broker for authentication.\n * It will only attempt to authenticate silently using the default broker account\n *\n * @param options - Options for configuring the credential.\n *\n * @internal\n */\nexport function createDefaultBrokerCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new BrokerCredential(options);\n}\n\n/**\n * Creates a {@link VisualStudioCodeCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultVisualStudioCodeCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new VisualStudioCodeCredential(options);\n}\n\n/**\n * Creates a {@link ManagedIdentityCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultManagedIdentityCredential(\n options: (\n | DefaultAzureCredentialOptions\n | DefaultAzureCredentialResourceIdOptions\n | DefaultAzureCredentialClientIdOptions\n ) & { sendProbeRequest?: boolean } = {},\n): TokenCredential {\n options.retryOptions ??= {\n maxRetries: 5,\n retryDelayInMs: 800,\n };\n // ManagedIdentityCredential inside DAC chain should send a probe request by default.\n // This is different from standalone ManagedIdentityCredential behavior\n // or when AZURE_TOKEN_CREDENTIALS is set to only ManagedIdentityCredential.\n options.sendProbeRequest ??= true;\n const managedIdentityClientId =\n (options as DefaultAzureCredentialClientIdOptions)?.managedIdentityClientId ??\n process.env.AZURE_CLIENT_ID;\n const workloadIdentityClientId =\n (options as DefaultAzureCredentialClientIdOptions)?.workloadIdentityClientId ??\n managedIdentityClientId;\n const managedResourceId = (options as DefaultAzureCredentialResourceIdOptions)\n ?.managedIdentityResourceId;\n const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;\n const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;\n if (managedResourceId) {\n const managedIdentityResourceIdOptions: ManagedIdentityCredentialResourceIdOptions = {\n ...options,\n resourceId: managedResourceId,\n };\n return new ManagedIdentityCredential(managedIdentityResourceIdOptions);\n }\n\n if (workloadFile && workloadIdentityClientId) {\n const workloadIdentityCredentialOptions: DefaultAzureCredentialOptions = {\n ...options,\n tenantId: tenantId,\n };\n\n return new ManagedIdentityCredential(\n workloadIdentityClientId,\n workloadIdentityCredentialOptions,\n );\n }\n\n if (managedIdentityClientId) {\n const managedIdentityClientOptions: ManagedIdentityCredentialClientIdOptions = {\n ...options,\n clientId: managedIdentityClientId,\n };\n\n return new ManagedIdentityCredential(managedIdentityClientOptions);\n }\n\n // We may be able to return a UnavailableCredential here, but that may be a breaking change\n return new ManagedIdentityCredential(options);\n}\n\n/**\n * Creates a {@link WorkloadIdentityCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultWorkloadIdentityCredential(\n options?: DefaultAzureCredentialOptions | DefaultAzureCredentialClientIdOptions,\n): TokenCredential {\n const managedIdentityClientId =\n (options as DefaultAzureCredentialClientIdOptions)?.managedIdentityClientId ??\n process.env.AZURE_CLIENT_ID;\n const workloadIdentityClientId =\n (options as DefaultAzureCredentialClientIdOptions)?.workloadIdentityClientId ??\n managedIdentityClientId;\n const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;\n const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;\n if (workloadFile && workloadIdentityClientId) {\n const workloadIdentityCredentialOptions: WorkloadIdentityCredentialOptions = {\n ...options,\n tenantId,\n clientId: workloadIdentityClientId,\n tokenFilePath: workloadFile,\n };\n return new WorkloadIdentityCredential(workloadIdentityCredentialOptions);\n }\n if (tenantId) {\n const workloadIdentityClientTenantOptions: WorkloadIdentityCredentialOptions = {\n ...options,\n tenantId,\n };\n return new WorkloadIdentityCredential(workloadIdentityClientTenantOptions);\n }\n\n // We may be able to return a UnavailableCredential here, but that may be a breaking change\n return new WorkloadIdentityCredential(options);\n}\n\n/**\n * Creates a {@link AzureDeveloperCliCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultAzureDeveloperCliCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new AzureDeveloperCliCredential(options);\n}\n\n/**\n * Creates a {@link AzureCliCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultAzureCliCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new AzureCliCredential(options);\n}\n\n/**\n * Creates a {@link AzurePowerShellCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultAzurePowershellCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new AzurePowerShellCredential(options);\n}\n\n/**\n * Creates an {@link EnvironmentCredential} from the provided options.\n * @param options - Options to configure the credential.\n *\n * @internal\n */\nexport function createDefaultEnvironmentCredential(\n options: DefaultAzureCredentialOptions = {},\n): TokenCredential {\n return new EnvironmentCredential(options);\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* Enables authentication to Microsoft Entra ID using a device code
|
|
4
|
-
* that the user can enter into https://microsoft.com/devicelogin.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DeviceCodeCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=deviceCodeCredential-browser.d.mts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
-
/**
|
|
3
|
-
* Enables authentication to Microsoft Entra ID using client secret
|
|
4
|
-
* details configured in environment variables
|
|
5
|
-
*/
|
|
6
|
-
export declare class EnvironmentCredential implements TokenCredential {
|
|
7
|
-
/**
|
|
8
|
-
* Only available in Node.js
|
|
9
|
-
*/
|
|
10
|
-
constructor();
|
|
11
|
-
getToken(): Promise<AccessToken | null>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=environmentCredential-browser.d.mts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { GetTokenOptions } from "@azure/core-auth";
|
|
2
|
-
import type { IdentityClient } from "../../client/identityClient.js";
|
|
3
|
-
/**
|
|
4
|
-
* Defines how to determine whether the Azure IMDS MSI is available.
|
|
5
|
-
*
|
|
6
|
-
* Actually getting the token once we determine IMDS is available is handled by MSAL.
|
|
7
|
-
*/
|
|
8
|
-
export declare const imdsMsi: {
|
|
9
|
-
name: string;
|
|
10
|
-
isAvailable(options: {
|
|
11
|
-
scopes: string | string[];
|
|
12
|
-
identityClient?: IdentityClient;
|
|
13
|
-
clientId?: string;
|
|
14
|
-
resourceId?: string;
|
|
15
|
-
getTokenOptions?: GetTokenOptions;
|
|
16
|
-
}): Promise<boolean>;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=imdsMsi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imdsMsi.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsMsi.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAmCrE;;;;GAIG;AACH,eAAO,MAAM,OAAO;;yBAES;QACzB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,eAAe,CAAC;KACnC,GAAG,OAAO,CAAC,OAAO,CAAC;CAgErB,CAAC"}
|