@azure/identity 4.6.0 → 4.6.1-alpha.20250116.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1115) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/client/identityClient.d.ts +65 -0
  3. package/dist/browser/client/identityClient.d.ts.map +1 -0
  4. package/dist/browser/client/identityClient.js +248 -0
  5. package/dist/browser/client/identityClient.js.map +1 -0
  6. package/dist/browser/constants.d.ts +69 -0
  7. package/dist/browser/constants.d.ts.map +1 -0
  8. package/dist/browser/constants.js +75 -0
  9. package/dist/browser/constants.js.map +1 -0
  10. package/dist/browser/credentials/authorityValidationOptions.d.ts +16 -0
  11. package/dist/browser/credentials/authorityValidationOptions.d.ts.map +1 -0
  12. package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +1 -0
  13. package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +1 -0
  14. package/dist/browser/credentials/authorizationCodeCredential.d.ts +11 -0
  15. package/dist/browser/credentials/authorizationCodeCredential.js +16 -0
  16. package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
  17. package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
  18. package/dist/browser/credentials/authorizationCodeCredentialOptions.js.map +1 -0
  19. package/dist/browser/credentials/azureApplicationCredential-browser.d.mts.map +1 -0
  20. package/dist/browser/credentials/azureApplicationCredential-browser.mjs.map +1 -0
  21. package/dist/browser/credentials/azureApplicationCredential.d.ts +24 -0
  22. package/dist/browser/credentials/azureApplicationCredential.js +34 -0
  23. package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts +13 -0
  24. package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
  25. package/dist/browser/credentials/azureApplicationCredentialOptions.js.map +1 -0
  26. package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +1 -0
  27. package/dist/browser/credentials/azureCliCredential-browser.mjs.map +1 -0
  28. package/dist/browser/credentials/azureCliCredential.d.ts +13 -0
  29. package/dist/browser/credentials/azureCliCredential.js +23 -0
  30. package/dist/browser/credentials/azureCliCredentialOptions.d.ts +20 -0
  31. package/dist/browser/credentials/azureCliCredentialOptions.d.ts.map +1 -0
  32. package/dist/browser/credentials/azureCliCredentialOptions.js.map +1 -0
  33. package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +1 -0
  34. package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +1 -0
  35. package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +13 -0
  36. package/dist/browser/credentials/azureDeveloperCliCredential.js +23 -0
  37. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
  38. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
  39. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
  40. package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +1 -0
  41. package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +1 -0
  42. package/dist/browser/credentials/azurePipelinesCredential.d.ts +13 -0
  43. package/dist/browser/credentials/azurePipelinesCredential.js +23 -0
  44. package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
  45. package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
  46. package/dist/browser/credentials/azurePipelinesCredentialOptions.js.map +1 -0
  47. package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +1 -0
  48. package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +1 -0
  49. package/dist/browser/credentials/azurePowerShellCredential.d.ts +12 -0
  50. package/dist/browser/credentials/azurePowerShellCredential.js +22 -0
  51. package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
  52. package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
  53. package/dist/browser/credentials/azurePowerShellCredentialOptions.js.map +1 -0
  54. package/dist/browser/credentials/brokerAuthOptions.d.ts +13 -0
  55. package/dist/browser/credentials/brokerAuthOptions.d.ts.map +1 -0
  56. package/dist/browser/credentials/brokerAuthOptions.js.map +1 -0
  57. package/dist/browser/credentials/browserCustomizationOptions.d.ts +19 -0
  58. package/dist/browser/credentials/browserCustomizationOptions.d.ts.map +1 -0
  59. package/dist/browser/credentials/chainedTokenCredential.d.ts +51 -0
  60. package/dist/browser/credentials/chainedTokenCredential.d.ts.map +1 -0
  61. package/dist/browser/credentials/chainedTokenCredential.js +92 -0
  62. package/dist/browser/credentials/chainedTokenCredential.js.map +1 -0
  63. package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +1 -0
  64. package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +1 -0
  65. package/dist/browser/credentials/clientAssertionCredential.d.ts +12 -0
  66. package/dist/browser/credentials/clientAssertionCredential.js +22 -0
  67. package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts +9 -0
  68. package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
  69. package/dist/browser/credentials/clientAssertionCredentialOptions.js.map +1 -0
  70. package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +1 -0
  71. package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +1 -0
  72. package/dist/browser/credentials/clientCertificateCredential.d.ts +13 -0
  73. package/dist/browser/credentials/clientCertificateCredential.js +23 -0
  74. package/dist/browser/credentials/clientCertificateCredentialModels.d.ts +31 -0
  75. package/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
  76. package/dist/browser/credentials/clientCertificateCredentialModels.js +4 -0
  77. package/dist/browser/credentials/clientCertificateCredentialModels.js.map +1 -0
  78. package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts +14 -0
  79. package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
  80. package/dist/browser/credentials/clientCertificateCredentialOptions.js.map +1 -0
  81. package/dist/browser/credentials/clientSecretCredential-browser.d.mts.map +1 -0
  82. package/dist/browser/credentials/clientSecretCredential-browser.mjs.map +1 -0
  83. package/dist/browser/credentials/clientSecretCredential.d.ts +40 -0
  84. package/dist/browser/credentials/clientSecretCredential.js +83 -0
  85. package/dist/browser/credentials/clientSecretCredentialOptions.d.ts +9 -0
  86. package/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
  87. package/dist/browser/credentials/clientSecretCredentialOptions.js.map +1 -0
  88. package/dist/browser/credentials/credentialPersistenceOptions.d.ts +30 -0
  89. package/dist/browser/credentials/credentialPersistenceOptions.d.ts.map +1 -0
  90. package/dist/browser/credentials/credentialPersistenceOptions.js.map +1 -0
  91. package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +1 -0
  92. package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +1 -0
  93. package/dist/browser/credentials/defaultAzureCredential.d.ts +19 -0
  94. package/dist/browser/credentials/defaultAzureCredential.js +29 -0
  95. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +49 -0
  96. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
  97. package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +1 -0
  98. package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +1 -0
  99. package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +1 -0
  100. package/dist/browser/credentials/deviceCodeCredential.d.ts +13 -0
  101. package/dist/browser/credentials/deviceCodeCredential.js +23 -0
  102. package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts +53 -0
  103. package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
  104. package/dist/browser/credentials/deviceCodeCredentialOptions.js.map +1 -0
  105. package/dist/browser/credentials/environmentCredential-browser.d.mts.map +1 -0
  106. package/dist/browser/credentials/environmentCredential-browser.mjs.map +1 -0
  107. package/dist/browser/credentials/environmentCredential.d.ts +13 -0
  108. package/dist/browser/credentials/environmentCredential.js +23 -0
  109. package/dist/browser/credentials/environmentCredentialOptions.d.ts +9 -0
  110. package/dist/browser/credentials/environmentCredentialOptions.d.ts.map +1 -0
  111. package/dist/browser/credentials/environmentCredentialOptions.js.map +1 -0
  112. package/dist/browser/credentials/interactiveBrowserCredential-browser.d.mts.map +1 -0
  113. package/dist/browser/credentials/interactiveBrowserCredential-browser.mjs.map +1 -0
  114. package/dist/browser/credentials/interactiveBrowserCredential.d.ts +53 -0
  115. package/dist/browser/credentials/interactiveBrowserCredential.js +86 -0
  116. package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
  117. package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
  118. package/dist/browser/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
  119. package/dist/browser/credentials/interactiveCredentialOptions.d.ts +25 -0
  120. package/dist/browser/credentials/interactiveCredentialOptions.d.ts.map +1 -0
  121. package/dist/browser/credentials/interactiveCredentialOptions.js.map +1 -0
  122. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
  123. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
  124. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +122 -0
  125. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
  126. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
  127. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
  128. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
  129. package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +1 -0
  130. package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +1 -0
  131. package/dist/browser/credentials/managedIdentityCredential/index.d.ts +6 -0
  132. package/dist/browser/credentials/managedIdentityCredential/index.js +16 -0
  133. package/dist/browser/credentials/managedIdentityCredential/models.d.ts +24 -0
  134. package/dist/browser/credentials/managedIdentityCredential/models.d.ts.map +1 -0
  135. package/dist/browser/credentials/managedIdentityCredential/models.js.map +1 -0
  136. package/dist/browser/credentials/managedIdentityCredential/options.d.ts +37 -0
  137. package/dist/browser/credentials/managedIdentityCredential/options.d.ts.map +1 -0
  138. package/dist/browser/credentials/managedIdentityCredential/options.js +4 -0
  139. package/dist/browser/credentials/managedIdentityCredential/options.js.map +1 -0
  140. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
  141. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
  142. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js +32 -0
  143. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
  144. package/dist/browser/credentials/managedIdentityCredential/utils.d.ts +33 -0
  145. package/dist/browser/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
  146. package/dist/browser/credentials/managedIdentityCredential/utils.js +77 -0
  147. package/dist/browser/credentials/managedIdentityCredential/utils.js.map +1 -0
  148. package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
  149. package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
  150. package/dist/browser/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
  151. package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +1 -0
  152. package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +1 -0
  153. package/dist/browser/credentials/onBehalfOfCredential.d.ts +12 -0
  154. package/dist/browser/credentials/onBehalfOfCredential.js +23 -0
  155. package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
  156. package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
  157. package/dist/browser/credentials/onBehalfOfCredentialOptions.js.map +1 -0
  158. package/dist/browser/credentials/usernamePasswordCredential-browser.d.mts.map +1 -0
  159. package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +1 -0
  160. package/dist/browser/credentials/usernamePasswordCredential.d.ts +40 -0
  161. package/dist/browser/credentials/usernamePasswordCredential.js +77 -0
  162. package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
  163. package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
  164. package/dist/browser/credentials/usernamePasswordCredentialOptions.js.map +1 -0
  165. package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +1 -0
  166. package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +1 -0
  167. package/dist/browser/credentials/visualStudioCodeCredential.d.ts +15 -0
  168. package/dist/browser/credentials/visualStudioCodeCredential.js +27 -0
  169. package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
  170. package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
  171. package/dist/browser/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
  172. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
  173. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
  174. package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +1 -0
  175. package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +1 -0
  176. package/dist/browser/credentials/workloadIdentityCredential.d.ts +17 -0
  177. package/dist/browser/credentials/workloadIdentityCredential.js +27 -0
  178. package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
  179. package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
  180. package/dist/browser/credentials/workloadIdentityCredentialOptions.js.map +1 -0
  181. package/dist/browser/errors.d.ts +139 -0
  182. package/dist/browser/errors.d.ts.map +1 -0
  183. package/dist/browser/errors.js.map +1 -0
  184. package/dist/browser/index.d.ts +61 -0
  185. package/dist/browser/index.d.ts.map +1 -0
  186. package/dist/browser/index.js +34 -0
  187. package/dist/browser/index.js.map +1 -0
  188. package/dist/browser/msal/browserFlows/flows.d.ts +42 -0
  189. package/dist/browser/msal/browserFlows/flows.d.ts.map +1 -0
  190. package/dist/browser/msal/browserFlows/flows.js.map +1 -0
  191. package/dist/browser/msal/browserFlows/msalAuthCode.d.ts +48 -0
  192. package/dist/browser/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
  193. package/dist/browser/msal/browserFlows/msalAuthCode.js +203 -0
  194. package/dist/browser/msal/browserFlows/msalAuthCode.js.map +1 -0
  195. package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
  196. package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
  197. package/dist/browser/msal/browserFlows/msalBrowserCommon.js +116 -0
  198. package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +1 -0
  199. package/dist/browser/msal/credentials.d.ts +52 -0
  200. package/dist/browser/msal/credentials.d.ts.map +1 -0
  201. package/dist/browser/msal/credentials.js.map +1 -0
  202. package/dist/browser/msal/msal-browser.d.mts.map +1 -0
  203. package/dist/browser/msal/msal-browser.mjs.map +1 -0
  204. package/dist/browser/msal/msal.d.ts +3 -0
  205. package/dist/browser/msal/msal.js +5 -0
  206. package/dist/browser/msal/nodeFlows/brokerOptions.d.ts +44 -0
  207. package/dist/browser/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
  208. package/dist/browser/msal/nodeFlows/msalClient.d.ts +186 -0
  209. package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +1 -0
  210. package/dist/browser/msal/nodeFlows/msalClient.js +477 -0
  211. package/dist/browser/msal/nodeFlows/msalClient.js.map +1 -0
  212. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +91 -0
  213. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
  214. package/dist/browser/msal/nodeFlows/msalPlugins.js +87 -0
  215. package/dist/browser/msal/nodeFlows/msalPlugins.js.map +1 -0
  216. package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
  217. package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
  218. package/dist/browser/msal/types.d.ts +87 -0
  219. package/dist/browser/msal/types.d.ts.map +1 -0
  220. package/dist/browser/msal/types.js.map +1 -0
  221. package/dist/browser/msal/utils.d.ts +95 -0
  222. package/dist/browser/msal/utils.d.ts.map +1 -0
  223. package/dist/browser/msal/utils.js +238 -0
  224. package/dist/browser/msal/utils.js.map +1 -0
  225. package/dist/browser/package.json +3 -0
  226. package/dist/browser/plugins/consumer-browser.d.mts.map +1 -0
  227. package/dist/browser/plugins/consumer-browser.mjs.map +1 -0
  228. package/dist/browser/plugins/consumer.d.ts +2 -0
  229. package/dist/browser/plugins/consumer.js +7 -0
  230. package/dist/browser/plugins/provider.d.ts +36 -0
  231. package/dist/browser/plugins/provider.d.ts.map +1 -0
  232. package/dist/browser/plugins/provider.js.map +1 -0
  233. package/dist/browser/regionalAuthority.d.ts +122 -0
  234. package/dist/browser/regionalAuthority.d.ts.map +1 -0
  235. package/dist/browser/tokenCredentialOptions.d.ts +28 -0
  236. package/dist/browser/tokenCredentialOptions.d.ts.map +1 -0
  237. package/dist/browser/tokenCredentialOptions.js.map +1 -0
  238. package/dist/browser/tokenProvider.d.ts +39 -0
  239. package/dist/browser/tokenProvider.d.ts.map +1 -0
  240. package/dist/browser/tokenProvider.js +53 -0
  241. package/dist/browser/tokenProvider.js.map +1 -0
  242. package/dist/browser/util/authHostEnv-browser.d.mts +4 -0
  243. package/dist/browser/util/authHostEnv-browser.d.mts.map +1 -0
  244. package/dist/browser/util/authHostEnv-browser.mjs +7 -0
  245. package/dist/browser/util/authHostEnv-browser.mjs.map +1 -0
  246. package/dist/browser/util/identityTokenEndpoint.d.ts +2 -0
  247. package/dist/browser/util/identityTokenEndpoint.d.ts.map +1 -0
  248. package/dist/browser/util/logging.d.ts +70 -0
  249. package/dist/browser/util/logging.d.ts.map +1 -0
  250. package/dist/browser/util/logging.js.map +1 -0
  251. package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +1 -0
  252. package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +1 -0
  253. package/dist/browser/util/processMultiTenantRequest.d.ts +9 -0
  254. package/dist/browser/util/processMultiTenantRequest.js +29 -0
  255. package/dist/browser/util/processUtils.d.ts +13 -0
  256. package/dist/browser/util/processUtils.d.ts.map +1 -0
  257. package/dist/browser/util/scopeUtils.d.ts +17 -0
  258. package/dist/browser/util/scopeUtils.d.ts.map +1 -0
  259. package/dist/browser/util/scopeUtils.js +29 -0
  260. package/dist/browser/util/scopeUtils.js.map +1 -0
  261. package/dist/browser/util/subscriptionUtils.d.ts +6 -0
  262. package/dist/browser/util/subscriptionUtils.d.ts.map +1 -0
  263. package/dist/browser/util/subscriptionUtils.js +14 -0
  264. package/dist/browser/util/subscriptionUtils.js.map +1 -0
  265. package/dist/browser/util/tenantIdUtils.d.ts +15 -0
  266. package/dist/browser/util/tenantIdUtils.d.ts.map +1 -0
  267. package/dist/browser/util/tenantIdUtils.js +44 -0
  268. package/dist/browser/util/tenantIdUtils.js.map +1 -0
  269. package/dist/browser/util/tracing.d.ts +6 -0
  270. package/dist/browser/util/tracing.d.ts.map +1 -0
  271. package/dist/browser/util/tracing.js +14 -0
  272. package/dist/browser/util/tracing.js.map +1 -0
  273. package/dist/commonjs/client/identityClient.d.ts +65 -0
  274. package/dist/commonjs/client/identityClient.d.ts.map +1 -0
  275. package/dist/commonjs/client/identityClient.js +253 -0
  276. package/dist/commonjs/client/identityClient.js.map +1 -0
  277. package/dist/commonjs/constants.d.ts +69 -0
  278. package/dist/commonjs/constants.d.ts.map +1 -0
  279. package/dist/commonjs/constants.js +78 -0
  280. package/dist/commonjs/constants.js.map +1 -0
  281. package/dist/commonjs/credentials/authorityValidationOptions.d.ts +16 -0
  282. package/dist/commonjs/credentials/authorityValidationOptions.d.ts.map +1 -0
  283. package/dist/commonjs/credentials/authorityValidationOptions.js +5 -0
  284. package/dist/commonjs/credentials/authorityValidationOptions.js.map +1 -0
  285. package/dist/commonjs/credentials/authorizationCodeCredential.d.ts +73 -0
  286. package/dist/commonjs/credentials/authorizationCodeCredential.d.ts.map +1 -0
  287. package/dist/commonjs/credentials/authorizationCodeCredential.js +64 -0
  288. package/dist/commonjs/credentials/authorizationCodeCredential.js.map +1 -0
  289. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
  290. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
  291. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +5 -0
  292. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +1 -0
  293. package/dist/commonjs/credentials/azureApplicationCredential.d.ts +24 -0
  294. package/dist/commonjs/credentials/azureApplicationCredential.d.ts.map +1 -0
  295. package/dist/commonjs/credentials/azureApplicationCredential.js +36 -0
  296. package/dist/commonjs/credentials/azureApplicationCredential.js.map +1 -0
  297. package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts +13 -0
  298. package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
  299. package/dist/commonjs/credentials/azureApplicationCredentialOptions.js +5 -0
  300. package/dist/commonjs/credentials/azureApplicationCredentialOptions.js.map +1 -0
  301. package/dist/commonjs/credentials/azureCliCredential.d.ts +64 -0
  302. package/dist/commonjs/credentials/azureCliCredential.d.ts.map +1 -0
  303. package/dist/commonjs/credentials/azureCliCredential.js +194 -0
  304. package/dist/commonjs/credentials/azureCliCredential.js.map +1 -0
  305. package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts +20 -0
  306. package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts.map +1 -0
  307. package/dist/commonjs/credentials/azureCliCredentialOptions.js +5 -0
  308. package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +1 -0
  309. package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts +71 -0
  310. package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +1 -0
  311. package/dist/commonjs/credentials/azureDeveloperCliCredential.js +176 -0
  312. package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +1 -0
  313. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
  314. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
  315. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +5 -0
  316. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
  317. package/dist/commonjs/credentials/azurePipelinesCredential.d.ts +38 -0
  318. package/dist/commonjs/credentials/azurePipelinesCredential.d.ts.map +1 -0
  319. package/dist/commonjs/credentials/azurePipelinesCredential.js +146 -0
  320. package/dist/commonjs/credentials/azurePipelinesCredential.js.map +1 -0
  321. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
  322. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
  323. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +5 -0
  324. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +1 -0
  325. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts +75 -0
  326. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +1 -0
  327. package/dist/commonjs/credentials/azurePowerShellCredential.js +235 -0
  328. package/dist/commonjs/credentials/azurePowerShellCredential.js.map +1 -0
  329. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
  330. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
  331. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +5 -0
  332. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +1 -0
  333. package/dist/commonjs/credentials/brokerAuthOptions.d.ts +13 -0
  334. package/dist/commonjs/credentials/brokerAuthOptions.d.ts.map +1 -0
  335. package/dist/commonjs/credentials/brokerAuthOptions.js +3 -0
  336. package/dist/commonjs/credentials/brokerAuthOptions.js.map +1 -0
  337. package/dist/commonjs/credentials/browserCustomizationOptions.d.ts +19 -0
  338. package/dist/commonjs/credentials/browserCustomizationOptions.d.ts.map +1 -0
  339. package/dist/commonjs/credentials/browserCustomizationOptions.js +5 -0
  340. package/dist/commonjs/credentials/browserCustomizationOptions.js.map +1 -0
  341. package/dist/commonjs/credentials/chainedTokenCredential.d.ts +51 -0
  342. package/dist/commonjs/credentials/chainedTokenCredential.d.ts.map +1 -0
  343. package/dist/commonjs/credentials/chainedTokenCredential.js +96 -0
  344. package/dist/commonjs/credentials/chainedTokenCredential.js.map +1 -0
  345. package/dist/commonjs/credentials/clientAssertionCredential.d.ts +33 -0
  346. package/dist/commonjs/credentials/clientAssertionCredential.d.ts.map +1 -0
  347. package/dist/commonjs/credentials/clientAssertionCredential.js +59 -0
  348. package/dist/commonjs/credentials/clientAssertionCredential.js.map +1 -0
  349. package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts +9 -0
  350. package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
  351. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +5 -0
  352. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +1 -0
  353. package/dist/commonjs/credentials/clientCertificateCredential.d.ts +72 -0
  354. package/dist/commonjs/credentials/clientCertificateCredential.d.ts.map +1 -0
  355. package/dist/commonjs/credentials/clientCertificateCredential.js +127 -0
  356. package/dist/commonjs/credentials/clientCertificateCredential.js.map +1 -0
  357. package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts +31 -0
  358. package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
  359. package/dist/commonjs/credentials/clientCertificateCredentialModels.js +5 -0
  360. package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +1 -0
  361. package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts +14 -0
  362. package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
  363. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +5 -0
  364. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +1 -0
  365. package/dist/commonjs/credentials/clientSecretCredential.d.ts +37 -0
  366. package/dist/commonjs/credentials/clientSecretCredential.d.ts.map +1 -0
  367. package/dist/commonjs/credentials/clientSecretCredential.js +64 -0
  368. package/dist/commonjs/credentials/clientSecretCredential.js.map +1 -0
  369. package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts +9 -0
  370. package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
  371. package/dist/commonjs/credentials/clientSecretCredentialOptions.js +5 -0
  372. package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +1 -0
  373. package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts +30 -0
  374. package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts.map +1 -0
  375. package/dist/commonjs/credentials/credentialPersistenceOptions.js +5 -0
  376. package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +1 -0
  377. package/dist/commonjs/credentials/defaultAzureCredential.d.ts +65 -0
  378. package/dist/commonjs/credentials/defaultAzureCredential.d.ts.map +1 -0
  379. package/dist/commonjs/credentials/defaultAzureCredential.js +171 -0
  380. package/dist/commonjs/credentials/defaultAzureCredential.js.map +1 -0
  381. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +49 -0
  382. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
  383. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +5 -0
  384. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +1 -0
  385. package/dist/commonjs/credentials/deviceCodeCredential.d.ts +67 -0
  386. package/dist/commonjs/credentials/deviceCodeCredential.d.ts.map +1 -0
  387. package/dist/commonjs/credentials/deviceCodeCredential.js +96 -0
  388. package/dist/commonjs/credentials/deviceCodeCredential.js.map +1 -0
  389. package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts +53 -0
  390. package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
  391. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +5 -0
  392. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +1 -0
  393. package/dist/commonjs/credentials/environmentCredential.d.ts +52 -0
  394. package/dist/commonjs/credentials/environmentCredential.d.ts.map +1 -0
  395. package/dist/commonjs/credentials/environmentCredential.js +135 -0
  396. package/dist/commonjs/credentials/environmentCredential.js.map +1 -0
  397. package/dist/commonjs/credentials/environmentCredentialOptions.d.ts +9 -0
  398. package/dist/commonjs/credentials/environmentCredentialOptions.d.ts.map +1 -0
  399. package/dist/commonjs/credentials/environmentCredentialOptions.js +5 -0
  400. package/dist/commonjs/credentials/environmentCredentialOptions.js.map +1 -0
  401. package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts +56 -0
  402. package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts.map +1 -0
  403. package/dist/commonjs/credentials/interactiveBrowserCredential.js +95 -0
  404. package/dist/commonjs/credentials/interactiveBrowserCredential.js.map +1 -0
  405. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
  406. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
  407. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +5 -0
  408. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
  409. package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts +25 -0
  410. package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts.map +1 -0
  411. package/dist/commonjs/credentials/interactiveCredentialOptions.js +5 -0
  412. package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +1 -0
  413. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
  414. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
  415. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +125 -0
  416. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
  417. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
  418. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
  419. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +36 -0
  420. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
  421. package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts +61 -0
  422. package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts.map +1 -0
  423. package/dist/commonjs/credentials/managedIdentityCredential/index.js +221 -0
  424. package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +1 -0
  425. package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts +24 -0
  426. package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts.map +1 -0
  427. package/dist/commonjs/credentials/managedIdentityCredential/models.js +5 -0
  428. package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +1 -0
  429. package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts +37 -0
  430. package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts.map +1 -0
  431. package/dist/commonjs/credentials/managedIdentityCredential/options.js +5 -0
  432. package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +1 -0
  433. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
  434. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
  435. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +35 -0
  436. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
  437. package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts +33 -0
  438. package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
  439. package/dist/commonjs/credentials/managedIdentityCredential/utils.js +82 -0
  440. package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +1 -0
  441. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
  442. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
  443. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +5 -0
  444. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
  445. package/dist/commonjs/credentials/onBehalfOfCredential.d.ts +105 -0
  446. package/dist/commonjs/credentials/onBehalfOfCredential.d.ts.map +1 -0
  447. package/dist/commonjs/credentials/onBehalfOfCredential.js +116 -0
  448. package/dist/commonjs/credentials/onBehalfOfCredential.js.map +1 -0
  449. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
  450. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
  451. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +5 -0
  452. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +1 -0
  453. package/dist/commonjs/credentials/usernamePasswordCredential.d.ts +41 -0
  454. package/dist/commonjs/credentials/usernamePasswordCredential.d.ts.map +1 -0
  455. package/dist/commonjs/credentials/usernamePasswordCredential.js +71 -0
  456. package/dist/commonjs/credentials/usernamePasswordCredential.js.map +1 -0
  457. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
  458. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
  459. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +5 -0
  460. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +1 -0
  461. package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts +60 -0
  462. package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts.map +1 -0
  463. package/dist/commonjs/credentials/visualStudioCodeCredential.js +196 -0
  464. package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +1 -0
  465. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
  466. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
  467. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +5 -0
  468. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
  469. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
  470. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
  471. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +5 -0
  472. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +1 -0
  473. package/dist/commonjs/credentials/workloadIdentityCredential.d.ts +47 -0
  474. package/dist/commonjs/credentials/workloadIdentityCredential.d.ts.map +1 -0
  475. package/dist/commonjs/credentials/workloadIdentityCredential.js +118 -0
  476. package/dist/commonjs/credentials/workloadIdentityCredential.js.map +1 -0
  477. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
  478. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
  479. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +5 -0
  480. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +1 -0
  481. package/dist/commonjs/errors.d.ts +139 -0
  482. package/dist/commonjs/errors.d.ts.map +1 -0
  483. package/dist/commonjs/errors.js +130 -0
  484. package/dist/commonjs/errors.js.map +1 -0
  485. package/dist/commonjs/index.d.ts +61 -0
  486. package/dist/commonjs/index.d.ts.map +1 -0
  487. package/dist/commonjs/index.js +69 -0
  488. package/dist/commonjs/index.js.map +1 -0
  489. package/dist/commonjs/msal/browserFlows/flows.d.ts +42 -0
  490. package/dist/commonjs/msal/browserFlows/flows.d.ts.map +1 -0
  491. package/dist/commonjs/msal/browserFlows/flows.js +5 -0
  492. package/dist/commonjs/msal/browserFlows/flows.js.map +1 -0
  493. package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts +48 -0
  494. package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
  495. package/dist/commonjs/msal/browserFlows/msalAuthCode.js +208 -0
  496. package/dist/commonjs/msal/browserFlows/msalAuthCode.js.map +1 -0
  497. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
  498. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
  499. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +121 -0
  500. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +1 -0
  501. package/dist/commonjs/msal/credentials.d.ts +52 -0
  502. package/dist/commonjs/msal/credentials.d.ts.map +1 -0
  503. package/dist/commonjs/msal/credentials.js +5 -0
  504. package/dist/commonjs/msal/credentials.js.map +1 -0
  505. package/dist/commonjs/msal/msal.d.ts +3 -0
  506. package/dist/commonjs/msal/msal.d.ts.map +1 -0
  507. package/dist/commonjs/msal/msal.js +9 -0
  508. package/dist/commonjs/msal/msal.js.map +1 -0
  509. package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts +44 -0
  510. package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
  511. package/dist/commonjs/msal/nodeFlows/brokerOptions.js +3 -0
  512. package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +1 -0
  513. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +186 -0
  514. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +1 -0
  515. package/dist/commonjs/msal/nodeFlows/msalClient.js +482 -0
  516. package/dist/commonjs/msal/nodeFlows/msalClient.js.map +1 -0
  517. package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts +91 -0
  518. package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
  519. package/dist/commonjs/msal/nodeFlows/msalPlugins.js +91 -0
  520. package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +1 -0
  521. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
  522. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
  523. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +5 -0
  524. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +1 -0
  525. package/dist/commonjs/msal/types.d.ts +87 -0
  526. package/dist/commonjs/msal/types.d.ts.map +1 -0
  527. package/dist/commonjs/msal/types.js +5 -0
  528. package/dist/commonjs/msal/types.js.map +1 -0
  529. package/dist/commonjs/msal/utils.d.ts +95 -0
  530. package/dist/commonjs/msal/utils.d.ts.map +1 -0
  531. package/dist/commonjs/msal/utils.js +253 -0
  532. package/dist/commonjs/msal/utils.js.map +1 -0
  533. package/dist/commonjs/package.json +3 -0
  534. package/dist/commonjs/plugins/consumer.d.ts +28 -0
  535. package/dist/commonjs/plugins/consumer.d.ts.map +1 -0
  536. package/dist/commonjs/plugins/consumer.js +46 -0
  537. package/dist/commonjs/plugins/consumer.js.map +1 -0
  538. package/dist/commonjs/plugins/provider.d.ts +36 -0
  539. package/dist/commonjs/plugins/provider.d.ts.map +1 -0
  540. package/dist/commonjs/plugins/provider.js +5 -0
  541. package/dist/commonjs/plugins/provider.js.map +1 -0
  542. package/dist/commonjs/regionalAuthority.d.ts +122 -0
  543. package/dist/commonjs/regionalAuthority.d.ts.map +1 -0
  544. package/dist/commonjs/regionalAuthority.js +144 -0
  545. package/dist/commonjs/regionalAuthority.js.map +1 -0
  546. package/dist/commonjs/tokenCredentialOptions.d.ts +28 -0
  547. package/dist/commonjs/tokenCredentialOptions.d.ts.map +1 -0
  548. package/dist/commonjs/tokenCredentialOptions.js +5 -0
  549. package/dist/commonjs/tokenCredentialOptions.js.map +1 -0
  550. package/dist/commonjs/tokenProvider.d.ts +39 -0
  551. package/dist/commonjs/tokenProvider.d.ts.map +1 -0
  552. package/dist/commonjs/tokenProvider.js +56 -0
  553. package/dist/commonjs/tokenProvider.js.map +1 -0
  554. package/dist/commonjs/tsdoc-metadata.json +11 -0
  555. package/dist/commonjs/util/identityTokenEndpoint.d.ts +2 -0
  556. package/dist/commonjs/util/identityTokenEndpoint.d.ts.map +1 -0
  557. package/dist/commonjs/util/identityTokenEndpoint.js +14 -0
  558. package/dist/commonjs/util/identityTokenEndpoint.js.map +1 -0
  559. package/dist/commonjs/util/logging.d.ts +70 -0
  560. package/dist/commonjs/util/logging.d.ts.map +1 -0
  561. package/dist/commonjs/util/logging.js +103 -0
  562. package/dist/commonjs/util/logging.js.map +1 -0
  563. package/dist/commonjs/util/processMultiTenantRequest.d.ts +10 -0
  564. package/dist/commonjs/util/processMultiTenantRequest.d.ts.map +1 -0
  565. package/dist/commonjs/util/processMultiTenantRequest.js +38 -0
  566. package/dist/commonjs/util/processMultiTenantRequest.js.map +1 -0
  567. package/dist/commonjs/util/processUtils.d.ts +13 -0
  568. package/dist/commonjs/util/processUtils.d.ts.map +1 -0
  569. package/dist/commonjs/util/processUtils.js +36 -0
  570. package/dist/commonjs/util/processUtils.js.map +1 -0
  571. package/dist/commonjs/util/scopeUtils.d.ts +17 -0
  572. package/dist/commonjs/util/scopeUtils.d.ts.map +1 -0
  573. package/dist/commonjs/util/scopeUtils.js +34 -0
  574. package/dist/commonjs/util/scopeUtils.js.map +1 -0
  575. package/dist/commonjs/util/subscriptionUtils.d.ts +6 -0
  576. package/dist/commonjs/util/subscriptionUtils.d.ts.map +1 -0
  577. package/dist/commonjs/util/subscriptionUtils.js +17 -0
  578. package/dist/commonjs/util/subscriptionUtils.js.map +1 -0
  579. package/dist/commonjs/util/tenantIdUtils.d.ts +15 -0
  580. package/dist/commonjs/util/tenantIdUtils.d.ts.map +1 -0
  581. package/dist/commonjs/util/tenantIdUtils.js +51 -0
  582. package/dist/commonjs/util/tenantIdUtils.js.map +1 -0
  583. package/dist/commonjs/util/tracing.d.ts +6 -0
  584. package/dist/commonjs/util/tracing.d.ts.map +1 -0
  585. package/dist/commonjs/util/tracing.js +17 -0
  586. package/dist/commonjs/util/tracing.js.map +1 -0
  587. package/dist/esm/client/identityClient.d.ts +65 -0
  588. package/dist/esm/client/identityClient.d.ts.map +1 -0
  589. package/dist/esm/client/identityClient.js +248 -0
  590. package/dist/esm/client/identityClient.js.map +1 -0
  591. package/dist/esm/constants.d.ts +69 -0
  592. package/dist/esm/constants.d.ts.map +1 -0
  593. package/dist/esm/constants.js +75 -0
  594. package/dist/esm/constants.js.map +1 -0
  595. package/dist/esm/credentials/authorityValidationOptions.d.ts +16 -0
  596. package/dist/esm/credentials/authorityValidationOptions.d.ts.map +1 -0
  597. package/dist/esm/credentials/authorityValidationOptions.js +4 -0
  598. package/dist/esm/credentials/authorityValidationOptions.js.map +1 -0
  599. package/dist/esm/credentials/authorizationCodeCredential.d.ts +73 -0
  600. package/dist/esm/credentials/authorizationCodeCredential.d.ts.map +1 -0
  601. package/dist/esm/credentials/authorizationCodeCredential.js +60 -0
  602. package/dist/esm/credentials/authorizationCodeCredential.js.map +1 -0
  603. package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts +8 -0
  604. package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts.map +1 -0
  605. package/dist/esm/credentials/authorizationCodeCredentialOptions.js +4 -0
  606. package/dist/esm/credentials/authorizationCodeCredentialOptions.js.map +1 -0
  607. package/dist/esm/credentials/azureApplicationCredential.d.ts +24 -0
  608. package/dist/esm/credentials/azureApplicationCredential.d.ts.map +1 -0
  609. package/dist/esm/credentials/azureApplicationCredential.js +32 -0
  610. package/dist/esm/credentials/azureApplicationCredential.js.map +1 -0
  611. package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts +13 -0
  612. package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts.map +1 -0
  613. package/dist/esm/credentials/azureApplicationCredentialOptions.js +4 -0
  614. package/dist/esm/credentials/azureApplicationCredentialOptions.js.map +1 -0
  615. package/dist/esm/credentials/azureCliCredential.d.ts +64 -0
  616. package/dist/esm/credentials/azureCliCredential.d.ts.map +1 -0
  617. package/dist/esm/credentials/azureCliCredential.js +189 -0
  618. package/dist/esm/credentials/azureCliCredential.js.map +1 -0
  619. package/dist/esm/credentials/azureCliCredentialOptions.d.ts +20 -0
  620. package/dist/esm/credentials/azureCliCredentialOptions.d.ts.map +1 -0
  621. package/dist/esm/credentials/azureCliCredentialOptions.js +4 -0
  622. package/dist/esm/credentials/azureCliCredentialOptions.js.map +1 -0
  623. package/dist/esm/credentials/azureDeveloperCliCredential.d.ts +71 -0
  624. package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +1 -0
  625. package/dist/esm/credentials/azureDeveloperCliCredential.js +171 -0
  626. package/dist/esm/credentials/azureDeveloperCliCredential.js.map +1 -0
  627. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts +15 -0
  628. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts.map +1 -0
  629. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js +4 -0
  630. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
  631. package/dist/esm/credentials/azurePipelinesCredential.d.ts +38 -0
  632. package/dist/esm/credentials/azurePipelinesCredential.d.ts.map +1 -0
  633. package/dist/esm/credentials/azurePipelinesCredential.js +141 -0
  634. package/dist/esm/credentials/azurePipelinesCredential.js.map +1 -0
  635. package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts +9 -0
  636. package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts.map +1 -0
  637. package/dist/esm/credentials/azurePipelinesCredentialOptions.js +4 -0
  638. package/dist/esm/credentials/azurePipelinesCredentialOptions.js.map +1 -0
  639. package/dist/esm/credentials/azurePowerShellCredential.d.ts +75 -0
  640. package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +1 -0
  641. package/dist/esm/credentials/azurePowerShellCredential.js +229 -0
  642. package/dist/esm/credentials/azurePowerShellCredential.js.map +1 -0
  643. package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts +15 -0
  644. package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts.map +1 -0
  645. package/dist/esm/credentials/azurePowerShellCredentialOptions.js +4 -0
  646. package/dist/esm/credentials/azurePowerShellCredentialOptions.js.map +1 -0
  647. package/dist/esm/credentials/brokerAuthOptions.d.ts +13 -0
  648. package/dist/esm/credentials/brokerAuthOptions.d.ts.map +1 -0
  649. package/dist/esm/credentials/brokerAuthOptions.js +2 -0
  650. package/dist/esm/credentials/brokerAuthOptions.js.map +1 -0
  651. package/dist/esm/credentials/browserCustomizationOptions.d.ts +19 -0
  652. package/dist/esm/credentials/browserCustomizationOptions.d.ts.map +1 -0
  653. package/dist/esm/credentials/browserCustomizationOptions.js +4 -0
  654. package/dist/esm/credentials/browserCustomizationOptions.js.map +1 -0
  655. package/dist/esm/credentials/chainedTokenCredential.d.ts +51 -0
  656. package/dist/esm/credentials/chainedTokenCredential.d.ts.map +1 -0
  657. package/dist/esm/credentials/chainedTokenCredential.js +92 -0
  658. package/dist/esm/credentials/chainedTokenCredential.js.map +1 -0
  659. package/dist/esm/credentials/clientAssertionCredential.d.ts +33 -0
  660. package/dist/esm/credentials/clientAssertionCredential.d.ts.map +1 -0
  661. package/dist/esm/credentials/clientAssertionCredential.js +55 -0
  662. package/dist/esm/credentials/clientAssertionCredential.js.map +1 -0
  663. package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts +9 -0
  664. package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts.map +1 -0
  665. package/dist/esm/credentials/clientAssertionCredentialOptions.js +4 -0
  666. package/dist/esm/credentials/clientAssertionCredentialOptions.js.map +1 -0
  667. package/dist/esm/credentials/clientCertificateCredential.d.ts +72 -0
  668. package/dist/esm/credentials/clientCertificateCredential.d.ts.map +1 -0
  669. package/dist/esm/credentials/clientCertificateCredential.js +122 -0
  670. package/dist/esm/credentials/clientCertificateCredential.js.map +1 -0
  671. package/dist/esm/credentials/clientCertificateCredentialModels.d.ts +31 -0
  672. package/dist/esm/credentials/clientCertificateCredentialModels.d.ts.map +1 -0
  673. package/dist/esm/credentials/clientCertificateCredentialModels.js +4 -0
  674. package/dist/esm/credentials/clientCertificateCredentialModels.js.map +1 -0
  675. package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts +14 -0
  676. package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts.map +1 -0
  677. package/dist/esm/credentials/clientCertificateCredentialOptions.js +4 -0
  678. package/dist/esm/credentials/clientCertificateCredentialOptions.js.map +1 -0
  679. package/dist/esm/credentials/clientSecretCredential.d.ts +37 -0
  680. package/dist/esm/credentials/clientSecretCredential.d.ts.map +1 -0
  681. package/dist/esm/credentials/clientSecretCredential.js +60 -0
  682. package/dist/esm/credentials/clientSecretCredential.js.map +1 -0
  683. package/dist/esm/credentials/clientSecretCredentialOptions.d.ts +9 -0
  684. package/dist/esm/credentials/clientSecretCredentialOptions.d.ts.map +1 -0
  685. package/dist/esm/credentials/clientSecretCredentialOptions.js +4 -0
  686. package/dist/esm/credentials/clientSecretCredentialOptions.js.map +1 -0
  687. package/dist/esm/credentials/credentialPersistenceOptions.d.ts +30 -0
  688. package/dist/esm/credentials/credentialPersistenceOptions.d.ts.map +1 -0
  689. package/dist/esm/credentials/credentialPersistenceOptions.js +4 -0
  690. package/dist/esm/credentials/credentialPersistenceOptions.js.map +1 -0
  691. package/dist/esm/credentials/defaultAzureCredential.d.ts +65 -0
  692. package/dist/esm/credentials/defaultAzureCredential.d.ts.map +1 -0
  693. package/dist/esm/credentials/defaultAzureCredential.js +164 -0
  694. package/dist/esm/credentials/defaultAzureCredential.js.map +1 -0
  695. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +49 -0
  696. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts.map +1 -0
  697. package/dist/esm/credentials/defaultAzureCredentialOptions.js +4 -0
  698. package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +1 -0
  699. package/dist/esm/credentials/deviceCodeCredential.d.ts +67 -0
  700. package/dist/esm/credentials/deviceCodeCredential.d.ts.map +1 -0
  701. package/dist/esm/credentials/deviceCodeCredential.js +91 -0
  702. package/dist/esm/credentials/deviceCodeCredential.js.map +1 -0
  703. package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts +53 -0
  704. package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts.map +1 -0
  705. package/dist/esm/credentials/deviceCodeCredentialOptions.js +4 -0
  706. package/dist/esm/credentials/deviceCodeCredentialOptions.js.map +1 -0
  707. package/dist/esm/credentials/environmentCredential.d.ts +52 -0
  708. package/dist/esm/credentials/environmentCredential.d.ts.map +1 -0
  709. package/dist/esm/credentials/environmentCredential.js +130 -0
  710. package/dist/esm/credentials/environmentCredential.js.map +1 -0
  711. package/dist/esm/credentials/environmentCredentialOptions.d.ts +9 -0
  712. package/dist/esm/credentials/environmentCredentialOptions.d.ts.map +1 -0
  713. package/dist/esm/credentials/environmentCredentialOptions.js +4 -0
  714. package/dist/esm/credentials/environmentCredentialOptions.js.map +1 -0
  715. package/dist/esm/credentials/interactiveBrowserCredential.d.ts +56 -0
  716. package/dist/esm/credentials/interactiveBrowserCredential.d.ts.map +1 -0
  717. package/dist/esm/credentials/interactiveBrowserCredential.js +91 -0
  718. package/dist/esm/credentials/interactiveBrowserCredential.js.map +1 -0
  719. package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts +77 -0
  720. package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts.map +1 -0
  721. package/dist/esm/credentials/interactiveBrowserCredentialOptions.js +4 -0
  722. package/dist/esm/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
  723. package/dist/esm/credentials/interactiveCredentialOptions.d.ts +25 -0
  724. package/dist/esm/credentials/interactiveCredentialOptions.d.ts.map +1 -0
  725. package/dist/esm/credentials/interactiveCredentialOptions.js +4 -0
  726. package/dist/esm/credentials/interactiveCredentialOptions.js.map +1 -0
  727. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts +18 -0
  728. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts.map +1 -0
  729. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js +122 -0
  730. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
  731. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +12 -0
  732. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +1 -0
  733. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js +33 -0
  734. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
  735. package/dist/esm/credentials/managedIdentityCredential/index.d.ts +61 -0
  736. package/dist/esm/credentials/managedIdentityCredential/index.d.ts.map +1 -0
  737. package/dist/esm/credentials/managedIdentityCredential/index.js +217 -0
  738. package/dist/esm/credentials/managedIdentityCredential/index.js.map +1 -0
  739. package/dist/esm/credentials/managedIdentityCredential/models.d.ts +24 -0
  740. package/dist/esm/credentials/managedIdentityCredential/models.d.ts.map +1 -0
  741. package/dist/esm/credentials/managedIdentityCredential/models.js +4 -0
  742. package/dist/esm/credentials/managedIdentityCredential/models.js.map +1 -0
  743. package/dist/esm/credentials/managedIdentityCredential/options.d.ts +37 -0
  744. package/dist/esm/credentials/managedIdentityCredential/options.d.ts.map +1 -0
  745. package/dist/esm/credentials/managedIdentityCredential/options.js +4 -0
  746. package/dist/esm/credentials/managedIdentityCredential/options.js.map +1 -0
  747. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +14 -0
  748. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +1 -0
  749. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js +32 -0
  750. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
  751. package/dist/esm/credentials/managedIdentityCredential/utils.d.ts +33 -0
  752. package/dist/esm/credentials/managedIdentityCredential/utils.d.ts.map +1 -0
  753. package/dist/esm/credentials/managedIdentityCredential/utils.js +77 -0
  754. package/dist/esm/credentials/managedIdentityCredential/utils.js.map +1 -0
  755. package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts +12 -0
  756. package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts.map +1 -0
  757. package/dist/esm/credentials/multiTenantTokenCredentialOptions.js +4 -0
  758. package/dist/esm/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
  759. package/dist/esm/credentials/onBehalfOfCredential.d.ts +105 -0
  760. package/dist/esm/credentials/onBehalfOfCredential.d.ts.map +1 -0
  761. package/dist/esm/credentials/onBehalfOfCredential.js +112 -0
  762. package/dist/esm/credentials/onBehalfOfCredential.js.map +1 -0
  763. package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts +76 -0
  764. package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts.map +1 -0
  765. package/dist/esm/credentials/onBehalfOfCredentialOptions.js +4 -0
  766. package/dist/esm/credentials/onBehalfOfCredentialOptions.js.map +1 -0
  767. package/dist/esm/credentials/usernamePasswordCredential.d.ts +41 -0
  768. package/dist/esm/credentials/usernamePasswordCredential.d.ts.map +1 -0
  769. package/dist/esm/credentials/usernamePasswordCredential.js +67 -0
  770. package/dist/esm/credentials/usernamePasswordCredential.js.map +1 -0
  771. package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts +9 -0
  772. package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts.map +1 -0
  773. package/dist/esm/credentials/usernamePasswordCredentialOptions.js +4 -0
  774. package/dist/esm/credentials/usernamePasswordCredentialOptions.js.map +1 -0
  775. package/dist/esm/credentials/visualStudioCodeCredential.d.ts +60 -0
  776. package/dist/esm/credentials/visualStudioCodeCredential.d.ts.map +1 -0
  777. package/dist/esm/credentials/visualStudioCodeCredential.js +190 -0
  778. package/dist/esm/credentials/visualStudioCodeCredential.js.map +1 -0
  779. package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts +11 -0
  780. package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts.map +1 -0
  781. package/dist/esm/credentials/visualStudioCodeCredentialOptions.js +4 -0
  782. package/dist/esm/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
  783. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +11 -0
  784. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts.map +1 -0
  785. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js +4 -0
  786. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js.map +1 -0
  787. package/dist/esm/credentials/workloadIdentityCredential.d.ts +47 -0
  788. package/dist/esm/credentials/workloadIdentityCredential.d.ts.map +1 -0
  789. package/dist/esm/credentials/workloadIdentityCredential.js +114 -0
  790. package/dist/esm/credentials/workloadIdentityCredential.js.map +1 -0
  791. package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts +20 -0
  792. package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts.map +1 -0
  793. package/dist/esm/credentials/workloadIdentityCredentialOptions.js +4 -0
  794. package/dist/esm/credentials/workloadIdentityCredentialOptions.js.map +1 -0
  795. package/dist/esm/errors.d.ts +139 -0
  796. package/dist/esm/errors.d.ts.map +1 -0
  797. package/dist/esm/errors.js +123 -0
  798. package/dist/esm/errors.js.map +1 -0
  799. package/dist/esm/index.d.ts +61 -0
  800. package/dist/esm/index.d.ts.map +1 -0
  801. package/dist/esm/index.js +34 -0
  802. package/dist/esm/index.js.map +1 -0
  803. package/dist/esm/msal/browserFlows/flows.d.ts +42 -0
  804. package/dist/esm/msal/browserFlows/flows.d.ts.map +1 -0
  805. package/dist/esm/msal/browserFlows/flows.js +4 -0
  806. package/dist/esm/msal/browserFlows/flows.js.map +1 -0
  807. package/dist/esm/msal/browserFlows/msalAuthCode.d.ts +48 -0
  808. package/dist/esm/msal/browserFlows/msalAuthCode.d.ts.map +1 -0
  809. package/dist/esm/msal/browserFlows/msalAuthCode.js +203 -0
  810. package/dist/esm/msal/browserFlows/msalAuthCode.js.map +1 -0
  811. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts +106 -0
  812. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -0
  813. package/dist/esm/msal/browserFlows/msalBrowserCommon.js +116 -0
  814. package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +1 -0
  815. package/dist/esm/msal/credentials.d.ts +52 -0
  816. package/dist/esm/msal/credentials.d.ts.map +1 -0
  817. package/dist/esm/msal/credentials.js +4 -0
  818. package/dist/esm/msal/credentials.js.map +1 -0
  819. package/dist/esm/msal/msal.d.ts +3 -0
  820. package/dist/esm/msal/msal.d.ts.map +1 -0
  821. package/dist/esm/msal/nodeFlows/brokerOptions.d.ts +44 -0
  822. package/dist/esm/msal/nodeFlows/brokerOptions.d.ts.map +1 -0
  823. package/dist/esm/msal/nodeFlows/brokerOptions.js +2 -0
  824. package/dist/esm/msal/nodeFlows/brokerOptions.js.map +1 -0
  825. package/dist/esm/msal/nodeFlows/msalClient.d.ts +186 -0
  826. package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +1 -0
  827. package/dist/esm/msal/nodeFlows/msalClient.js +477 -0
  828. package/dist/esm/msal/nodeFlows/msalClient.js.map +1 -0
  829. package/dist/esm/msal/nodeFlows/msalPlugins.d.ts +91 -0
  830. package/dist/esm/msal/nodeFlows/msalPlugins.d.ts.map +1 -0
  831. package/dist/esm/msal/nodeFlows/msalPlugins.js +87 -0
  832. package/dist/esm/msal/nodeFlows/msalPlugins.js.map +1 -0
  833. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +24 -0
  834. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +1 -0
  835. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js +4 -0
  836. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js.map +1 -0
  837. package/dist/esm/msal/types.d.ts +87 -0
  838. package/dist/esm/msal/types.d.ts.map +1 -0
  839. package/dist/esm/msal/types.js +4 -0
  840. package/dist/esm/msal/types.js.map +1 -0
  841. package/dist/esm/msal/utils.d.ts +95 -0
  842. package/dist/esm/msal/utils.d.ts.map +1 -0
  843. package/dist/esm/msal/utils.js +238 -0
  844. package/dist/esm/msal/utils.js.map +1 -0
  845. package/dist/esm/package.json +3 -0
  846. package/dist/esm/plugins/consumer.d.ts +28 -0
  847. package/dist/esm/plugins/consumer.d.ts.map +1 -0
  848. package/dist/esm/plugins/consumer.js +43 -0
  849. package/dist/esm/plugins/consumer.js.map +1 -0
  850. package/dist/esm/plugins/provider.d.ts +36 -0
  851. package/dist/esm/plugins/provider.d.ts.map +1 -0
  852. package/dist/esm/plugins/provider.js +4 -0
  853. package/dist/esm/plugins/provider.js.map +1 -0
  854. package/dist/esm/regionalAuthority.d.ts +122 -0
  855. package/dist/esm/regionalAuthority.d.ts.map +1 -0
  856. package/dist/esm/regionalAuthority.js +140 -0
  857. package/dist/esm/regionalAuthority.js.map +1 -0
  858. package/dist/esm/tokenCredentialOptions.d.ts +28 -0
  859. package/dist/esm/tokenCredentialOptions.d.ts.map +1 -0
  860. package/dist/esm/tokenCredentialOptions.js +4 -0
  861. package/dist/esm/tokenCredentialOptions.js.map +1 -0
  862. package/dist/esm/tokenProvider.d.ts +39 -0
  863. package/dist/esm/tokenProvider.d.ts.map +1 -0
  864. package/dist/esm/tokenProvider.js +53 -0
  865. package/dist/esm/tokenProvider.js.map +1 -0
  866. package/dist/esm/util/authHostEnv-browser.d.mts +4 -0
  867. package/dist/esm/util/authHostEnv-browser.d.mts.map +1 -0
  868. package/dist/esm/util/authHostEnv-browser.mjs +7 -0
  869. package/dist/esm/util/authHostEnv-browser.mjs.map +1 -0
  870. package/dist/esm/util/identityTokenEndpoint.d.ts +2 -0
  871. package/dist/esm/util/identityTokenEndpoint.d.ts.map +1 -0
  872. package/dist/esm/util/identityTokenEndpoint.js +11 -0
  873. package/dist/esm/util/identityTokenEndpoint.js.map +1 -0
  874. package/dist/esm/util/logging.d.ts +70 -0
  875. package/dist/esm/util/logging.d.ts.map +1 -0
  876. package/dist/esm/util/logging.js +94 -0
  877. package/dist/esm/util/logging.js.map +1 -0
  878. package/dist/esm/util/processMultiTenantRequest.d.ts +10 -0
  879. package/dist/esm/util/processMultiTenantRequest.d.ts.map +1 -0
  880. package/dist/esm/util/processMultiTenantRequest.js +35 -0
  881. package/dist/esm/util/processMultiTenantRequest.js.map +1 -0
  882. package/dist/esm/util/processUtils.d.ts +13 -0
  883. package/dist/esm/util/processUtils.d.ts.map +1 -0
  884. package/dist/esm/util/processUtils.js +32 -0
  885. package/dist/esm/util/processUtils.js.map +1 -0
  886. package/dist/esm/util/scopeUtils.d.ts +17 -0
  887. package/dist/esm/util/scopeUtils.d.ts.map +1 -0
  888. package/dist/esm/util/scopeUtils.js +29 -0
  889. package/dist/esm/util/scopeUtils.js.map +1 -0
  890. package/dist/esm/util/subscriptionUtils.d.ts +6 -0
  891. package/dist/esm/util/subscriptionUtils.d.ts.map +1 -0
  892. package/dist/esm/util/subscriptionUtils.js +14 -0
  893. package/dist/esm/util/subscriptionUtils.js.map +1 -0
  894. package/dist/esm/util/tenantIdUtils.d.ts +15 -0
  895. package/dist/esm/util/tenantIdUtils.d.ts.map +1 -0
  896. package/dist/esm/util/tenantIdUtils.js +44 -0
  897. package/dist/esm/util/tenantIdUtils.js.map +1 -0
  898. package/dist/esm/util/tracing.d.ts +6 -0
  899. package/dist/esm/util/tracing.d.ts.map +1 -0
  900. package/dist/esm/util/tracing.js +14 -0
  901. package/dist/esm/util/tracing.js.map +1 -0
  902. package/package.json +65 -79
  903. package/dist/index.js +0 -4211
  904. package/dist/index.js.map +0 -1
  905. package/dist-esm/src/client/identityClient.js +0 -248
  906. package/dist-esm/src/client/identityClient.js.map +0 -1
  907. package/dist-esm/src/constants.js +0 -67
  908. package/dist-esm/src/constants.js.map +0 -1
  909. package/dist-esm/src/credentials/authorizationCodeCredential.browser.js +0 -16
  910. package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +0 -1
  911. package/dist-esm/src/credentials/authorizationCodeCredential.js +0 -60
  912. package/dist-esm/src/credentials/authorizationCodeCredential.js.map +0 -1
  913. package/dist-esm/src/credentials/authorizationCodeCredentialOptions.js.map +0 -1
  914. package/dist-esm/src/credentials/azureApplicationCredential.browser.js +0 -34
  915. package/dist-esm/src/credentials/azureApplicationCredential.browser.js.map +0 -1
  916. package/dist-esm/src/credentials/azureApplicationCredential.js +0 -32
  917. package/dist-esm/src/credentials/azureApplicationCredential.js.map +0 -1
  918. package/dist-esm/src/credentials/azureApplicationCredentialOptions.js.map +0 -1
  919. package/dist-esm/src/credentials/azureCliCredential.browser.js +0 -23
  920. package/dist-esm/src/credentials/azureCliCredential.browser.js.map +0 -1
  921. package/dist-esm/src/credentials/azureCliCredential.js +0 -175
  922. package/dist-esm/src/credentials/azureCliCredential.js.map +0 -1
  923. package/dist-esm/src/credentials/azureCliCredentialOptions.js.map +0 -1
  924. package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js +0 -23
  925. package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js.map +0 -1
  926. package/dist-esm/src/credentials/azureDeveloperCliCredential.js +0 -171
  927. package/dist-esm/src/credentials/azureDeveloperCliCredential.js.map +0 -1
  928. package/dist-esm/src/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
  929. package/dist-esm/src/credentials/azurePipelinesCredential.browser.js +0 -23
  930. package/dist-esm/src/credentials/azurePipelinesCredential.browser.js.map +0 -1
  931. package/dist-esm/src/credentials/azurePipelinesCredential.js +0 -141
  932. package/dist-esm/src/credentials/azurePipelinesCredential.js.map +0 -1
  933. package/dist-esm/src/credentials/azurePipelinesCredentialOptions.js.map +0 -1
  934. package/dist-esm/src/credentials/azurePowerShellCredential.browser.js +0 -22
  935. package/dist-esm/src/credentials/azurePowerShellCredential.browser.js.map +0 -1
  936. package/dist-esm/src/credentials/azurePowerShellCredential.js +0 -229
  937. package/dist-esm/src/credentials/azurePowerShellCredential.js.map +0 -1
  938. package/dist-esm/src/credentials/azurePowerShellCredentialOptions.js.map +0 -1
  939. package/dist-esm/src/credentials/brokerAuthOptions.js.map +0 -1
  940. package/dist-esm/src/credentials/chainedTokenCredential.js +0 -89
  941. package/dist-esm/src/credentials/chainedTokenCredential.js.map +0 -1
  942. package/dist-esm/src/credentials/clientAssertionCredential.browser.js +0 -22
  943. package/dist-esm/src/credentials/clientAssertionCredential.browser.js.map +0 -1
  944. package/dist-esm/src/credentials/clientAssertionCredential.js +0 -55
  945. package/dist-esm/src/credentials/clientAssertionCredential.js.map +0 -1
  946. package/dist-esm/src/credentials/clientAssertionCredentialOptions.js.map +0 -1
  947. package/dist-esm/src/credentials/clientCertificateCredential.browser.js +0 -23
  948. package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +0 -1
  949. package/dist-esm/src/credentials/clientCertificateCredential.js +0 -119
  950. package/dist-esm/src/credentials/clientCertificateCredential.js.map +0 -1
  951. package/dist-esm/src/credentials/clientCertificateCredentialOptions.js.map +0 -1
  952. package/dist-esm/src/credentials/clientSecretCredential.browser.js +0 -83
  953. package/dist-esm/src/credentials/clientSecretCredential.browser.js.map +0 -1
  954. package/dist-esm/src/credentials/clientSecretCredential.js +0 -60
  955. package/dist-esm/src/credentials/clientSecretCredential.js.map +0 -1
  956. package/dist-esm/src/credentials/clientSecretCredentialOptions.js.map +0 -1
  957. package/dist-esm/src/credentials/credentialPersistenceOptions.js.map +0 -1
  958. package/dist-esm/src/credentials/defaultAzureCredential.browser.js +0 -29
  959. package/dist-esm/src/credentials/defaultAzureCredential.browser.js.map +0 -1
  960. package/dist-esm/src/credentials/defaultAzureCredential.js +0 -151
  961. package/dist-esm/src/credentials/defaultAzureCredential.js.map +0 -1
  962. package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +0 -1
  963. package/dist-esm/src/credentials/deviceCodeCredential.browser.js +0 -23
  964. package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +0 -1
  965. package/dist-esm/src/credentials/deviceCodeCredential.js +0 -91
  966. package/dist-esm/src/credentials/deviceCodeCredential.js.map +0 -1
  967. package/dist-esm/src/credentials/deviceCodeCredentialOptions.js.map +0 -1
  968. package/dist-esm/src/credentials/environmentCredential.browser.js +0 -23
  969. package/dist-esm/src/credentials/environmentCredential.browser.js.map +0 -1
  970. package/dist-esm/src/credentials/environmentCredential.js +0 -130
  971. package/dist-esm/src/credentials/environmentCredential.js.map +0 -1
  972. package/dist-esm/src/credentials/environmentCredentialOptions.js.map +0 -1
  973. package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js +0 -86
  974. package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +0 -1
  975. package/dist-esm/src/credentials/interactiveBrowserCredential.js +0 -91
  976. package/dist-esm/src/credentials/interactiveBrowserCredential.js.map +0 -1
  977. package/dist-esm/src/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
  978. package/dist-esm/src/credentials/interactiveCredentialOptions.js.map +0 -1
  979. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +0 -71
  980. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +0 -1
  981. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js +0 -71
  982. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js.map +0 -1
  983. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +0 -140
  984. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +0 -1
  985. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +0 -75
  986. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +0 -1
  987. package/dist-esm/src/credentials/managedIdentityCredential/constants.js +0 -9
  988. package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +0 -1
  989. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +0 -95
  990. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +0 -1
  991. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js +0 -144
  992. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
  993. package/dist-esm/src/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
  994. package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js +0 -16
  995. package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +0 -1
  996. package/dist-esm/src/credentials/managedIdentityCredential/index.js +0 -37
  997. package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +0 -1
  998. package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js +0 -309
  999. package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js.map +0 -1
  1000. package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +0 -1
  1001. package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js +0 -212
  1002. package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js.map +0 -1
  1003. package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -29
  1004. package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
  1005. package/dist-esm/src/credentials/managedIdentityCredential/utils.js +0 -77
  1006. package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +0 -1
  1007. package/dist-esm/src/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
  1008. package/dist-esm/src/credentials/onBehalfOfCredential.browser.js +0 -23
  1009. package/dist-esm/src/credentials/onBehalfOfCredential.browser.js.map +0 -1
  1010. package/dist-esm/src/credentials/onBehalfOfCredential.js +0 -112
  1011. package/dist-esm/src/credentials/onBehalfOfCredential.js.map +0 -1
  1012. package/dist-esm/src/credentials/onBehalfOfCredentialOptions.js.map +0 -1
  1013. package/dist-esm/src/credentials/usernamePasswordCredential.browser.js +0 -77
  1014. package/dist-esm/src/credentials/usernamePasswordCredential.browser.js.map +0 -1
  1015. package/dist-esm/src/credentials/usernamePasswordCredential.js +0 -67
  1016. package/dist-esm/src/credentials/usernamePasswordCredential.js.map +0 -1
  1017. package/dist-esm/src/credentials/usernamePasswordCredentialOptions.js.map +0 -1
  1018. package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js +0 -27
  1019. package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +0 -1
  1020. package/dist-esm/src/credentials/visualStudioCodeCredential.js +0 -190
  1021. package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +0 -1
  1022. package/dist-esm/src/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
  1023. package/dist-esm/src/credentials/workloadIdentityCredential.browser.js +0 -27
  1024. package/dist-esm/src/credentials/workloadIdentityCredential.browser.js.map +0 -1
  1025. package/dist-esm/src/credentials/workloadIdentityCredential.js +0 -114
  1026. package/dist-esm/src/credentials/workloadIdentityCredential.js.map +0 -1
  1027. package/dist-esm/src/credentials/workloadIdentityCredentialOptions.js.map +0 -1
  1028. package/dist-esm/src/errors.js.map +0 -1
  1029. package/dist-esm/src/index.js +0 -34
  1030. package/dist-esm/src/index.js.map +0 -1
  1031. package/dist-esm/src/msal/browserFlows/flows.js.map +0 -1
  1032. package/dist-esm/src/msal/browserFlows/msalAuthCode.js +0 -203
  1033. package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +0 -1
  1034. package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js +0 -116
  1035. package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  1036. package/dist-esm/src/msal/credentials.js.map +0 -1
  1037. package/dist-esm/src/msal/msal.browser.js +0 -5
  1038. package/dist-esm/src/msal/msal.browser.js.map +0 -1
  1039. package/dist-esm/src/msal/nodeFlows/msalClient.js +0 -484
  1040. package/dist-esm/src/msal/nodeFlows/msalClient.js.map +0 -1
  1041. package/dist-esm/src/msal/nodeFlows/msalPlugins.js +0 -87
  1042. package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +0 -1
  1043. package/dist-esm/src/msal/types.js.map +0 -1
  1044. package/dist-esm/src/msal/utils.js +0 -232
  1045. package/dist-esm/src/msal/utils.js.map +0 -1
  1046. package/dist-esm/src/plugins/consumer.browser.js +0 -7
  1047. package/dist-esm/src/plugins/consumer.browser.js.map +0 -1
  1048. package/dist-esm/src/plugins/consumer.js +0 -43
  1049. package/dist-esm/src/plugins/consumer.js.map +0 -1
  1050. package/dist-esm/src/plugins/provider.js.map +0 -1
  1051. package/dist-esm/src/tokenCredentialOptions.js.map +0 -1
  1052. package/dist-esm/src/tokenProvider.js +0 -52
  1053. package/dist-esm/src/tokenProvider.js.map +0 -1
  1054. package/dist-esm/src/util/authHostEnv.browser.js +0 -7
  1055. package/dist-esm/src/util/authHostEnv.browser.js.map +0 -1
  1056. package/dist-esm/src/util/logging.js.map +0 -1
  1057. package/dist-esm/src/util/processMultiTenantRequest.browser.js +0 -29
  1058. package/dist-esm/src/util/processMultiTenantRequest.browser.js.map +0 -1
  1059. package/dist-esm/src/util/processMultiTenantRequest.js +0 -35
  1060. package/dist-esm/src/util/processMultiTenantRequest.js.map +0 -1
  1061. package/dist-esm/src/util/scopeUtils.js +0 -29
  1062. package/dist-esm/src/util/scopeUtils.js.map +0 -1
  1063. package/dist-esm/src/util/tenantIdUtils.js +0 -44
  1064. package/dist-esm/src/util/tenantIdUtils.js.map +0 -1
  1065. package/dist-esm/src/util/tracing.js +0 -14
  1066. package/dist-esm/src/util/tracing.js.map +0 -1
  1067. package/types/identity.d.ts +0 -1853
  1068. /package/{dist-esm/src → dist/browser}/credentials/authorityValidationOptions.js +0 -0
  1069. /package/{dist-esm/src → dist/browser}/credentials/authorityValidationOptions.js.map +0 -0
  1070. /package/{dist-esm/src → dist/browser}/credentials/authorizationCodeCredentialOptions.js +0 -0
  1071. /package/{dist-esm/src → dist/browser}/credentials/azureApplicationCredentialOptions.js +0 -0
  1072. /package/{dist-esm/src → dist/browser}/credentials/azureCliCredentialOptions.js +0 -0
  1073. /package/{dist-esm/src → dist/browser}/credentials/azureDeveloperCliCredentialOptions.js +0 -0
  1074. /package/{dist-esm/src → dist/browser}/credentials/azurePipelinesCredentialOptions.js +0 -0
  1075. /package/{dist-esm/src → dist/browser}/credentials/azurePowerShellCredentialOptions.js +0 -0
  1076. /package/{dist-esm/src → dist/browser}/credentials/brokerAuthOptions.js +0 -0
  1077. /package/{dist-esm/src → dist/browser}/credentials/browserCustomizationOptions.js +0 -0
  1078. /package/{dist-esm/src → dist/browser}/credentials/browserCustomizationOptions.js.map +0 -0
  1079. /package/{dist-esm/src → dist/browser}/credentials/clientAssertionCredentialOptions.js +0 -0
  1080. /package/{dist-esm/src → dist/browser}/credentials/clientCertificateCredentialOptions.js +0 -0
  1081. /package/{dist-esm/src → dist/browser}/credentials/clientSecretCredentialOptions.js +0 -0
  1082. /package/{dist-esm/src → dist/browser}/credentials/credentialPersistenceOptions.js +0 -0
  1083. /package/{dist-esm/src → dist/browser}/credentials/defaultAzureCredentialOptions.js +0 -0
  1084. /package/{dist-esm/src → dist/browser}/credentials/deviceCodeCredentialOptions.js +0 -0
  1085. /package/{dist-esm/src → dist/browser}/credentials/environmentCredentialOptions.js +0 -0
  1086. /package/{dist-esm/src → dist/browser}/credentials/interactiveBrowserCredentialOptions.js +0 -0
  1087. /package/{dist-esm/src → dist/browser}/credentials/interactiveCredentialOptions.js +0 -0
  1088. /package/{dist-esm/src → dist/browser}/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -0
  1089. /package/{dist-esm/src → dist/browser}/credentials/managedIdentityCredential/models.js +0 -0
  1090. /package/{dist-esm/src → dist/browser}/credentials/multiTenantTokenCredentialOptions.js +0 -0
  1091. /package/{dist-esm/src → dist/browser}/credentials/onBehalfOfCredentialOptions.js +0 -0
  1092. /package/{dist-esm/src → dist/browser}/credentials/usernamePasswordCredentialOptions.js +0 -0
  1093. /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialOptions.js +0 -0
  1094. /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialPlugin.js +0 -0
  1095. /package/{dist-esm/src → dist/browser}/credentials/visualStudioCodeCredentialPlugin.js.map +0 -0
  1096. /package/{dist-esm/src → dist/browser}/credentials/workloadIdentityCredentialOptions.js +0 -0
  1097. /package/{dist-esm/src → dist/browser}/errors.js +0 -0
  1098. /package/{dist-esm/src → dist/browser}/msal/browserFlows/flows.js +0 -0
  1099. /package/{dist-esm/src → dist/browser}/msal/credentials.js +0 -0
  1100. /package/{dist-esm/src → dist/browser}/msal/nodeFlows/brokerOptions.js +0 -0
  1101. /package/{dist-esm/src → dist/browser}/msal/nodeFlows/brokerOptions.js.map +0 -0
  1102. /package/{dist-esm/src → dist/browser}/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -0
  1103. /package/{dist-esm/src → dist/browser}/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -0
  1104. /package/{dist-esm/src → dist/browser}/msal/types.js +0 -0
  1105. /package/{dist-esm/src → dist/browser}/plugins/provider.js +0 -0
  1106. /package/{dist-esm/src → dist/browser}/regionalAuthority.js +0 -0
  1107. /package/{dist-esm/src → dist/browser}/regionalAuthority.js.map +0 -0
  1108. /package/{dist-esm/src → dist/browser}/tokenCredentialOptions.js +0 -0
  1109. /package/{dist-esm/src → dist/browser}/util/identityTokenEndpoint.js +0 -0
  1110. /package/{dist-esm/src → dist/browser}/util/identityTokenEndpoint.js.map +0 -0
  1111. /package/{dist-esm/src → dist/browser}/util/logging.js +0 -0
  1112. /package/{dist-esm/src → dist/browser}/util/processUtils.js +0 -0
  1113. /package/{dist-esm/src → dist/browser}/util/processUtils.js.map +0 -0
  1114. /package/{dist-esm/src → dist/esm}/msal/msal.js +0 -0
  1115. /package/{dist-esm/src → dist/esm}/msal/msal.js.map +0 -0
@@ -0,0 +1,53 @@
1
+ import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
2
+ import type { InteractiveCredentialOptions } from "./interactiveCredentialOptions.js";
3
+ /**
4
+ * Provides the user code and verification URI where the code must be
5
+ * entered. Also provides a message to display to the user which
6
+ * contains an instruction with these details.
7
+ */
8
+ export interface DeviceCodeInfo {
9
+ /**
10
+ * The device code that the user must enter into the verification page.
11
+ */
12
+ userCode: string;
13
+ /**
14
+ * The verification URI to which the user must navigate to enter the device
15
+ * code.
16
+ */
17
+ verificationUri: string;
18
+ /**
19
+ * A message that may be shown to the user to instruct them on how to enter
20
+ * the device code in the page specified by the verification URI.
21
+ */
22
+ message: string;
23
+ }
24
+ /**
25
+ * Defines the signature of a callback which will be passed to
26
+ * DeviceCodeCredential for the purpose of displaying authentication
27
+ * details to the user.
28
+ */
29
+ export type DeviceCodePromptCallback = (deviceCodeInfo: DeviceCodeInfo) => void;
30
+ /**
31
+ * Defines options for the InteractiveBrowserCredential class for Node.js.
32
+ */
33
+ export interface DeviceCodeCredentialOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions {
34
+ /**
35
+ * The Microsoft Entra tenant (directory) ID.
36
+ */
37
+ tenantId?: string;
38
+ /**
39
+ * Client ID of the Microsoft Entra application that users will sign into.
40
+ * It is recommended that developers register their applications and assign appropriate roles.
41
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
42
+ * If not specified, users will authenticate to an Azure development application,
43
+ * which is not recommended for production scenarios.
44
+ */
45
+ clientId?: string;
46
+ /**
47
+ * A callback function that will be invoked to show {@link DeviceCodeInfo} to the user.
48
+ * If left unassigned, we will automatically log the device code information
49
+ * and the authentication instructions in the console.
50
+ */
51
+ userPromptCallback?: DeviceCodePromptCallback;
52
+ }
53
+ //# sourceMappingURL=deviceCodeCredentialOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceCodeCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/deviceCodeCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,4BAA4B,EAClC,4BAA4B;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;CAC/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceCodeCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/deviceCodeCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { InteractiveCredentialOptions } from \"./interactiveCredentialOptions.js\";\n\n/**\n * Provides the user code and verification URI where the code must be\n * entered. Also provides a message to display to the user which\n * contains an instruction with these details.\n */\nexport interface DeviceCodeInfo {\n /**\n * The device code that the user must enter into the verification page.\n */\n userCode: string;\n\n /**\n * The verification URI to which the user must navigate to enter the device\n * code.\n */\n verificationUri: string;\n\n /**\n * A message that may be shown to the user to instruct them on how to enter\n * the device code in the page specified by the verification URI.\n */\n message: string;\n}\n\n/**\n * Defines the signature of a callback which will be passed to\n * DeviceCodeCredential for the purpose of displaying authentication\n * details to the user.\n */\nexport type DeviceCodePromptCallback = (deviceCodeInfo: DeviceCodeInfo) => void;\n\n/**\n * Defines options for the InteractiveBrowserCredential class for Node.js.\n */\nexport interface DeviceCodeCredentialOptions\n extends InteractiveCredentialOptions,\n CredentialPersistenceOptions {\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId?: string;\n /**\n * Client ID of the Microsoft Entra application that users will sign into.\n * It is recommended that developers register their applications and assign appropriate roles.\n * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.\n * If not specified, users will authenticate to an Azure development application,\n * which is not recommended for production scenarios.\n */\n clientId?: string;\n /**\n * A callback function that will be invoked to show {@link DeviceCodeInfo} to the user.\n * If left unassigned, we will automatically log the device code information\n * and the authentication instructions in the console.\n */\n userPromptCallback?: DeviceCodePromptCallback;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/environmentCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;;GAGG;AACH,qBAAa,qBAAsB,YAAW,eAAe;IAC3D;;OAEG;;IAMH,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIxC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/environmentCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,wDAAwD,CACzD,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IAChC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ;QACN,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"EnvironmentCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"EnvironmentCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using client secret\n * details configured in environment variables\n */\nexport class EnvironmentCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -0,0 +1,13 @@
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
@@ -0,0 +1,23 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { credentialLogger, formatError } from "../util/logging.js";
4
+ const BrowserNotSupportedError = new Error("EnvironmentCredential is not supported in the browser.");
5
+ const logger = credentialLogger("EnvironmentCredential");
6
+ /**
7
+ * Enables authentication to Microsoft Entra ID using client secret
8
+ * details configured in environment variables
9
+ */
10
+ export class EnvironmentCredential {
11
+ /**
12
+ * Only available in Node.js
13
+ */
14
+ constructor() {
15
+ logger.info(formatError("", BrowserNotSupportedError));
16
+ throw BrowserNotSupportedError;
17
+ }
18
+ getToken() {
19
+ logger.getToken.info(formatError("", BrowserNotSupportedError));
20
+ throw BrowserNotSupportedError;
21
+ }
22
+ }
23
+ //# sourceMappingURL=environmentCredential-browser.mjs.map
@@ -0,0 +1,9 @@
1
+ import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
2
+ import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
3
+ /**
4
+ * Enables authentication to Microsoft Entra ID depending on the available environment variables.
5
+ * Defines options for the EnvironmentCredential class.
6
+ */
7
+ export interface EnvironmentCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
8
+ }
9
+ //# sourceMappingURL=environmentCredentialOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/environmentCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;;GAGG;AACH,MAAM,WAAW,4BACf,SAAQ,iCAAiC,EACvC,0BAA0B;CAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/environmentCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Enables authentication to Microsoft Entra ID depending on the available environment variables.\n * Defines options for the EnvironmentCredential class.\n */\nexport interface EnvironmentCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n AuthorityValidationOptions {}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveBrowserCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/interactiveBrowserCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EACV,4CAA4C,EAC5C,uCAAuC,EACxC,MAAM,0CAA0C,CAAC;AAOlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAS7D;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,eAAe;IAClE,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,8BAA8B,CAAC,CAAU;IAEjD;;;;;;;;;;;;;OAaG;gBAED,OAAO,EAAE,4CAA4C,GAAG,uCAAuC;IA0CjG;;;;;;;;;;;OAWG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAqB9F;;;;;;;;;OASG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;CAW7C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveBrowserCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/interactiveBrowserCredential-browser.mts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type {\n InteractiveBrowserCredentialInBrowserOptions,\n InteractiveBrowserCredentialNodeOptions,\n} from \"./interactiveBrowserCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport {\n processMultiTenantRequest,\n resolveAdditionallyAllowedTenantIds,\n} from \"../util/tenantIdUtils.js\";\n\nimport type { AuthenticationRecord } from \"../msal/types.js\";\nimport { MSALAuthCode } from \"../msal/browserFlows/msalAuthCode.js\";\nimport type { MsalBrowserFlowOptions } from \"../msal/browserFlows/msalBrowserCommon.js\";\nimport type { MsalFlow } from \"../msal/browserFlows/flows.js\";\nimport { ensureScopes } from \"../util/scopeUtils.js\";\nimport { tracingClient } from \"../util/tracing.js\";\n\nconst logger = credentialLogger(\"InteractiveBrowserCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID inside of the web browser\n * using the interactive login flow.\n */\nexport class InteractiveBrowserCredential implements TokenCredential {\n private tenantId?: string;\n private additionallyAllowedTenantIds: string[];\n private msalFlow: MsalFlow;\n private disableAutomaticAuthentication?: boolean;\n\n /**\n * Creates an instance of the InteractiveBrowserCredential with the\n * details needed to authenticate against Microsoft Entra ID with\n * a user identity.\n *\n * This credential uses the [Authorization Code Flow](https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow).\n * On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.\n * On browsers, it authenticates via popups. The `loginStyle` optional parameter can be set to `redirect` to authenticate by redirecting the user to an Azure secure login page, which then will redirect the user back to the web application where the authentication started.\n *\n * It's recommended that the Microsoft Entra Applications used are configured to authenticate using Single Page Applications.\n * More information here: [link](https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration#redirect-uri-msaljs-20-with-auth-code-flow).\n *\n * @param options - Options for configuring the client which makes the authentication request.\n */\n constructor(\n options: InteractiveBrowserCredentialInBrowserOptions | InteractiveBrowserCredentialNodeOptions,\n ) {\n if (!options?.clientId) {\n const error = new Error(\n \"The parameter `clientId` cannot be left undefined for the `InteractiveBrowserCredential`\",\n );\n logger.info(formatError(\"\", error));\n throw error;\n }\n\n this.tenantId = options?.tenantId;\n this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(\n options?.additionallyAllowedTenants,\n );\n\n const browserOptions = options as InteractiveBrowserCredentialInBrowserOptions;\n const loginStyle = browserOptions.loginStyle || \"popup\";\n const loginStyles = [\"redirect\", \"popup\"];\n\n if (loginStyles.indexOf(loginStyle) === -1) {\n const error = new Error(\n `Invalid loginStyle: ${\n browserOptions.loginStyle\n }. Should be any of the following: ${loginStyles.join(\", \")}.`,\n );\n logger.info(formatError(\"\", error));\n throw error;\n }\n\n const msalOptions: MsalBrowserFlowOptions = {\n ...options,\n tokenCredentialOptions: options,\n logger,\n loginStyle: loginStyle,\n redirectUri:\n typeof options.redirectUri === \"function\" ? options.redirectUri() : options.redirectUri,\n };\n\n this.msalFlow = new MSALAuthCode(msalOptions);\n this.disableAutomaticAuthentication = options?.disableAutomaticAuthentication;\n }\n\n /**\n * Authenticates with Microsoft Entra ID 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 * If the user provided the option `disableAutomaticAuthentication`,\n * once the token can't be retrieved silently,\n * this method won't attempt to request user interaction to retrieve the token.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n async getToken(scopes: string | string[], options: GetTokenOptions = {}): Promise<AccessToken> {\n return tracingClient.withSpan(\n `${this.constructor.name}.getToken`,\n options,\n async (newOptions) => {\n const tenantId = processMultiTenantRequest(\n this.tenantId,\n newOptions,\n this.additionallyAllowedTenantIds,\n );\n newOptions.tenantId = tenantId;\n\n const arrayScopes = ensureScopes(scopes);\n return this.msalFlow.getToken(arrayScopes, {\n ...newOptions,\n disableAutomaticAuthentication: this.disableAutomaticAuthentication,\n });\n },\n );\n }\n\n /**\n * Authenticates with Microsoft Entra ID 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 * If the token can't be retrieved silently, this method will require user interaction to retrieve the token.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n async authenticate(\n scopes: string | string[],\n options: GetTokenOptions = {},\n ): Promise<AuthenticationRecord | undefined> {\n return tracingClient.withSpan(\n `${this.constructor.name}.authenticate`,\n options,\n async (newOptions) => {\n const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];\n await this.msalFlow.getToken(arrayScopes, newOptions);\n return this.msalFlow.getActiveAccount();\n },\n );\n }\n}\n"]}
@@ -0,0 +1,53 @@
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { InteractiveBrowserCredentialInBrowserOptions, InteractiveBrowserCredentialNodeOptions } from "./interactiveBrowserCredentialOptions.js";
3
+ import type { AuthenticationRecord } from "../msal/types.js";
4
+ /**
5
+ * Enables authentication to Microsoft Entra ID inside of the web browser
6
+ * using the interactive login flow.
7
+ */
8
+ export declare class InteractiveBrowserCredential implements TokenCredential {
9
+ private tenantId?;
10
+ private additionallyAllowedTenantIds;
11
+ private msalFlow;
12
+ private disableAutomaticAuthentication?;
13
+ /**
14
+ * Creates an instance of the InteractiveBrowserCredential with the
15
+ * details needed to authenticate against Microsoft Entra ID with
16
+ * a user identity.
17
+ *
18
+ * This credential uses the [Authorization Code Flow](https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow).
19
+ * On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.
20
+ * On browsers, it authenticates via popups. The `loginStyle` optional parameter can be set to `redirect` to authenticate by redirecting the user to an Azure secure login page, which then will redirect the user back to the web application where the authentication started.
21
+ *
22
+ * It's recommended that the Microsoft Entra Applications used are configured to authenticate using Single Page Applications.
23
+ * More information here: [link](https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration#redirect-uri-msaljs-20-with-auth-code-flow).
24
+ *
25
+ * @param options - Options for configuring the client which makes the authentication request.
26
+ */
27
+ constructor(options: InteractiveBrowserCredentialInBrowserOptions | InteractiveBrowserCredentialNodeOptions);
28
+ /**
29
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
30
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
31
+ *
32
+ * If the user provided the option `disableAutomaticAuthentication`,
33
+ * once the token can't be retrieved silently,
34
+ * this method won't attempt to request user interaction to retrieve the token.
35
+ *
36
+ * @param scopes - The list of scopes for which the token will have access.
37
+ * @param options - The options used to configure any requests this
38
+ * TokenCredential implementation might make.
39
+ */
40
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
41
+ /**
42
+ * Authenticates with Microsoft Entra ID 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
+ * If the token can't be retrieved silently, this method will require user interaction to retrieve the token.
46
+ *
47
+ * @param scopes - The list of scopes for which the token will have access.
48
+ * @param options - The options used to configure any requests this
49
+ * TokenCredential implementation might make.
50
+ */
51
+ authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
52
+ }
53
+ //# sourceMappingURL=interactiveBrowserCredential-browser.d.mts.map
@@ -0,0 +1,86 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { credentialLogger, formatError } from "../util/logging.js";
4
+ import { processMultiTenantRequest, resolveAdditionallyAllowedTenantIds, } from "../util/tenantIdUtils.js";
5
+ import { MSALAuthCode } from "../msal/browserFlows/msalAuthCode.js";
6
+ import { ensureScopes } from "../util/scopeUtils.js";
7
+ import { tracingClient } from "../util/tracing.js";
8
+ const logger = credentialLogger("InteractiveBrowserCredential");
9
+ /**
10
+ * Enables authentication to Microsoft Entra ID inside of the web browser
11
+ * using the interactive login flow.
12
+ */
13
+ export class InteractiveBrowserCredential {
14
+ /**
15
+ * Creates an instance of the InteractiveBrowserCredential with the
16
+ * details needed to authenticate against Microsoft Entra ID with
17
+ * a user identity.
18
+ *
19
+ * This credential uses the [Authorization Code Flow](https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow).
20
+ * On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.
21
+ * On browsers, it authenticates via popups. The `loginStyle` optional parameter can be set to `redirect` to authenticate by redirecting the user to an Azure secure login page, which then will redirect the user back to the web application where the authentication started.
22
+ *
23
+ * It's recommended that the Microsoft Entra Applications used are configured to authenticate using Single Page Applications.
24
+ * More information here: [link](https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration#redirect-uri-msaljs-20-with-auth-code-flow).
25
+ *
26
+ * @param options - Options for configuring the client which makes the authentication request.
27
+ */
28
+ constructor(options) {
29
+ if (!(options === null || options === void 0 ? void 0 : options.clientId)) {
30
+ const error = new Error("The parameter `clientId` cannot be left undefined for the `InteractiveBrowserCredential`");
31
+ logger.info(formatError("", error));
32
+ throw error;
33
+ }
34
+ this.tenantId = options === null || options === void 0 ? void 0 : options.tenantId;
35
+ this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(options === null || options === void 0 ? void 0 : options.additionallyAllowedTenants);
36
+ const browserOptions = options;
37
+ const loginStyle = browserOptions.loginStyle || "popup";
38
+ const loginStyles = ["redirect", "popup"];
39
+ if (loginStyles.indexOf(loginStyle) === -1) {
40
+ const error = new Error(`Invalid loginStyle: ${browserOptions.loginStyle}. Should be any of the following: ${loginStyles.join(", ")}.`);
41
+ logger.info(formatError("", error));
42
+ throw error;
43
+ }
44
+ const msalOptions = Object.assign(Object.assign({}, options), { tokenCredentialOptions: options, logger, loginStyle: loginStyle, redirectUri: typeof options.redirectUri === "function" ? options.redirectUri() : options.redirectUri });
45
+ this.msalFlow = new MSALAuthCode(msalOptions);
46
+ this.disableAutomaticAuthentication = options === null || options === void 0 ? void 0 : options.disableAutomaticAuthentication;
47
+ }
48
+ /**
49
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
50
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
51
+ *
52
+ * If the user provided the option `disableAutomaticAuthentication`,
53
+ * once the token can't be retrieved silently,
54
+ * this method won't attempt to request user interaction to retrieve the token.
55
+ *
56
+ * @param scopes - The list of scopes for which the token will have access.
57
+ * @param options - The options used to configure any requests this
58
+ * TokenCredential implementation might make.
59
+ */
60
+ async getToken(scopes, options = {}) {
61
+ return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
62
+ const tenantId = processMultiTenantRequest(this.tenantId, newOptions, this.additionallyAllowedTenantIds);
63
+ newOptions.tenantId = tenantId;
64
+ const arrayScopes = ensureScopes(scopes);
65
+ return this.msalFlow.getToken(arrayScopes, Object.assign(Object.assign({}, newOptions), { disableAutomaticAuthentication: this.disableAutomaticAuthentication }));
66
+ });
67
+ }
68
+ /**
69
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
70
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
71
+ *
72
+ * If the token can't be retrieved silently, this method will require user interaction to retrieve the token.
73
+ *
74
+ * @param scopes - The list of scopes for which the token will have access.
75
+ * @param options - The options used to configure any requests this
76
+ * TokenCredential implementation might make.
77
+ */
78
+ async authenticate(scopes, options = {}) {
79
+ return tracingClient.withSpan(`${this.constructor.name}.authenticate`, options, async (newOptions) => {
80
+ const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
81
+ await this.msalFlow.getToken(arrayScopes, newOptions);
82
+ return this.msalFlow.getActiveAccount();
83
+ });
84
+ }
85
+ }
86
+ //# sourceMappingURL=interactiveBrowserCredential-browser.mjs.map
@@ -0,0 +1,77 @@
1
+ import type { BrowserCustomizationOptions } from "./browserCustomizationOptions.js";
2
+ import type { BrokerAuthOptions } from "./brokerAuthOptions.js";
3
+ import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
4
+ import type { InteractiveCredentialOptions } from "./interactiveCredentialOptions.js";
5
+ /**
6
+ * (Browser-only feature)
7
+ * The "login style" to use in the authentication flow:
8
+ * - "redirect" redirects the user to the authentication page and then
9
+ * redirects them back to the page once authentication is completed.
10
+ * - "popup" opens a new browser window through with the redirect flow
11
+ * is initiated. The user's existing browser window does not leave
12
+ * the current page
13
+ */
14
+ export type BrowserLoginStyle = "redirect" | "popup";
15
+ /**
16
+ * Defines the common options for the InteractiveBrowserCredential class.
17
+ */
18
+ export interface InteractiveBrowserCredentialNodeOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions, BrowserCustomizationOptions, BrokerAuthOptions {
19
+ /**
20
+ * Gets the redirect URI of the application. This should be same as the value
21
+ * in the application registration portal. Defaults to `window.location.href`.
22
+ * This field is no longer required for Node.js.
23
+ */
24
+ redirectUri?: string | (() => string);
25
+ /**
26
+ * The Microsoft Entra tenant (directory) ID.
27
+ */
28
+ tenantId?: string;
29
+ /**
30
+ * The Client ID of the Microsoft Entra application that users will sign into.
31
+ * It is recommended that developers register their applications and assign appropriate roles.
32
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
33
+ * If not specified, users will authenticate to an Azure development application,
34
+ * which is not recommended for production scenarios.
35
+ */
36
+ clientId?: string;
37
+ /**
38
+ * loginHint allows a user name to be pre-selected for interactive logins.
39
+ * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
40
+ */
41
+ loginHint?: string;
42
+ }
43
+ /**
44
+ * Defines the common options for the InteractiveBrowserCredential class.
45
+ */
46
+ export interface InteractiveBrowserCredentialInBrowserOptions extends InteractiveCredentialOptions {
47
+ /**
48
+ * Gets the redirect URI of the application. This should be same as the value
49
+ * in the application registration portal. Defaults to `window.location.href`.
50
+ * This field is no longer required for Node.js.
51
+ */
52
+ redirectUri?: string | (() => string);
53
+ /**
54
+ * The Microsoft Entra tenant (directory) ID.
55
+ */
56
+ tenantId?: string;
57
+ /**
58
+ * The Client ID of the Microsoft Entra application that users will sign into.
59
+ * This parameter is required on the browser.
60
+ * Developers need to register their applications and assign appropriate roles.
61
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
62
+ */
63
+ clientId: string;
64
+ /**
65
+ * Specifies whether a redirect or a popup window should be used to
66
+ * initiate the user authentication flow. Possible values are "redirect"
67
+ * or "popup" (default) for browser and "popup" (default) for node.
68
+ *
69
+ */
70
+ loginStyle?: BrowserLoginStyle;
71
+ /**
72
+ * loginHint allows a user name to be pre-selected for interactive logins.
73
+ * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
74
+ */
75
+ loginHint?: string;
76
+ }
77
+ //# sourceMappingURL=interactiveBrowserCredentialOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveBrowserCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/interactiveBrowserCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,uCACf,SAAQ,4BAA4B,EAClC,4BAA4B,EAC5B,2BAA2B,EAC3B,iBAAiB;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,4CAA6C,SAAQ,4BAA4B;IAChG;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveBrowserCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/interactiveBrowserCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BrowserCustomizationOptions } from \"./browserCustomizationOptions.js\";\nimport type { BrokerAuthOptions } from \"./brokerAuthOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { InteractiveCredentialOptions } from \"./interactiveCredentialOptions.js\";\n\n/**\n * (Browser-only feature)\n * The \"login style\" to use in the authentication flow:\n * - \"redirect\" redirects the user to the authentication page and then\n * redirects them back to the page once authentication is completed.\n * - \"popup\" opens a new browser window through with the redirect flow\n * is initiated. The user's existing browser window does not leave\n * the current page\n */\nexport type BrowserLoginStyle = \"redirect\" | \"popup\";\n\n/**\n * Defines the common options for the InteractiveBrowserCredential class.\n */\nexport interface InteractiveBrowserCredentialNodeOptions\n extends InteractiveCredentialOptions,\n CredentialPersistenceOptions,\n BrowserCustomizationOptions,\n BrokerAuthOptions {\n /**\n * Gets the redirect URI of the application. This should be same as the value\n * in the application registration portal. Defaults to `window.location.href`.\n * This field is no longer required for Node.js.\n */\n redirectUri?: string | (() => string);\n\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId?: string;\n\n /**\n * The Client ID of the Microsoft Entra application that users will sign into.\n * It is recommended that developers register their applications and assign appropriate roles.\n * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.\n * If not specified, users will authenticate to an Azure development application,\n * which is not recommended for production scenarios.\n */\n clientId?: string;\n\n /**\n * loginHint allows a user name to be pre-selected for interactive logins.\n * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.\n */\n loginHint?: string;\n}\n\n/**\n * Defines the common options for the InteractiveBrowserCredential class.\n */\nexport interface InteractiveBrowserCredentialInBrowserOptions extends InteractiveCredentialOptions {\n /**\n * Gets the redirect URI of the application. This should be same as the value\n * in the application registration portal. Defaults to `window.location.href`.\n * This field is no longer required for Node.js.\n */\n redirectUri?: string | (() => string);\n\n /**\n * The Microsoft Entra tenant (directory) ID.\n */\n tenantId?: string;\n\n /**\n * The Client ID of the Microsoft Entra application that users will sign into.\n * This parameter is required on the browser.\n * Developers need to register their applications and assign appropriate roles.\n * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.\n */\n clientId: string;\n\n /**\n * Specifies whether a redirect or a popup window should be used to\n * initiate the user authentication flow. Possible values are \"redirect\"\n * or \"popup\" (default) for browser and \"popup\" (default) for node.\n *\n */\n loginStyle?: BrowserLoginStyle;\n\n /**\n * loginHint allows a user name to be pre-selected for interactive logins.\n * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.\n */\n loginHint?: string;\n}\n"]}
@@ -0,0 +1,25 @@
1
+ import type { AuthenticationRecord } from "../msal/types.js";
2
+ import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
3
+ import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
4
+ /**
5
+ * Common constructor options for the Identity credentials that requires user interaction.
6
+ */
7
+ export interface InteractiveCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
8
+ /**
9
+ * Result of a previous authentication that can be used to retrieve the cached credentials of each individual account.
10
+ * This is necessary to provide in case the application wants to work with more than one account per
11
+ * Client ID and Tenant ID pair.
12
+ *
13
+ * This record can be retrieved by calling to the credential's `authenticate()` method, as follows:
14
+ *
15
+ * const authenticationRecord = await credential.authenticate();
16
+ *
17
+ */
18
+ authenticationRecord?: AuthenticationRecord;
19
+ /**
20
+ * Makes getToken throw if a manual authentication is necessary.
21
+ * Developers will need to call to `authenticate()` to control when to manually authenticate.
22
+ */
23
+ disableAutomaticAuthentication?: boolean;
24
+ }
25
+ //# sourceMappingURL=interactiveCredentialOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/interactiveCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,iCAAiC,EACvC,0BAA0B;IAC5B;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAE5C;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/interactiveCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthenticationRecord } from \"../msal/types.js\";\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Common constructor options for the Identity credentials that requires user interaction.\n */\nexport interface InteractiveCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n AuthorityValidationOptions {\n /**\n * Result of a previous authentication that can be used to retrieve the cached credentials of each individual account.\n * This is necessary to provide in case the application wants to work with more than one account per\n * Client ID and Tenant ID pair.\n *\n * This record can be retrieved by calling to the credential's `authenticate()` method, as follows:\n *\n * const authenticationRecord = await credential.authenticate();\n *\n */\n authenticationRecord?: AuthenticationRecord;\n\n /**\n * Makes getToken throw if a manual authentication is necessary.\n * Developers will need to call to `authenticate()` to control when to manually authenticate.\n */\n disableAutomaticAuthentication?: boolean;\n}\n"]}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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;AAkErE;;;;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;CAmErB,CAAC"}
@@ -0,0 +1,122 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createHttpHeaders, createPipelineRequest } from "@azure/core-rest-pipeline";
4
+ import { isError } from "@azure/core-util";
5
+ import { credentialLogger } from "../../util/logging.js";
6
+ import { mapScopesToResource } from "./utils.js";
7
+ import { tracingClient } from "../../util/tracing.js";
8
+ const msiName = "ManagedIdentityCredential - IMDS";
9
+ const logger = credentialLogger(msiName);
10
+ const imdsHost = "http://169.254.169.254";
11
+ const imdsEndpointPath = "/metadata/identity/oauth2/token";
12
+ const imdsApiVersion = "2018-02-01";
13
+ /**
14
+ * Generates the options used on the request for an access token.
15
+ */
16
+ function prepareRequestOptions(scopes, clientId, resourceId, options) {
17
+ var _a;
18
+ const resource = mapScopesToResource(scopes);
19
+ if (!resource) {
20
+ throw new Error(`${msiName}: Multiple scopes are not supported.`);
21
+ }
22
+ const { skipQuery, skipMetadataHeader } = options || {};
23
+ let query = "";
24
+ // Pod Identity will try to process this request even if the Metadata header is missing.
25
+ // We can exclude the request query to ensure no IMDS endpoint tries to process the ping request.
26
+ if (!skipQuery) {
27
+ const queryParameters = {
28
+ resource,
29
+ "api-version": imdsApiVersion,
30
+ };
31
+ if (clientId) {
32
+ queryParameters.client_id = clientId;
33
+ }
34
+ if (resourceId) {
35
+ queryParameters.msi_res_id = resourceId;
36
+ }
37
+ const params = new URLSearchParams(queryParameters);
38
+ query = `?${params.toString()}`;
39
+ }
40
+ const url = new URL(imdsEndpointPath, (_a = process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) !== null && _a !== void 0 ? _a : imdsHost);
41
+ const rawHeaders = {
42
+ Accept: "application/json",
43
+ Metadata: "true",
44
+ };
45
+ // Remove the Metadata header to invoke a request error from some IMDS endpoints.
46
+ if (skipMetadataHeader) {
47
+ delete rawHeaders.Metadata;
48
+ }
49
+ return {
50
+ // In this case, the `?` should be added in the "query" variable `skipQuery` is not set.
51
+ url: `${url}${query}`,
52
+ method: "GET",
53
+ headers: createHttpHeaders(rawHeaders),
54
+ };
55
+ }
56
+ /**
57
+ * Defines how to determine whether the Azure IMDS MSI is available.
58
+ *
59
+ * Actually getting the token once we determine IMDS is available is handled by MSAL.
60
+ */
61
+ export const imdsMsi = {
62
+ name: "imdsMsi",
63
+ async isAvailable(options) {
64
+ const { scopes, identityClient, clientId, resourceId, getTokenOptions } = options;
65
+ const resource = mapScopesToResource(scopes);
66
+ if (!resource) {
67
+ logger.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
68
+ return false;
69
+ }
70
+ // if the PodIdentityEndpoint environment variable was set no need to probe the endpoint, it can be assumed to exist
71
+ if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) {
72
+ return true;
73
+ }
74
+ if (!identityClient) {
75
+ throw new Error("Missing IdentityClient");
76
+ }
77
+ const requestOptions = prepareRequestOptions(resource, clientId, resourceId, {
78
+ skipMetadataHeader: true,
79
+ skipQuery: true,
80
+ });
81
+ return tracingClient.withSpan("ManagedIdentityCredential-pingImdsEndpoint", getTokenOptions !== null && getTokenOptions !== void 0 ? getTokenOptions : {}, async (updatedOptions) => {
82
+ var _a, _b;
83
+ requestOptions.tracingOptions = updatedOptions.tracingOptions;
84
+ // Create a request with a timeout since we expect that
85
+ // not having a "Metadata" header should cause an error to be
86
+ // returned quickly from the endpoint, proving its availability.
87
+ const request = createPipelineRequest(requestOptions);
88
+ // Default to 1000 if the default of 0 is used.
89
+ // Negative values can still be used to disable the timeout.
90
+ request.timeout = ((_a = updatedOptions.requestOptions) === null || _a === void 0 ? void 0 : _a.timeout) || 1000;
91
+ // This MSI uses the imdsEndpoint to get the token, which only uses http://
92
+ request.allowInsecureConnection = true;
93
+ let response;
94
+ try {
95
+ logger.info(`${msiName}: Pinging the Azure IMDS endpoint`);
96
+ response = await identityClient.sendRequest(request);
97
+ }
98
+ catch (err) {
99
+ // If the request failed, or Node.js was unable to establish a connection,
100
+ // or the host was down, we'll assume the IMDS endpoint isn't available.
101
+ if (isError(err)) {
102
+ logger.verbose(`${msiName}: Caught error ${err.name}: ${err.message}`);
103
+ }
104
+ // This is a special case for Docker Desktop which responds with a 403 with a message that contains "A socket operation was attempted to an unreachable network" or "A socket operation was attempted to an unreachable host"
105
+ // rather than just timing out, as expected.
106
+ logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);
107
+ return false;
108
+ }
109
+ if (response.status === 403) {
110
+ if ((_b = response.bodyAsText) === null || _b === void 0 ? void 0 : _b.includes("unreachable")) {
111
+ logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);
112
+ logger.info(`${msiName}: ${response.bodyAsText}`);
113
+ return false;
114
+ }
115
+ }
116
+ // If we received any response, the endpoint is available
117
+ logger.info(`${msiName}: The Azure IMDS endpoint is available`);
118
+ return true;
119
+ });
120
+ },
121
+ };
122
+ //# sourceMappingURL=imdsMsi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imdsMsi.js","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsMsi.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PipelineRequestOptions, PipelineResponse } from \"@azure/core-rest-pipeline\";\nimport { createHttpHeaders, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { isError } from \"@azure/core-util\";\n\nimport type { GetTokenOptions } from \"@azure/core-auth\";\nimport { credentialLogger } from \"../../util/logging.js\";\nimport { mapScopesToResource } from \"./utils.js\";\nimport { tracingClient } from \"../../util/tracing.js\";\nimport type { IdentityClient } from \"../../client/identityClient.js\";\n\nconst msiName = \"ManagedIdentityCredential - IMDS\";\nconst logger = credentialLogger(msiName);\n\nconst imdsHost = \"http://169.254.169.254\";\nconst imdsEndpointPath = \"/metadata/identity/oauth2/token\";\nconst imdsApiVersion = \"2018-02-01\";\n\n/**\n * Generates the options used on the request for an access token.\n */\nfunction prepareRequestOptions(\n scopes: string | string[],\n clientId?: string,\n resourceId?: string,\n options?: {\n skipQuery?: boolean;\n skipMetadataHeader?: boolean;\n },\n): PipelineRequestOptions {\n const resource = mapScopesToResource(scopes);\n if (!resource) {\n throw new Error(`${msiName}: Multiple scopes are not supported.`);\n }\n\n const { skipQuery, skipMetadataHeader } = options || {};\n let query = \"\";\n\n // Pod Identity will try to process this request even if the Metadata header is missing.\n // We can exclude the request query to ensure no IMDS endpoint tries to process the ping request.\n if (!skipQuery) {\n const queryParameters: Record<string, string> = {\n resource,\n \"api-version\": imdsApiVersion,\n };\n if (clientId) {\n queryParameters.client_id = clientId;\n }\n if (resourceId) {\n queryParameters.msi_res_id = resourceId;\n }\n const params = new URLSearchParams(queryParameters);\n query = `?${params.toString()}`;\n }\n\n const url = new URL(imdsEndpointPath, process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST ?? imdsHost);\n\n const rawHeaders: Record<string, string> = {\n Accept: \"application/json\",\n Metadata: \"true\",\n };\n\n // Remove the Metadata header to invoke a request error from some IMDS endpoints.\n if (skipMetadataHeader) {\n delete rawHeaders.Metadata;\n }\n\n return {\n // In this case, the `?` should be added in the \"query\" variable `skipQuery` is not set.\n url: `${url}${query}`,\n method: \"GET\",\n headers: createHttpHeaders(rawHeaders),\n };\n}\n\n/**\n * Defines how to determine whether the Azure IMDS MSI is available.\n *\n * Actually getting the token once we determine IMDS is available is handled by MSAL.\n */\nexport const imdsMsi = {\n name: \"imdsMsi\",\n async isAvailable(options: {\n scopes: string | string[];\n identityClient?: IdentityClient;\n clientId?: string;\n resourceId?: string;\n getTokenOptions?: GetTokenOptions;\n }): Promise<boolean> {\n const { scopes, identityClient, clientId, resourceId, getTokenOptions } = options;\n const resource = mapScopesToResource(scopes);\n if (!resource) {\n logger.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);\n return false;\n }\n\n // if the PodIdentityEndpoint environment variable was set no need to probe the endpoint, it can be assumed to exist\n if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) {\n return true;\n }\n\n if (!identityClient) {\n throw new Error(\"Missing IdentityClient\");\n }\n\n const requestOptions = prepareRequestOptions(resource, clientId, resourceId, {\n skipMetadataHeader: true,\n skipQuery: true,\n });\n\n return tracingClient.withSpan(\n \"ManagedIdentityCredential-pingImdsEndpoint\",\n getTokenOptions ?? {},\n async (updatedOptions) => {\n requestOptions.tracingOptions = updatedOptions.tracingOptions;\n\n // Create a request with a timeout since we expect that\n // not having a \"Metadata\" header should cause an error to be\n // returned quickly from the endpoint, proving its availability.\n const request = createPipelineRequest(requestOptions);\n\n // Default to 1000 if the default of 0 is used.\n // Negative values can still be used to disable the timeout.\n request.timeout = updatedOptions.requestOptions?.timeout || 1000;\n\n // This MSI uses the imdsEndpoint to get the token, which only uses http://\n request.allowInsecureConnection = true;\n let response: PipelineResponse;\n try {\n logger.info(`${msiName}: Pinging the Azure IMDS endpoint`);\n response = await identityClient.sendRequest(request);\n } catch (err: unknown) {\n // If the request failed, or Node.js was unable to establish a connection,\n // or the host was down, we'll assume the IMDS endpoint isn't available.\n if (isError(err)) {\n logger.verbose(`${msiName}: Caught error ${err.name}: ${err.message}`);\n }\n // This is a special case for Docker Desktop which responds with a 403 with a message that contains \"A socket operation was attempted to an unreachable network\" or \"A socket operation was attempted to an unreachable host\"\n // rather than just timing out, as expected.\n logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);\n return false;\n }\n if (response.status === 403) {\n if (response.bodyAsText?.includes(\"unreachable\")) {\n logger.info(`${msiName}: The Azure IMDS endpoint is unavailable`);\n logger.info(`${msiName}: ${response.bodyAsText}`);\n return false;\n }\n }\n // If we received any response, the endpoint is available\n logger.info(`${msiName}: The Azure IMDS endpoint is available`);\n return true;\n },\n );\n },\n};\n"]}
@@ -0,0 +1,12 @@
1
+ import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
+ import type { MSIConfiguration } from "./models.js";
3
+ /**
4
+ * An additional policy that retries on 404 errors. The default retry policy does not retry on
5
+ * 404s, but the IMDS endpoint can return 404s when the token is not yet available. This policy
6
+ * will retry on 404s with an exponential backoff.
7
+ *
8
+ * @param msiRetryConfig - The retry configuration for the MSI credential.
9
+ * @returns - The policy that will retry on 404s.
10
+ */
11
+ export declare function imdsRetryPolicy(msiRetryConfig: MSIConfiguration["retryConfig"]): PipelinePolicy;
12
+ //# sourceMappingURL=imdsRetryPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imdsRetryPolicy.d.ts","sourceRoot":"","sources":["../../../../src/credentials/managedIdentityCredential/imdsRetryPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMpD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,cAAc,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,cAAc,CAqB/F"}