@azure/identity 4.13.1 → 4.13.3

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.
Files changed (562) hide show
  1. package/dist/browser/constants.d.ts +1 -1
  2. package/dist/browser/constants.js +1 -1
  3. package/dist/browser/constants.js.map +1 -1
  4. package/dist/browser/credentials/{authorizationCodeCredential.d.ts → authorizationCodeCredential-browser.d.mts} +2 -2
  5. package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +1 -1
  6. package/dist/browser/credentials/{authorizationCodeCredential.js → authorizationCodeCredential-browser.mjs} +1 -1
  7. package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +1 -1
  8. package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -1
  9. package/dist/browser/credentials/authorizationCodeCredentialOptions.js.map +1 -1
  10. package/dist/browser/credentials/azureCliCredential-browser.d.mts +14 -0
  11. package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +1 -1
  12. package/dist/browser/credentials/{azureCliCredential.js → azureCliCredential-browser.mjs} +2 -2
  13. package/dist/browser/credentials/azureCliCredential-browser.mjs.map +1 -1
  14. package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts +14 -0
  15. package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +1 -1
  16. package/dist/browser/credentials/{azureDeveloperCliCredential.js → azureDeveloperCliCredential-browser.mjs} +2 -2
  17. package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +1 -1
  18. package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts +14 -0
  19. package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +1 -1
  20. package/dist/browser/credentials/{azurePipelinesCredential.js → azurePipelinesCredential-browser.mjs} +2 -2
  21. package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +1 -1
  22. package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -1
  23. package/dist/browser/credentials/azurePipelinesCredentialOptions.js.map +1 -1
  24. package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts +13 -0
  25. package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +1 -1
  26. package/dist/browser/credentials/{azurePowerShellCredential.js → azurePowerShellCredential-browser.mjs} +2 -2
  27. package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +1 -1
  28. package/dist/browser/credentials/clientAssertionCredential-browser.d.mts +13 -0
  29. package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +1 -1
  30. package/dist/browser/credentials/{clientAssertionCredential.js → clientAssertionCredential-browser.mjs} +2 -2
  31. package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +1 -1
  32. package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map +1 -1
  33. package/dist/browser/credentials/clientAssertionCredentialOptions.js.map +1 -1
  34. package/dist/browser/credentials/clientCertificateCredential-browser.d.mts +15 -0
  35. package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +1 -1
  36. package/dist/browser/credentials/{clientCertificateCredential.js → clientCertificateCredential-browser.mjs} +2 -2
  37. package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +1 -1
  38. package/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map +1 -1
  39. package/dist/browser/credentials/clientCertificateCredentialModels.js.map +1 -1
  40. package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map +1 -1
  41. package/dist/browser/credentials/clientCertificateCredentialOptions.js.map +1 -1
  42. package/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map +1 -1
  43. package/dist/browser/credentials/clientSecretCredentialOptions.js.map +1 -1
  44. package/dist/browser/credentials/{defaultAzureCredential.d.ts → defaultAzureCredential-browser.d.mts} +2 -2
  45. package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +1 -1
  46. package/dist/browser/credentials/{defaultAzureCredential.js → defaultAzureCredential-browser.mjs} +1 -1
  47. package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +1 -1
  48. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts.map +1 -1
  49. package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +1 -1
  50. package/dist/browser/credentials/deviceCodeCredential-browser.d.mts +14 -0
  51. package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +1 -1
  52. package/dist/browser/credentials/{deviceCodeCredential.js → deviceCodeCredential-browser.mjs} +2 -2
  53. package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +1 -1
  54. package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts.map +1 -1
  55. package/dist/browser/credentials/deviceCodeCredentialOptions.js.map +1 -1
  56. package/dist/browser/credentials/environmentCredential-browser.d.mts +14 -0
  57. package/dist/browser/credentials/environmentCredential-browser.d.mts.map +1 -1
  58. package/dist/browser/credentials/{environmentCredential.js → environmentCredential-browser.mjs} +2 -2
  59. package/dist/browser/credentials/environmentCredential-browser.mjs.map +1 -1
  60. package/dist/browser/credentials/environmentCredentialOptions.d.ts.map +1 -1
  61. package/dist/browser/credentials/environmentCredentialOptions.js.map +1 -1
  62. package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -1
  63. package/dist/browser/credentials/interactiveBrowserCredentialOptions.js.map +1 -1
  64. package/dist/browser/credentials/interactiveCredentialOptions.d.ts.map +1 -1
  65. package/dist/browser/credentials/interactiveCredentialOptions.js.map +1 -1
  66. package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts +11 -0
  67. package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +1 -1
  68. package/dist/browser/credentials/managedIdentityCredential/{index.js → index-browser.mjs} +2 -2
  69. package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +1 -1
  70. package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts +13 -0
  71. package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +1 -1
  72. package/dist/browser/credentials/{onBehalfOfCredential.js → onBehalfOfCredential-browser.mjs} +2 -2
  73. package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +1 -1
  74. package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +1 -1
  75. package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -1
  76. package/dist/browser/credentials/usernamePasswordCredentialOptions.js.map +1 -1
  77. package/dist/browser/credentials/{visualStudioCodeCredential.d.ts → visualStudioCodeCredential-browser.d.mts} +4 -3
  78. package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +1 -1
  79. package/dist/browser/credentials/{visualStudioCodeCredential.js → visualStudioCodeCredential-browser.mjs} +2 -2
  80. package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +1 -1
  81. package/dist/browser/credentials/{workloadIdentityCredential.d.ts → workloadIdentityCredential-browser.d.mts} +4 -3
  82. package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +1 -1
  83. package/dist/browser/credentials/{workloadIdentityCredential.js → workloadIdentityCredential-browser.mjs} +2 -2
  84. package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +1 -1
  85. package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -1
  86. package/dist/browser/credentials/workloadIdentityCredentialOptions.js.map +1 -1
  87. package/dist/browser/errors.d.ts.map +1 -1
  88. package/dist/browser/errors.js +1 -4
  89. package/dist/browser/errors.js.map +1 -1
  90. package/dist/browser/index.d.ts +51 -51
  91. package/dist/browser/index.d.ts.map +1 -1
  92. package/dist/browser/index.js +19 -19
  93. package/dist/browser/index.js.map +1 -1
  94. package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +1 -1
  95. package/dist/browser/msal/utils.d.ts +1 -1
  96. package/dist/browser/msal/utils.d.ts.map +1 -1
  97. package/dist/browser/msal/utils.js +1 -1
  98. package/dist/browser/msal/utils.js.map +1 -1
  99. package/dist/browser/package.json +6 -1
  100. package/dist/browser/util/tenantIdUtils.d.ts +1 -1
  101. package/dist/browser/util/tenantIdUtils.d.ts.map +1 -1
  102. package/dist/browser/util/tenantIdUtils.js +1 -1
  103. package/dist/browser/util/tenantIdUtils.js.map +1 -1
  104. package/dist/commonjs/client/identityClient.js +263 -252
  105. package/dist/commonjs/client/identityClient.js.map +7 -1
  106. package/dist/commonjs/constants.d.ts +1 -1
  107. package/dist/commonjs/constants.js +61 -78
  108. package/dist/commonjs/constants.js.map +7 -1
  109. package/dist/commonjs/credentials/authorityValidationOptions.js +16 -5
  110. package/dist/commonjs/credentials/authorityValidationOptions.js.map +7 -1
  111. package/dist/commonjs/credentials/authorizationCodeCredential.js +99 -75
  112. package/dist/commonjs/credentials/authorizationCodeCredential.js.map +7 -1
  113. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -1
  114. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +16 -5
  115. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +7 -1
  116. package/dist/commonjs/credentials/azureCliCredential.d.ts.map +1 -1
  117. package/dist/commonjs/credentials/azureCliCredential.js +228 -214
  118. package/dist/commonjs/credentials/azureCliCredential.js.map +7 -1
  119. package/dist/commonjs/credentials/azureCliCredentialOptions.js +16 -5
  120. package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +7 -1
  121. package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
  122. package/dist/commonjs/credentials/azureDeveloperCliCredential.js +192 -202
  123. package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +7 -1
  124. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +16 -5
  125. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +7 -1
  126. package/dist/commonjs/credentials/azurePipelinesCredential.d.ts.map +1 -1
  127. package/dist/commonjs/credentials/azurePipelinesCredential.js +178 -134
  128. package/dist/commonjs/credentials/azurePipelinesCredential.js.map +7 -1
  129. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -1
  130. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +16 -5
  131. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +7 -1
  132. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts +10 -0
  133. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +1 -1
  134. package/dist/commonjs/credentials/azurePowerShellCredential.js +231 -208
  135. package/dist/commonjs/credentials/azurePowerShellCredential.js.map +7 -1
  136. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +16 -5
  137. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +7 -1
  138. package/dist/commonjs/credentials/brokerAuthOptions.js +16 -3
  139. package/dist/commonjs/credentials/brokerAuthOptions.js.map +7 -1
  140. package/dist/commonjs/credentials/brokerCredential.d.ts +2 -2
  141. package/dist/commonjs/credentials/brokerCredential.d.ts.map +1 -1
  142. package/dist/commonjs/credentials/brokerCredential.js +104 -71
  143. package/dist/commonjs/credentials/brokerCredential.js.map +7 -1
  144. package/dist/commonjs/credentials/browserCustomizationOptions.js +16 -5
  145. package/dist/commonjs/credentials/browserCustomizationOptions.js.map +7 -1
  146. package/dist/commonjs/credentials/chainedTokenCredential.js +113 -93
  147. package/dist/commonjs/credentials/chainedTokenCredential.js.map +7 -1
  148. package/dist/commonjs/credentials/clientAssertionCredential.js +102 -64
  149. package/dist/commonjs/credentials/clientAssertionCredential.js.map +7 -1
  150. package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts.map +1 -1
  151. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +16 -5
  152. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +7 -1
  153. package/dist/commonjs/credentials/clientCertificateCredential.js +139 -134
  154. package/dist/commonjs/credentials/clientCertificateCredential.js.map +7 -1
  155. package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts.map +1 -1
  156. package/dist/commonjs/credentials/clientCertificateCredentialModels.js +16 -5
  157. package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +7 -1
  158. package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts.map +1 -1
  159. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +16 -5
  160. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +7 -1
  161. package/dist/commonjs/credentials/clientSecretCredential.js +97 -68
  162. package/dist/commonjs/credentials/clientSecretCredential.js.map +7 -1
  163. package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts.map +1 -1
  164. package/dist/commonjs/credentials/clientSecretCredentialOptions.js +16 -5
  165. package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +7 -1
  166. package/dist/commonjs/credentials/credentialPersistenceOptions.js +16 -5
  167. package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +7 -1
  168. package/dist/commonjs/credentials/defaultAzureCredential.d.ts.map +1 -1
  169. package/dist/commonjs/credentials/defaultAzureCredential.js +124 -159
  170. package/dist/commonjs/credentials/defaultAzureCredential.js.map +7 -1
  171. package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js +110 -140
  172. package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js.map +7 -1
  173. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts.map +1 -1
  174. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +16 -5
  175. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +7 -1
  176. package/dist/commonjs/credentials/deviceCodeCredential.js +133 -104
  177. package/dist/commonjs/credentials/deviceCodeCredential.js.map +7 -1
  178. package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts.map +1 -1
  179. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +16 -5
  180. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +7 -1
  181. package/dist/commonjs/credentials/environmentCredential.d.ts.map +1 -1
  182. package/dist/commonjs/credentials/environmentCredential.js +157 -123
  183. package/dist/commonjs/credentials/environmentCredential.js.map +7 -1
  184. package/dist/commonjs/credentials/environmentCredentialOptions.d.ts.map +1 -1
  185. package/dist/commonjs/credentials/environmentCredentialOptions.js +16 -5
  186. package/dist/commonjs/credentials/environmentCredentialOptions.js.map +7 -1
  187. package/dist/commonjs/credentials/interactiveBrowserCredential.js +145 -108
  188. package/dist/commonjs/credentials/interactiveBrowserCredential.js.map +7 -1
  189. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -1
  190. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +16 -5
  191. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +7 -1
  192. package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts.map +1 -1
  193. package/dist/commonjs/credentials/interactiveCredentialOptions.js +16 -5
  194. package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +7 -1
  195. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +92 -91
  196. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +7 -1
  197. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +51 -44
  198. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +7 -1
  199. package/dist/commonjs/credentials/managedIdentityCredential/index.js +256 -242
  200. package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +7 -1
  201. package/dist/commonjs/credentials/managedIdentityCredential/models.js +16 -5
  202. package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +7 -1
  203. package/dist/commonjs/credentials/managedIdentityCredential/options.js +16 -5
  204. package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +7 -1
  205. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +56 -39
  206. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +7 -1
  207. package/dist/commonjs/credentials/managedIdentityCredential/utils.js +79 -75
  208. package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +7 -1
  209. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +16 -5
  210. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +7 -1
  211. package/dist/commonjs/credentials/onBehalfOfCredential.js +169 -127
  212. package/dist/commonjs/credentials/onBehalfOfCredential.js.map +7 -1
  213. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +16 -5
  214. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +7 -1
  215. package/dist/commonjs/credentials/usernamePasswordCredential.js +113 -76
  216. package/dist/commonjs/credentials/usernamePasswordCredential.js.map +7 -1
  217. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -1
  218. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +16 -5
  219. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +7 -1
  220. package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts.map +1 -1
  221. package/dist/commonjs/credentials/visualStudioCodeCredential.js +144 -132
  222. package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +7 -1
  223. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +16 -5
  224. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +7 -1
  225. package/dist/commonjs/credentials/workloadIdentityCredential.js +123 -109
  226. package/dist/commonjs/credentials/workloadIdentityCredential.js.map +7 -1
  227. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -1
  228. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +16 -5
  229. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +7 -1
  230. package/dist/commonjs/errors.d.ts.map +1 -1
  231. package/dist/commonjs/errors.js +128 -132
  232. package/dist/commonjs/errors.js.map +7 -1
  233. package/dist/commonjs/index.d.ts +33 -33
  234. package/dist/commonjs/index.d.ts.map +1 -1
  235. package/dist/commonjs/index.js +115 -67
  236. package/dist/commonjs/index.js.map +7 -1
  237. package/dist/commonjs/msal/msal.js +38 -9
  238. package/dist/commonjs/msal/msal.js.map +7 -1
  239. package/dist/commonjs/msal/nodeFlows/brokerOptions.js +16 -3
  240. package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +7 -1
  241. package/dist/commonjs/msal/nodeFlows/msalClient.js +449 -478
  242. package/dist/commonjs/msal/nodeFlows/msalClient.js.map +7 -1
  243. package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts.map +1 -1
  244. package/dist/commonjs/msal/nodeFlows/msalPlugins.js +140 -147
  245. package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +7 -1
  246. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +16 -5
  247. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +7 -1
  248. package/dist/commonjs/msal/types.js +16 -5
  249. package/dist/commonjs/msal/types.js.map +7 -1
  250. package/dist/commonjs/msal/utils.d.ts.map +1 -1
  251. package/dist/commonjs/msal/utils.js +179 -224
  252. package/dist/commonjs/msal/utils.js.map +7 -1
  253. package/dist/commonjs/package.json +6 -1
  254. package/dist/commonjs/plugins/consumer.js +32 -40
  255. package/dist/commonjs/plugins/consumer.js.map +7 -1
  256. package/dist/commonjs/plugins/provider.js +16 -5
  257. package/dist/commonjs/plugins/provider.js.map +7 -1
  258. package/dist/commonjs/regionalAuthority.js +93 -141
  259. package/dist/commonjs/regionalAuthority.js.map +7 -1
  260. package/dist/commonjs/tokenCredentialOptions.js +16 -5
  261. package/dist/commonjs/tokenCredentialOptions.js.map +7 -1
  262. package/dist/commonjs/tokenProvider.js +52 -52
  263. package/dist/commonjs/tokenProvider.js.map +7 -1
  264. package/dist/commonjs/tsdoc-metadata.json +1 -1
  265. package/dist/commonjs/util/identityTokenEndpoint.js +32 -12
  266. package/dist/commonjs/util/identityTokenEndpoint.js.map +7 -1
  267. package/dist/commonjs/util/logging.js +91 -97
  268. package/dist/commonjs/util/logging.js.map +7 -1
  269. package/dist/commonjs/util/processMultiTenantRequest.js +43 -33
  270. package/dist/commonjs/util/processMultiTenantRequest.js.map +7 -1
  271. package/dist/commonjs/util/processUtils.d.ts +14 -3
  272. package/dist/commonjs/util/processUtils.d.ts.map +1 -1
  273. package/dist/commonjs/util/processUtils.js +67 -35
  274. package/dist/commonjs/util/processUtils.js.map +7 -1
  275. package/dist/commonjs/util/scopeUtils.js +39 -28
  276. package/dist/commonjs/util/scopeUtils.js.map +7 -1
  277. package/dist/commonjs/util/subscriptionUtils.js +35 -17
  278. package/dist/commonjs/util/subscriptionUtils.js.map +7 -1
  279. package/dist/commonjs/util/tenantIdUtils.d.ts.map +1 -1
  280. package/dist/commonjs/util/tenantIdUtils.js +61 -45
  281. package/dist/commonjs/util/tenantIdUtils.js.map +7 -1
  282. package/dist/commonjs/util/tracing.js +33 -16
  283. package/dist/commonjs/util/tracing.js.map +7 -1
  284. package/dist/esm/constants.d.ts +1 -1
  285. package/dist/esm/constants.js +1 -1
  286. package/dist/esm/constants.js.map +1 -1
  287. package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -1
  288. package/dist/esm/credentials/authorizationCodeCredentialOptions.js.map +1 -1
  289. package/dist/esm/credentials/azureCliCredential.d.ts.map +1 -1
  290. package/dist/esm/credentials/azureCliCredential.js +21 -24
  291. package/dist/esm/credentials/azureCliCredential.js.map +1 -1
  292. package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
  293. package/dist/esm/credentials/azureDeveloperCliCredential.js +16 -24
  294. package/dist/esm/credentials/azureDeveloperCliCredential.js.map +1 -1
  295. package/dist/esm/credentials/azurePipelinesCredential.d.ts.map +1 -1
  296. package/dist/esm/credentials/azurePipelinesCredential.js +16 -6
  297. package/dist/esm/credentials/azurePipelinesCredential.js.map +1 -1
  298. package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -1
  299. package/dist/esm/credentials/azurePipelinesCredentialOptions.js.map +1 -1
  300. package/dist/esm/credentials/azurePowerShellCredential.d.ts +10 -0
  301. package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +1 -1
  302. package/dist/esm/credentials/azurePowerShellCredential.js +29 -7
  303. package/dist/esm/credentials/azurePowerShellCredential.js.map +1 -1
  304. package/dist/esm/credentials/brokerCredential.d.ts +2 -2
  305. package/dist/esm/credentials/brokerCredential.d.ts.map +1 -1
  306. package/dist/esm/credentials/brokerCredential.js.map +1 -1
  307. package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts.map +1 -1
  308. package/dist/esm/credentials/clientAssertionCredentialOptions.js.map +1 -1
  309. package/dist/esm/credentials/clientCertificateCredentialModels.d.ts.map +1 -1
  310. package/dist/esm/credentials/clientCertificateCredentialModels.js.map +1 -1
  311. package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts.map +1 -1
  312. package/dist/esm/credentials/clientCertificateCredentialOptions.js.map +1 -1
  313. package/dist/esm/credentials/clientSecretCredentialOptions.d.ts.map +1 -1
  314. package/dist/esm/credentials/clientSecretCredentialOptions.js.map +1 -1
  315. package/dist/esm/credentials/defaultAzureCredential.d.ts.map +1 -1
  316. package/dist/esm/credentials/defaultAzureCredential.js +5 -2
  317. package/dist/esm/credentials/defaultAzureCredential.js.map +1 -1
  318. package/dist/esm/credentials/defaultAzureCredentialFunctions.js.map +1 -1
  319. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts.map +1 -1
  320. package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +1 -1
  321. package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts.map +1 -1
  322. package/dist/esm/credentials/deviceCodeCredentialOptions.js.map +1 -1
  323. package/dist/esm/credentials/environmentCredential.d.ts.map +1 -1
  324. package/dist/esm/credentials/environmentCredential.js.map +1 -1
  325. package/dist/esm/credentials/environmentCredentialOptions.d.ts.map +1 -1
  326. package/dist/esm/credentials/environmentCredentialOptions.js.map +1 -1
  327. package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -1
  328. package/dist/esm/credentials/interactiveBrowserCredentialOptions.js.map +1 -1
  329. package/dist/esm/credentials/interactiveCredentialOptions.d.ts.map +1 -1
  330. package/dist/esm/credentials/interactiveCredentialOptions.js.map +1 -1
  331. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -1
  332. package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -1
  333. package/dist/esm/credentials/usernamePasswordCredentialOptions.js.map +1 -1
  334. package/dist/esm/credentials/visualStudioCodeCredential.d.ts.map +1 -1
  335. package/dist/esm/credentials/visualStudioCodeCredential.js.map +1 -1
  336. package/dist/esm/credentials/workloadIdentityCredential.js.map +1 -1
  337. package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -1
  338. package/dist/esm/credentials/workloadIdentityCredentialOptions.js.map +1 -1
  339. package/dist/esm/errors.d.ts.map +1 -1
  340. package/dist/esm/errors.js +1 -4
  341. package/dist/esm/errors.js.map +1 -1
  342. package/dist/esm/index.d.ts +33 -33
  343. package/dist/esm/index.d.ts.map +1 -1
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/msal/nodeFlows/msalClient.js +1 -1
  346. package/dist/esm/msal/nodeFlows/msalClient.js.map +1 -1
  347. package/dist/esm/msal/nodeFlows/msalPlugins.d.ts.map +1 -1
  348. package/dist/esm/msal/nodeFlows/msalPlugins.js.map +1 -1
  349. package/dist/esm/msal/utils.d.ts.map +1 -1
  350. package/dist/esm/msal/utils.js.map +1 -1
  351. package/dist/esm/package.json +6 -1
  352. package/dist/esm/util/processUtils.d.ts +14 -3
  353. package/dist/esm/util/processUtils.d.ts.map +1 -1
  354. package/dist/esm/util/processUtils.js +36 -19
  355. package/dist/esm/util/processUtils.js.map +1 -1
  356. package/dist/esm/util/tenantIdUtils.d.ts.map +1 -1
  357. package/dist/esm/util/tenantIdUtils.js.map +1 -1
  358. package/dist/workerd/constants.d.ts +1 -1
  359. package/dist/workerd/constants.js +1 -1
  360. package/dist/workerd/constants.js.map +1 -1
  361. package/dist/workerd/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -1
  362. package/dist/workerd/credentials/authorizationCodeCredentialOptions.js.map +1 -1
  363. package/dist/workerd/credentials/azureCliCredential.d.ts.map +1 -1
  364. package/dist/workerd/credentials/azureCliCredential.js +21 -24
  365. package/dist/workerd/credentials/azureCliCredential.js.map +1 -1
  366. package/dist/workerd/credentials/azureDeveloperCliCredential.d.ts.map +1 -1
  367. package/dist/workerd/credentials/azureDeveloperCliCredential.js +16 -24
  368. package/dist/workerd/credentials/azureDeveloperCliCredential.js.map +1 -1
  369. package/dist/workerd/credentials/azurePipelinesCredential.d.ts.map +1 -1
  370. package/dist/workerd/credentials/azurePipelinesCredential.js +16 -6
  371. package/dist/workerd/credentials/azurePipelinesCredential.js.map +1 -1
  372. package/dist/workerd/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -1
  373. package/dist/workerd/credentials/azurePipelinesCredentialOptions.js.map +1 -1
  374. package/dist/workerd/credentials/azurePowerShellCredential.d.ts +10 -0
  375. package/dist/workerd/credentials/azurePowerShellCredential.d.ts.map +1 -1
  376. package/dist/workerd/credentials/azurePowerShellCredential.js +29 -7
  377. package/dist/workerd/credentials/azurePowerShellCredential.js.map +1 -1
  378. package/dist/workerd/credentials/brokerCredential.d.ts +2 -2
  379. package/dist/workerd/credentials/brokerCredential.d.ts.map +1 -1
  380. package/dist/workerd/credentials/brokerCredential.js.map +1 -1
  381. package/dist/workerd/credentials/clientAssertionCredentialOptions.d.ts.map +1 -1
  382. package/dist/workerd/credentials/clientAssertionCredentialOptions.js.map +1 -1
  383. package/dist/workerd/credentials/clientCertificateCredentialModels.d.ts.map +1 -1
  384. package/dist/workerd/credentials/clientCertificateCredentialModels.js.map +1 -1
  385. package/dist/workerd/credentials/clientCertificateCredentialOptions.d.ts.map +1 -1
  386. package/dist/workerd/credentials/clientCertificateCredentialOptions.js.map +1 -1
  387. package/dist/workerd/credentials/clientSecretCredentialOptions.d.ts.map +1 -1
  388. package/dist/workerd/credentials/clientSecretCredentialOptions.js.map +1 -1
  389. package/dist/workerd/credentials/defaultAzureCredential.d.ts.map +1 -1
  390. package/dist/workerd/credentials/defaultAzureCredential.js +5 -2
  391. package/dist/workerd/credentials/defaultAzureCredential.js.map +1 -1
  392. package/dist/workerd/credentials/defaultAzureCredentialFunctions.js.map +1 -1
  393. package/dist/workerd/credentials/defaultAzureCredentialOptions.d.ts.map +1 -1
  394. package/dist/workerd/credentials/defaultAzureCredentialOptions.js.map +1 -1
  395. package/dist/workerd/credentials/deviceCodeCredentialOptions.d.ts.map +1 -1
  396. package/dist/workerd/credentials/deviceCodeCredentialOptions.js.map +1 -1
  397. package/dist/workerd/credentials/environmentCredential.d.ts.map +1 -1
  398. package/dist/workerd/credentials/environmentCredential.js.map +1 -1
  399. package/dist/workerd/credentials/environmentCredentialOptions.d.ts.map +1 -1
  400. package/dist/workerd/credentials/environmentCredentialOptions.js.map +1 -1
  401. package/dist/workerd/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -1
  402. package/dist/workerd/credentials/interactiveBrowserCredentialOptions.js.map +1 -1
  403. package/dist/workerd/credentials/interactiveCredentialOptions.d.ts.map +1 -1
  404. package/dist/workerd/credentials/interactiveCredentialOptions.js.map +1 -1
  405. package/dist/workerd/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -1
  406. package/dist/workerd/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -1
  407. package/dist/workerd/credentials/usernamePasswordCredentialOptions.js.map +1 -1
  408. package/dist/workerd/credentials/visualStudioCodeCredential.d.ts.map +1 -1
  409. package/dist/workerd/credentials/visualStudioCodeCredential.js.map +1 -1
  410. package/dist/workerd/credentials/workloadIdentityCredential.js.map +1 -1
  411. package/dist/workerd/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -1
  412. package/dist/workerd/credentials/workloadIdentityCredentialOptions.js.map +1 -1
  413. package/dist/workerd/errors.d.ts.map +1 -1
  414. package/dist/workerd/errors.js +1 -4
  415. package/dist/workerd/errors.js.map +1 -1
  416. package/dist/workerd/index.d.ts +33 -33
  417. package/dist/workerd/index.d.ts.map +1 -1
  418. package/dist/workerd/index.js.map +1 -1
  419. package/dist/workerd/msal/nodeFlows/msalClient.js +1 -1
  420. package/dist/workerd/msal/nodeFlows/msalClient.js.map +1 -1
  421. package/dist/workerd/msal/nodeFlows/msalPlugins.d.ts.map +1 -1
  422. package/dist/workerd/msal/nodeFlows/msalPlugins.js.map +1 -1
  423. package/dist/workerd/msal/utils.d.ts.map +1 -1
  424. package/dist/workerd/msal/utils.js.map +1 -1
  425. package/dist/workerd/package.json +6 -1
  426. package/dist/workerd/util/processUtils.d.ts +14 -3
  427. package/dist/workerd/util/processUtils.d.ts.map +1 -1
  428. package/dist/workerd/util/processUtils.js +36 -19
  429. package/dist/workerd/util/processUtils.js.map +1 -1
  430. package/dist/workerd/util/tenantIdUtils.d.ts.map +1 -1
  431. package/dist/workerd/util/tenantIdUtils.js.map +1 -1
  432. package/package.json +37 -39
  433. package/dist/browser/credentials/azureCliCredential.d.ts +0 -13
  434. package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +0 -13
  435. package/dist/browser/credentials/azurePipelinesCredential.d.ts +0 -13
  436. package/dist/browser/credentials/azurePowerShellCredential.d.ts +0 -12
  437. package/dist/browser/credentials/brokerCredential.d.ts +0 -35
  438. package/dist/browser/credentials/brokerCredential.d.ts.map +0 -1
  439. package/dist/browser/credentials/brokerCredential.js +0 -69
  440. package/dist/browser/credentials/brokerCredential.js.map +0 -1
  441. package/dist/browser/credentials/clientAssertionCredential.d.ts +0 -12
  442. package/dist/browser/credentials/clientCertificateCredential.d.ts +0 -13
  443. package/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts +0 -64
  444. package/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts.map +0 -1
  445. package/dist/browser/credentials/defaultAzureCredentialFunctions.js +0 -147
  446. package/dist/browser/credentials/defaultAzureCredentialFunctions.js.map +0 -1
  447. package/dist/browser/credentials/deviceCodeCredential.d.ts +0 -13
  448. package/dist/browser/credentials/environmentCredential.d.ts +0 -13
  449. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
  450. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
  451. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +0 -97
  452. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
  453. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -13
  454. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
  455. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -43
  456. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
  457. package/dist/browser/credentials/managedIdentityCredential/index.d.ts +0 -6
  458. package/dist/browser/credentials/managedIdentityCredential/models.d.ts +0 -24
  459. package/dist/browser/credentials/managedIdentityCredential/models.d.ts.map +0 -1
  460. package/dist/browser/credentials/managedIdentityCredential/models.js +0 -4
  461. package/dist/browser/credentials/managedIdentityCredential/models.js.map +0 -1
  462. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
  463. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
  464. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -38
  465. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
  466. package/dist/browser/credentials/onBehalfOfCredential.d.ts +0 -12
  467. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
  468. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  469. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.js +0 -4
  470. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  471. package/dist/browser/msal/nodeFlows/msalClient.d.ts +0 -199
  472. package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +0 -1
  473. package/dist/browser/msal/nodeFlows/msalClient.js +0 -499
  474. package/dist/browser/msal/nodeFlows/msalClient.js.map +0 -1
  475. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +0 -109
  476. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
  477. package/dist/browser/msal/nodeFlows/msalPlugins.js +0 -160
  478. package/dist/browser/msal/nodeFlows/msalPlugins.js.map +0 -1
  479. package/dist/browser/regionalAuthority.d.ts +0 -122
  480. package/dist/browser/regionalAuthority.d.ts.map +0 -1
  481. package/dist/browser/regionalAuthority.js +0 -139
  482. package/dist/browser/regionalAuthority.js.map +0 -1
  483. package/dist/browser/util/authHostEnv-browser.d.mts +0 -4
  484. package/dist/browser/util/authHostEnv-browser.d.mts.map +0 -1
  485. package/dist/browser/util/authHostEnv-browser.mjs +0 -7
  486. package/dist/browser/util/authHostEnv-browser.mjs.map +0 -1
  487. package/dist/browser/util/processUtils.d.ts +0 -13
  488. package/dist/browser/util/processUtils.d.ts.map +0 -1
  489. package/dist/browser/util/processUtils.js +0 -32
  490. package/dist/browser/util/processUtils.js.map +0 -1
  491. package/dist/browser/util/subscriptionUtils.d.ts +0 -6
  492. package/dist/browser/util/subscriptionUtils.d.ts.map +0 -1
  493. package/dist/browser/util/subscriptionUtils.js +0 -16
  494. package/dist/browser/util/subscriptionUtils.js.map +0 -1
  495. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
  496. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  497. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +0 -5
  498. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  499. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
  500. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  501. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +0 -264
  502. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  503. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
  504. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
  505. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.js +0 -5
  506. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.js.map +0 -1
  507. package/dist/commonjs/msal/credentials.d.ts +0 -52
  508. package/dist/commonjs/msal/credentials.d.ts.map +0 -1
  509. package/dist/commonjs/msal/credentials.js +0 -5
  510. package/dist/commonjs/msal/credentials.js.map +0 -1
  511. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
  512. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  513. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js +0 -4
  514. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  515. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
  516. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  517. package/dist/esm/msal/browserFlows/msalBrowserCommon.js +0 -261
  518. package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  519. package/dist/esm/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
  520. package/dist/esm/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
  521. package/dist/esm/msal/browserFlows/msalBrowserOptions.js +0 -4
  522. package/dist/esm/msal/browserFlows/msalBrowserOptions.js.map +0 -1
  523. package/dist/esm/msal/credentials.d.ts +0 -52
  524. package/dist/esm/msal/credentials.d.ts.map +0 -1
  525. package/dist/esm/msal/credentials.js +0 -4
  526. package/dist/esm/msal/credentials.js.map +0 -1
  527. package/dist/esm/util/authHostEnv-browser.d.mts +0 -4
  528. package/dist/esm/util/authHostEnv-browser.d.mts.map +0 -1
  529. package/dist/esm/util/authHostEnv-browser.mjs +0 -7
  530. package/dist/esm/util/authHostEnv-browser.mjs.map +0 -1
  531. package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -12
  532. package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  533. package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.js +0 -4
  534. package/dist/workerd/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  535. package/dist/workerd/msal/browserFlows/msalBrowserCommon.d.ts +0 -19
  536. package/dist/workerd/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  537. package/dist/workerd/msal/browserFlows/msalBrowserCommon.js +0 -261
  538. package/dist/workerd/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  539. package/dist/workerd/msal/browserFlows/msalBrowserOptions.d.ts +0 -87
  540. package/dist/workerd/msal/browserFlows/msalBrowserOptions.d.ts.map +0 -1
  541. package/dist/workerd/msal/browserFlows/msalBrowserOptions.js +0 -4
  542. package/dist/workerd/msal/browserFlows/msalBrowserOptions.js.map +0 -1
  543. package/dist/workerd/msal/credentials.d.ts +0 -52
  544. package/dist/workerd/msal/credentials.d.ts.map +0 -1
  545. package/dist/workerd/msal/credentials.js +0 -4
  546. package/dist/workerd/msal/credentials.js.map +0 -1
  547. package/dist/workerd/util/authHostEnv-browser.d.mts +0 -4
  548. package/dist/workerd/util/authHostEnv-browser.d.mts.map +0 -1
  549. package/dist/workerd/util/authHostEnv-browser.mjs +0 -7
  550. package/dist/workerd/util/authHostEnv-browser.mjs.map +0 -1
  551. /package/dist/browser/credentials/{clientSecretCredential.d.ts → clientSecretCredential-browser.d.mts} +0 -0
  552. /package/dist/browser/credentials/{clientSecretCredential.js → clientSecretCredential-browser.mjs} +0 -0
  553. /package/dist/browser/credentials/{interactiveBrowserCredential.d.ts → interactiveBrowserCredential-browser.d.mts} +0 -0
  554. /package/dist/browser/credentials/{interactiveBrowserCredential.js → interactiveBrowserCredential-browser.mjs} +0 -0
  555. /package/dist/browser/credentials/{usernamePasswordCredential.d.ts → usernamePasswordCredential-browser.d.mts} +0 -0
  556. /package/dist/browser/credentials/{usernamePasswordCredential.js → usernamePasswordCredential-browser.mjs} +0 -0
  557. /package/dist/browser/msal/{msal.d.ts → msal-browser.d.mts} +0 -0
  558. /package/dist/browser/msal/{msal.js → msal-browser.mjs} +0 -0
  559. /package/dist/browser/plugins/{consumer.d.ts → consumer-browser.d.mts} +0 -0
  560. /package/dist/browser/plugins/{consumer.js → consumer-browser.mjs} +0 -0
  561. /package/dist/browser/util/{processMultiTenantRequest.d.ts → processMultiTenantRequest-browser.d.mts} +0 -0
  562. /package/dist/browser/util/{processMultiTenantRequest.js → processMultiTenantRequest-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.13.1",
4
+ "version": "4.13.3",
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",
@@ -35,9 +35,13 @@
35
35
  ]
36
36
  },
37
37
  "engines": {
38
- "node": ">=20.0.0"
38
+ "node": ">=22.0.0"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/Azure/azure-sdk-for-js",
43
+ "directory": "sdk/identity/identity"
39
44
  },
40
- "repository": "github:Azure/azure-sdk-for-js",
41
45
  "keywords": [
42
46
  "azure",
43
47
  "cloud",
@@ -56,56 +60,50 @@
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",
62
72
  "@azure/core-client": "^1.9.2",
73
+ "@azure/core-process": "^1.0.0",
63
74
  "@azure/core-rest-pipeline": "^1.17.0",
64
75
  "@azure/core-tracing": "^1.0.0",
65
76
  "@azure/core-util": "^1.11.0",
66
77
  "@azure/logger": "^1.0.0",
67
78
  "@azure/msal-browser": "^5.5.0",
68
- "@azure/msal-node": "^5.1.0",
79
+ "@azure/msal-node": "^6.0.0",
69
80
  "open": "^10.1.0",
70
81
  "tslib": "^2.2.0"
71
82
  },
72
83
  "devDependencies": {
84
+ "@azure-tools/test-recorder": "^4.1.1",
85
+ "@azure-tools/test-utils-vitest": "^2.0.1",
86
+ "@azure/dev-tool": "^1.0.0",
87
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0",
73
88
  "@azure/keyvault-keys": "4.10.0",
74
89
  "@types/jsonwebtoken": "^9.0.0",
75
90
  "@types/ms": "^2.1.0",
76
- "@types/node": "^20.19.0",
77
- "@vitest/browser": "^3.2.3",
78
- "@vitest/coverage-istanbul": "^3.2.3",
91
+ "@types/node": "^22.0.0",
92
+ "@vitest/browser-playwright": "^4.1.2",
93
+ "@vitest/coverage-istanbul": "^4.1.2",
79
94
  "assertion-error": "^2.0.1",
80
- "dotenv": "^16.0.0",
81
- "eslint": "^9.33.0",
95
+ "cross-env": "^10.1.0",
96
+ "dotenv": "^16.6.1",
97
+ "eslint": "^10.8.0",
82
98
  "jsonwebtoken": "^9.0.0",
83
99
  "ms": "^2.1.3",
84
- "playwright": "^1.50.1",
85
- "typescript": "~5.8.3",
86
- "vitest": "^3.2.3",
87
- "@azure-tools/test-recorder": "^4.1.1",
88
- "@azure/eslint-plugin-azure-sdk": "^3.0.0",
89
- "@azure/dev-tool": "^1.0.0",
90
- "@azure-tools/test-utils-vitest": "^2.0.1"
100
+ "playwright": "^1.60.0",
101
+ "prettier": "^3.9.1",
102
+ "rimraf": "^6.1.0",
103
+ "typescript": "~6.0.2",
104
+ "vitest": "^4.1.2"
91
105
  },
92
106
  "type": "module",
93
- "tshy": {
94
- "project": "../../../tsconfig.src.build.json",
95
- "exports": {
96
- "./package.json": "./package.json",
97
- ".": "./src/index.ts"
98
- },
99
- "dialects": [
100
- "esm",
101
- "commonjs"
102
- ],
103
- "esmDialects": [
104
- "workerd",
105
- "browser"
106
- ],
107
- "selfLink": false
108
- },
109
107
  "exports": {
110
108
  "./package.json": "./package.json",
111
109
  ".": {
@@ -129,18 +127,18 @@
129
127
  },
130
128
  "scripts": {
131
129
  "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
132
- "build:samples": "tsc -p tsconfig.samples.json",
133
- "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
134
- "clean": "dev-tool run vendored rimraf --glob dist dist-* types *.tgz *.log",
130
+ "build:samples": "tsc -p config/tsconfig.samples.json",
131
+ "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}\"",
132
+ "clean": "rimraf --glob dist dist-* types *.tgz *.log",
135
133
  "execute:samples": "dev-tool samples run samples-dev",
136
134
  "extract-api": "dev-tool run build-package && dev-tool run extract-api",
137
- "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
135
+ "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}\"",
138
136
  "lint": "eslint package.json src test --ignore-pattern 'test/integration/**'",
139
137
  "lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion] --ignore-pattern 'test/integration/**'",
140
138
  "pack": "pnpm pack 2>&1",
141
- "test": "npm run test:node && npm run test:browser",
142
- "test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
143
- "test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest",
139
+ "test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
140
+ "test:browser": "dev-tool run test:vitest --browser",
141
+ "test:node": "dev-tool run test:vitest",
144
142
  "test:node:managed-identity": "dev-tool run test:vitest -- --config ./vitest.managed-identity.config.ts",
145
143
  "test:node:no-timeouts": "dev-tool run test:vitest -- --test-timeout=0",
146
144
  "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 { TokenCredentialOptions } from "../tokenCredentialOptions.js";
3
- import { 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,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAK3F;;;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;IAwB7F;;;;;;;;;OASG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;CA4B/F"}
@@ -1,69 +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
- tokenCredentialOptions: options,
33
- logger,
34
- brokerOptions: {
35
- enabled: true,
36
- parentWindowHandle: new Uint8Array(0),
37
- useDefaultBrokerAccount: true,
38
- },
39
- };
40
- this.brokerMsalClient = createMsalClient(DeveloperSignOnClientId, this.brokerTenantId, msalClientOptions);
41
- }
42
- /**
43
- * Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.
44
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
45
- *
46
- * This method extends the base getToken method to support silentAuthenticationOnly option
47
- * when using broker authentication.
48
- *
49
- * @param scopes - The list of scopes for which the token will have access.
50
- * @param options - The options used to configure the token request, including silentAuthenticationOnly option.
51
- */
52
- async getToken(scopes, options = {}) {
53
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
54
- newOptions.tenantId = processMultiTenantRequest(this.brokerTenantId, newOptions, this.brokerAdditionallyAllowedTenantIds, logger);
55
- const arrayScopes = ensureScopes(scopes);
56
- try {
57
- return this.brokerMsalClient.getBrokeredToken(arrayScopes, true, {
58
- ...newOptions,
59
- disableAutomaticAuthentication: true,
60
- });
61
- }
62
- catch (e) {
63
- logger.getToken.info(formatError(arrayScopes, e));
64
- throw new CredentialUnavailableError("Failed to acquire token using broker authentication", { cause: e });
65
- }
66
- });
67
- }
68
- }
69
- //# 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,sBAAsB,EAAE,OAAO;YAC/B,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 { TokenCredentialOptions } from \"../tokenCredentialOptions.js\";\nimport { 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 tokenCredentialOptions: 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"}