@azure/identity 4.5.1-alpha.20250115.7 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1054) hide show
  1. package/README.md +1 -5
  2. package/dist/index.js +4211 -0
  3. package/dist/index.js.map +1 -0
  4. package/{dist/esm → dist-esm/src}/client/identityClient.js +7 -7
  5. package/dist-esm/src/client/identityClient.js.map +1 -0
  6. package/{dist/esm → dist-esm/src}/constants.js +2 -10
  7. package/dist-esm/src/constants.js.map +1 -0
  8. package/{dist/browser/credentials/authorizationCodeCredential.js → dist-esm/src/credentials/authorizationCodeCredential.browser.js} +2 -2
  9. package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +1 -0
  10. package/{dist/esm → dist-esm/src}/credentials/authorizationCodeCredential.js +6 -6
  11. package/dist-esm/src/credentials/authorizationCodeCredential.js.map +1 -0
  12. package/dist-esm/src/credentials/authorizationCodeCredentialOptions.js.map +1 -0
  13. package/{dist/browser/credentials/azureApplicationCredential.js → dist-esm/src/credentials/azureApplicationCredential.browser.js} +3 -3
  14. package/dist-esm/src/credentials/azureApplicationCredential.browser.js.map +1 -0
  15. package/{dist/esm → dist-esm/src}/credentials/azureApplicationCredential.js +2 -2
  16. package/dist-esm/src/credentials/azureApplicationCredential.js.map +1 -0
  17. package/dist-esm/src/credentials/azureApplicationCredentialOptions.js.map +1 -0
  18. package/{dist/browser/credentials/azureCliCredential.js → dist-esm/src/credentials/azureCliCredential.browser.js} +2 -2
  19. package/dist-esm/src/credentials/azureCliCredential.browser.js.map +1 -0
  20. package/{dist/esm → dist-esm/src}/credentials/azureCliCredential.js +10 -24
  21. package/dist-esm/src/credentials/azureCliCredential.js.map +1 -0
  22. package/dist-esm/src/credentials/azureCliCredentialOptions.js.map +1 -0
  23. package/{dist/browser/credentials/azureDeveloperCliCredential.js → dist-esm/src/credentials/azureDeveloperCliCredential.browser.js} +2 -2
  24. package/dist-esm/src/credentials/azureDeveloperCliCredential.browser.js.map +1 -0
  25. package/{dist/esm → dist-esm/src}/credentials/azureDeveloperCliCredential.js +8 -8
  26. package/dist-esm/src/credentials/azureDeveloperCliCredential.js.map +1 -0
  27. package/dist-esm/src/credentials/azureDeveloperCliCredentialOptions.js.map +1 -0
  28. package/{dist/browser/credentials/azurePipelinesCredential.js → dist-esm/src/credentials/azurePipelinesCredential.browser.js} +2 -2
  29. package/dist-esm/src/credentials/azurePipelinesCredential.browser.js.map +1 -0
  30. package/{dist/esm → dist-esm/src}/credentials/azurePipelinesCredential.js +5 -5
  31. package/dist-esm/src/credentials/azurePipelinesCredential.js.map +1 -0
  32. package/dist-esm/src/credentials/azurePipelinesCredentialOptions.js.map +1 -0
  33. package/{dist/browser/credentials/azurePowerShellCredential.js → dist-esm/src/credentials/azurePowerShellCredential.browser.js} +2 -2
  34. package/dist-esm/src/credentials/azurePowerShellCredential.browser.js.map +1 -0
  35. package/{dist/esm → dist-esm/src}/credentials/azurePowerShellCredential.js +6 -6
  36. package/dist-esm/src/credentials/azurePowerShellCredential.js.map +1 -0
  37. package/dist-esm/src/credentials/azurePowerShellCredentialOptions.js.map +1 -0
  38. package/dist-esm/src/credentials/brokerAuthOptions.js.map +1 -0
  39. package/{dist/esm → dist-esm/src}/credentials/chainedTokenCredential.js +5 -8
  40. package/dist-esm/src/credentials/chainedTokenCredential.js.map +1 -0
  41. package/{dist/browser/credentials/clientAssertionCredential.js → dist-esm/src/credentials/clientAssertionCredential.browser.js} +2 -2
  42. package/dist-esm/src/credentials/clientAssertionCredential.browser.js.map +1 -0
  43. package/{dist/esm → dist-esm/src}/credentials/clientAssertionCredential.js +5 -5
  44. package/dist-esm/src/credentials/clientAssertionCredential.js.map +1 -0
  45. package/dist-esm/src/credentials/clientAssertionCredentialOptions.js.map +1 -0
  46. package/{dist/browser/credentials/clientCertificateCredential.js → dist-esm/src/credentials/clientCertificateCredential.browser.js} +2 -2
  47. package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +1 -0
  48. package/{dist/esm → dist-esm/src}/credentials/clientCertificateCredential.js +9 -12
  49. package/dist-esm/src/credentials/clientCertificateCredential.js.map +1 -0
  50. package/dist-esm/src/credentials/clientCertificateCredentialOptions.js.map +1 -0
  51. package/{dist/browser/credentials/clientSecretCredential.js → dist-esm/src/credentials/clientSecretCredential.browser.js} +6 -6
  52. package/dist-esm/src/credentials/clientSecretCredential.browser.js.map +1 -0
  53. package/{dist/esm → dist-esm/src}/credentials/clientSecretCredential.js +6 -6
  54. package/dist-esm/src/credentials/clientSecretCredential.js.map +1 -0
  55. package/dist-esm/src/credentials/clientSecretCredentialOptions.js.map +1 -0
  56. package/dist-esm/src/credentials/credentialPersistenceOptions.js.map +1 -0
  57. package/{dist/browser/credentials/defaultAzureCredential.js → dist-esm/src/credentials/defaultAzureCredential.browser.js} +3 -3
  58. package/dist-esm/src/credentials/defaultAzureCredential.browser.js.map +1 -0
  59. package/{dist/esm → dist-esm/src}/credentials/defaultAzureCredential.js +10 -23
  60. package/dist-esm/src/credentials/defaultAzureCredential.js.map +1 -0
  61. package/dist-esm/src/credentials/defaultAzureCredentialOptions.js.map +1 -0
  62. package/{dist/browser/credentials/deviceCodeCredential.js → dist-esm/src/credentials/deviceCodeCredential.browser.js} +2 -2
  63. package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +1 -0
  64. package/{dist/esm → dist-esm/src}/credentials/deviceCodeCredential.js +6 -6
  65. package/dist-esm/src/credentials/deviceCodeCredential.js.map +1 -0
  66. package/dist-esm/src/credentials/deviceCodeCredentialOptions.js.map +1 -0
  67. package/{dist/browser/credentials/environmentCredential.js → dist-esm/src/credentials/environmentCredential.browser.js} +2 -2
  68. package/dist-esm/src/credentials/environmentCredential.browser.js.map +1 -0
  69. package/{dist/esm → dist-esm/src}/credentials/environmentCredential.js +7 -7
  70. package/dist-esm/src/credentials/environmentCredential.js.map +1 -0
  71. package/dist-esm/src/credentials/environmentCredentialOptions.js.map +1 -0
  72. package/{dist/browser/credentials/interactiveBrowserCredential.js → dist-esm/src/credentials/interactiveBrowserCredential.browser.js} +6 -6
  73. package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +1 -0
  74. package/{dist/esm → dist-esm/src}/credentials/interactiveBrowserCredential.js +6 -6
  75. package/{dist/commonjs → dist-esm/src}/credentials/interactiveBrowserCredential.js.map +1 -1
  76. package/dist-esm/src/credentials/interactiveBrowserCredentialOptions.js.map +1 -0
  77. package/dist-esm/src/credentials/interactiveCredentialOptions.js.map +1 -0
  78. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +71 -0
  79. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +1 -0
  80. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js +71 -0
  81. package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2019.js.map +1 -0
  82. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +140 -0
  83. package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -0
  84. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +75 -0
  85. package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +1 -0
  86. package/dist-esm/src/credentials/managedIdentityCredential/constants.js +9 -0
  87. package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +1 -0
  88. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +95 -0
  89. package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +1 -0
  90. package/{dist/esm → dist-esm/src}/credentials/managedIdentityCredential/imdsMsi.js +38 -16
  91. package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +1 -0
  92. package/dist-esm/src/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +1 -0
  93. package/{dist/browser/credentials/managedIdentityCredential/index.js → dist-esm/src/credentials/managedIdentityCredential/index.browser.js} +2 -2
  94. package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +1 -0
  95. package/dist-esm/src/credentials/managedIdentityCredential/index.js +37 -0
  96. package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -0
  97. package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js +309 -0
  98. package/dist-esm/src/credentials/managedIdentityCredential/legacyMsiProvider.js.map +1 -0
  99. package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +1 -0
  100. package/{dist/esm/credentials/managedIdentityCredential/index.js → dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js} +26 -31
  101. package/dist-esm/src/credentials/managedIdentityCredential/msalMsiProvider.js.map +1 -0
  102. package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/tokenExchangeMsi.js +3 -6
  103. package/dist-esm/src/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +1 -0
  104. package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/utils.js +1 -1
  105. package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +1 -0
  106. package/dist-esm/src/credentials/multiTenantTokenCredentialOptions.js.map +1 -0
  107. package/{dist/browser/credentials/onBehalfOfCredential.js → dist-esm/src/credentials/onBehalfOfCredential.browser.js} +2 -2
  108. package/dist-esm/src/credentials/onBehalfOfCredential.browser.js.map +1 -0
  109. package/{dist/esm → dist-esm/src}/credentials/onBehalfOfCredential.js +6 -6
  110. package/dist-esm/src/credentials/onBehalfOfCredential.js.map +1 -0
  111. package/dist-esm/src/credentials/onBehalfOfCredentialOptions.js.map +1 -0
  112. package/{dist/browser/credentials/usernamePasswordCredential.js → dist-esm/src/credentials/usernamePasswordCredential.browser.js} +6 -6
  113. package/dist-esm/src/credentials/usernamePasswordCredential.browser.js.map +1 -0
  114. package/{dist/esm → dist-esm/src}/credentials/usernamePasswordCredential.js +6 -6
  115. package/dist-esm/src/credentials/usernamePasswordCredential.js.map +1 -0
  116. package/dist-esm/src/credentials/usernamePasswordCredentialOptions.js.map +1 -0
  117. package/{dist/browser/credentials/visualStudioCodeCredential.js → dist-esm/src/credentials/visualStudioCodeCredential.browser.js} +2 -2
  118. package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +1 -0
  119. package/{dist/esm → dist-esm/src}/credentials/visualStudioCodeCredential.js +9 -9
  120. package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +1 -0
  121. package/dist-esm/src/credentials/visualStudioCodeCredentialOptions.js.map +1 -0
  122. package/{dist/browser/credentials/workloadIdentityCredential.js → dist-esm/src/credentials/workloadIdentityCredential.browser.js} +2 -2
  123. package/dist-esm/src/credentials/workloadIdentityCredential.browser.js.map +1 -0
  124. package/{dist/esm → dist-esm/src}/credentials/workloadIdentityCredential.js +5 -5
  125. package/dist-esm/src/credentials/workloadIdentityCredential.js.map +1 -0
  126. package/dist-esm/src/credentials/workloadIdentityCredentialOptions.js.map +1 -0
  127. package/dist-esm/src/errors.js.map +1 -0
  128. package/{dist/browser → dist-esm/src}/index.js +25 -25
  129. package/dist-esm/src/index.js.map +1 -0
  130. package/dist-esm/src/msal/browserFlows/flows.js.map +1 -0
  131. package/{dist/esm → dist-esm/src}/msal/browserFlows/msalAuthCode.js +3 -3
  132. package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +1 -0
  133. package/{dist/browser → dist-esm/src}/msal/browserFlows/msalBrowserCommon.js +5 -5
  134. package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +1 -0
  135. package/dist-esm/src/msal/credentials.js.map +1 -0
  136. package/{dist/browser/msal/msal.js → dist-esm/src/msal/msal.browser.js} +1 -1
  137. package/dist-esm/src/msal/msal.browser.js.map +1 -0
  138. package/{dist/browser → dist-esm/src}/msal/nodeFlows/msalClient.js +16 -9
  139. package/dist-esm/src/msal/nodeFlows/msalClient.js.map +1 -0
  140. package/{dist/browser → dist-esm/src}/msal/nodeFlows/msalPlugins.js +1 -1
  141. package/dist-esm/src/msal/nodeFlows/msalPlugins.js.map +1 -0
  142. package/{dist/browser → dist-esm/src}/msal/types.js.map +1 -1
  143. package/{dist/browser → dist-esm/src}/msal/utils.js +8 -14
  144. package/dist-esm/src/msal/utils.js.map +1 -0
  145. package/{dist/browser/plugins/consumer.js → dist-esm/src/plugins/consumer.browser.js} +1 -1
  146. package/dist-esm/src/plugins/consumer.browser.js.map +1 -0
  147. package/{dist/esm → dist-esm/src}/plugins/consumer.js +2 -2
  148. package/dist-esm/src/plugins/consumer.js.map +1 -0
  149. package/dist-esm/src/plugins/provider.js.map +1 -0
  150. package/dist-esm/src/tokenCredentialOptions.js.map +1 -0
  151. package/{dist/browser → dist-esm/src}/tokenProvider.js +0 -1
  152. package/dist-esm/src/tokenProvider.js.map +1 -0
  153. package/{dist/esm/util/authHostEnv-browser.mjs → dist-esm/src/util/authHostEnv.browser.js} +1 -1
  154. package/dist-esm/src/util/authHostEnv.browser.js.map +1 -0
  155. package/dist-esm/src/util/logging.js.map +1 -0
  156. package/{dist/browser/util/processMultiTenantRequest.js → dist-esm/src/util/processMultiTenantRequest.browser.js} +1 -1
  157. package/dist-esm/src/util/processMultiTenantRequest.browser.js.map +1 -0
  158. package/{dist/esm → dist-esm/src}/util/processMultiTenantRequest.js +2 -2
  159. package/{dist/commonjs → dist-esm/src}/util/processMultiTenantRequest.js.map +1 -1
  160. package/{dist/browser → dist-esm/src}/util/scopeUtils.js +1 -1
  161. package/dist-esm/src/util/scopeUtils.js.map +1 -0
  162. package/{dist/esm → dist-esm/src}/util/tenantIdUtils.js +3 -3
  163. package/dist-esm/src/util/tenantIdUtils.js.map +1 -0
  164. package/{dist/browser → dist-esm/src}/util/tracing.js +1 -1
  165. package/dist-esm/src/util/tracing.js.map +1 -0
  166. package/package.json +79 -65
  167. package/types/identity.d.ts +1853 -0
  168. package/dist/browser/client/identityClient.d.ts +0 -65
  169. package/dist/browser/client/identityClient.d.ts.map +0 -1
  170. package/dist/browser/client/identityClient.js +0 -248
  171. package/dist/browser/client/identityClient.js.map +0 -1
  172. package/dist/browser/constants.d.ts +0 -69
  173. package/dist/browser/constants.d.ts.map +0 -1
  174. package/dist/browser/constants.js +0 -75
  175. package/dist/browser/constants.js.map +0 -1
  176. package/dist/browser/credentials/authorityValidationOptions.d.ts +0 -16
  177. package/dist/browser/credentials/authorityValidationOptions.d.ts.map +0 -1
  178. package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +0 -1
  179. package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +0 -1
  180. package/dist/browser/credentials/authorizationCodeCredential.d.ts +0 -11
  181. package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
  182. package/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
  183. package/dist/browser/credentials/authorizationCodeCredentialOptions.js.map +0 -1
  184. package/dist/browser/credentials/azureApplicationCredential-browser.d.mts.map +0 -1
  185. package/dist/browser/credentials/azureApplicationCredential-browser.mjs.map +0 -1
  186. package/dist/browser/credentials/azureApplicationCredential.d.ts +0 -24
  187. package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts +0 -13
  188. package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
  189. package/dist/browser/credentials/azureApplicationCredentialOptions.js.map +0 -1
  190. package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +0 -1
  191. package/dist/browser/credentials/azureCliCredential-browser.mjs.map +0 -1
  192. package/dist/browser/credentials/azureCliCredential.d.ts +0 -13
  193. package/dist/browser/credentials/azureCliCredentialOptions.d.ts +0 -20
  194. package/dist/browser/credentials/azureCliCredentialOptions.d.ts.map +0 -1
  195. package/dist/browser/credentials/azureCliCredentialOptions.js.map +0 -1
  196. package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +0 -1
  197. package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +0 -1
  198. package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +0 -13
  199. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
  200. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
  201. package/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
  202. package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +0 -1
  203. package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +0 -1
  204. package/dist/browser/credentials/azurePipelinesCredential.d.ts +0 -13
  205. package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
  206. package/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
  207. package/dist/browser/credentials/azurePipelinesCredentialOptions.js.map +0 -1
  208. package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +0 -1
  209. package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +0 -1
  210. package/dist/browser/credentials/azurePowerShellCredential.d.ts +0 -12
  211. package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
  212. package/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
  213. package/dist/browser/credentials/azurePowerShellCredentialOptions.js.map +0 -1
  214. package/dist/browser/credentials/brokerAuthOptions.d.ts +0 -13
  215. package/dist/browser/credentials/brokerAuthOptions.d.ts.map +0 -1
  216. package/dist/browser/credentials/brokerAuthOptions.js.map +0 -1
  217. package/dist/browser/credentials/browserCustomizationOptions.d.ts +0 -19
  218. package/dist/browser/credentials/browserCustomizationOptions.d.ts.map +0 -1
  219. package/dist/browser/credentials/chainedTokenCredential.d.ts +0 -51
  220. package/dist/browser/credentials/chainedTokenCredential.d.ts.map +0 -1
  221. package/dist/browser/credentials/chainedTokenCredential.js +0 -92
  222. package/dist/browser/credentials/chainedTokenCredential.js.map +0 -1
  223. package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +0 -1
  224. package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +0 -1
  225. package/dist/browser/credentials/clientAssertionCredential.d.ts +0 -12
  226. package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts +0 -9
  227. package/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
  228. package/dist/browser/credentials/clientAssertionCredentialOptions.js.map +0 -1
  229. package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +0 -1
  230. package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +0 -1
  231. package/dist/browser/credentials/clientCertificateCredential.d.ts +0 -13
  232. package/dist/browser/credentials/clientCertificateCredentialModels.d.ts +0 -31
  233. package/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
  234. package/dist/browser/credentials/clientCertificateCredentialModels.js +0 -4
  235. package/dist/browser/credentials/clientCertificateCredentialModels.js.map +0 -1
  236. package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts +0 -14
  237. package/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
  238. package/dist/browser/credentials/clientCertificateCredentialOptions.js.map +0 -1
  239. package/dist/browser/credentials/clientSecretCredential-browser.d.mts.map +0 -1
  240. package/dist/browser/credentials/clientSecretCredential-browser.mjs.map +0 -1
  241. package/dist/browser/credentials/clientSecretCredential.d.ts +0 -40
  242. package/dist/browser/credentials/clientSecretCredentialOptions.d.ts +0 -9
  243. package/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
  244. package/dist/browser/credentials/clientSecretCredentialOptions.js.map +0 -1
  245. package/dist/browser/credentials/credentialPersistenceOptions.d.ts +0 -30
  246. package/dist/browser/credentials/credentialPersistenceOptions.d.ts.map +0 -1
  247. package/dist/browser/credentials/credentialPersistenceOptions.js.map +0 -1
  248. package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +0 -1
  249. package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +0 -1
  250. package/dist/browser/credentials/defaultAzureCredential.d.ts +0 -19
  251. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +0 -49
  252. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
  253. package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +0 -1
  254. package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +0 -1
  255. package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +0 -1
  256. package/dist/browser/credentials/deviceCodeCredential.d.ts +0 -13
  257. package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts +0 -53
  258. package/dist/browser/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
  259. package/dist/browser/credentials/deviceCodeCredentialOptions.js.map +0 -1
  260. package/dist/browser/credentials/environmentCredential-browser.d.mts.map +0 -1
  261. package/dist/browser/credentials/environmentCredential-browser.mjs.map +0 -1
  262. package/dist/browser/credentials/environmentCredential.d.ts +0 -13
  263. package/dist/browser/credentials/environmentCredentialOptions.d.ts +0 -9
  264. package/dist/browser/credentials/environmentCredentialOptions.d.ts.map +0 -1
  265. package/dist/browser/credentials/environmentCredentialOptions.js.map +0 -1
  266. package/dist/browser/credentials/interactiveBrowserCredential-browser.d.mts.map +0 -1
  267. package/dist/browser/credentials/interactiveBrowserCredential-browser.mjs.map +0 -1
  268. package/dist/browser/credentials/interactiveBrowserCredential.d.ts +0 -53
  269. package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
  270. package/dist/browser/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
  271. package/dist/browser/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
  272. package/dist/browser/credentials/interactiveCredentialOptions.d.ts +0 -25
  273. package/dist/browser/credentials/interactiveCredentialOptions.d.ts.map +0 -1
  274. package/dist/browser/credentials/interactiveCredentialOptions.js.map +0 -1
  275. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
  276. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
  277. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js +0 -122
  278. package/dist/browser/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
  279. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
  280. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
  281. package/dist/browser/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
  282. package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +0 -1
  283. package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +0 -1
  284. package/dist/browser/credentials/managedIdentityCredential/index.d.ts +0 -6
  285. package/dist/browser/credentials/managedIdentityCredential/models.d.ts +0 -24
  286. package/dist/browser/credentials/managedIdentityCredential/models.d.ts.map +0 -1
  287. package/dist/browser/credentials/managedIdentityCredential/models.js.map +0 -1
  288. package/dist/browser/credentials/managedIdentityCredential/options.d.ts +0 -37
  289. package/dist/browser/credentials/managedIdentityCredential/options.d.ts.map +0 -1
  290. package/dist/browser/credentials/managedIdentityCredential/options.js +0 -4
  291. package/dist/browser/credentials/managedIdentityCredential/options.js.map +0 -1
  292. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
  293. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
  294. package/dist/browser/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
  295. package/dist/browser/credentials/managedIdentityCredential/utils.d.ts +0 -33
  296. package/dist/browser/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
  297. package/dist/browser/credentials/managedIdentityCredential/utils.js.map +0 -1
  298. package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
  299. package/dist/browser/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
  300. package/dist/browser/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
  301. package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +0 -1
  302. package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +0 -1
  303. package/dist/browser/credentials/onBehalfOfCredential.d.ts +0 -12
  304. package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
  305. package/dist/browser/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
  306. package/dist/browser/credentials/onBehalfOfCredentialOptions.js.map +0 -1
  307. package/dist/browser/credentials/usernamePasswordCredential-browser.d.mts.map +0 -1
  308. package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +0 -1
  309. package/dist/browser/credentials/usernamePasswordCredential.d.ts +0 -40
  310. package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
  311. package/dist/browser/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
  312. package/dist/browser/credentials/usernamePasswordCredentialOptions.js.map +0 -1
  313. package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +0 -1
  314. package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +0 -1
  315. package/dist/browser/credentials/visualStudioCodeCredential.d.ts +0 -15
  316. package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
  317. package/dist/browser/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
  318. package/dist/browser/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
  319. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
  320. package/dist/browser/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  321. package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +0 -1
  322. package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +0 -1
  323. package/dist/browser/credentials/workloadIdentityCredential.d.ts +0 -17
  324. package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
  325. package/dist/browser/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
  326. package/dist/browser/credentials/workloadIdentityCredentialOptions.js.map +0 -1
  327. package/dist/browser/errors.d.ts +0 -139
  328. package/dist/browser/errors.d.ts.map +0 -1
  329. package/dist/browser/errors.js.map +0 -1
  330. package/dist/browser/index.d.ts +0 -61
  331. package/dist/browser/index.d.ts.map +0 -1
  332. package/dist/browser/index.js.map +0 -1
  333. package/dist/browser/msal/browserFlows/flows.d.ts +0 -42
  334. package/dist/browser/msal/browserFlows/flows.d.ts.map +0 -1
  335. package/dist/browser/msal/browserFlows/flows.js.map +0 -1
  336. package/dist/browser/msal/browserFlows/msalAuthCode.d.ts +0 -48
  337. package/dist/browser/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
  338. package/dist/browser/msal/browserFlows/msalAuthCode.js +0 -203
  339. package/dist/browser/msal/browserFlows/msalAuthCode.js.map +0 -1
  340. package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
  341. package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  342. package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  343. package/dist/browser/msal/credentials.d.ts +0 -52
  344. package/dist/browser/msal/credentials.d.ts.map +0 -1
  345. package/dist/browser/msal/credentials.js.map +0 -1
  346. package/dist/browser/msal/msal-browser.d.mts.map +0 -1
  347. package/dist/browser/msal/msal-browser.mjs.map +0 -1
  348. package/dist/browser/msal/msal.d.ts +0 -3
  349. package/dist/browser/msal/nodeFlows/brokerOptions.d.ts +0 -44
  350. package/dist/browser/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
  351. package/dist/browser/msal/nodeFlows/msalClient.d.ts +0 -186
  352. package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +0 -1
  353. package/dist/browser/msal/nodeFlows/msalClient.js.map +0 -1
  354. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts +0 -91
  355. package/dist/browser/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
  356. package/dist/browser/msal/nodeFlows/msalPlugins.js.map +0 -1
  357. package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
  358. package/dist/browser/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
  359. package/dist/browser/msal/types.d.ts +0 -87
  360. package/dist/browser/msal/types.d.ts.map +0 -1
  361. package/dist/browser/msal/utils.d.ts +0 -95
  362. package/dist/browser/msal/utils.d.ts.map +0 -1
  363. package/dist/browser/msal/utils.js.map +0 -1
  364. package/dist/browser/package.json +0 -3
  365. package/dist/browser/plugins/consumer-browser.d.mts.map +0 -1
  366. package/dist/browser/plugins/consumer-browser.mjs.map +0 -1
  367. package/dist/browser/plugins/consumer.d.ts +0 -2
  368. package/dist/browser/plugins/provider.d.ts +0 -36
  369. package/dist/browser/plugins/provider.d.ts.map +0 -1
  370. package/dist/browser/plugins/provider.js.map +0 -1
  371. package/dist/browser/regionalAuthority.d.ts +0 -122
  372. package/dist/browser/regionalAuthority.d.ts.map +0 -1
  373. package/dist/browser/tokenCredentialOptions.d.ts +0 -28
  374. package/dist/browser/tokenCredentialOptions.d.ts.map +0 -1
  375. package/dist/browser/tokenCredentialOptions.js.map +0 -1
  376. package/dist/browser/tokenProvider.d.ts +0 -39
  377. package/dist/browser/tokenProvider.d.ts.map +0 -1
  378. package/dist/browser/tokenProvider.js.map +0 -1
  379. package/dist/browser/util/authHostEnv-browser.d.mts +0 -4
  380. package/dist/browser/util/authHostEnv-browser.d.mts.map +0 -1
  381. package/dist/browser/util/authHostEnv-browser.mjs +0 -7
  382. package/dist/browser/util/authHostEnv-browser.mjs.map +0 -1
  383. package/dist/browser/util/identityTokenEndpoint.d.ts +0 -2
  384. package/dist/browser/util/identityTokenEndpoint.d.ts.map +0 -1
  385. package/dist/browser/util/logging.d.ts +0 -70
  386. package/dist/browser/util/logging.d.ts.map +0 -1
  387. package/dist/browser/util/logging.js.map +0 -1
  388. package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +0 -1
  389. package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +0 -1
  390. package/dist/browser/util/processMultiTenantRequest.d.ts +0 -9
  391. package/dist/browser/util/processUtils.d.ts +0 -13
  392. package/dist/browser/util/processUtils.d.ts.map +0 -1
  393. package/dist/browser/util/scopeUtils.d.ts +0 -17
  394. package/dist/browser/util/scopeUtils.d.ts.map +0 -1
  395. package/dist/browser/util/scopeUtils.js.map +0 -1
  396. package/dist/browser/util/subscriptionUtils.d.ts +0 -6
  397. package/dist/browser/util/subscriptionUtils.d.ts.map +0 -1
  398. package/dist/browser/util/subscriptionUtils.js +0 -14
  399. package/dist/browser/util/subscriptionUtils.js.map +0 -1
  400. package/dist/browser/util/tenantIdUtils.d.ts +0 -15
  401. package/dist/browser/util/tenantIdUtils.d.ts.map +0 -1
  402. package/dist/browser/util/tenantIdUtils.js +0 -44
  403. package/dist/browser/util/tenantIdUtils.js.map +0 -1
  404. package/dist/browser/util/tracing.d.ts +0 -6
  405. package/dist/browser/util/tracing.d.ts.map +0 -1
  406. package/dist/browser/util/tracing.js.map +0 -1
  407. package/dist/commonjs/client/identityClient.d.ts +0 -65
  408. package/dist/commonjs/client/identityClient.d.ts.map +0 -1
  409. package/dist/commonjs/client/identityClient.js +0 -253
  410. package/dist/commonjs/client/identityClient.js.map +0 -1
  411. package/dist/commonjs/constants.d.ts +0 -69
  412. package/dist/commonjs/constants.d.ts.map +0 -1
  413. package/dist/commonjs/constants.js +0 -78
  414. package/dist/commonjs/constants.js.map +0 -1
  415. package/dist/commonjs/credentials/authorityValidationOptions.d.ts +0 -16
  416. package/dist/commonjs/credentials/authorityValidationOptions.d.ts.map +0 -1
  417. package/dist/commonjs/credentials/authorityValidationOptions.js +0 -5
  418. package/dist/commonjs/credentials/authorityValidationOptions.js.map +0 -1
  419. package/dist/commonjs/credentials/authorizationCodeCredential.d.ts +0 -73
  420. package/dist/commonjs/credentials/authorizationCodeCredential.d.ts.map +0 -1
  421. package/dist/commonjs/credentials/authorizationCodeCredential.js +0 -64
  422. package/dist/commonjs/credentials/authorizationCodeCredential.js.map +0 -1
  423. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
  424. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
  425. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +0 -5
  426. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +0 -1
  427. package/dist/commonjs/credentials/azureApplicationCredential.d.ts +0 -24
  428. package/dist/commonjs/credentials/azureApplicationCredential.d.ts.map +0 -1
  429. package/dist/commonjs/credentials/azureApplicationCredential.js +0 -36
  430. package/dist/commonjs/credentials/azureApplicationCredential.js.map +0 -1
  431. package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts +0 -13
  432. package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
  433. package/dist/commonjs/credentials/azureApplicationCredentialOptions.js +0 -5
  434. package/dist/commonjs/credentials/azureApplicationCredentialOptions.js.map +0 -1
  435. package/dist/commonjs/credentials/azureCliCredential.d.ts +0 -64
  436. package/dist/commonjs/credentials/azureCliCredential.d.ts.map +0 -1
  437. package/dist/commonjs/credentials/azureCliCredential.js +0 -194
  438. package/dist/commonjs/credentials/azureCliCredential.js.map +0 -1
  439. package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts +0 -20
  440. package/dist/commonjs/credentials/azureCliCredentialOptions.d.ts.map +0 -1
  441. package/dist/commonjs/credentials/azureCliCredentialOptions.js +0 -5
  442. package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +0 -1
  443. package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts +0 -71
  444. package/dist/commonjs/credentials/azureDeveloperCliCredential.d.ts.map +0 -1
  445. package/dist/commonjs/credentials/azureDeveloperCliCredential.js +0 -176
  446. package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +0 -1
  447. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
  448. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
  449. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +0 -5
  450. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
  451. package/dist/commonjs/credentials/azurePipelinesCredential.d.ts +0 -38
  452. package/dist/commonjs/credentials/azurePipelinesCredential.d.ts.map +0 -1
  453. package/dist/commonjs/credentials/azurePipelinesCredential.js +0 -146
  454. package/dist/commonjs/credentials/azurePipelinesCredential.js.map +0 -1
  455. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
  456. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
  457. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +0 -5
  458. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +0 -1
  459. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts +0 -75
  460. package/dist/commonjs/credentials/azurePowerShellCredential.d.ts.map +0 -1
  461. package/dist/commonjs/credentials/azurePowerShellCredential.js +0 -235
  462. package/dist/commonjs/credentials/azurePowerShellCredential.js.map +0 -1
  463. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
  464. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
  465. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +0 -5
  466. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +0 -1
  467. package/dist/commonjs/credentials/brokerAuthOptions.d.ts +0 -13
  468. package/dist/commonjs/credentials/brokerAuthOptions.d.ts.map +0 -1
  469. package/dist/commonjs/credentials/brokerAuthOptions.js +0 -3
  470. package/dist/commonjs/credentials/brokerAuthOptions.js.map +0 -1
  471. package/dist/commonjs/credentials/browserCustomizationOptions.d.ts +0 -19
  472. package/dist/commonjs/credentials/browserCustomizationOptions.d.ts.map +0 -1
  473. package/dist/commonjs/credentials/browserCustomizationOptions.js +0 -5
  474. package/dist/commonjs/credentials/browserCustomizationOptions.js.map +0 -1
  475. package/dist/commonjs/credentials/chainedTokenCredential.d.ts +0 -51
  476. package/dist/commonjs/credentials/chainedTokenCredential.d.ts.map +0 -1
  477. package/dist/commonjs/credentials/chainedTokenCredential.js +0 -96
  478. package/dist/commonjs/credentials/chainedTokenCredential.js.map +0 -1
  479. package/dist/commonjs/credentials/clientAssertionCredential.d.ts +0 -33
  480. package/dist/commonjs/credentials/clientAssertionCredential.d.ts.map +0 -1
  481. package/dist/commonjs/credentials/clientAssertionCredential.js +0 -59
  482. package/dist/commonjs/credentials/clientAssertionCredential.js.map +0 -1
  483. package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts +0 -9
  484. package/dist/commonjs/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
  485. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +0 -5
  486. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +0 -1
  487. package/dist/commonjs/credentials/clientCertificateCredential.d.ts +0 -72
  488. package/dist/commonjs/credentials/clientCertificateCredential.d.ts.map +0 -1
  489. package/dist/commonjs/credentials/clientCertificateCredential.js +0 -127
  490. package/dist/commonjs/credentials/clientCertificateCredential.js.map +0 -1
  491. package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts +0 -31
  492. package/dist/commonjs/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
  493. package/dist/commonjs/credentials/clientCertificateCredentialModels.js +0 -5
  494. package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +0 -1
  495. package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts +0 -14
  496. package/dist/commonjs/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
  497. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +0 -5
  498. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +0 -1
  499. package/dist/commonjs/credentials/clientSecretCredential.d.ts +0 -37
  500. package/dist/commonjs/credentials/clientSecretCredential.d.ts.map +0 -1
  501. package/dist/commonjs/credentials/clientSecretCredential.js +0 -64
  502. package/dist/commonjs/credentials/clientSecretCredential.js.map +0 -1
  503. package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts +0 -9
  504. package/dist/commonjs/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
  505. package/dist/commonjs/credentials/clientSecretCredentialOptions.js +0 -5
  506. package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +0 -1
  507. package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts +0 -30
  508. package/dist/commonjs/credentials/credentialPersistenceOptions.d.ts.map +0 -1
  509. package/dist/commonjs/credentials/credentialPersistenceOptions.js +0 -5
  510. package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +0 -1
  511. package/dist/commonjs/credentials/defaultAzureCredential.d.ts +0 -65
  512. package/dist/commonjs/credentials/defaultAzureCredential.d.ts.map +0 -1
  513. package/dist/commonjs/credentials/defaultAzureCredential.js +0 -171
  514. package/dist/commonjs/credentials/defaultAzureCredential.js.map +0 -1
  515. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +0 -49
  516. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
  517. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +0 -5
  518. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +0 -1
  519. package/dist/commonjs/credentials/deviceCodeCredential.d.ts +0 -67
  520. package/dist/commonjs/credentials/deviceCodeCredential.d.ts.map +0 -1
  521. package/dist/commonjs/credentials/deviceCodeCredential.js +0 -96
  522. package/dist/commonjs/credentials/deviceCodeCredential.js.map +0 -1
  523. package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts +0 -53
  524. package/dist/commonjs/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
  525. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +0 -5
  526. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +0 -1
  527. package/dist/commonjs/credentials/environmentCredential.d.ts +0 -52
  528. package/dist/commonjs/credentials/environmentCredential.d.ts.map +0 -1
  529. package/dist/commonjs/credentials/environmentCredential.js +0 -135
  530. package/dist/commonjs/credentials/environmentCredential.js.map +0 -1
  531. package/dist/commonjs/credentials/environmentCredentialOptions.d.ts +0 -9
  532. package/dist/commonjs/credentials/environmentCredentialOptions.d.ts.map +0 -1
  533. package/dist/commonjs/credentials/environmentCredentialOptions.js +0 -5
  534. package/dist/commonjs/credentials/environmentCredentialOptions.js.map +0 -1
  535. package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts +0 -56
  536. package/dist/commonjs/credentials/interactiveBrowserCredential.d.ts.map +0 -1
  537. package/dist/commonjs/credentials/interactiveBrowserCredential.js +0 -95
  538. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
  539. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
  540. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +0 -5
  541. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
  542. package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts +0 -25
  543. package/dist/commonjs/credentials/interactiveCredentialOptions.d.ts.map +0 -1
  544. package/dist/commonjs/credentials/interactiveCredentialOptions.js +0 -5
  545. package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +0 -1
  546. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
  547. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
  548. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +0 -125
  549. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
  550. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
  551. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
  552. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -36
  553. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
  554. package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts +0 -61
  555. package/dist/commonjs/credentials/managedIdentityCredential/index.d.ts.map +0 -1
  556. package/dist/commonjs/credentials/managedIdentityCredential/index.js +0 -221
  557. package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +0 -1
  558. package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts +0 -24
  559. package/dist/commonjs/credentials/managedIdentityCredential/models.d.ts.map +0 -1
  560. package/dist/commonjs/credentials/managedIdentityCredential/models.js +0 -5
  561. package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +0 -1
  562. package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts +0 -37
  563. package/dist/commonjs/credentials/managedIdentityCredential/options.d.ts.map +0 -1
  564. package/dist/commonjs/credentials/managedIdentityCredential/options.js +0 -5
  565. package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +0 -1
  566. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
  567. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
  568. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -35
  569. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
  570. package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts +0 -33
  571. package/dist/commonjs/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
  572. package/dist/commonjs/credentials/managedIdentityCredential/utils.js +0 -82
  573. package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +0 -1
  574. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
  575. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
  576. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +0 -5
  577. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
  578. package/dist/commonjs/credentials/onBehalfOfCredential.d.ts +0 -105
  579. package/dist/commonjs/credentials/onBehalfOfCredential.d.ts.map +0 -1
  580. package/dist/commonjs/credentials/onBehalfOfCredential.js +0 -116
  581. package/dist/commonjs/credentials/onBehalfOfCredential.js.map +0 -1
  582. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
  583. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
  584. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +0 -5
  585. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +0 -1
  586. package/dist/commonjs/credentials/usernamePasswordCredential.d.ts +0 -41
  587. package/dist/commonjs/credentials/usernamePasswordCredential.d.ts.map +0 -1
  588. package/dist/commonjs/credentials/usernamePasswordCredential.js +0 -71
  589. package/dist/commonjs/credentials/usernamePasswordCredential.js.map +0 -1
  590. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
  591. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
  592. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +0 -5
  593. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +0 -1
  594. package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts +0 -60
  595. package/dist/commonjs/credentials/visualStudioCodeCredential.d.ts.map +0 -1
  596. package/dist/commonjs/credentials/visualStudioCodeCredential.js +0 -196
  597. package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +0 -1
  598. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
  599. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
  600. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +0 -5
  601. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
  602. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
  603. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  604. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +0 -5
  605. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  606. package/dist/commonjs/credentials/workloadIdentityCredential.d.ts +0 -47
  607. package/dist/commonjs/credentials/workloadIdentityCredential.d.ts.map +0 -1
  608. package/dist/commonjs/credentials/workloadIdentityCredential.js +0 -118
  609. package/dist/commonjs/credentials/workloadIdentityCredential.js.map +0 -1
  610. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
  611. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
  612. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +0 -5
  613. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +0 -1
  614. package/dist/commonjs/errors.d.ts +0 -139
  615. package/dist/commonjs/errors.d.ts.map +0 -1
  616. package/dist/commonjs/errors.js +0 -130
  617. package/dist/commonjs/errors.js.map +0 -1
  618. package/dist/commonjs/index.d.ts +0 -61
  619. package/dist/commonjs/index.d.ts.map +0 -1
  620. package/dist/commonjs/index.js +0 -69
  621. package/dist/commonjs/index.js.map +0 -1
  622. package/dist/commonjs/msal/browserFlows/flows.d.ts +0 -42
  623. package/dist/commonjs/msal/browserFlows/flows.d.ts.map +0 -1
  624. package/dist/commonjs/msal/browserFlows/flows.js +0 -5
  625. package/dist/commonjs/msal/browserFlows/flows.js.map +0 -1
  626. package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts +0 -48
  627. package/dist/commonjs/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
  628. package/dist/commonjs/msal/browserFlows/msalAuthCode.js +0 -208
  629. package/dist/commonjs/msal/browserFlows/msalAuthCode.js.map +0 -1
  630. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
  631. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  632. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +0 -121
  633. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  634. package/dist/commonjs/msal/credentials.d.ts +0 -52
  635. package/dist/commonjs/msal/credentials.d.ts.map +0 -1
  636. package/dist/commonjs/msal/credentials.js +0 -5
  637. package/dist/commonjs/msal/credentials.js.map +0 -1
  638. package/dist/commonjs/msal/msal.d.ts +0 -3
  639. package/dist/commonjs/msal/msal.d.ts.map +0 -1
  640. package/dist/commonjs/msal/msal.js +0 -9
  641. package/dist/commonjs/msal/msal.js.map +0 -1
  642. package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts +0 -44
  643. package/dist/commonjs/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
  644. package/dist/commonjs/msal/nodeFlows/brokerOptions.js +0 -3
  645. package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +0 -1
  646. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +0 -186
  647. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +0 -1
  648. package/dist/commonjs/msal/nodeFlows/msalClient.js +0 -482
  649. package/dist/commonjs/msal/nodeFlows/msalClient.js.map +0 -1
  650. package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts +0 -91
  651. package/dist/commonjs/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
  652. package/dist/commonjs/msal/nodeFlows/msalPlugins.js +0 -91
  653. package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +0 -1
  654. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
  655. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
  656. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -5
  657. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -1
  658. package/dist/commonjs/msal/types.d.ts +0 -87
  659. package/dist/commonjs/msal/types.d.ts.map +0 -1
  660. package/dist/commonjs/msal/types.js +0 -5
  661. package/dist/commonjs/msal/types.js.map +0 -1
  662. package/dist/commonjs/msal/utils.d.ts +0 -95
  663. package/dist/commonjs/msal/utils.d.ts.map +0 -1
  664. package/dist/commonjs/msal/utils.js +0 -253
  665. package/dist/commonjs/msal/utils.js.map +0 -1
  666. package/dist/commonjs/package.json +0 -3
  667. package/dist/commonjs/plugins/consumer.d.ts +0 -28
  668. package/dist/commonjs/plugins/consumer.d.ts.map +0 -1
  669. package/dist/commonjs/plugins/consumer.js +0 -46
  670. package/dist/commonjs/plugins/consumer.js.map +0 -1
  671. package/dist/commonjs/plugins/provider.d.ts +0 -36
  672. package/dist/commonjs/plugins/provider.d.ts.map +0 -1
  673. package/dist/commonjs/plugins/provider.js +0 -5
  674. package/dist/commonjs/plugins/provider.js.map +0 -1
  675. package/dist/commonjs/regionalAuthority.d.ts +0 -122
  676. package/dist/commonjs/regionalAuthority.d.ts.map +0 -1
  677. package/dist/commonjs/regionalAuthority.js +0 -144
  678. package/dist/commonjs/regionalAuthority.js.map +0 -1
  679. package/dist/commonjs/tokenCredentialOptions.d.ts +0 -28
  680. package/dist/commonjs/tokenCredentialOptions.d.ts.map +0 -1
  681. package/dist/commonjs/tokenCredentialOptions.js +0 -5
  682. package/dist/commonjs/tokenCredentialOptions.js.map +0 -1
  683. package/dist/commonjs/tokenProvider.d.ts +0 -39
  684. package/dist/commonjs/tokenProvider.d.ts.map +0 -1
  685. package/dist/commonjs/tokenProvider.js +0 -56
  686. package/dist/commonjs/tokenProvider.js.map +0 -1
  687. package/dist/commonjs/tsdoc-metadata.json +0 -11
  688. package/dist/commonjs/util/identityTokenEndpoint.d.ts +0 -2
  689. package/dist/commonjs/util/identityTokenEndpoint.d.ts.map +0 -1
  690. package/dist/commonjs/util/identityTokenEndpoint.js +0 -14
  691. package/dist/commonjs/util/identityTokenEndpoint.js.map +0 -1
  692. package/dist/commonjs/util/logging.d.ts +0 -70
  693. package/dist/commonjs/util/logging.d.ts.map +0 -1
  694. package/dist/commonjs/util/logging.js +0 -103
  695. package/dist/commonjs/util/logging.js.map +0 -1
  696. package/dist/commonjs/util/processMultiTenantRequest.d.ts +0 -10
  697. package/dist/commonjs/util/processMultiTenantRequest.d.ts.map +0 -1
  698. package/dist/commonjs/util/processMultiTenantRequest.js +0 -38
  699. package/dist/commonjs/util/processUtils.d.ts +0 -13
  700. package/dist/commonjs/util/processUtils.d.ts.map +0 -1
  701. package/dist/commonjs/util/processUtils.js +0 -36
  702. package/dist/commonjs/util/processUtils.js.map +0 -1
  703. package/dist/commonjs/util/scopeUtils.d.ts +0 -17
  704. package/dist/commonjs/util/scopeUtils.d.ts.map +0 -1
  705. package/dist/commonjs/util/scopeUtils.js +0 -34
  706. package/dist/commonjs/util/scopeUtils.js.map +0 -1
  707. package/dist/commonjs/util/subscriptionUtils.d.ts +0 -6
  708. package/dist/commonjs/util/subscriptionUtils.d.ts.map +0 -1
  709. package/dist/commonjs/util/subscriptionUtils.js +0 -17
  710. package/dist/commonjs/util/subscriptionUtils.js.map +0 -1
  711. package/dist/commonjs/util/tenantIdUtils.d.ts +0 -15
  712. package/dist/commonjs/util/tenantIdUtils.d.ts.map +0 -1
  713. package/dist/commonjs/util/tenantIdUtils.js +0 -51
  714. package/dist/commonjs/util/tenantIdUtils.js.map +0 -1
  715. package/dist/commonjs/util/tracing.d.ts +0 -6
  716. package/dist/commonjs/util/tracing.d.ts.map +0 -1
  717. package/dist/commonjs/util/tracing.js +0 -17
  718. package/dist/commonjs/util/tracing.js.map +0 -1
  719. package/dist/esm/client/identityClient.d.ts +0 -65
  720. package/dist/esm/client/identityClient.d.ts.map +0 -1
  721. package/dist/esm/client/identityClient.js.map +0 -1
  722. package/dist/esm/constants.d.ts +0 -69
  723. package/dist/esm/constants.d.ts.map +0 -1
  724. package/dist/esm/constants.js.map +0 -1
  725. package/dist/esm/credentials/authorityValidationOptions.d.ts +0 -16
  726. package/dist/esm/credentials/authorityValidationOptions.d.ts.map +0 -1
  727. package/dist/esm/credentials/authorityValidationOptions.js +0 -4
  728. package/dist/esm/credentials/authorityValidationOptions.js.map +0 -1
  729. package/dist/esm/credentials/authorizationCodeCredential.d.ts +0 -73
  730. package/dist/esm/credentials/authorizationCodeCredential.d.ts.map +0 -1
  731. package/dist/esm/credentials/authorizationCodeCredential.js.map +0 -1
  732. package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts +0 -8
  733. package/dist/esm/credentials/authorizationCodeCredentialOptions.d.ts.map +0 -1
  734. package/dist/esm/credentials/authorizationCodeCredentialOptions.js +0 -4
  735. package/dist/esm/credentials/authorizationCodeCredentialOptions.js.map +0 -1
  736. package/dist/esm/credentials/azureApplicationCredential.d.ts +0 -24
  737. package/dist/esm/credentials/azureApplicationCredential.d.ts.map +0 -1
  738. package/dist/esm/credentials/azureApplicationCredential.js.map +0 -1
  739. package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts +0 -13
  740. package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
  741. package/dist/esm/credentials/azureApplicationCredentialOptions.js +0 -4
  742. package/dist/esm/credentials/azureApplicationCredentialOptions.js.map +0 -1
  743. package/dist/esm/credentials/azureCliCredential.d.ts +0 -64
  744. package/dist/esm/credentials/azureCliCredential.d.ts.map +0 -1
  745. package/dist/esm/credentials/azureCliCredential.js.map +0 -1
  746. package/dist/esm/credentials/azureCliCredentialOptions.d.ts +0 -20
  747. package/dist/esm/credentials/azureCliCredentialOptions.d.ts.map +0 -1
  748. package/dist/esm/credentials/azureCliCredentialOptions.js +0 -4
  749. package/dist/esm/credentials/azureCliCredentialOptions.js.map +0 -1
  750. package/dist/esm/credentials/azureDeveloperCliCredential.d.ts +0 -71
  751. package/dist/esm/credentials/azureDeveloperCliCredential.d.ts.map +0 -1
  752. package/dist/esm/credentials/azureDeveloperCliCredential.js.map +0 -1
  753. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts +0 -15
  754. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.d.ts.map +0 -1
  755. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js +0 -4
  756. package/dist/esm/credentials/azureDeveloperCliCredentialOptions.js.map +0 -1
  757. package/dist/esm/credentials/azurePipelinesCredential.d.ts +0 -38
  758. package/dist/esm/credentials/azurePipelinesCredential.d.ts.map +0 -1
  759. package/dist/esm/credentials/azurePipelinesCredential.js.map +0 -1
  760. package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts +0 -9
  761. package/dist/esm/credentials/azurePipelinesCredentialOptions.d.ts.map +0 -1
  762. package/dist/esm/credentials/azurePipelinesCredentialOptions.js +0 -4
  763. package/dist/esm/credentials/azurePipelinesCredentialOptions.js.map +0 -1
  764. package/dist/esm/credentials/azurePowerShellCredential.d.ts +0 -75
  765. package/dist/esm/credentials/azurePowerShellCredential.d.ts.map +0 -1
  766. package/dist/esm/credentials/azurePowerShellCredential.js.map +0 -1
  767. package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts +0 -15
  768. package/dist/esm/credentials/azurePowerShellCredentialOptions.d.ts.map +0 -1
  769. package/dist/esm/credentials/azurePowerShellCredentialOptions.js +0 -4
  770. package/dist/esm/credentials/azurePowerShellCredentialOptions.js.map +0 -1
  771. package/dist/esm/credentials/brokerAuthOptions.d.ts +0 -13
  772. package/dist/esm/credentials/brokerAuthOptions.d.ts.map +0 -1
  773. package/dist/esm/credentials/brokerAuthOptions.js +0 -2
  774. package/dist/esm/credentials/brokerAuthOptions.js.map +0 -1
  775. package/dist/esm/credentials/browserCustomizationOptions.d.ts +0 -19
  776. package/dist/esm/credentials/browserCustomizationOptions.d.ts.map +0 -1
  777. package/dist/esm/credentials/browserCustomizationOptions.js +0 -4
  778. package/dist/esm/credentials/browserCustomizationOptions.js.map +0 -1
  779. package/dist/esm/credentials/chainedTokenCredential.d.ts +0 -51
  780. package/dist/esm/credentials/chainedTokenCredential.d.ts.map +0 -1
  781. package/dist/esm/credentials/chainedTokenCredential.js.map +0 -1
  782. package/dist/esm/credentials/clientAssertionCredential.d.ts +0 -33
  783. package/dist/esm/credentials/clientAssertionCredential.d.ts.map +0 -1
  784. package/dist/esm/credentials/clientAssertionCredential.js.map +0 -1
  785. package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts +0 -9
  786. package/dist/esm/credentials/clientAssertionCredentialOptions.d.ts.map +0 -1
  787. package/dist/esm/credentials/clientAssertionCredentialOptions.js +0 -4
  788. package/dist/esm/credentials/clientAssertionCredentialOptions.js.map +0 -1
  789. package/dist/esm/credentials/clientCertificateCredential.d.ts +0 -72
  790. package/dist/esm/credentials/clientCertificateCredential.d.ts.map +0 -1
  791. package/dist/esm/credentials/clientCertificateCredential.js.map +0 -1
  792. package/dist/esm/credentials/clientCertificateCredentialModels.d.ts +0 -31
  793. package/dist/esm/credentials/clientCertificateCredentialModels.d.ts.map +0 -1
  794. package/dist/esm/credentials/clientCertificateCredentialModels.js +0 -4
  795. package/dist/esm/credentials/clientCertificateCredentialModels.js.map +0 -1
  796. package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts +0 -14
  797. package/dist/esm/credentials/clientCertificateCredentialOptions.d.ts.map +0 -1
  798. package/dist/esm/credentials/clientCertificateCredentialOptions.js +0 -4
  799. package/dist/esm/credentials/clientCertificateCredentialOptions.js.map +0 -1
  800. package/dist/esm/credentials/clientSecretCredential.d.ts +0 -37
  801. package/dist/esm/credentials/clientSecretCredential.d.ts.map +0 -1
  802. package/dist/esm/credentials/clientSecretCredential.js.map +0 -1
  803. package/dist/esm/credentials/clientSecretCredentialOptions.d.ts +0 -9
  804. package/dist/esm/credentials/clientSecretCredentialOptions.d.ts.map +0 -1
  805. package/dist/esm/credentials/clientSecretCredentialOptions.js +0 -4
  806. package/dist/esm/credentials/clientSecretCredentialOptions.js.map +0 -1
  807. package/dist/esm/credentials/credentialPersistenceOptions.d.ts +0 -30
  808. package/dist/esm/credentials/credentialPersistenceOptions.d.ts.map +0 -1
  809. package/dist/esm/credentials/credentialPersistenceOptions.js +0 -4
  810. package/dist/esm/credentials/credentialPersistenceOptions.js.map +0 -1
  811. package/dist/esm/credentials/defaultAzureCredential.d.ts +0 -65
  812. package/dist/esm/credentials/defaultAzureCredential.d.ts.map +0 -1
  813. package/dist/esm/credentials/defaultAzureCredential.js.map +0 -1
  814. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +0 -49
  815. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts.map +0 -1
  816. package/dist/esm/credentials/defaultAzureCredentialOptions.js +0 -4
  817. package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +0 -1
  818. package/dist/esm/credentials/deviceCodeCredential.d.ts +0 -67
  819. package/dist/esm/credentials/deviceCodeCredential.d.ts.map +0 -1
  820. package/dist/esm/credentials/deviceCodeCredential.js.map +0 -1
  821. package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts +0 -53
  822. package/dist/esm/credentials/deviceCodeCredentialOptions.d.ts.map +0 -1
  823. package/dist/esm/credentials/deviceCodeCredentialOptions.js +0 -4
  824. package/dist/esm/credentials/deviceCodeCredentialOptions.js.map +0 -1
  825. package/dist/esm/credentials/environmentCredential.d.ts +0 -52
  826. package/dist/esm/credentials/environmentCredential.d.ts.map +0 -1
  827. package/dist/esm/credentials/environmentCredential.js.map +0 -1
  828. package/dist/esm/credentials/environmentCredentialOptions.d.ts +0 -9
  829. package/dist/esm/credentials/environmentCredentialOptions.d.ts.map +0 -1
  830. package/dist/esm/credentials/environmentCredentialOptions.js +0 -4
  831. package/dist/esm/credentials/environmentCredentialOptions.js.map +0 -1
  832. package/dist/esm/credentials/interactiveBrowserCredential.d.ts +0 -56
  833. package/dist/esm/credentials/interactiveBrowserCredential.d.ts.map +0 -1
  834. package/dist/esm/credentials/interactiveBrowserCredential.js.map +0 -1
  835. package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts +0 -77
  836. package/dist/esm/credentials/interactiveBrowserCredentialOptions.d.ts.map +0 -1
  837. package/dist/esm/credentials/interactiveBrowserCredentialOptions.js +0 -4
  838. package/dist/esm/credentials/interactiveBrowserCredentialOptions.js.map +0 -1
  839. package/dist/esm/credentials/interactiveCredentialOptions.d.ts +0 -25
  840. package/dist/esm/credentials/interactiveCredentialOptions.d.ts.map +0 -1
  841. package/dist/esm/credentials/interactiveCredentialOptions.js +0 -4
  842. package/dist/esm/credentials/interactiveCredentialOptions.js.map +0 -1
  843. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts +0 -18
  844. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.d.ts.map +0 -1
  845. package/dist/esm/credentials/managedIdentityCredential/imdsMsi.js.map +0 -1
  846. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts +0 -12
  847. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.d.ts.map +0 -1
  848. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -33
  849. package/dist/esm/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +0 -1
  850. package/dist/esm/credentials/managedIdentityCredential/index.d.ts +0 -61
  851. package/dist/esm/credentials/managedIdentityCredential/index.d.ts.map +0 -1
  852. package/dist/esm/credentials/managedIdentityCredential/index.js.map +0 -1
  853. package/dist/esm/credentials/managedIdentityCredential/models.d.ts +0 -24
  854. package/dist/esm/credentials/managedIdentityCredential/models.d.ts.map +0 -1
  855. package/dist/esm/credentials/managedIdentityCredential/models.js +0 -4
  856. package/dist/esm/credentials/managedIdentityCredential/models.js.map +0 -1
  857. package/dist/esm/credentials/managedIdentityCredential/options.d.ts +0 -37
  858. package/dist/esm/credentials/managedIdentityCredential/options.d.ts.map +0 -1
  859. package/dist/esm/credentials/managedIdentityCredential/options.js +0 -4
  860. package/dist/esm/credentials/managedIdentityCredential/options.js.map +0 -1
  861. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts +0 -14
  862. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.d.ts.map +0 -1
  863. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js +0 -32
  864. package/dist/esm/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +0 -1
  865. package/dist/esm/credentials/managedIdentityCredential/utils.d.ts +0 -33
  866. package/dist/esm/credentials/managedIdentityCredential/utils.d.ts.map +0 -1
  867. package/dist/esm/credentials/managedIdentityCredential/utils.js +0 -77
  868. package/dist/esm/credentials/managedIdentityCredential/utils.js.map +0 -1
  869. package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts +0 -12
  870. package/dist/esm/credentials/multiTenantTokenCredentialOptions.d.ts.map +0 -1
  871. package/dist/esm/credentials/multiTenantTokenCredentialOptions.js +0 -4
  872. package/dist/esm/credentials/multiTenantTokenCredentialOptions.js.map +0 -1
  873. package/dist/esm/credentials/onBehalfOfCredential.d.ts +0 -105
  874. package/dist/esm/credentials/onBehalfOfCredential.d.ts.map +0 -1
  875. package/dist/esm/credentials/onBehalfOfCredential.js.map +0 -1
  876. package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts +0 -76
  877. package/dist/esm/credentials/onBehalfOfCredentialOptions.d.ts.map +0 -1
  878. package/dist/esm/credentials/onBehalfOfCredentialOptions.js +0 -4
  879. package/dist/esm/credentials/onBehalfOfCredentialOptions.js.map +0 -1
  880. package/dist/esm/credentials/usernamePasswordCredential.d.ts +0 -41
  881. package/dist/esm/credentials/usernamePasswordCredential.d.ts.map +0 -1
  882. package/dist/esm/credentials/usernamePasswordCredential.js.map +0 -1
  883. package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts +0 -9
  884. package/dist/esm/credentials/usernamePasswordCredentialOptions.d.ts.map +0 -1
  885. package/dist/esm/credentials/usernamePasswordCredentialOptions.js +0 -4
  886. package/dist/esm/credentials/usernamePasswordCredentialOptions.js.map +0 -1
  887. package/dist/esm/credentials/visualStudioCodeCredential.d.ts +0 -60
  888. package/dist/esm/credentials/visualStudioCodeCredential.d.ts.map +0 -1
  889. package/dist/esm/credentials/visualStudioCodeCredential.js.map +0 -1
  890. package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts +0 -11
  891. package/dist/esm/credentials/visualStudioCodeCredentialOptions.d.ts.map +0 -1
  892. package/dist/esm/credentials/visualStudioCodeCredentialOptions.js +0 -4
  893. package/dist/esm/credentials/visualStudioCodeCredentialOptions.js.map +0 -1
  894. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts +0 -11
  895. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.d.ts.map +0 -1
  896. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js +0 -4
  897. package/dist/esm/credentials/visualStudioCodeCredentialPlugin.js.map +0 -1
  898. package/dist/esm/credentials/workloadIdentityCredential.d.ts +0 -47
  899. package/dist/esm/credentials/workloadIdentityCredential.d.ts.map +0 -1
  900. package/dist/esm/credentials/workloadIdentityCredential.js.map +0 -1
  901. package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts +0 -20
  902. package/dist/esm/credentials/workloadIdentityCredentialOptions.d.ts.map +0 -1
  903. package/dist/esm/credentials/workloadIdentityCredentialOptions.js +0 -4
  904. package/dist/esm/credentials/workloadIdentityCredentialOptions.js.map +0 -1
  905. package/dist/esm/errors.d.ts +0 -139
  906. package/dist/esm/errors.d.ts.map +0 -1
  907. package/dist/esm/errors.js +0 -123
  908. package/dist/esm/errors.js.map +0 -1
  909. package/dist/esm/index.d.ts +0 -61
  910. package/dist/esm/index.d.ts.map +0 -1
  911. package/dist/esm/index.js +0 -34
  912. package/dist/esm/index.js.map +0 -1
  913. package/dist/esm/msal/browserFlows/flows.d.ts +0 -42
  914. package/dist/esm/msal/browserFlows/flows.d.ts.map +0 -1
  915. package/dist/esm/msal/browserFlows/flows.js +0 -4
  916. package/dist/esm/msal/browserFlows/flows.js.map +0 -1
  917. package/dist/esm/msal/browserFlows/msalAuthCode.d.ts +0 -48
  918. package/dist/esm/msal/browserFlows/msalAuthCode.d.ts.map +0 -1
  919. package/dist/esm/msal/browserFlows/msalAuthCode.js.map +0 -1
  920. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts +0 -106
  921. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +0 -1
  922. package/dist/esm/msal/browserFlows/msalBrowserCommon.js +0 -116
  923. package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +0 -1
  924. package/dist/esm/msal/credentials.d.ts +0 -52
  925. package/dist/esm/msal/credentials.d.ts.map +0 -1
  926. package/dist/esm/msal/credentials.js +0 -4
  927. package/dist/esm/msal/credentials.js.map +0 -1
  928. package/dist/esm/msal/msal.d.ts +0 -3
  929. package/dist/esm/msal/msal.d.ts.map +0 -1
  930. package/dist/esm/msal/nodeFlows/brokerOptions.d.ts +0 -44
  931. package/dist/esm/msal/nodeFlows/brokerOptions.d.ts.map +0 -1
  932. package/dist/esm/msal/nodeFlows/brokerOptions.js +0 -2
  933. package/dist/esm/msal/nodeFlows/brokerOptions.js.map +0 -1
  934. package/dist/esm/msal/nodeFlows/msalClient.d.ts +0 -186
  935. package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +0 -1
  936. package/dist/esm/msal/nodeFlows/msalClient.js +0 -477
  937. package/dist/esm/msal/nodeFlows/msalClient.js.map +0 -1
  938. package/dist/esm/msal/nodeFlows/msalPlugins.d.ts +0 -91
  939. package/dist/esm/msal/nodeFlows/msalPlugins.d.ts.map +0 -1
  940. package/dist/esm/msal/nodeFlows/msalPlugins.js +0 -87
  941. package/dist/esm/msal/nodeFlows/msalPlugins.js.map +0 -1
  942. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts +0 -24
  943. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.d.ts.map +0 -1
  944. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -4
  945. package/dist/esm/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -1
  946. package/dist/esm/msal/types.d.ts +0 -87
  947. package/dist/esm/msal/types.d.ts.map +0 -1
  948. package/dist/esm/msal/types.js +0 -4
  949. package/dist/esm/msal/types.js.map +0 -1
  950. package/dist/esm/msal/utils.d.ts +0 -95
  951. package/dist/esm/msal/utils.d.ts.map +0 -1
  952. package/dist/esm/msal/utils.js +0 -238
  953. package/dist/esm/msal/utils.js.map +0 -1
  954. package/dist/esm/package.json +0 -3
  955. package/dist/esm/plugins/consumer.d.ts +0 -28
  956. package/dist/esm/plugins/consumer.d.ts.map +0 -1
  957. package/dist/esm/plugins/consumer.js.map +0 -1
  958. package/dist/esm/plugins/provider.d.ts +0 -36
  959. package/dist/esm/plugins/provider.d.ts.map +0 -1
  960. package/dist/esm/plugins/provider.js +0 -4
  961. package/dist/esm/plugins/provider.js.map +0 -1
  962. package/dist/esm/regionalAuthority.d.ts +0 -122
  963. package/dist/esm/regionalAuthority.d.ts.map +0 -1
  964. package/dist/esm/regionalAuthority.js +0 -140
  965. package/dist/esm/regionalAuthority.js.map +0 -1
  966. package/dist/esm/tokenCredentialOptions.d.ts +0 -28
  967. package/dist/esm/tokenCredentialOptions.d.ts.map +0 -1
  968. package/dist/esm/tokenCredentialOptions.js +0 -4
  969. package/dist/esm/tokenCredentialOptions.js.map +0 -1
  970. package/dist/esm/tokenProvider.d.ts +0 -39
  971. package/dist/esm/tokenProvider.d.ts.map +0 -1
  972. package/dist/esm/tokenProvider.js +0 -53
  973. package/dist/esm/tokenProvider.js.map +0 -1
  974. package/dist/esm/util/authHostEnv-browser.d.mts +0 -4
  975. package/dist/esm/util/authHostEnv-browser.d.mts.map +0 -1
  976. package/dist/esm/util/authHostEnv-browser.mjs.map +0 -1
  977. package/dist/esm/util/identityTokenEndpoint.d.ts +0 -2
  978. package/dist/esm/util/identityTokenEndpoint.d.ts.map +0 -1
  979. package/dist/esm/util/identityTokenEndpoint.js +0 -11
  980. package/dist/esm/util/identityTokenEndpoint.js.map +0 -1
  981. package/dist/esm/util/logging.d.ts +0 -70
  982. package/dist/esm/util/logging.d.ts.map +0 -1
  983. package/dist/esm/util/logging.js +0 -94
  984. package/dist/esm/util/logging.js.map +0 -1
  985. package/dist/esm/util/processMultiTenantRequest.d.ts +0 -10
  986. package/dist/esm/util/processMultiTenantRequest.d.ts.map +0 -1
  987. package/dist/esm/util/processMultiTenantRequest.js.map +0 -1
  988. package/dist/esm/util/processUtils.d.ts +0 -13
  989. package/dist/esm/util/processUtils.d.ts.map +0 -1
  990. package/dist/esm/util/processUtils.js +0 -32
  991. package/dist/esm/util/processUtils.js.map +0 -1
  992. package/dist/esm/util/scopeUtils.d.ts +0 -17
  993. package/dist/esm/util/scopeUtils.d.ts.map +0 -1
  994. package/dist/esm/util/scopeUtils.js +0 -29
  995. package/dist/esm/util/scopeUtils.js.map +0 -1
  996. package/dist/esm/util/subscriptionUtils.d.ts +0 -6
  997. package/dist/esm/util/subscriptionUtils.d.ts.map +0 -1
  998. package/dist/esm/util/subscriptionUtils.js +0 -14
  999. package/dist/esm/util/subscriptionUtils.js.map +0 -1
  1000. package/dist/esm/util/tenantIdUtils.d.ts +0 -15
  1001. package/dist/esm/util/tenantIdUtils.d.ts.map +0 -1
  1002. package/dist/esm/util/tenantIdUtils.js.map +0 -1
  1003. package/dist/esm/util/tracing.d.ts +0 -6
  1004. package/dist/esm/util/tracing.d.ts.map +0 -1
  1005. package/dist/esm/util/tracing.js +0 -14
  1006. package/dist/esm/util/tracing.js.map +0 -1
  1007. /package/{dist/browser → dist-esm/src}/credentials/authorityValidationOptions.js +0 -0
  1008. /package/{dist/browser → dist-esm/src}/credentials/authorityValidationOptions.js.map +0 -0
  1009. /package/{dist/browser → dist-esm/src}/credentials/authorizationCodeCredentialOptions.js +0 -0
  1010. /package/{dist/browser → dist-esm/src}/credentials/azureApplicationCredentialOptions.js +0 -0
  1011. /package/{dist/browser → dist-esm/src}/credentials/azureCliCredentialOptions.js +0 -0
  1012. /package/{dist/browser → dist-esm/src}/credentials/azureDeveloperCliCredentialOptions.js +0 -0
  1013. /package/{dist/browser → dist-esm/src}/credentials/azurePipelinesCredentialOptions.js +0 -0
  1014. /package/{dist/browser → dist-esm/src}/credentials/azurePowerShellCredentialOptions.js +0 -0
  1015. /package/{dist/browser → dist-esm/src}/credentials/brokerAuthOptions.js +0 -0
  1016. /package/{dist/browser → dist-esm/src}/credentials/browserCustomizationOptions.js +0 -0
  1017. /package/{dist/browser → dist-esm/src}/credentials/browserCustomizationOptions.js.map +0 -0
  1018. /package/{dist/browser → dist-esm/src}/credentials/clientAssertionCredentialOptions.js +0 -0
  1019. /package/{dist/browser → dist-esm/src}/credentials/clientCertificateCredentialOptions.js +0 -0
  1020. /package/{dist/browser → dist-esm/src}/credentials/clientSecretCredentialOptions.js +0 -0
  1021. /package/{dist/browser → dist-esm/src}/credentials/credentialPersistenceOptions.js +0 -0
  1022. /package/{dist/browser → dist-esm/src}/credentials/defaultAzureCredentialOptions.js +0 -0
  1023. /package/{dist/browser → dist-esm/src}/credentials/deviceCodeCredentialOptions.js +0 -0
  1024. /package/{dist/browser → dist-esm/src}/credentials/environmentCredentialOptions.js +0 -0
  1025. /package/{dist/browser → dist-esm/src}/credentials/interactiveBrowserCredentialOptions.js +0 -0
  1026. /package/{dist/browser → dist-esm/src}/credentials/interactiveCredentialOptions.js +0 -0
  1027. /package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/imdsRetryPolicy.js +0 -0
  1028. /package/{dist/browser → dist-esm/src}/credentials/managedIdentityCredential/models.js +0 -0
  1029. /package/{dist/browser → dist-esm/src}/credentials/multiTenantTokenCredentialOptions.js +0 -0
  1030. /package/{dist/browser → dist-esm/src}/credentials/onBehalfOfCredentialOptions.js +0 -0
  1031. /package/{dist/browser → dist-esm/src}/credentials/usernamePasswordCredentialOptions.js +0 -0
  1032. /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialOptions.js +0 -0
  1033. /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialPlugin.js +0 -0
  1034. /package/{dist/browser → dist-esm/src}/credentials/visualStudioCodeCredentialPlugin.js.map +0 -0
  1035. /package/{dist/browser → dist-esm/src}/credentials/workloadIdentityCredentialOptions.js +0 -0
  1036. /package/{dist/browser → dist-esm/src}/errors.js +0 -0
  1037. /package/{dist/browser → dist-esm/src}/msal/browserFlows/flows.js +0 -0
  1038. /package/{dist/browser → dist-esm/src}/msal/credentials.js +0 -0
  1039. /package/{dist/esm → dist-esm/src}/msal/msal.js +0 -0
  1040. /package/{dist/esm → dist-esm/src}/msal/msal.js.map +0 -0
  1041. /package/{dist/browser → dist-esm/src}/msal/nodeFlows/brokerOptions.js +0 -0
  1042. /package/{dist/browser → dist-esm/src}/msal/nodeFlows/brokerOptions.js.map +0 -0
  1043. /package/{dist/browser → dist-esm/src}/msal/nodeFlows/tokenCachePersistenceOptions.js +0 -0
  1044. /package/{dist/browser → dist-esm/src}/msal/nodeFlows/tokenCachePersistenceOptions.js.map +0 -0
  1045. /package/{dist/browser → dist-esm/src}/msal/types.js +0 -0
  1046. /package/{dist/browser → dist-esm/src}/plugins/provider.js +0 -0
  1047. /package/{dist/browser → dist-esm/src}/regionalAuthority.js +0 -0
  1048. /package/{dist/browser → dist-esm/src}/regionalAuthority.js.map +0 -0
  1049. /package/{dist/browser → dist-esm/src}/tokenCredentialOptions.js +0 -0
  1050. /package/{dist/browser → dist-esm/src}/util/identityTokenEndpoint.js +0 -0
  1051. /package/{dist/browser → dist-esm/src}/util/identityTokenEndpoint.js.map +0 -0
  1052. /package/{dist/browser → dist-esm/src}/util/logging.js +0 -0
  1053. /package/{dist/browser → dist-esm/src}/util/processUtils.js +0 -0
  1054. /package/{dist/browser → dist-esm/src}/util/processUtils.js.map +0 -0
@@ -0,0 +1,1853 @@
1
+ import { AccessToken } from '@azure/core-auth';
2
+ import { AzureLogger } from '@azure/logger';
3
+ import { CommonClientOptions } from '@azure/core-client';
4
+ import { GetTokenOptions } from '@azure/core-auth';
5
+ import { LogPolicyOptions } from '@azure/core-rest-pipeline';
6
+ import { TokenCredential } from '@azure/core-auth';
7
+ import type { TracingContext } from '@azure/core-auth';
8
+
9
+ export { AccessToken }
10
+
11
+ /**
12
+ * Provides an `errors` array containing {@link AuthenticationError} instance
13
+ * for authentication failures from credentials in a {@link ChainedTokenCredential}.
14
+ */
15
+ export declare class AggregateAuthenticationError extends Error {
16
+ /**
17
+ * The array of error objects that were thrown while trying to authenticate
18
+ * with the credentials in a {@link ChainedTokenCredential}.
19
+ */
20
+ errors: any[];
21
+ constructor(errors: any[], errorMessage?: string);
22
+ }
23
+
24
+ /**
25
+ * The Error.name value of an AggregateAuthenticationError
26
+ */
27
+ export declare const AggregateAuthenticationErrorName = "AggregateAuthenticationError";
28
+
29
+ /**
30
+ * Provides details about a failure to authenticate with Azure Active
31
+ * Directory. The `errorResponse` field contains more details about
32
+ * the specific failure.
33
+ */
34
+ export declare class AuthenticationError extends Error {
35
+ /**
36
+ * The HTTP status code returned from the authentication request.
37
+ */
38
+ readonly statusCode: number;
39
+ /**
40
+ * The error response details.
41
+ */
42
+ readonly errorResponse: ErrorResponse;
43
+ constructor(statusCode: number, errorBody: object | string | undefined | null, options?: {
44
+ cause?: unknown;
45
+ });
46
+ }
47
+
48
+ /**
49
+ * The Error.name value of an AuthenticationError
50
+ */
51
+ export declare const AuthenticationErrorName = "AuthenticationError";
52
+
53
+ /**
54
+ * The record to use to find the cached tokens in the cache.
55
+ */
56
+ export declare interface AuthenticationRecord {
57
+ /**
58
+ * The associated authority, if used.
59
+ */
60
+ authority: string;
61
+ /**
62
+ * The home account Id.
63
+ */
64
+ homeAccountId: string;
65
+ /**
66
+ * The associated client ID.
67
+ */
68
+ clientId: string;
69
+ /**
70
+ * The associated tenant ID.
71
+ */
72
+ tenantId: string;
73
+ /**
74
+ * The username of the logged in account.
75
+ */
76
+ username: string;
77
+ }
78
+
79
+ /**
80
+ * Error used to enforce authentication after trying to retrieve a token silently.
81
+ */
82
+ export declare class AuthenticationRequiredError extends Error {
83
+ /**
84
+ * The list of scopes for which the token will have access.
85
+ */
86
+ scopes: string[];
87
+ /**
88
+ * The options passed to the getToken request.
89
+ */
90
+ getTokenOptions?: GetTokenOptions;
91
+ constructor(
92
+ /**
93
+ * Optional parameters. A message can be specified. The {@link GetTokenOptions} of the request can also be specified to more easily associate the error with the received parameters.
94
+ */
95
+ options: AuthenticationRequiredErrorOptions);
96
+ }
97
+
98
+ /**
99
+ * Optional parameters to the {@link AuthenticationRequiredError}
100
+ */
101
+ export declare interface AuthenticationRequiredErrorOptions {
102
+ /**
103
+ * The list of scopes for which the token will have access.
104
+ */
105
+ scopes: string[];
106
+ /**
107
+ * The options passed to the getToken request.
108
+ */
109
+ getTokenOptions?: GetTokenOptions;
110
+ /**
111
+ * The message of the error.
112
+ */
113
+ message?: string;
114
+ /**
115
+ * The underlying cause, if any, that caused the authentication to fail.
116
+ */
117
+ cause?: unknown;
118
+ }
119
+
120
+ /**
121
+ * Provides options to configure how the Identity library
122
+ * does authority validation during authentication requests
123
+ * to Microsoft Entra ID.
124
+ */
125
+ export declare interface AuthorityValidationOptions {
126
+ /**
127
+ * The field determines whether instance discovery is performed when attempting to authenticate.
128
+ * Setting this to `true` will completely disable both instance discovery and authority validation.
129
+ * As a result, it's crucial to ensure that the configured authority host is valid and trustworthy.
130
+ * This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack.
131
+ * The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority.
132
+ */
133
+ disableInstanceDiscovery?: boolean;
134
+ }
135
+
136
+ /**
137
+ * Enables authentication to Microsoft Entra ID using an authorization code
138
+ * that was obtained through the authorization code flow, described in more detail
139
+ * in the Microsoft Entra ID documentation:
140
+ *
141
+ * https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow
142
+ */
143
+ export declare class AuthorizationCodeCredential implements TokenCredential {
144
+ private msalClient;
145
+ private disableAutomaticAuthentication?;
146
+ private authorizationCode;
147
+ private redirectUri;
148
+ private tenantId?;
149
+ private additionallyAllowedTenantIds;
150
+ private clientSecret?;
151
+ /**
152
+ * Creates an instance of AuthorizationCodeCredential with the details needed
153
+ * to request an access token using an authentication that was obtained
154
+ * from Microsoft Entra ID.
155
+ *
156
+ * It is currently necessary for the user of this credential to initiate
157
+ * the authorization code flow to obtain an authorization code to be used
158
+ * with this credential. A full example of this flow is provided here:
159
+ *
160
+ * https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/v2/manual/authorizationCodeSample.ts
161
+ *
162
+ * @param tenantId - The Microsoft Entra tenant (directory) ID or name.
163
+ * 'common' may be used when dealing with multi-tenant scenarios.
164
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
165
+ * @param clientSecret - A client secret that was generated for the App Registration
166
+ * @param authorizationCode - An authorization code that was received from following the
167
+ authorization code flow. This authorization code must not
168
+ have already been used to obtain an access token.
169
+ * @param redirectUri - The redirect URI that was used to request the authorization code.
170
+ Must be the same URI that is configured for the App Registration.
171
+ * @param options - Options for configuring the client which makes the access token request.
172
+ */
173
+ constructor(tenantId: string | "common", clientId: string, clientSecret: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
174
+ /**
175
+ * Creates an instance of AuthorizationCodeCredential with the details needed
176
+ * to request an access token using an authentication that was obtained
177
+ * from Microsoft Entra ID.
178
+ *
179
+ * It is currently necessary for the user of this credential to initiate
180
+ * the authorization code flow to obtain an authorization code to be used
181
+ * with this credential. A full example of this flow is provided here:
182
+ *
183
+ * https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/v2/manual/authorizationCodeSample.ts
184
+ *
185
+ * @param tenantId - The Microsoft Entra tenant (directory) ID or name.
186
+ * 'common' may be used when dealing with multi-tenant scenarios.
187
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
188
+ * @param authorizationCode - An authorization code that was received from following the
189
+ authorization code flow. This authorization code must not
190
+ have already been used to obtain an access token.
191
+ * @param redirectUri - The redirect URI that was used to request the authorization code.
192
+ Must be the same URI that is configured for the App Registration.
193
+ * @param options - Options for configuring the client which makes the access token request.
194
+ */
195
+ constructor(tenantId: string | "common", clientId: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
196
+ /**
197
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
198
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
199
+ *
200
+ * @param scopes - The list of scopes for which the token will have access.
201
+ * @param options - The options used to configure any requests this
202
+ * TokenCredential implementation might make.
203
+ */
204
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
205
+ }
206
+
207
+ /**
208
+ * Options for the {@link AuthorizationCodeCredential}
209
+ */
210
+ export declare interface AuthorizationCodeCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
211
+ }
212
+
213
+ /**
214
+ * A list of known Azure authority hosts
215
+ */
216
+ export declare enum AzureAuthorityHosts {
217
+ /**
218
+ * China-based Azure Authority Host
219
+ */
220
+ AzureChina = "https://login.chinacloudapi.cn",
221
+ /**
222
+ * Germany-based Azure Authority Host
223
+ */
224
+ AzureGermany = "https://login.microsoftonline.de",
225
+ /**
226
+ * US Government Azure Authority Host
227
+ */
228
+ AzureGovernment = "https://login.microsoftonline.us",
229
+ /**
230
+ * Public Cloud Azure Authority Host
231
+ */
232
+ AzurePublicCloud = "https://login.microsoftonline.com"
233
+ }
234
+
235
+ /**
236
+ * This credential will use the currently logged-in user login information
237
+ * via the Azure CLI ('az') commandline tool.
238
+ * To do so, it will read the user access token and expire time
239
+ * with Azure CLI command "az account get-access-token".
240
+ */
241
+ export declare class AzureCliCredential implements TokenCredential {
242
+ private tenantId?;
243
+ private additionallyAllowedTenantIds;
244
+ private timeout?;
245
+ /**
246
+ * Creates an instance of the {@link AzureCliCredential}.
247
+ *
248
+ * To use this credential, ensure that you have already logged
249
+ * in via the 'az' tool using the command "az login" from the commandline.
250
+ *
251
+ * @param options - Options, to optionally allow multi-tenant requests.
252
+ */
253
+ constructor(options?: AzureCliCredentialOptions);
254
+ /**
255
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
256
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
257
+ *
258
+ * @param scopes - The list of scopes for which the token will have access.
259
+ * @param options - The options used to configure any requests this
260
+ * TokenCredential implementation might make.
261
+ */
262
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
263
+ /**
264
+ * Parses the raw JSON response from the Azure CLI into a usable AccessToken object
265
+ *
266
+ * @param rawResponse - The raw JSON response from the Azure CLI
267
+ * @returns An access token with the expiry time parsed from the raw response
268
+ *
269
+ * The expiryTime of the credential's access token, in milliseconds, is calculated as follows:
270
+ *
271
+ * When available, expires_on (introduced in Azure CLI v2.54.0) will be preferred. Otherwise falls back to expiresOn.
272
+ */
273
+ private parseRawResponse;
274
+ }
275
+
276
+ /**
277
+ * Options for the {@link AzureCliCredential}
278
+ */
279
+ export declare interface AzureCliCredentialOptions extends MultiTenantTokenCredentialOptions {
280
+ /**
281
+ * Allows specifying a tenant ID
282
+ */
283
+ tenantId?: string;
284
+ /**
285
+ * Process timeout configurable for making token requests, provided in milliseconds
286
+ */
287
+ processTimeoutInMs?: number;
288
+ }
289
+
290
+ /**
291
+ * Azure Developer CLI is a command-line interface tool that allows developers to create, manage, and deploy
292
+ * resources in Azure. It's built on top of the Azure CLI and provides additional functionality specific
293
+ * to Azure developers. It allows users to authenticate as a user and/or a service principal against
294
+ * <a href="https://learn.microsoft.com/entra/fundamentals/">Microsoft Entra ID</a>. The
295
+ * AzureDeveloperCliCredential authenticates in a development environment and acquires a token on behalf of
296
+ * the logged-in user or service principal in the Azure Developer CLI. It acts as the Azure Developer CLI logged in user or
297
+ * service principal and executes an Azure CLI command underneath to authenticate the application against
298
+ * Microsoft Entra ID.
299
+ *
300
+ * <h2> Configure AzureDeveloperCliCredential </h2>
301
+ *
302
+ * To use this credential, the developer needs to authenticate locally in Azure Developer CLI using one of the
303
+ * commands below:
304
+ *
305
+ * <ol>
306
+ * <li>Run "azd auth login" in Azure Developer CLI to authenticate interactively as a user.</li>
307
+ * <li>Run "azd auth login --client-id clientID --client-secret clientSecret
308
+ * --tenant-id tenantID" to authenticate as a service principal.</li>
309
+ * </ol>
310
+ *
311
+ * You may need to repeat this process after a certain time period, depending on the refresh token validity in your
312
+ * organization. Generally, the refresh token validity period is a few weeks to a few months.
313
+ * AzureDeveloperCliCredential will prompt you to sign in again.
314
+ */
315
+ export declare class AzureDeveloperCliCredential implements TokenCredential {
316
+ private tenantId?;
317
+ private additionallyAllowedTenantIds;
318
+ private timeout?;
319
+ /**
320
+ * Creates an instance of the {@link AzureDeveloperCliCredential}.
321
+ *
322
+ * To use this credential, ensure that you have already logged
323
+ * in via the 'azd' tool using the command "azd auth login" from the commandline.
324
+ *
325
+ * @param options - Options, to optionally allow multi-tenant requests.
326
+ */
327
+ constructor(options?: AzureDeveloperCliCredentialOptions);
328
+ /**
329
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
330
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
331
+ *
332
+ * @param scopes - The list of scopes for which the token will have access.
333
+ * @param options - The options used to configure any requests this
334
+ * TokenCredential implementation might make.
335
+ */
336
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
337
+ }
338
+
339
+ /**
340
+ * Options for the {@link AzureDeveloperCliCredential}
341
+ */
342
+ export declare interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {
343
+ /**
344
+ * Allows specifying a tenant ID
345
+ */
346
+ tenantId?: string;
347
+ /**
348
+ * Process timeout configurable for making token requests, provided in milliseconds
349
+ */
350
+ processTimeoutInMs?: number;
351
+ }
352
+
353
+ /**
354
+ * This credential is designed to be used in Azure Pipelines with service connections
355
+ * as a setup for workload identity federation.
356
+ */
357
+ export declare class AzurePipelinesCredential implements TokenCredential {
358
+ private clientAssertionCredential;
359
+ private identityClient;
360
+ /**
361
+ * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
362
+ * @param tenantId - tenantId associated with the service connection
363
+ * @param clientId - clientId associated with the service connection
364
+ * @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key
365
+ * @param systemAccessToken - The pipeline's <see href="https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops%26tabs=yaml#systemaccesstoken">System.AccessToken</see> value.
366
+ * @param options - The identity client options to use for authentication.
367
+ */
368
+ constructor(tenantId: string, clientId: string, serviceConnectionId: string, systemAccessToken: string, options?: AzurePipelinesCredentialOptions);
369
+ /**
370
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
371
+ * If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.
372
+ *
373
+ * @param scopes - The list of scopes for which the token will have access.
374
+ * @param options - The options used to configure any requests this
375
+ * TokenCredential implementation might make.
376
+ */
377
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
378
+ /**
379
+ *
380
+ * @param oidcRequestUrl - oidc request url
381
+ * @param systemAccessToken - system access token
382
+ * @returns OIDC token from Azure Pipelines
383
+ */
384
+ private requestOidcToken;
385
+ }
386
+
387
+ /**
388
+ * Optional parameters for the {@link AzurePipelinesCredential} class.
389
+ */
390
+ export declare interface AzurePipelinesCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
391
+ }
392
+
393
+ /**
394
+ * This credential will use the currently logged-in user information from the
395
+ * Azure PowerShell module. To do so, it will read the user access token and
396
+ * expire time with Azure PowerShell command `Get-AzAccessToken -ResourceUrl {ResourceScope}`
397
+ */
398
+ export declare class AzurePowerShellCredential implements TokenCredential {
399
+ private tenantId?;
400
+ private additionallyAllowedTenantIds;
401
+ private timeout?;
402
+ /**
403
+ * Creates an instance of the {@link AzurePowerShellCredential}.
404
+ *
405
+ * To use this credential:
406
+ * - Install the Azure Az PowerShell module with:
407
+ * `Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force`.
408
+ * - You have already logged in to Azure PowerShell using the command
409
+ * `Connect-AzAccount` from the command line.
410
+ *
411
+ * @param options - Options, to optionally allow multi-tenant requests.
412
+ */
413
+ constructor(options?: AzurePowerShellCredentialOptions);
414
+ /**
415
+ * Gets the access token from Azure PowerShell
416
+ * @param resource - The resource to use when getting the token
417
+ */
418
+ private getAzurePowerShellAccessToken;
419
+ /**
420
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
421
+ * If the authentication cannot be performed through PowerShell, a {@link CredentialUnavailableError} will be thrown.
422
+ *
423
+ * @param scopes - The list of scopes for which the token will have access.
424
+ * @param options - The options used to configure any requests this TokenCredential implementation might make.
425
+ */
426
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
427
+ }
428
+
429
+ /**
430
+ * Options for the {@link AzurePowerShellCredential}
431
+ */
432
+ export declare interface AzurePowerShellCredentialOptions extends MultiTenantTokenCredentialOptions {
433
+ /**
434
+ * Allows specifying a tenant ID
435
+ */
436
+ tenantId?: string;
437
+ /**
438
+ * Process timeout configurable for making token requests, provided in milliseconds
439
+ */
440
+ processTimeoutInMs?: number;
441
+ }
442
+
443
+ /**
444
+ * Configuration options for InteractiveBrowserCredential
445
+ * to support WAM Broker Authentication.
446
+ */
447
+ export declare interface BrokerAuthOptions {
448
+ /**
449
+ * Options to allow broker authentication when using InteractiveBrowserCredential
450
+ *
451
+ */
452
+ brokerOptions?: BrokerOptions;
453
+ }
454
+
455
+ /**
456
+ * Parameters when WAM broker authentication is disabled.
457
+ */
458
+ export declare interface BrokerDisabledOptions {
459
+ /**
460
+ * If set to true, broker will be enabled for WAM support on Windows.
461
+ */
462
+ enabled: false;
463
+ /**
464
+ * If set to true, MSA account will be passed through, required for WAM authentication.
465
+ */
466
+ legacyEnableMsaPassthrough?: undefined;
467
+ /**
468
+ * Window handle for parent window, required for WAM authentication.
469
+ */
470
+ parentWindowHandle: undefined;
471
+ }
472
+
473
+ /**
474
+ * Parameters when WAM broker authentication is enabled.
475
+ */
476
+ export declare interface BrokerEnabledOptions {
477
+ /**
478
+ * If set to true, broker will be enabled for WAM support on Windows.
479
+ */
480
+ enabled: true;
481
+ /**
482
+ * If set to true, MSA account will be passed through, required for WAM authentication.
483
+ */
484
+ legacyEnableMsaPassthrough?: boolean;
485
+ /**
486
+ * Window handle for parent window, required for WAM authentication.
487
+ */
488
+ parentWindowHandle: Uint8Array;
489
+ /**
490
+ * If set to true, the credential will attempt to use the default broker account for authentication before falling back to interactive authentication.
491
+ * Default is set to false.
492
+ */
493
+ useDefaultBrokerAccount?: boolean;
494
+ }
495
+
496
+ /**
497
+ * Parameters that enable WAM broker authentication in the InteractiveBrowserCredential.
498
+ */
499
+ export declare type BrokerOptions = BrokerEnabledOptions | BrokerDisabledOptions;
500
+
501
+ /**
502
+ * Shared configuration options for browser customization
503
+ */
504
+ export declare interface BrowserCustomizationOptions {
505
+ /**
506
+ * Shared configuration options for browser customization
507
+ */
508
+ browserCustomizationOptions?: {
509
+ /**
510
+ * Format for error messages for display in browser
511
+ */
512
+ errorMessage?: string;
513
+ /**
514
+ * Format for success messages for display in browser
515
+ */
516
+ successMessage?: string;
517
+ };
518
+ }
519
+
520
+ /**
521
+ * (Browser-only feature)
522
+ * The "login style" to use in the authentication flow:
523
+ * - "redirect" redirects the user to the authentication page and then
524
+ * redirects them back to the page once authentication is completed.
525
+ * - "popup" opens a new browser window through with the redirect flow
526
+ * is initiated. The user's existing browser window does not leave
527
+ * the current page
528
+ */
529
+ export declare type BrowserLoginStyle = "redirect" | "popup";
530
+
531
+ /**
532
+ * Enables multiple `TokenCredential` implementations to be tried in order
533
+ * until one of the getToken methods returns an access token.
534
+ */
535
+ export declare class ChainedTokenCredential implements TokenCredential {
536
+ private _sources;
537
+ /**
538
+ * Creates an instance of ChainedTokenCredential using the given credentials.
539
+ *
540
+ * @param sources - `TokenCredential` implementations to be tried in order.
541
+ *
542
+ * Example usage:
543
+ * ```ts snippet:chained_token_credential_example
544
+ * import { ClientSecretCredential, ChainedTokenCredential } from "@azure/identity";
545
+ *
546
+ * const tenantId = "<tenant-id>";
547
+ * const clientId = "<client-id>";
548
+ * const clientSecret = "<client-secret>";
549
+ * const anotherClientId = "<another-client-id>";
550
+ * const anotherSecret = "<another-client-secret>";
551
+ * const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
552
+ * const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret);
553
+ * const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);
554
+ * ```
555
+ */
556
+ constructor(...sources: TokenCredential[]);
557
+ /**
558
+ * Returns the first access token returned by one of the chained
559
+ * `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
560
+ * when one or more credentials throws an {@link AuthenticationError} and
561
+ * no credentials have returned an access token.
562
+ *
563
+ * This method is called automatically by Azure SDK client libraries. You may call this method
564
+ * directly, but you must also handle token caching and token refreshing.
565
+ *
566
+ * @param scopes - The list of scopes for which the token will have access.
567
+ * @param options - The options used to configure any requests this
568
+ * `TokenCredential` implementation might make.
569
+ */
570
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
571
+ private getTokenInternal;
572
+ }
573
+
574
+ /**
575
+ * Authenticates a service principal with a JWT assertion.
576
+ */
577
+ export declare class ClientAssertionCredential implements TokenCredential {
578
+ private msalClient;
579
+ private tenantId;
580
+ private additionallyAllowedTenantIds;
581
+ private getAssertion;
582
+ private options;
583
+ /**
584
+ * Creates an instance of the ClientAssertionCredential with the details
585
+ * needed to authenticate against Microsoft Entra ID with a client
586
+ * assertion provided by the developer through the `getAssertion` function parameter.
587
+ *
588
+ * @param tenantId - The Microsoft Entra tenant (directory) ID.
589
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
590
+ * @param getAssertion - A function that retrieves the assertion for the credential to use.
591
+ * @param options - Options for configuring the client which makes the authentication request.
592
+ */
593
+ constructor(tenantId: string, clientId: string, getAssertion: () => Promise<string>, options?: ClientAssertionCredentialOptions);
594
+ /**
595
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
596
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
597
+ *
598
+ * @param scopes - The list of scopes for which the token will have access.
599
+ * @param options - The options used to configure any requests this
600
+ * TokenCredential implementation might make.
601
+ */
602
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
603
+ }
604
+
605
+ /**
606
+ * Options for the {@link ClientAssertionCredential}
607
+ */
608
+ export declare interface ClientAssertionCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
609
+ }
610
+
611
+ /**
612
+ * Enables authentication to Microsoft Entra ID using a PEM-encoded
613
+ * certificate that is assigned to an App Registration. More information
614
+ * on how to configure certificate authentication can be found here:
615
+ *
616
+ * https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-azure-ad
617
+ *
618
+ */
619
+ export declare class ClientCertificateCredential implements TokenCredential {
620
+ private tenantId;
621
+ private additionallyAllowedTenantIds;
622
+ private certificateConfiguration;
623
+ private sendCertificateChain?;
624
+ private msalClient;
625
+ /**
626
+ * Creates an instance of the ClientCertificateCredential with the details
627
+ * needed to authenticate against Microsoft Entra ID with a certificate.
628
+ *
629
+ * @param tenantId - The Microsoft Entra tenant (directory) ID.
630
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
631
+ * @param certificatePath - The path to a PEM-encoded public/private key certificate on the filesystem.
632
+ * @param options - Options for configuring the client which makes the authentication request.
633
+ */
634
+ constructor(tenantId: string, clientId: string, certificatePath: string, options?: ClientCertificateCredentialOptions);
635
+ /**
636
+ * Creates an instance of the ClientCertificateCredential with the details
637
+ * needed to authenticate against Microsoft Entra ID with a certificate.
638
+ *
639
+ * @param tenantId - The Microsoft Entra tenant (directory) ID.
640
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
641
+ * @param configuration - Other parameters required, including the path of the certificate on the filesystem.
642
+ * If the type is ignored, we will throw the value of the path to a PEM certificate.
643
+ * @param options - Options for configuring the client which makes the authentication request.
644
+ */
645
+ constructor(tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificatePath, options?: ClientCertificateCredentialOptions);
646
+ /**
647
+ * Creates an instance of the ClientCertificateCredential with the details
648
+ * needed to authenticate against Microsoft Entra ID with a certificate.
649
+ *
650
+ * @param tenantId - The Microsoft Entra tenant (directory) ID.
651
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
652
+ * @param configuration - Other parameters required, including the PEM-encoded certificate as a string.
653
+ * If the type is ignored, we will throw the value of the PEM-encoded certificate.
654
+ * @param options - Options for configuring the client which makes the authentication request.
655
+ */
656
+ constructor(tenantId: string, clientId: string, configuration: ClientCertificatePEMCertificate, options?: ClientCertificateCredentialOptions);
657
+ /**
658
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
659
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
660
+ *
661
+ * @param scopes - The list of scopes for which the token will have access.
662
+ * @param options - The options used to configure any requests this
663
+ * TokenCredential implementation might make.
664
+ */
665
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
666
+ private buildClientCertificate;
667
+ }
668
+
669
+ /**
670
+ * Optional parameters for the {@link ClientCertificateCredential} class.
671
+ */
672
+ export declare interface ClientCertificateCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
673
+ /**
674
+ * Option to include x5c header for SubjectName and Issuer name authorization.
675
+ * Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
676
+ */
677
+ sendCertificateChain?: boolean;
678
+ }
679
+
680
+ /**
681
+ * Required configuration options for the {@link ClientCertificateCredential}, with either the string contents of a PEM certificate, or the path to a PEM certificate.
682
+ */
683
+ export declare type ClientCertificateCredentialPEMConfiguration = ClientCertificatePEMCertificate | ClientCertificatePEMCertificatePath;
684
+
685
+ /**
686
+ * Required configuration options for the {@link ClientCertificateCredential}, with the string contents of a PEM certificate
687
+ */
688
+ export declare interface ClientCertificatePEMCertificate {
689
+ /**
690
+ * The PEM-encoded public/private key certificate on the filesystem.
691
+ */
692
+ certificate: string;
693
+ /**
694
+ * The password for the certificate file.
695
+ */
696
+ certificatePassword?: string;
697
+ }
698
+
699
+ /**
700
+ * Required configuration options for the {@link ClientCertificateCredential}, with the path to a PEM certificate.
701
+ */
702
+ export declare interface ClientCertificatePEMCertificatePath {
703
+ /**
704
+ * The path to the PEM-encoded public/private key certificate on the filesystem.
705
+ */
706
+ certificatePath: string;
707
+ /**
708
+ * The password for the certificate file.
709
+ */
710
+ certificatePassword?: string;
711
+ }
712
+
713
+ /**
714
+ * Enables authentication to Microsoft Entra ID using a client secret
715
+ * that was generated for an App Registration. More information on how
716
+ * to configure a client secret can be found here:
717
+ *
718
+ * https://learn.microsoft.com/entra/identity-platform/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application
719
+ *
720
+ */
721
+ export declare class ClientSecretCredential implements TokenCredential {
722
+ private tenantId;
723
+ private additionallyAllowedTenantIds;
724
+ private msalClient;
725
+ private clientSecret;
726
+ /**
727
+ * Creates an instance of the ClientSecretCredential with the details
728
+ * needed to authenticate against Microsoft Entra ID with a client
729
+ * secret.
730
+ *
731
+ * @param tenantId - The Microsoft Entra tenant (directory) ID.
732
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
733
+ * @param clientSecret - A client secret that was generated for the App Registration.
734
+ * @param options - Options for configuring the client which makes the authentication request.
735
+ */
736
+ constructor(tenantId: string, clientId: string, clientSecret: string, options?: ClientSecretCredentialOptions);
737
+ /**
738
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
739
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
740
+ *
741
+ * @param scopes - The list of scopes for which the token will have access.
742
+ * @param options - The options used to configure any requests this
743
+ * TokenCredential implementation might make.
744
+ */
745
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
746
+ }
747
+
748
+ /**
749
+ * Optional parameters for the {@link ClientSecretCredential} class.
750
+ */
751
+ export declare interface ClientSecretCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
752
+ }
753
+
754
+ /**
755
+ * Shared configuration options for credentials that support persistent token
756
+ * caching.
757
+ */
758
+ export declare interface CredentialPersistenceOptions {
759
+ /**
760
+ * Options to provide to the persistence layer (if one is available) when
761
+ * storing credentials.
762
+ *
763
+ * You must first register a persistence provider plugin. See the
764
+ * `@azure/identity-cache-persistence` package on NPM.
765
+ *
766
+ * Example:
767
+ *
768
+ * ```ts snippet:credential_persistence_options_example
769
+ * import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
770
+ *
771
+ * useIdentityPlugin(cachePersistencePlugin);
772
+ * const credential = new DeviceCodeCredential({
773
+ * tokenCachePersistenceOptions: {
774
+ * enabled: true,
775
+ * },
776
+ * });
777
+ * ```
778
+ */
779
+ tokenCachePersistenceOptions?: TokenCachePersistenceOptions;
780
+ }
781
+
782
+ /**
783
+ * This signifies that the credential that was tried in a chained credential
784
+ * was not available to be used as the credential. Rather than treating this as
785
+ * an error that should halt the chain, it's caught and the chain continues
786
+ */
787
+ export declare class CredentialUnavailableError extends Error {
788
+ constructor(message?: string, options?: {
789
+ cause?: unknown;
790
+ });
791
+ }
792
+
793
+ /**
794
+ * The Error.name value of an CredentialUnavailable
795
+ */
796
+ export declare const CredentialUnavailableErrorName = "CredentialUnavailableError";
797
+
798
+ /**
799
+ * Provides a default {@link ChainedTokenCredential} configuration that should
800
+ * work for most applications that use the Azure SDK.
801
+ */
802
+ export declare class DefaultAzureCredential extends ChainedTokenCredential {
803
+ /**
804
+ * Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialClientIdOptions}
805
+ *
806
+ * This credential provides a default {@link ChainedTokenCredential} configuration that should
807
+ * work for most applications that use the Azure SDK.
808
+ *
809
+ * The following credential types will be tried, in order:
810
+ *
811
+ * - {@link EnvironmentCredential}
812
+ * - {@link WorkloadIdentityCredential}
813
+ * - {@link ManagedIdentityCredential}
814
+ * - {@link AzureCliCredential}
815
+ * - {@link AzurePowerShellCredential}
816
+ * - {@link AzureDeveloperCliCredential}
817
+ *
818
+ * Consult the documentation of these credential types for more information
819
+ * on how they attempt authentication.
820
+ *
821
+ * @param options - Optional parameters. See {@link DefaultAzureCredentialClientIdOptions}.
822
+ */
823
+ constructor(options?: DefaultAzureCredentialClientIdOptions);
824
+ /**
825
+ * Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialResourceIdOptions}
826
+ *
827
+ * This credential provides a default {@link ChainedTokenCredential} configuration that should
828
+ * work for most applications that use the Azure SDK.
829
+ *
830
+ * The following credential types will be tried, in order:
831
+ *
832
+ * - {@link EnvironmentCredential}
833
+ * - {@link WorkloadIdentityCredential}
834
+ * - {@link ManagedIdentityCredential}
835
+ * - {@link AzureCliCredential}
836
+ * - {@link AzurePowerShellCredential}
837
+ * - {@link AzureDeveloperCliCredential}
838
+ *
839
+ * Consult the documentation of these credential types for more information
840
+ * on how they attempt authentication.
841
+ *
842
+ * @param options - Optional parameters. See {@link DefaultAzureCredentialResourceIdOptions}.
843
+ */
844
+ constructor(options?: DefaultAzureCredentialResourceIdOptions);
845
+ /**
846
+ * Creates an instance of the DefaultAzureCredential class with {@link DefaultAzureCredentialOptions}
847
+ *
848
+ * This credential provides a default {@link ChainedTokenCredential} configuration that should
849
+ * work for most applications that use the Azure SDK.
850
+ *
851
+ * The following credential types will be tried, in order:
852
+ *
853
+ * - {@link EnvironmentCredential}
854
+ * - {@link WorkloadIdentityCredential}
855
+ * - {@link ManagedIdentityCredential}
856
+ * - {@link AzureCliCredential}
857
+ * - {@link AzurePowerShellCredential}
858
+ * - {@link AzureDeveloperCliCredential}
859
+ *
860
+ * Consult the documentation of these credential types for more information
861
+ * on how they attempt authentication.
862
+ *
863
+ * @param options - Optional parameters. See {@link DefaultAzureCredentialOptions}.
864
+ */
865
+ constructor(options?: DefaultAzureCredentialOptions);
866
+ }
867
+
868
+ /**
869
+ * Provides options to configure the {@link DefaultAzureCredential} class.
870
+ * This variation supports `managedIdentityClientId` and not `managedIdentityResourceId`, since only one of both is supported.
871
+ */
872
+ export declare interface DefaultAzureCredentialClientIdOptions extends DefaultAzureCredentialOptions {
873
+ /**
874
+ * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
875
+ * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
876
+ */
877
+ managedIdentityClientId?: string;
878
+ /**
879
+ * Optionally pass in a user assigned client ID to be used by the {@link WorkloadIdentityCredential}.
880
+ * This client ID can also be passed through to the {@link WorkloadIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
881
+ */
882
+ workloadIdentityClientId?: string;
883
+ }
884
+
885
+ /**
886
+ * Provides options to configure the {@link DefaultAzureCredential} class.
887
+ */
888
+ export declare interface DefaultAzureCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
889
+ /**
890
+ * Optionally pass in a Tenant ID to be used as part of the credential.
891
+ * By default it may use a generic tenant ID depending on the underlying credential.
892
+ */
893
+ tenantId?: string;
894
+ /**
895
+ * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowershellCredential},
896
+ * {@link AzureDeveloperCliCredential} and {@link AzureCliCredential}.
897
+ * Process timeout for credentials should be provided in milliseconds.
898
+ */
899
+ processTimeoutInMs?: number;
900
+ }
901
+
902
+ /**
903
+ * Provides options to configure the {@link DefaultAzureCredential} class.
904
+ * This variation supports `managedIdentityResourceId` and not `managedIdentityClientId`, since only one of both is supported.
905
+ */
906
+ export declare interface DefaultAzureCredentialResourceIdOptions extends DefaultAzureCredentialOptions {
907
+ /**
908
+ * Optionally pass in a resource ID to be used by the {@link ManagedIdentityCredential}.
909
+ * In scenarios such as when user assigned identities are created using an ARM template,
910
+ * where the resource Id of the identity is known but the client Id can't be known ahead of time,
911
+ * this parameter allows programs to use these user assigned identities
912
+ * without having to first determine the client Id of the created identity.
913
+ */
914
+ managedIdentityResourceId: string;
915
+ }
916
+
917
+ /**
918
+ * Deserializes a previously serialized authentication record from a string into an object.
919
+ *
920
+ * The input string must contain the following properties:
921
+ *
922
+ * - "authority"
923
+ * - "homeAccountId"
924
+ * - "clientId"
925
+ * - "tenantId"
926
+ * - "username"
927
+ * - "version"
928
+ *
929
+ * If the version we receive is unsupported, an error will be thrown.
930
+ *
931
+ * At the moment, the only available version is: "1.0", which is always set when the authentication record is serialized.
932
+ *
933
+ * @param serializedRecord - Authentication record previously serialized into string.
934
+ * @returns AuthenticationRecord.
935
+ */
936
+ export declare function deserializeAuthenticationRecord(serializedRecord: string): AuthenticationRecord;
937
+
938
+ /**
939
+ * Enables authentication to Microsoft Entra ID using a device code
940
+ * that the user can enter into https://microsoft.com/devicelogin.
941
+ */
942
+ export declare class DeviceCodeCredential implements TokenCredential {
943
+ private tenantId?;
944
+ private additionallyAllowedTenantIds;
945
+ private disableAutomaticAuthentication?;
946
+ private msalClient;
947
+ private userPromptCallback;
948
+ /**
949
+ * Creates an instance of DeviceCodeCredential with the details needed
950
+ * to initiate the device code authorization flow with Microsoft Entra ID.
951
+ *
952
+ * A message will be logged, giving users a code that they can use to authenticate once they go to https://microsoft.com/devicelogin
953
+ *
954
+ * Developers can configure how this message is shown by passing a custom `userPromptCallback`:
955
+ *
956
+ * ```ts snippet:device_code_credential_example
957
+ * import { DeviceCodeCredential } from "@azure/identity";
958
+ *
959
+ * const credential = new DeviceCodeCredential({
960
+ * tenantId: process.env.AZURE_TENANT_ID,
961
+ * clientId: process.env.AZURE_CLIENT_ID,
962
+ * userPromptCallback: (info) => {
963
+ * console.log("CUSTOMIZED PROMPT CALLBACK", info.message);
964
+ * },
965
+ * });
966
+ * ```
967
+ *
968
+ * @param options - Options for configuring the client which makes the authentication requests.
969
+ */
970
+ constructor(options?: DeviceCodeCredentialOptions);
971
+ /**
972
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
973
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
974
+ *
975
+ * If the user provided the option `disableAutomaticAuthentication`,
976
+ * once the token can't be retrieved silently,
977
+ * this method won't attempt to request user interaction to retrieve the token.
978
+ *
979
+ * @param scopes - The list of scopes for which the token will have access.
980
+ * @param options - The options used to configure any requests this
981
+ * TokenCredential implementation might make.
982
+ */
983
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
984
+ /**
985
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
986
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
987
+ *
988
+ * If the token can't be retrieved silently, this method will always generate a challenge for the user.
989
+ *
990
+ * @param scopes - The list of scopes for which the token will have access.
991
+ * @param options - The options used to configure any requests this
992
+ * TokenCredential implementation might make.
993
+ */
994
+ authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
995
+ }
996
+
997
+ /**
998
+ * Defines options for the InteractiveBrowserCredential class for Node.js.
999
+ */
1000
+ export declare interface DeviceCodeCredentialOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions {
1001
+ /**
1002
+ * The Microsoft Entra tenant (directory) ID.
1003
+ */
1004
+ tenantId?: string;
1005
+ /**
1006
+ * Client ID of the Microsoft Entra application that users will sign into.
1007
+ * It is recommended that developers register their applications and assign appropriate roles.
1008
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
1009
+ * If not specified, users will authenticate to an Azure development application,
1010
+ * which is not recommended for production scenarios.
1011
+ */
1012
+ clientId?: string;
1013
+ /**
1014
+ * A callback function that will be invoked to show {@link DeviceCodeInfo} to the user.
1015
+ * If left unassigned, we will automatically log the device code information
1016
+ * and the authentication instructions in the console.
1017
+ */
1018
+ userPromptCallback?: DeviceCodePromptCallback;
1019
+ }
1020
+
1021
+ /**
1022
+ * Provides the user code and verification URI where the code must be
1023
+ * entered. Also provides a message to display to the user which
1024
+ * contains an instruction with these details.
1025
+ */
1026
+ export declare interface DeviceCodeInfo {
1027
+ /**
1028
+ * The device code that the user must enter into the verification page.
1029
+ */
1030
+ userCode: string;
1031
+ /**
1032
+ * The verification URI to which the user must navigate to enter the device
1033
+ * code.
1034
+ */
1035
+ verificationUri: string;
1036
+ /**
1037
+ * A message that may be shown to the user to instruct them on how to enter
1038
+ * the device code in the page specified by the verification URI.
1039
+ */
1040
+ message: string;
1041
+ }
1042
+
1043
+ /**
1044
+ * Defines the signature of a callback which will be passed to
1045
+ * DeviceCodeCredential for the purpose of displaying authentication
1046
+ * details to the user.
1047
+ */
1048
+ export declare type DeviceCodePromptCallback = (deviceCodeInfo: DeviceCodeInfo) => void;
1049
+
1050
+ /**
1051
+ * Enables authentication to Microsoft Entra ID using a client secret or certificate, or as a user
1052
+ * with a username and password.
1053
+ */
1054
+ export declare class EnvironmentCredential implements TokenCredential {
1055
+ private _credential?;
1056
+ /**
1057
+ * Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.
1058
+ *
1059
+ * Required environment variables:
1060
+ * - `AZURE_TENANT_ID`: The Microsoft Entra tenant (directory) ID.
1061
+ * - `AZURE_CLIENT_ID`: The client (application) ID of an App Registration in the tenant.
1062
+ *
1063
+ * If setting the AZURE_TENANT_ID, then you can also set the additionally allowed tenants
1064
+ * - `AZURE_ADDITIONALLY_ALLOWED_TENANTS`: For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens with a single semicolon delimited string. Use * to allow all tenants.
1065
+ *
1066
+ * Environment variables used for client credential authentication:
1067
+ * - `AZURE_CLIENT_SECRET`: A client secret that was generated for the App Registration.
1068
+ * - `AZURE_CLIENT_CERTIFICATE_PATH`: The path to a PEM certificate to use during the authentication, instead of the client secret.
1069
+ * - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the certificate file.
1070
+ * - `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN`: (optional) indicates that the certificate chain should be set in x5c header to support subject name / issuer based authentication.
1071
+ *
1072
+ * Alternatively, users can provide environment variables for username and password authentication:
1073
+ * - `AZURE_USERNAME`: Username to authenticate with.
1074
+ * - `AZURE_PASSWORD`: Password to authenticate with.
1075
+ *
1076
+ * If the environment variables required to perform the authentication are missing, a {@link CredentialUnavailableError} will be thrown.
1077
+ * If the authentication fails, or if there's an unknown error, an {@link AuthenticationError} will be thrown.
1078
+ *
1079
+ * @param options - Options for configuring the client which makes the authentication request.
1080
+ */
1081
+ constructor(options?: EnvironmentCredentialOptions);
1082
+ /**
1083
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1084
+ *
1085
+ * @param scopes - The list of scopes for which the token will have access.
1086
+ * @param options - Optional parameters. See {@link GetTokenOptions}.
1087
+ */
1088
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1089
+ }
1090
+
1091
+ /**
1092
+ * Enables authentication to Microsoft Entra ID depending on the available environment variables.
1093
+ * Defines options for the EnvironmentCredential class.
1094
+ */
1095
+ export declare interface EnvironmentCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
1096
+ }
1097
+
1098
+ /**
1099
+ * See the official documentation for more details:
1100
+ *
1101
+ * https://learn.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code#error-response-1
1102
+ *
1103
+ * NOTE: This documentation is for v1 OAuth support but the same error
1104
+ * response details still apply to v2.
1105
+ */
1106
+ export declare interface ErrorResponse {
1107
+ /**
1108
+ * The string identifier for the error.
1109
+ */
1110
+ error: string;
1111
+ /**
1112
+ * The error's description.
1113
+ */
1114
+ errorDescription: string;
1115
+ /**
1116
+ * An array of codes pertaining to the error(s) that occurred.
1117
+ */
1118
+ errorCodes?: number[];
1119
+ /**
1120
+ * The timestamp at which the error occurred.
1121
+ */
1122
+ timestamp?: string;
1123
+ /**
1124
+ * The trace identifier for this error occurrence.
1125
+ */
1126
+ traceId?: string;
1127
+ /**
1128
+ * The correlation ID to be used for tracking the source of the error.
1129
+ */
1130
+ correlationId?: string;
1131
+ }
1132
+
1133
+ /**
1134
+ * Returns a callback that provides a bearer token.
1135
+ * For example, the bearer token can be used to authenticate a request as follows:
1136
+ * ```ts snippet:token_provider_example
1137
+ * import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity";
1138
+ * import { createPipelineRequest } from "@azure/core-rest-pipeline";
1139
+ *
1140
+ * const credential = new DefaultAzureCredential();
1141
+ * const scope = "https://cognitiveservices.azure.com/.default";
1142
+ * const getAccessToken = getBearerTokenProvider(credential, scope);
1143
+ * const token = await getAccessToken();
1144
+ * // usage
1145
+ * const request = createPipelineRequest({ url: "https://example.com" });
1146
+ * request.headers.set("Authorization", `Bearer ${token}`);
1147
+ * ```
1148
+ *
1149
+ * @param credential - The credential used to authenticate the request.
1150
+ * @param scopes - The scopes required for the bearer token.
1151
+ * @param options - Options to configure the token provider.
1152
+ * @returns a callback that provides a bearer token.
1153
+ */
1154
+ export declare function getBearerTokenProvider(credential: TokenCredential, scopes: string | string[], options?: GetBearerTokenProviderOptions): () => Promise<string>;
1155
+
1156
+ /**
1157
+ * The options to configure the token provider.
1158
+ */
1159
+ export declare interface GetBearerTokenProviderOptions {
1160
+ /** The abort signal to abort requests to get tokens */
1161
+ abortSignal?: AbortSignal;
1162
+ /** The tracing options for the requests to get tokens */
1163
+ tracingOptions?: {
1164
+ /**
1165
+ * Tracing Context for the current request to get a token.
1166
+ */
1167
+ tracingContext?: TracingContext;
1168
+ };
1169
+ }
1170
+
1171
+ /**
1172
+ * Returns a new instance of the {@link DefaultAzureCredential}.
1173
+ */
1174
+ export declare function getDefaultAzureCredential(): TokenCredential;
1175
+
1176
+ export { GetTokenOptions }
1177
+
1178
+ /**
1179
+ * The type of an Azure Identity plugin, a function accepting a plugin
1180
+ * context.
1181
+ */
1182
+ export declare type IdentityPlugin = (context: unknown) => void;
1183
+
1184
+ /**
1185
+ * Enables authentication to Microsoft Entra ID inside of the web browser
1186
+ * using the interactive login flow.
1187
+ */
1188
+ export declare class InteractiveBrowserCredential implements TokenCredential {
1189
+ private tenantId?;
1190
+ private additionallyAllowedTenantIds;
1191
+ private msalClient;
1192
+ private disableAutomaticAuthentication?;
1193
+ private browserCustomizationOptions;
1194
+ private loginHint?;
1195
+ /**
1196
+ * Creates an instance of InteractiveBrowserCredential with the details needed.
1197
+ *
1198
+ * This credential uses the [Authorization Code Flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-auth-code-flow).
1199
+ * On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.
1200
+ * 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.
1201
+ *
1202
+ * For Node.js, if a `clientId` is provided, the Microsoft Entra application will need to be configured to have a "Mobile and desktop applications" redirect endpoint.
1203
+ * Follow our guide on [setting up Redirect URIs for Desktop apps that calls to web APIs](https://learn.microsoft.com/entra/identity-platform/scenario-desktop-app-registration#redirect-uris).
1204
+ *
1205
+ * @param options - Options for configuring the client which makes the authentication requests.
1206
+ */
1207
+ constructor(options: InteractiveBrowserCredentialNodeOptions | InteractiveBrowserCredentialInBrowserOptions);
1208
+ /**
1209
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1210
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1211
+ *
1212
+ * If the user provided the option `disableAutomaticAuthentication`,
1213
+ * once the token can't be retrieved silently,
1214
+ * this method won't attempt to request user interaction to retrieve the token.
1215
+ *
1216
+ * @param scopes - The list of scopes for which the token will have access.
1217
+ * @param options - The options used to configure any requests this
1218
+ * TokenCredential implementation might make.
1219
+ */
1220
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1221
+ /**
1222
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1223
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1224
+ *
1225
+ * If the token can't be retrieved silently, this method will always generate a challenge for the user.
1226
+ *
1227
+ * On Node.js, this credential has [Proof Key for Code Exchange (PKCE)](https://datatracker.ietf.org/doc/html/rfc7636) enabled by default.
1228
+ * PKCE is a security feature that mitigates authentication code interception attacks.
1229
+ *
1230
+ * @param scopes - The list of scopes for which the token will have access.
1231
+ * @param options - The options used to configure any requests this
1232
+ * TokenCredential implementation might make.
1233
+ */
1234
+ authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
1235
+ }
1236
+
1237
+ /**
1238
+ * Defines the common options for the InteractiveBrowserCredential class.
1239
+ */
1240
+ export declare interface InteractiveBrowserCredentialInBrowserOptions extends InteractiveCredentialOptions {
1241
+ /**
1242
+ * Gets the redirect URI of the application. This should be same as the value
1243
+ * in the application registration portal. Defaults to `window.location.href`.
1244
+ * This field is no longer required for Node.js.
1245
+ */
1246
+ redirectUri?: string | (() => string);
1247
+ /**
1248
+ * The Microsoft Entra tenant (directory) ID.
1249
+ */
1250
+ tenantId?: string;
1251
+ /**
1252
+ * The Client ID of the Microsoft Entra application that users will sign into.
1253
+ * This parameter is required on the browser.
1254
+ * Developers need to register their applications and assign appropriate roles.
1255
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
1256
+ */
1257
+ clientId: string;
1258
+ /**
1259
+ * Specifies whether a redirect or a popup window should be used to
1260
+ * initiate the user authentication flow. Possible values are "redirect"
1261
+ * or "popup" (default) for browser and "popup" (default) for node.
1262
+ *
1263
+ */
1264
+ loginStyle?: BrowserLoginStyle;
1265
+ /**
1266
+ * loginHint allows a user name to be pre-selected for interactive logins.
1267
+ * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
1268
+ */
1269
+ loginHint?: string;
1270
+ }
1271
+
1272
+ /**
1273
+ * Defines the common options for the InteractiveBrowserCredential class.
1274
+ */
1275
+ export declare interface InteractiveBrowserCredentialNodeOptions extends InteractiveCredentialOptions, CredentialPersistenceOptions, BrowserCustomizationOptions, BrokerAuthOptions {
1276
+ /**
1277
+ * Gets the redirect URI of the application. This should be same as the value
1278
+ * in the application registration portal. Defaults to `window.location.href`.
1279
+ * This field is no longer required for Node.js.
1280
+ */
1281
+ redirectUri?: string | (() => string);
1282
+ /**
1283
+ * The Microsoft Entra tenant (directory) ID.
1284
+ */
1285
+ tenantId?: string;
1286
+ /**
1287
+ * The Client ID of the Microsoft Entra application that users will sign into.
1288
+ * It is recommended that developers register their applications and assign appropriate roles.
1289
+ * For more information, visit https://aka.ms/identity/AppRegistrationAndRoleAssignment.
1290
+ * If not specified, users will authenticate to an Azure development application,
1291
+ * which is not recommended for production scenarios.
1292
+ */
1293
+ clientId?: string;
1294
+ /**
1295
+ * loginHint allows a user name to be pre-selected for interactive logins.
1296
+ * Setting this option skips the account selection prompt and immediately attempts to login with the specified account.
1297
+ */
1298
+ loginHint?: string;
1299
+ }
1300
+
1301
+ /**
1302
+ * Common constructor options for the Identity credentials that requires user interaction.
1303
+ */
1304
+ export declare interface InteractiveCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
1305
+ /**
1306
+ * Result of a previous authentication that can be used to retrieve the cached credentials of each individual account.
1307
+ * This is necessary to provide in case the application wants to work with more than one account per
1308
+ * Client ID and Tenant ID pair.
1309
+ *
1310
+ * This record can be retrieved by calling to the credential's `authenticate()` method, as follows:
1311
+ *
1312
+ * const authenticationRecord = await credential.authenticate();
1313
+ *
1314
+ */
1315
+ authenticationRecord?: AuthenticationRecord;
1316
+ /**
1317
+ * Makes getToken throw if a manual authentication is necessary.
1318
+ * Developers will need to call to `authenticate()` to control when to manually authenticate.
1319
+ */
1320
+ disableAutomaticAuthentication?: boolean;
1321
+ }
1322
+
1323
+ /**
1324
+ * The AzureLogger used for all clients within the identity package
1325
+ */
1326
+ export declare const logger: AzureLogger;
1327
+
1328
+ /**
1329
+ * Attempts authentication using a managed identity available at the deployment environment.
1330
+ * This authentication type works in Azure VMs, App Service instances, Azure Functions applications,
1331
+ * Azure Kubernetes Services, Azure Service Fabric instances and inside of the Azure Cloud Shell.
1332
+ *
1333
+ * More information about configuring managed identities can be found here:
1334
+ * https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
1335
+ */
1336
+ export declare class ManagedIdentityCredential implements TokenCredential {
1337
+ private implProvider;
1338
+ /**
1339
+ * Creates an instance of ManagedIdentityCredential with the client ID of a
1340
+ * user-assigned identity, or app registration (when working with AKS pod-identity).
1341
+ *
1342
+ * @param clientId - The client ID of the user-assigned identity, or app registration (when working with AKS pod-identity).
1343
+ * @param options - Options for configuring the client which makes the access token request.
1344
+ */
1345
+ constructor(clientId: string, options?: TokenCredentialOptions);
1346
+ /**
1347
+ * Creates an instance of ManagedIdentityCredential with a client ID
1348
+ *
1349
+ * @param options - Options for configuring the client which makes the access token request.
1350
+ */
1351
+ constructor(options?: ManagedIdentityCredentialClientIdOptions);
1352
+ /**
1353
+ * Creates an instance of ManagedIdentityCredential with a resource ID
1354
+ *
1355
+ * @param options - Options for configuring the resource which makes the access token request.
1356
+ */
1357
+ constructor(options?: ManagedIdentityCredentialResourceIdOptions);
1358
+ /**
1359
+ * Creates an instance of ManagedIdentityCredential with an object ID
1360
+ *
1361
+ * @param options - Options for configuring the resource which makes the access token request.
1362
+ */
1363
+ constructor(options?: ManagedIdentityCredentialObjectIdOptions);
1364
+ /**
1365
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1366
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1367
+ * If an unexpected error occurs, an {@link AuthenticationError} will be thrown with the details of the failure.
1368
+ *
1369
+ * @param scopes - The list of scopes for which the token will have access.
1370
+ * @param options - The options used to configure any requests this
1371
+ * TokenCredential implementation might make.
1372
+ */
1373
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1374
+ }
1375
+
1376
+ /**
1377
+ * Options to send on the {@link ManagedIdentityCredential} constructor.
1378
+ * This variation supports `clientId` and not `resourceId`, since only one of both is supported.
1379
+ */
1380
+ export declare interface ManagedIdentityCredentialClientIdOptions extends TokenCredentialOptions {
1381
+ /**
1382
+ * The client ID of the user - assigned identity, or app registration(when working with AKS pod - identity).
1383
+ */
1384
+ clientId?: string;
1385
+ }
1386
+
1387
+ /**
1388
+ * Options to send on the {@link ManagedIdentityCredential} constructor.
1389
+ * This variation supports `objectId` as a constructor argument.
1390
+ */
1391
+ export declare interface ManagedIdentityCredentialObjectIdOptions extends TokenCredentialOptions {
1392
+ /**
1393
+ * Allows specifying the object ID of the underlying service principal used to authenticate a user-assigned managed identity.
1394
+ * This is an alternative to providing a client ID or resource ID and is not required for system-assigned managed identities.
1395
+ */
1396
+ objectId: string;
1397
+ }
1398
+
1399
+ /**
1400
+ * Options to send on the {@link ManagedIdentityCredential} constructor.
1401
+ * This variation supports `resourceId` and not `clientId`, since only one of both is supported.
1402
+ */
1403
+ export declare interface ManagedIdentityCredentialResourceIdOptions extends TokenCredentialOptions {
1404
+ /**
1405
+ * Allows specifying a custom resource Id.
1406
+ * In scenarios such as when user assigned identities are created using an ARM template,
1407
+ * where the resource Id of the identity is known but the client Id can't be known ahead of time,
1408
+ * this parameter allows programs to use these user assigned identities
1409
+ * without having to first determine the client Id of the created identity.
1410
+ */
1411
+ resourceId: string;
1412
+ }
1413
+
1414
+ /**
1415
+ * Options for multi-tenant applications which allows for additionally allowed tenants.
1416
+ */
1417
+ export declare interface MultiTenantTokenCredentialOptions extends TokenCredentialOptions {
1418
+ /**
1419
+ * For multi-tenant applications, specifies additional tenants for which the credential may acquire tokens.
1420
+ * Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the application is installed.
1421
+ */
1422
+ additionallyAllowedTenants?: string[];
1423
+ }
1424
+
1425
+ /**
1426
+ * Enables authentication to Microsoft Entra ID using the [On Behalf Of flow](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow).
1427
+ */
1428
+ export declare class OnBehalfOfCredential implements TokenCredential {
1429
+ private tenantId;
1430
+ private additionallyAllowedTenantIds;
1431
+ private msalClient;
1432
+ private sendCertificateChain?;
1433
+ private certificatePath?;
1434
+ private clientSecret?;
1435
+ private userAssertionToken;
1436
+ private clientAssertion?;
1437
+ /**
1438
+ * Creates an instance of the {@link OnBehalfOfCredential} with the details
1439
+ * needed to authenticate against Microsoft Entra ID with path to a PEM certificate,
1440
+ * and an user assertion.
1441
+ *
1442
+ * Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
1443
+ *
1444
+ * ```ts snippet:on_behalf_of_credential_pem_example
1445
+ * import { OnBehalfOfCredential } from "@azure/identity";
1446
+ * import { KeyClient } from "@azure/keyvault-keys";
1447
+ *
1448
+ * const tokenCredential = new OnBehalfOfCredential({
1449
+ * tenantId: "tenant-id",
1450
+ * clientId: "client-id",
1451
+ * certificatePath: "/path/to/certificate.pem",
1452
+ * userAssertionToken: "access-token",
1453
+ * });
1454
+ * const client = new KeyClient("vault-url", tokenCredential);
1455
+ * await client.getKey("key-name");
1456
+ * ```
1457
+ *
1458
+ * @param options - Optional parameters, generally common across credentials.
1459
+ */
1460
+ constructor(options: OnBehalfOfCredentialCertificateOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
1461
+ /**
1462
+ * Creates an instance of the {@link OnBehalfOfCredential} with the details
1463
+ * needed to authenticate against Microsoft Entra ID with a client
1464
+ * secret and an user assertion.
1465
+ *
1466
+ * Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
1467
+ *
1468
+ * ```ts snippet:on_behalf_of_credential_secret_example
1469
+ * import { OnBehalfOfCredential } from "@azure/identity";
1470
+ * import { KeyClient } from "@azure/keyvault-keys";
1471
+ *
1472
+ * const tokenCredential = new OnBehalfOfCredential({
1473
+ * tenantId: "tenant-id",
1474
+ * clientId: "client-id",
1475
+ * clientSecret: "client-secret",
1476
+ * userAssertionToken: "access-token",
1477
+ * });
1478
+ * const client = new KeyClient("vault-url", tokenCredential);
1479
+ * await client.getKey("key-name");
1480
+ * ```
1481
+ *
1482
+ * @param options - Optional parameters, generally common across credentials.
1483
+ */
1484
+ constructor(options: OnBehalfOfCredentialSecretOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
1485
+ /**
1486
+ * Creates an instance of the {@link OnBehalfOfCredential} with the details
1487
+ * needed to authenticate against Microsoft Entra ID with a client `getAssertion`
1488
+ * and an user assertion.
1489
+ *
1490
+ * Example using the `KeyClient` from [\@azure/keyvault-keys](https://www.npmjs.com/package/\@azure/keyvault-keys):
1491
+ *
1492
+ * ```ts snippet:on_behalf_of_credential_assertion_example
1493
+ * import { OnBehalfOfCredential } from "@azure/identity";
1494
+ * import { KeyClient } from "@azure/keyvault-keys";
1495
+ *
1496
+ * const tokenCredential = new OnBehalfOfCredential({
1497
+ * tenantId: "tenant-id",
1498
+ * clientId: "client-id",
1499
+ * getAssertion: () => {
1500
+ * return Promise.resolve("my-jwt");
1501
+ * },
1502
+ * userAssertionToken: "access-token",
1503
+ * });
1504
+ * const client = new KeyClient("vault-url", tokenCredential);
1505
+ * await client.getKey("key-name");
1506
+ * ```
1507
+ *
1508
+ * @param options - Optional parameters, generally common across credentials.
1509
+ */
1510
+ constructor(options: OnBehalfOfCredentialAssertionOptions & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions);
1511
+ /**
1512
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1513
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1514
+ *
1515
+ * @param scopes - The list of scopes for which the token will have access.
1516
+ * @param options - The options used to configure the underlying network requests.
1517
+ */
1518
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1519
+ private buildClientCertificate;
1520
+ private parseCertificate;
1521
+ }
1522
+
1523
+ /**
1524
+ * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with an assertion.
1525
+ */
1526
+ export declare interface OnBehalfOfCredentialAssertionOptions {
1527
+ /**
1528
+ * The Microsoft Entra tenant (directory) ID.
1529
+ */
1530
+ tenantId: string;
1531
+ /**
1532
+ * The client (application) ID of an App Registration in the tenant.
1533
+ */
1534
+ clientId: string;
1535
+ /**
1536
+ * A function that retrieves the client assertion for the credential to use
1537
+ */
1538
+ getAssertion: () => Promise<string>;
1539
+ /**
1540
+ * The user assertion for the On-Behalf-Of flow.
1541
+ */
1542
+ userAssertionToken: string;
1543
+ }
1544
+
1545
+ /**
1546
+ * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a certificate.
1547
+ */
1548
+ export declare interface OnBehalfOfCredentialCertificateOptions {
1549
+ /**
1550
+ * The Microsoft Entra tenant (directory) ID.
1551
+ */
1552
+ tenantId: string;
1553
+ /**
1554
+ * The client (application) ID of an App Registration in the tenant.
1555
+ */
1556
+ clientId: string;
1557
+ /**
1558
+ * The path to a PEM-encoded public/private key certificate on the filesystem.
1559
+ */
1560
+ certificatePath: string;
1561
+ /**
1562
+ * The user assertion for the On-Behalf-Of flow.
1563
+ */
1564
+ userAssertionToken: string;
1565
+ /**
1566
+ * Option to include x5c header for SubjectName and Issuer name authorization.
1567
+ * Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
1568
+ */
1569
+ sendCertificateChain?: boolean;
1570
+ }
1571
+
1572
+ /**
1573
+ * Optional parameters for the {@link OnBehalfOfCredential} class.
1574
+ */
1575
+ export declare type OnBehalfOfCredentialOptions = (OnBehalfOfCredentialSecretOptions | OnBehalfOfCredentialCertificateOptions | OnBehalfOfCredentialAssertionOptions) & MultiTenantTokenCredentialOptions & CredentialPersistenceOptions & AuthorityValidationOptions;
1576
+
1577
+ /**
1578
+ * Defines the parameters to authenticate the {@link OnBehalfOfCredential} with a secret.
1579
+ */
1580
+ export declare interface OnBehalfOfCredentialSecretOptions {
1581
+ /**
1582
+ * The Microsoft Entra tenant (directory) ID.
1583
+ */
1584
+ tenantId: string;
1585
+ /**
1586
+ * The client (application) ID of an App Registration in the tenant.
1587
+ */
1588
+ clientId: string;
1589
+ /**
1590
+ * A client secret that was generated for the App Registration.
1591
+ */
1592
+ clientSecret: string;
1593
+ /**
1594
+ * The user assertion for the On-Behalf-Of flow.
1595
+ */
1596
+ userAssertionToken: string;
1597
+ }
1598
+
1599
+ /**
1600
+ * Serializes an `AuthenticationRecord` into a string.
1601
+ *
1602
+ * The output of a serialized authentication record will contain the following properties:
1603
+ *
1604
+ * - "authority"
1605
+ * - "homeAccountId"
1606
+ * - "clientId"
1607
+ * - "tenantId"
1608
+ * - "username"
1609
+ * - "version"
1610
+ *
1611
+ * To later convert this string to a serialized `AuthenticationRecord`, please use the exported function `deserializeAuthenticationRecord()`.
1612
+ */
1613
+ export declare function serializeAuthenticationRecord(record: AuthenticationRecord): string;
1614
+
1615
+ /**
1616
+ * Parameters that enable token cache persistence in the Identity credentials.
1617
+ */
1618
+ export declare interface TokenCachePersistenceOptions {
1619
+ /**
1620
+ * If set to true, persistent token caching will be enabled for this credential instance.
1621
+ */
1622
+ enabled: boolean;
1623
+ /**
1624
+ * Unique identifier for the persistent token cache.
1625
+ *
1626
+ * Based on this identifier, the persistence file will be located in any of the following places:
1627
+ * - Darwin: '/Users/user/.IdentityService/<name>'
1628
+ * - Windows 8+: 'C:\\Users\\user\\AppData\\Local\\.IdentityService\\<name>'
1629
+ * - Linux: '/home/user/.IdentityService/<name>'
1630
+ */
1631
+ name?: string;
1632
+ /**
1633
+ * If set to true, the cache will be stored without encryption if no OS level user encryption is available.
1634
+ * When set to false, the PersistentTokenCache will throw an error if no OS level user encryption is available.
1635
+ */
1636
+ unsafeAllowUnencryptedStorage?: boolean;
1637
+ }
1638
+
1639
+ export { TokenCredential }
1640
+
1641
+ /**
1642
+ * Provides options to configure how the Identity library makes authentication
1643
+ * requests to Microsoft Entra ID.
1644
+ */
1645
+ export declare interface TokenCredentialOptions extends CommonClientOptions {
1646
+ /**
1647
+ * The authority host to use for authentication requests.
1648
+ * Possible values are available through {@link AzureAuthorityHosts}.
1649
+ * The default is "https://login.microsoftonline.com".
1650
+ */
1651
+ authorityHost?: string;
1652
+ /**
1653
+ * Allows users to configure settings for logging policy options, allow logging account information and personally identifiable information for customer support.
1654
+ */
1655
+ loggingOptions?: LogPolicyOptions & {
1656
+ /**
1657
+ * Allows logging account information once the authentication flow succeeds.
1658
+ */
1659
+ allowLoggingAccountIdentifiers?: boolean;
1660
+ /**
1661
+ * Allows logging personally identifiable information for customer support.
1662
+ */
1663
+ enableUnsafeSupportLogging?: boolean;
1664
+ };
1665
+ }
1666
+
1667
+ /**
1668
+ * Extend Azure Identity with additional functionality. Pass a plugin from
1669
+ * a plugin package, such as:
1670
+ *
1671
+ * - `@azure/identity-cache-persistence`: provides persistent token caching
1672
+ * - `@azure/identity-vscode`: provides the dependencies of
1673
+ * `VisualStudioCodeCredential` and enables it
1674
+ *
1675
+ * Example:
1676
+ *
1677
+ * ```ts snippet:consumer_example
1678
+ * import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
1679
+ *
1680
+ * useIdentityPlugin(cachePersistencePlugin);
1681
+ * // The plugin has the capability to extend `DeviceCodeCredential` and to
1682
+ * // add middleware to the underlying credentials, such as persistence.
1683
+ * const credential = new DeviceCodeCredential({
1684
+ * tokenCachePersistenceOptions: {
1685
+ * enabled: true,
1686
+ * },
1687
+ * });
1688
+ * ```
1689
+ *
1690
+ * @param plugin - the plugin to register
1691
+ */
1692
+ export declare function useIdentityPlugin(plugin: IdentityPlugin): void;
1693
+
1694
+ /**
1695
+ * Enables authentication to Microsoft Entra ID with a user's
1696
+ * username and password. This credential requires a high degree of
1697
+ * trust so you should only use it when other, more secure credential
1698
+ * types can't be used.
1699
+ */
1700
+ export declare class UsernamePasswordCredential implements TokenCredential {
1701
+ private tenantId;
1702
+ private additionallyAllowedTenantIds;
1703
+ private msalClient;
1704
+ private username;
1705
+ private password;
1706
+ /**
1707
+ * Creates an instance of the UsernamePasswordCredential with the details
1708
+ * needed to authenticate against Microsoft Entra ID with a username
1709
+ * and password.
1710
+ *
1711
+ * @param tenantId - The Microsoft Entra tenant (directory).
1712
+ * @param clientId - The client (application) ID of an App Registration in the tenant.
1713
+ * @param username - The user account's e-mail address (user name).
1714
+ * @param password - The user account's account password
1715
+ * @param options - Options for configuring the client which makes the authentication request.
1716
+ */
1717
+ constructor(tenantId: string, clientId: string, username: string, password: string, options?: UsernamePasswordCredentialOptions);
1718
+ /**
1719
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1720
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1721
+ *
1722
+ * If the user provided the option `disableAutomaticAuthentication`,
1723
+ * once the token can't be retrieved silently,
1724
+ * this method won't attempt to request user interaction to retrieve the token.
1725
+ *
1726
+ * @param scopes - The list of scopes for which the token will have access.
1727
+ * @param options - The options used to configure any requests this
1728
+ * TokenCredential implementation might make.
1729
+ */
1730
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1731
+ }
1732
+
1733
+ /**
1734
+ * Defines options for the {@link UsernamePasswordCredential} class.
1735
+ */
1736
+ export declare interface UsernamePasswordCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
1737
+ }
1738
+
1739
+ /**
1740
+ * Connects to Azure using the credential provided by the VSCode extension 'Azure Account'.
1741
+ * Once the user has logged in via the extension, this credential can share the same refresh token
1742
+ * that is cached by the extension.
1743
+ *
1744
+ * It's a [known issue](https://github.com/Azure/azure-sdk-for-js/issues/20500) that this credential doesn't
1745
+ * work with [Azure Account extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account)
1746
+ * versions newer than **0.9.11**. A long-term fix to this problem is in progress. In the meantime, consider
1747
+ * authenticating with {@link AzureCliCredential}.
1748
+ */
1749
+ export declare class VisualStudioCodeCredential implements TokenCredential {
1750
+ private identityClient;
1751
+ private tenantId;
1752
+ private additionallyAllowedTenantIds;
1753
+ private cloudName;
1754
+ /**
1755
+ * Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
1756
+ *
1757
+ * **Note**: `VisualStudioCodeCredential` is provided by a plugin package:
1758
+ * `@azure/identity-vscode`. If this package is not installed and registered
1759
+ * using the plugin API (`useIdentityPlugin`), then authentication using
1760
+ * `VisualStudioCodeCredential` will not be available.
1761
+ *
1762
+ * @param options - Options for configuring the client which makes the authentication request.
1763
+ */
1764
+ constructor(options?: VisualStudioCodeCredentialOptions);
1765
+ /**
1766
+ * Runs preparations for any further getToken request.
1767
+ */
1768
+ private prepare;
1769
+ /**
1770
+ * The promise of the single preparation that will be executed at the first getToken request for an instance of this class.
1771
+ */
1772
+ private preparePromise;
1773
+ /**
1774
+ * Runs preparations for any further getToken, but only once.
1775
+ */
1776
+ private prepareOnce;
1777
+ /**
1778
+ * Returns the token found by searching VSCode's authentication cache or
1779
+ * returns null if no token could be found.
1780
+ *
1781
+ * @param scopes - The list of scopes for which the token will have access.
1782
+ * @param options - The options used to configure any requests this
1783
+ * `TokenCredential` implementation might make.
1784
+ */
1785
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
1786
+ }
1787
+
1788
+ /**
1789
+ * Provides options to configure the Visual Studio Code credential.
1790
+ */
1791
+ export declare interface VisualStudioCodeCredentialOptions extends MultiTenantTokenCredentialOptions {
1792
+ /**
1793
+ * Optionally pass in a Tenant ID to be used as part of the credential
1794
+ */
1795
+ tenantId?: string;
1796
+ }
1797
+
1798
+ /**
1799
+ * Workload Identity authentication is a feature in Azure that allows applications running on virtual machines (VMs)
1800
+ * to access other Azure resources without the need for a service principal or managed identity. With Workload Identity
1801
+ * authentication, applications authenticate themselves using their own identity, rather than using a shared service
1802
+ * principal or managed identity. Under the hood, Workload Identity authentication uses the concept of Service Account
1803
+ * Credentials (SACs), which are automatically created by Azure and stored securely in the VM. By using Workload
1804
+ * Identity authentication, you can avoid the need to manage and rotate service principals or managed identities for
1805
+ * each application on each VM. Additionally, because SACs are created automatically and managed by Azure, you don't
1806
+ * need to worry about storing and securing sensitive credentials themselves.
1807
+ * The WorkloadIdentityCredential supports Microsoft Entra Workload ID authentication on Azure Kubernetes and acquires
1808
+ * a token using the SACs available in the Azure Kubernetes environment.
1809
+ * Refer to <a href="https://learn.microsoft.com/azure/aks/workload-identity-overview">Microsoft Entra
1810
+ * Workload ID</a> for more information.
1811
+ */
1812
+ export declare class WorkloadIdentityCredential implements TokenCredential {
1813
+ private client;
1814
+ private azureFederatedTokenFileContent;
1815
+ private cacheDate;
1816
+ private federatedTokenFilePath;
1817
+ /**
1818
+ * WorkloadIdentityCredential supports Microsoft Entra Workload ID on Kubernetes.
1819
+ *
1820
+ * @param options - The identity client options to use for authentication.
1821
+ */
1822
+ constructor(options?: WorkloadIdentityCredentialOptions);
1823
+ /**
1824
+ * Authenticates with Microsoft Entra ID and returns an access token if successful.
1825
+ * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1826
+ *
1827
+ * @param scopes - The list of scopes for which the token will have access.
1828
+ * @param options - The options used to configure any requests this
1829
+ * TokenCredential implementation might make.
1830
+ */
1831
+ getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
1832
+ private readFileContents;
1833
+ }
1834
+
1835
+ /**
1836
+ * Options for the {@link WorkloadIdentityCredential}
1837
+ */
1838
+ export declare interface WorkloadIdentityCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
1839
+ /**
1840
+ * ID of the application's Microsoft Entra tenant. Also called its directory ID.
1841
+ */
1842
+ tenantId?: string;
1843
+ /**
1844
+ * The client ID of a Microsoft Entra app registration.
1845
+ */
1846
+ clientId?: string;
1847
+ /**
1848
+ * The path to a file containing a Kubernetes service account token that authenticates the identity.
1849
+ */
1850
+ tokenFilePath?: string;
1851
+ }
1852
+
1853
+ export { }