@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
@@ -1,71 +0,0 @@
1
- import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
- import type { AzureDeveloperCliCredentialOptions } from "./azureDeveloperCliCredentialOptions.js";
3
- /**
4
- * Mockable reference to the Developer CLI credential cliCredentialFunctions
5
- * @internal
6
- */
7
- export declare const developerCliCredentialInternals: {
8
- /**
9
- * @internal
10
- */
11
- getSafeWorkingDir(): string;
12
- /**
13
- * Gets the access token from Azure Developer CLI
14
- * @param scopes - The scopes to use when getting the token
15
- * @internal
16
- */
17
- getAzdAccessToken(scopes: string[], tenantId?: string, timeout?: number): Promise<{
18
- stdout: string;
19
- stderr: string;
20
- error: Error | null;
21
- }>;
22
- };
23
- /**
24
- * Azure Developer CLI is a command-line interface tool that allows developers to create, manage, and deploy
25
- * resources in Azure. It's built on top of the Azure CLI and provides additional functionality specific
26
- * to Azure developers. It allows users to authenticate as a user and/or a service principal against
27
- * <a href="https://learn.microsoft.com/entra/fundamentals/">Microsoft Entra ID</a>. The
28
- * AzureDeveloperCliCredential authenticates in a development environment and acquires a token on behalf of
29
- * the logged-in user or service principal in the Azure Developer CLI. It acts as the Azure Developer CLI logged in user or
30
- * service principal and executes an Azure CLI command underneath to authenticate the application against
31
- * Microsoft Entra ID.
32
- *
33
- * <h2> Configure AzureDeveloperCliCredential </h2>
34
- *
35
- * To use this credential, the developer needs to authenticate locally in Azure Developer CLI using one of the
36
- * commands below:
37
- *
38
- * <ol>
39
- * <li>Run "azd auth login" in Azure Developer CLI to authenticate interactively as a user.</li>
40
- * <li>Run "azd auth login --client-id clientID --client-secret clientSecret
41
- * --tenant-id tenantID" to authenticate as a service principal.</li>
42
- * </ol>
43
- *
44
- * You may need to repeat this process after a certain time period, depending on the refresh token validity in your
45
- * organization. Generally, the refresh token validity period is a few weeks to a few months.
46
- * AzureDeveloperCliCredential will prompt you to sign in again.
47
- */
48
- export declare class AzureDeveloperCliCredential implements TokenCredential {
49
- private tenantId?;
50
- private additionallyAllowedTenantIds;
51
- private timeout?;
52
- /**
53
- * Creates an instance of the {@link AzureDeveloperCliCredential}.
54
- *
55
- * To use this credential, ensure that you have already logged
56
- * in via the 'azd' tool using the command "azd auth login" from the commandline.
57
- *
58
- * @param options - Options, to optionally allow multi-tenant requests.
59
- */
60
- constructor(options?: AzureDeveloperCliCredentialOptions);
61
- /**
62
- * Authenticates with Microsoft Entra ID and returns an access token if successful.
63
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
64
- *
65
- * @param scopes - The list of scopes for which the token will have access.
66
- * @param options - The options used to configure any requests this
67
- * TokenCredential implementation might make.
68
- */
69
- getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
70
- }
71
- //# sourceMappingURL=azureDeveloperCliCredential.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureDeveloperCliCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEtF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAWlG;;;GAGG;AACH,eAAO,MAAM,+BAA+B;IAC1C;;OAEG;yBACkB,MAAM;IAa3B;;;;OAIG;8BAEO,MAAM,EAAE,aACL,MAAM,YACP,MAAM,GACf,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;KAAE,CAAC;CAiCpE,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IACjE,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB;;;;;;;OAOG;gBACS,OAAO,CAAC,EAAE,kCAAkC;IAWxD;;;;;;;OAOG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;CA4ExB"}
@@ -1,176 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AzureDeveloperCliCredential = exports.developerCliCredentialInternals = void 0;
6
- const tslib_1 = require("tslib");
7
- const logging_js_1 = require("../util/logging.js");
8
- const errors_js_1 = require("../errors.js");
9
- const child_process_1 = tslib_1.__importDefault(require("child_process"));
10
- const tenantIdUtils_js_1 = require("../util/tenantIdUtils.js");
11
- const tracing_js_1 = require("../util/tracing.js");
12
- const scopeUtils_js_1 = require("../util/scopeUtils.js");
13
- /**
14
- * Mockable reference to the Developer CLI credential cliCredentialFunctions
15
- * @internal
16
- */
17
- exports.developerCliCredentialInternals = {
18
- /**
19
- * @internal
20
- */
21
- getSafeWorkingDir() {
22
- if (process.platform === "win32") {
23
- if (!process.env["SYSTEMROOT"]) {
24
- throw new Error("Azure Developer CLI credential expects a 'SYSTEMROOT' environment variable");
25
- }
26
- return process.env["SYSTEMROOT"];
27
- }
28
- else {
29
- return "/bin";
30
- }
31
- },
32
- /**
33
- * Gets the access token from Azure Developer CLI
34
- * @param scopes - The scopes to use when getting the token
35
- * @internal
36
- */
37
- async getAzdAccessToken(scopes, tenantId, timeout) {
38
- let tenantSection = [];
39
- if (tenantId) {
40
- tenantSection = ["--tenant-id", tenantId];
41
- }
42
- return new Promise((resolve, reject) => {
43
- try {
44
- child_process_1.default.execFile("azd", [
45
- "auth",
46
- "token",
47
- "--output",
48
- "json",
49
- ...scopes.reduce((previous, current) => previous.concat("--scope", current), []),
50
- ...tenantSection,
51
- ], {
52
- cwd: exports.developerCliCredentialInternals.getSafeWorkingDir(),
53
- timeout,
54
- }, (error, stdout, stderr) => {
55
- resolve({ stdout, stderr, error });
56
- });
57
- }
58
- catch (err) {
59
- reject(err);
60
- }
61
- });
62
- },
63
- };
64
- const logger = (0, logging_js_1.credentialLogger)("AzureDeveloperCliCredential");
65
- /**
66
- * Azure Developer CLI is a command-line interface tool that allows developers to create, manage, and deploy
67
- * resources in Azure. It's built on top of the Azure CLI and provides additional functionality specific
68
- * to Azure developers. It allows users to authenticate as a user and/or a service principal against
69
- * <a href="https://learn.microsoft.com/entra/fundamentals/">Microsoft Entra ID</a>. The
70
- * AzureDeveloperCliCredential authenticates in a development environment and acquires a token on behalf of
71
- * the logged-in user or service principal in the Azure Developer CLI. It acts as the Azure Developer CLI logged in user or
72
- * service principal and executes an Azure CLI command underneath to authenticate the application against
73
- * Microsoft Entra ID.
74
- *
75
- * <h2> Configure AzureDeveloperCliCredential </h2>
76
- *
77
- * To use this credential, the developer needs to authenticate locally in Azure Developer CLI using one of the
78
- * commands below:
79
- *
80
- * <ol>
81
- * <li>Run "azd auth login" in Azure Developer CLI to authenticate interactively as a user.</li>
82
- * <li>Run "azd auth login --client-id clientID --client-secret clientSecret
83
- * --tenant-id tenantID" to authenticate as a service principal.</li>
84
- * </ol>
85
- *
86
- * You may need to repeat this process after a certain time period, depending on the refresh token validity in your
87
- * organization. Generally, the refresh token validity period is a few weeks to a few months.
88
- * AzureDeveloperCliCredential will prompt you to sign in again.
89
- */
90
- class AzureDeveloperCliCredential {
91
- /**
92
- * Creates an instance of the {@link AzureDeveloperCliCredential}.
93
- *
94
- * To use this credential, ensure that you have already logged
95
- * in via the 'azd' tool using the command "azd auth login" from the commandline.
96
- *
97
- * @param options - Options, to optionally allow multi-tenant requests.
98
- */
99
- constructor(options) {
100
- if (options === null || options === void 0 ? void 0 : options.tenantId) {
101
- (0, tenantIdUtils_js_1.checkTenantId)(logger, options === null || options === void 0 ? void 0 : options.tenantId);
102
- this.tenantId = options === null || options === void 0 ? void 0 : options.tenantId;
103
- }
104
- this.additionallyAllowedTenantIds = (0, tenantIdUtils_js_1.resolveAdditionallyAllowedTenantIds)(options === null || options === void 0 ? void 0 : options.additionallyAllowedTenants);
105
- this.timeout = options === null || options === void 0 ? void 0 : options.processTimeoutInMs;
106
- }
107
- /**
108
- * Authenticates with Microsoft Entra ID and returns an access token if successful.
109
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
110
- *
111
- * @param scopes - The list of scopes for which the token will have access.
112
- * @param options - The options used to configure any requests this
113
- * TokenCredential implementation might make.
114
- */
115
- async getToken(scopes, options = {}) {
116
- const tenantId = (0, tenantIdUtils_js_1.processMultiTenantRequest)(this.tenantId, options, this.additionallyAllowedTenantIds);
117
- if (tenantId) {
118
- (0, tenantIdUtils_js_1.checkTenantId)(logger, tenantId);
119
- }
120
- let scopeList;
121
- if (typeof scopes === "string") {
122
- scopeList = [scopes];
123
- }
124
- else {
125
- scopeList = scopes;
126
- }
127
- logger.getToken.info(`Using the scopes ${scopes}`);
128
- return tracing_js_1.tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async () => {
129
- var _a, _b, _c, _d;
130
- try {
131
- scopeList.forEach((scope) => {
132
- (0, scopeUtils_js_1.ensureValidScopeForDevTimeCreds)(scope, logger);
133
- });
134
- const obj = await exports.developerCliCredentialInternals.getAzdAccessToken(scopeList, tenantId, this.timeout);
135
- const isNotLoggedInError = ((_a = obj.stderr) === null || _a === void 0 ? void 0 : _a.match("not logged in, run `azd login` to login")) ||
136
- ((_b = obj.stderr) === null || _b === void 0 ? void 0 : _b.match("not logged in, run `azd auth login` to login"));
137
- const isNotInstallError = ((_c = obj.stderr) === null || _c === void 0 ? void 0 : _c.match("azd:(.*)not found")) ||
138
- ((_d = obj.stderr) === null || _d === void 0 ? void 0 : _d.startsWith("'azd' is not recognized"));
139
- if (isNotInstallError || (obj.error && obj.error.code === "ENOENT")) {
140
- const error = new errors_js_1.CredentialUnavailableError("Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.");
141
- logger.getToken.info((0, logging_js_1.formatError)(scopes, error));
142
- throw error;
143
- }
144
- if (isNotLoggedInError) {
145
- const error = new errors_js_1.CredentialUnavailableError("Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.");
146
- logger.getToken.info((0, logging_js_1.formatError)(scopes, error));
147
- throw error;
148
- }
149
- try {
150
- const resp = JSON.parse(obj.stdout);
151
- logger.getToken.info((0, logging_js_1.formatSuccess)(scopes));
152
- return {
153
- token: resp.token,
154
- expiresOnTimestamp: new Date(resp.expiresOn).getTime(),
155
- tokenType: "Bearer",
156
- };
157
- }
158
- catch (e) {
159
- if (obj.stderr) {
160
- throw new errors_js_1.CredentialUnavailableError(obj.stderr);
161
- }
162
- throw e;
163
- }
164
- }
165
- catch (err) {
166
- const error = err.name === "CredentialUnavailableError"
167
- ? err
168
- : new errors_js_1.CredentialUnavailableError(err.message || "Unknown error while trying to retrieve the access token");
169
- logger.getToken.info((0, logging_js_1.formatError)(scopes, error));
170
- throw error;
171
- }
172
- });
173
- }
174
- }
175
- exports.AzureDeveloperCliCredential = AzureDeveloperCliCredential;
176
- //# sourceMappingURL=azureDeveloperCliCredential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureDeveloperCliCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredential.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError, formatSuccess } from \"../util/logging.js\";\nimport type { AzureDeveloperCliCredentialOptions } from \"./azureDeveloperCliCredentialOptions.js\";\nimport { CredentialUnavailableError } from \"../errors.js\";\nimport child_process from \"child_process\";\nimport {\n checkTenantId,\n processMultiTenantRequest,\n resolveAdditionallyAllowedTenantIds,\n} from \"../util/tenantIdUtils.js\";\nimport { tracingClient } from \"../util/tracing.js\";\nimport { ensureValidScopeForDevTimeCreds } from \"../util/scopeUtils.js\";\n\n/**\n * Mockable reference to the Developer CLI credential cliCredentialFunctions\n * @internal\n */\nexport const developerCliCredentialInternals = {\n /**\n * @internal\n */\n getSafeWorkingDir(): string {\n if (process.platform === \"win32\") {\n if (!process.env[\"SYSTEMROOT\"]) {\n throw new Error(\n \"Azure Developer CLI credential expects a 'SYSTEMROOT' environment variable\",\n );\n }\n return process.env[\"SYSTEMROOT\"];\n } else {\n return \"/bin\";\n }\n },\n\n /**\n * Gets the access token from Azure Developer CLI\n * @param scopes - The scopes to use when getting the token\n * @internal\n */\n async getAzdAccessToken(\n scopes: string[],\n tenantId?: string,\n timeout?: number,\n ): Promise<{ stdout: string; stderr: string; error: Error | null }> {\n let tenantSection: string[] = [];\n if (tenantId) {\n tenantSection = [\"--tenant-id\", tenantId];\n }\n return new Promise((resolve, reject) => {\n try {\n child_process.execFile(\n \"azd\",\n [\n \"auth\",\n \"token\",\n \"--output\",\n \"json\",\n ...scopes.reduce<string[]>(\n (previous, current) => previous.concat(\"--scope\", current),\n [],\n ),\n ...tenantSection,\n ],\n {\n cwd: developerCliCredentialInternals.getSafeWorkingDir(),\n timeout,\n },\n (error, stdout, stderr) => {\n resolve({ stdout, stderr, error });\n },\n );\n } catch (err: any) {\n reject(err);\n }\n });\n },\n};\n\nconst logger = credentialLogger(\"AzureDeveloperCliCredential\");\n\n/**\n * Azure Developer CLI is a command-line interface tool that allows developers to create, manage, and deploy\n * resources in Azure. It's built on top of the Azure CLI and provides additional functionality specific\n * to Azure developers. It allows users to authenticate as a user and/or a service principal against\n * <a href=\"https://learn.microsoft.com/entra/fundamentals/\">Microsoft Entra ID</a>. The\n * AzureDeveloperCliCredential authenticates in a development environment and acquires a token on behalf of\n * the logged-in user or service principal in the Azure Developer CLI. It acts as the Azure Developer CLI logged in user or\n * service principal and executes an Azure CLI command underneath to authenticate the application against\n * Microsoft Entra ID.\n *\n * <h2> Configure AzureDeveloperCliCredential </h2>\n *\n * To use this credential, the developer needs to authenticate locally in Azure Developer CLI using one of the\n * commands below:\n *\n * <ol>\n * <li>Run \"azd auth login\" in Azure Developer CLI to authenticate interactively as a user.</li>\n * <li>Run \"azd auth login --client-id clientID --client-secret clientSecret\n * --tenant-id tenantID\" to authenticate as a service principal.</li>\n * </ol>\n *\n * You may need to repeat this process after a certain time period, depending on the refresh token validity in your\n * organization. Generally, the refresh token validity period is a few weeks to a few months.\n * AzureDeveloperCliCredential will prompt you to sign in again.\n */\nexport class AzureDeveloperCliCredential implements TokenCredential {\n private tenantId?: string;\n private additionallyAllowedTenantIds: string[];\n private timeout?: number;\n\n /**\n * Creates an instance of the {@link AzureDeveloperCliCredential}.\n *\n * To use this credential, ensure that you have already logged\n * in via the 'azd' tool using the command \"azd auth login\" from the commandline.\n *\n * @param options - Options, to optionally allow multi-tenant requests.\n */\n constructor(options?: AzureDeveloperCliCredentialOptions) {\n if (options?.tenantId) {\n checkTenantId(logger, options?.tenantId);\n this.tenantId = options?.tenantId;\n }\n this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(\n options?.additionallyAllowedTenants,\n );\n this.timeout = options?.processTimeoutInMs;\n }\n\n /**\n * Authenticates with Microsoft Entra ID and returns an access token if successful.\n * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n public async getToken(\n scopes: string | string[],\n options: GetTokenOptions = {},\n ): Promise<AccessToken> {\n const tenantId = processMultiTenantRequest(\n this.tenantId,\n options,\n this.additionallyAllowedTenantIds,\n );\n if (tenantId) {\n checkTenantId(logger, tenantId);\n }\n let scopeList: string[];\n if (typeof scopes === \"string\") {\n scopeList = [scopes];\n } else {\n scopeList = scopes;\n }\n logger.getToken.info(`Using the scopes ${scopes}`);\n\n return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async () => {\n try {\n scopeList.forEach((scope) => {\n ensureValidScopeForDevTimeCreds(scope, logger);\n });\n const obj = await developerCliCredentialInternals.getAzdAccessToken(\n scopeList,\n tenantId,\n this.timeout,\n );\n const isNotLoggedInError =\n obj.stderr?.match(\"not logged in, run `azd login` to login\") ||\n obj.stderr?.match(\"not logged in, run `azd auth login` to login\");\n const isNotInstallError =\n obj.stderr?.match(\"azd:(.*)not found\") ||\n obj.stderr?.startsWith(\"'azd' is not recognized\");\n\n if (isNotInstallError || (obj.error && (obj.error as any).code === \"ENOENT\")) {\n const error = new CredentialUnavailableError(\n \"Azure Developer CLI couldn't be found. To mitigate this issue, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.\",\n );\n logger.getToken.info(formatError(scopes, error));\n throw error;\n }\n\n if (isNotLoggedInError) {\n const error = new CredentialUnavailableError(\n \"Please run 'azd auth login' from a command prompt to authenticate before using this credential. For more information, see the troubleshooting guidelines at https://aka.ms/azsdk/js/identity/azdevclicredential/troubleshoot.\",\n );\n logger.getToken.info(formatError(scopes, error));\n throw error;\n }\n\n try {\n const resp: { token: string; expiresOn: string } = JSON.parse(obj.stdout);\n logger.getToken.info(formatSuccess(scopes));\n return {\n token: resp.token,\n expiresOnTimestamp: new Date(resp.expiresOn).getTime(),\n tokenType: \"Bearer\",\n } as AccessToken;\n } catch (e: any) {\n if (obj.stderr) {\n throw new CredentialUnavailableError(obj.stderr);\n }\n throw e;\n }\n } catch (err: any) {\n const error =\n err.name === \"CredentialUnavailableError\"\n ? err\n : new CredentialUnavailableError(\n (err as Error).message || \"Unknown error while trying to retrieve the access token\",\n );\n logger.getToken.info(formatError(scopes, error));\n throw error;\n }\n });\n }\n}\n"]}
@@ -1,15 +0,0 @@
1
- import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
2
- /**
3
- * Options for the {@link AzureDeveloperCliCredential}
4
- */
5
- export interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {
6
- /**
7
- * Allows specifying a tenant ID
8
- */
9
- tenantId?: string;
10
- /**
11
- * Process timeout configurable for making token requests, provided in milliseconds
12
- */
13
- processTimeoutInMs?: number;
14
- }
15
- //# sourceMappingURL=azureDeveloperCliCredentialOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureDeveloperCliCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,iCAAiC;IAC3F;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=azureDeveloperCliCredentialOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureDeveloperCliCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredentialOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link AzureDeveloperCliCredential}\n */\nexport interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {\n /**\n * Allows specifying a tenant ID\n */\n tenantId?: string;\n /**\n * Process timeout configurable for making token requests, provided in milliseconds\n */\n processTimeoutInMs?: number;\n}\n"]}
@@ -1,38 +0,0 @@
1
- import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
- import type { AzurePipelinesCredentialOptions } from "./azurePipelinesCredentialOptions.js";
3
- import type { PipelineResponse } from "@azure/core-rest-pipeline";
4
- /**
5
- * This credential is designed to be used in Azure Pipelines with service connections
6
- * as a setup for workload identity federation.
7
- */
8
- export declare class AzurePipelinesCredential implements TokenCredential {
9
- private clientAssertionCredential;
10
- private identityClient;
11
- /**
12
- * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
13
- * @param tenantId - tenantId associated with the service connection
14
- * @param clientId - clientId associated with the service connection
15
- * @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key
16
- * @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.
17
- * @param options - The identity client options to use for authentication.
18
- */
19
- constructor(tenantId: string, clientId: string, serviceConnectionId: string, systemAccessToken: string, options?: AzurePipelinesCredentialOptions);
20
- /**
21
- * Authenticates with Microsoft Entra ID and returns an access token if successful.
22
- * If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.
23
- *
24
- * @param scopes - The list of scopes for which the token will have access.
25
- * @param options - The options used to configure any requests this
26
- * TokenCredential implementation might make.
27
- */
28
- getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
29
- /**
30
- *
31
- * @param oidcRequestUrl - oidc request url
32
- * @param systemAccessToken - system access token
33
- * @returns OIDC token from Azure Pipelines
34
- */
35
- private requestOidcToken;
36
- }
37
- export declare function handleOidcResponse(response: PipelineResponse): string;
38
- //# sourceMappingURL=azurePipelinesCredential.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azurePipelinesCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAItF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAG5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAQlE;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,eAAe;IAC9D,OAAO,CAAC,yBAAyB,CAAwC;IACzE,OAAO,CAAC,cAAc,CAAiB;IAEvC;;;;;;;OAOG;gBAED,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,MAAM,EAC3B,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,+BAAoC;IAwD/C;;;;;;;OAOG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,WAAW,CAAC;IAgBvB;;;;;OAKG;YACW,gBAAgB;CAmB/B;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CA6CrE"}
@@ -1,146 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AzurePipelinesCredential = void 0;
6
- exports.handleOidcResponse = handleOidcResponse;
7
- const errors_js_1 = require("../errors.js");
8
- const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
9
- const clientAssertionCredential_js_1 = require("./clientAssertionCredential.js");
10
- const identityClient_js_1 = require("../client/identityClient.js");
11
- const tenantIdUtils_js_1 = require("../util/tenantIdUtils.js");
12
- const logging_js_1 = require("../util/logging.js");
13
- const credentialName = "AzurePipelinesCredential";
14
- const logger = (0, logging_js_1.credentialLogger)(credentialName);
15
- const OIDC_API_VERSION = "7.1";
16
- /**
17
- * This credential is designed to be used in Azure Pipelines with service connections
18
- * as a setup for workload identity federation.
19
- */
20
- class AzurePipelinesCredential {
21
- /**
22
- * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
23
- * @param tenantId - tenantId associated with the service connection
24
- * @param clientId - clientId associated with the service connection
25
- * @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key
26
- * @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.
27
- * @param options - The identity client options to use for authentication.
28
- */
29
- constructor(tenantId, clientId, serviceConnectionId, systemAccessToken, options = {}) {
30
- var _a, _b;
31
- if (!clientId) {
32
- throw new errors_js_1.CredentialUnavailableError(`${credentialName}: is unavailable. clientId is a required parameter.`);
33
- }
34
- if (!tenantId) {
35
- throw new errors_js_1.CredentialUnavailableError(`${credentialName}: is unavailable. tenantId is a required parameter.`);
36
- }
37
- if (!serviceConnectionId) {
38
- throw new errors_js_1.CredentialUnavailableError(`${credentialName}: is unavailable. serviceConnectionId is a required parameter.`);
39
- }
40
- if (!systemAccessToken) {
41
- throw new errors_js_1.CredentialUnavailableError(`${credentialName}: is unavailable. systemAccessToken is a required parameter.`);
42
- }
43
- // Allow these headers to be logged for troubleshooting by AzurePipelines.
44
- options.loggingOptions = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.loggingOptions), { additionalAllowedHeaderNames: [
45
- ...((_b = (_a = options.loggingOptions) === null || _a === void 0 ? void 0 : _a.additionalAllowedHeaderNames) !== null && _b !== void 0 ? _b : []),
46
- "x-vss-e2eid",
47
- "x-msedge-ref",
48
- ] });
49
- this.identityClient = new identityClient_js_1.IdentityClient(options);
50
- (0, tenantIdUtils_js_1.checkTenantId)(logger, tenantId);
51
- logger.info(`Invoking AzurePipelinesCredential with tenant ID: ${tenantId}, client ID: ${clientId}, and service connection ID: ${serviceConnectionId}`);
52
- if (!process.env.SYSTEM_OIDCREQUESTURI) {
53
- throw new errors_js_1.CredentialUnavailableError(`${credentialName}: is unavailable. Ensure that you're running this task in an Azure Pipeline, so that following missing system variable(s) can be defined- "SYSTEM_OIDCREQUESTURI"`);
54
- }
55
- const oidcRequestUrl = `${process.env.SYSTEM_OIDCREQUESTURI}?api-version=${OIDC_API_VERSION}&serviceConnectionId=${serviceConnectionId}`;
56
- logger.info(`Invoking ClientAssertionCredential with tenant ID: ${tenantId}, client ID: ${clientId} and service connection ID: ${serviceConnectionId}`);
57
- this.clientAssertionCredential = new clientAssertionCredential_js_1.ClientAssertionCredential(tenantId, clientId, this.requestOidcToken.bind(this, oidcRequestUrl, systemAccessToken), options);
58
- }
59
- /**
60
- * Authenticates with Microsoft Entra ID and returns an access token if successful.
61
- * If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.
62
- *
63
- * @param scopes - The list of scopes for which the token will have access.
64
- * @param options - The options used to configure any requests this
65
- * TokenCredential implementation might make.
66
- */
67
- async getToken(scopes, options) {
68
- if (!this.clientAssertionCredential) {
69
- const errorMessage = `${credentialName}: is unavailable. To use Federation Identity in Azure Pipelines, the following parameters are required -
70
- tenantId,
71
- clientId,
72
- serviceConnectionId,
73
- systemAccessToken,
74
- "SYSTEM_OIDCREQUESTURI".
75
- See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;
76
- logger.error(errorMessage);
77
- throw new errors_js_1.CredentialUnavailableError(errorMessage);
78
- }
79
- logger.info("Invoking getToken() of Client Assertion Credential");
80
- return this.clientAssertionCredential.getToken(scopes, options);
81
- }
82
- /**
83
- *
84
- * @param oidcRequestUrl - oidc request url
85
- * @param systemAccessToken - system access token
86
- * @returns OIDC token from Azure Pipelines
87
- */
88
- async requestOidcToken(oidcRequestUrl, systemAccessToken) {
89
- logger.info("Requesting OIDC token from Azure Pipelines...");
90
- logger.info(oidcRequestUrl);
91
- const request = (0, core_rest_pipeline_1.createPipelineRequest)({
92
- url: oidcRequestUrl,
93
- method: "POST",
94
- headers: (0, core_rest_pipeline_1.createHttpHeaders)({
95
- "Content-Type": "application/json",
96
- Authorization: `Bearer ${systemAccessToken}`,
97
- // Prevents the service from responding with a redirect HTTP status code (useful for automation).
98
- "X-TFS-FedAuthRedirect": "Suppress",
99
- }),
100
- });
101
- const response = await this.identityClient.sendRequest(request);
102
- return handleOidcResponse(response);
103
- }
104
- }
105
- exports.AzurePipelinesCredential = AzurePipelinesCredential;
106
- function handleOidcResponse(response) {
107
- // OIDC token is present in `bodyAsText` field
108
- const text = response.bodyAsText;
109
- if (!text) {
110
- logger.error(`${credentialName}: Authentication Failed. Received null token from OIDC request. Response status- ${response.status}. Complete response - ${JSON.stringify(response)}`);
111
- throw new errors_js_1.AuthenticationError(response.status, {
112
- error: `${credentialName}: Authentication Failed. Received null token from OIDC request.`,
113
- error_description: `${JSON.stringify(response)}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`,
114
- });
115
- }
116
- try {
117
- const result = JSON.parse(text);
118
- if (result === null || result === void 0 ? void 0 : result.oidcToken) {
119
- return result.oidcToken;
120
- }
121
- else {
122
- const errorMessage = `${credentialName}: Authentication Failed. oidcToken field not detected in the response.`;
123
- let errorDescription = ``;
124
- if (response.status !== 200) {
125
- errorDescription = `Response body = ${text}. Response Headers ["x-vss-e2eid"] = ${response.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${response.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;
126
- }
127
- logger.error(errorMessage);
128
- logger.error(errorDescription);
129
- throw new errors_js_1.AuthenticationError(response.status, {
130
- error: errorMessage,
131
- error_description: errorDescription,
132
- });
133
- }
134
- }
135
- catch (e) {
136
- const errorDetails = `${credentialName}: Authentication Failed. oidcToken field not detected in the response.`;
137
- logger.error(`Response from service = ${text}, Response Headers ["x-vss-e2eid"] = ${response.headers.get("x-vss-e2eid")}
138
- and ["x-msedge-ref"] = ${response.headers.get("x-msedge-ref")}, error message = ${e.message}`);
139
- logger.error(errorDetails);
140
- throw new errors_js_1.AuthenticationError(response.status, {
141
- error: errorDetails,
142
- error_description: `Response = ${text}. Response headers ["x-vss-e2eid"] = ${response.headers.get("x-vss-e2eid")} and ["x-msedge-ref"] = ${response.headers.get("x-msedge-ref")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`,
143
- });
144
- }
145
- }
146
- //# sourceMappingURL=azurePipelinesCredential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azurePipelinesCredential.js","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredential.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport { AuthenticationError, CredentialUnavailableError } from \"../errors.js\";\nimport { createHttpHeaders, createPipelineRequest } from \"@azure/core-rest-pipeline\";\n\nimport type { AzurePipelinesCredentialOptions } from \"./azurePipelinesCredentialOptions.js\";\nimport { ClientAssertionCredential } from \"./clientAssertionCredential.js\";\nimport { IdentityClient } from \"../client/identityClient.js\";\nimport type { PipelineResponse } from \"@azure/core-rest-pipeline\";\nimport { checkTenantId } from \"../util/tenantIdUtils.js\";\nimport { credentialLogger } from \"../util/logging.js\";\n\nconst credentialName = \"AzurePipelinesCredential\";\nconst logger = credentialLogger(credentialName);\nconst OIDC_API_VERSION = \"7.1\";\n\n/**\n * This credential is designed to be used in Azure Pipelines with service connections\n * as a setup for workload identity federation.\n */\nexport class AzurePipelinesCredential implements TokenCredential {\n private clientAssertionCredential: ClientAssertionCredential | undefined;\n private identityClient: IdentityClient;\n\n /**\n * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.\n * @param tenantId - tenantId associated with the service connection\n * @param clientId - clientId associated with the service connection\n * @param serviceConnectionId - Unique ID for the service connection, as found in the querystring's resourceId key\n * @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.\n * @param options - The identity client options to use for authentication.\n */\n constructor(\n tenantId: string,\n clientId: string,\n serviceConnectionId: string,\n systemAccessToken: string,\n options: AzurePipelinesCredentialOptions = {},\n ) {\n if (!clientId) {\n throw new CredentialUnavailableError(\n `${credentialName}: is unavailable. clientId is a required parameter.`,\n );\n }\n if (!tenantId) {\n throw new CredentialUnavailableError(\n `${credentialName}: is unavailable. tenantId is a required parameter.`,\n );\n }\n if (!serviceConnectionId) {\n throw new CredentialUnavailableError(\n `${credentialName}: is unavailable. serviceConnectionId is a required parameter.`,\n );\n }\n if (!systemAccessToken) {\n throw new CredentialUnavailableError(\n `${credentialName}: is unavailable. systemAccessToken is a required parameter.`,\n );\n }\n\n // Allow these headers to be logged for troubleshooting by AzurePipelines.\n options.loggingOptions = {\n ...options?.loggingOptions,\n additionalAllowedHeaderNames: [\n ...(options.loggingOptions?.additionalAllowedHeaderNames ?? []),\n \"x-vss-e2eid\",\n \"x-msedge-ref\",\n ],\n };\n\n this.identityClient = new IdentityClient(options);\n checkTenantId(logger, tenantId);\n logger.info(\n `Invoking AzurePipelinesCredential with tenant ID: ${tenantId}, client ID: ${clientId}, and service connection ID: ${serviceConnectionId}`,\n );\n if (!process.env.SYSTEM_OIDCREQUESTURI) {\n throw new CredentialUnavailableError(\n `${credentialName}: is unavailable. Ensure that you're running this task in an Azure Pipeline, so that following missing system variable(s) can be defined- \"SYSTEM_OIDCREQUESTURI\"`,\n );\n }\n\n const oidcRequestUrl = `${process.env.SYSTEM_OIDCREQUESTURI}?api-version=${OIDC_API_VERSION}&serviceConnectionId=${serviceConnectionId}`;\n logger.info(\n `Invoking ClientAssertionCredential with tenant ID: ${tenantId}, client ID: ${clientId} and service connection ID: ${serviceConnectionId}`,\n );\n this.clientAssertionCredential = new ClientAssertionCredential(\n tenantId,\n clientId,\n this.requestOidcToken.bind(this, oidcRequestUrl, systemAccessToken),\n options,\n );\n }\n\n /**\n * Authenticates with Microsoft Entra ID and returns an access token if successful.\n * If authentication fails, a {@link CredentialUnavailableError} or {@link AuthenticationError} will be thrown with the details of the failure.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n public async getToken(\n scopes: string | string[],\n options?: GetTokenOptions,\n ): Promise<AccessToken> {\n if (!this.clientAssertionCredential) {\n const errorMessage = `${credentialName}: is unavailable. To use Federation Identity in Azure Pipelines, the following parameters are required - \n tenantId,\n clientId,\n serviceConnectionId,\n systemAccessToken,\n \"SYSTEM_OIDCREQUESTURI\". \n See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;\n logger.error(errorMessage);\n throw new CredentialUnavailableError(errorMessage);\n }\n logger.info(\"Invoking getToken() of Client Assertion Credential\");\n return this.clientAssertionCredential.getToken(scopes, options);\n }\n\n /**\n *\n * @param oidcRequestUrl - oidc request url\n * @param systemAccessToken - system access token\n * @returns OIDC token from Azure Pipelines\n */\n private async requestOidcToken(\n oidcRequestUrl: string,\n systemAccessToken: string,\n ): Promise<string> {\n logger.info(\"Requesting OIDC token from Azure Pipelines...\");\n logger.info(oidcRequestUrl);\n const request = createPipelineRequest({\n url: oidcRequestUrl,\n method: \"POST\",\n headers: createHttpHeaders({\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${systemAccessToken}`,\n // Prevents the service from responding with a redirect HTTP status code (useful for automation).\n \"X-TFS-FedAuthRedirect\": \"Suppress\",\n }),\n });\n const response = await this.identityClient.sendRequest(request);\n return handleOidcResponse(response);\n }\n}\n\nexport function handleOidcResponse(response: PipelineResponse): string {\n // OIDC token is present in `bodyAsText` field\n const text = response.bodyAsText;\n if (!text) {\n logger.error(\n `${credentialName}: Authentication Failed. Received null token from OIDC request. Response status- ${\n response.status\n }. Complete response - ${JSON.stringify(response)}`,\n );\n throw new AuthenticationError(response.status, {\n error: `${credentialName}: Authentication Failed. Received null token from OIDC request.`,\n error_description: `${JSON.stringify(\n response,\n )}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`,\n });\n }\n try {\n const result = JSON.parse(text);\n if (result?.oidcToken) {\n return result.oidcToken;\n } else {\n const errorMessage = `${credentialName}: Authentication Failed. oidcToken field not detected in the response.`;\n let errorDescription = ``;\n if (response.status !== 200) {\n errorDescription = `Response body = ${text}. Response Headers [\"x-vss-e2eid\"] = ${response.headers.get(\"x-vss-e2eid\")} and [\"x-msedge-ref\"] = ${response.headers.get(\"x-msedge-ref\")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`;\n }\n logger.error(errorMessage);\n logger.error(errorDescription);\n throw new AuthenticationError(response.status, {\n error: errorMessage,\n error_description: errorDescription,\n });\n }\n } catch (e: any) {\n const errorDetails = `${credentialName}: Authentication Failed. oidcToken field not detected in the response.`;\n logger.error(\n `Response from service = ${text}, Response Headers [\"x-vss-e2eid\"] = ${response.headers.get(\"x-vss-e2eid\")} \n and [\"x-msedge-ref\"] = ${response.headers.get(\"x-msedge-ref\")}, error message = ${e.message}`,\n );\n logger.error(errorDetails);\n throw new AuthenticationError(response.status, {\n error: errorDetails,\n error_description: `Response = ${text}. Response headers [\"x-vss-e2eid\"] = ${response.headers.get(\"x-vss-e2eid\")} and [\"x-msedge-ref\"] = ${response.headers.get(\"x-msedge-ref\")}. See the troubleshooting guide for more information: https://aka.ms/azsdk/js/identity/azurepipelinescredential/troubleshoot`,\n });\n }\n}\n"]}
@@ -1,9 +0,0 @@
1
- import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
2
- import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
3
- import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
4
- /**
5
- * Optional parameters for the {@link AzurePipelinesCredential} class.
6
- */
7
- export interface AzurePipelinesCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
8
- }
9
- //# sourceMappingURL=azurePipelinesCredentialOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azurePipelinesCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,+BACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;CAAG"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=azurePipelinesCredentialOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azurePipelinesCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredentialOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Optional parameters for the {@link AzurePipelinesCredential} class.\n */\nexport interface AzurePipelinesCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {}\n"]}
@@ -1,75 +0,0 @@
1
- import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
- import type { AzurePowerShellCredentialOptions } from "./azurePowerShellCredentialOptions.js";
3
- /**
4
- * Returns a platform-appropriate command name by appending ".exe" on Windows.
5
- *
6
- * @internal
7
- */
8
- export declare function formatCommand(commandName: string): string;
9
- /**
10
- * Known PowerShell errors
11
- * @internal
12
- */
13
- export declare const powerShellErrors: {
14
- login: string;
15
- installed: string;
16
- };
17
- /**
18
- * Messages to use when throwing in this credential.
19
- * @internal
20
- */
21
- export declare const powerShellPublicErrorMessages: {
22
- login: string;
23
- installed: string;
24
- troubleshoot: string;
25
- };
26
- /**
27
- * The PowerShell commands to be tried, in order.
28
- *
29
- * @internal
30
- */
31
- export declare const commandStack: string[];
32
- /**
33
- * This credential will use the currently logged-in user information from the
34
- * Azure PowerShell module. To do so, it will read the user access token and
35
- * expire time with Azure PowerShell command `Get-AzAccessToken -ResourceUrl {ResourceScope}`
36
- */
37
- export declare class AzurePowerShellCredential implements TokenCredential {
38
- private tenantId?;
39
- private additionallyAllowedTenantIds;
40
- private timeout?;
41
- /**
42
- * Creates an instance of the {@link AzurePowerShellCredential}.
43
- *
44
- * To use this credential:
45
- * - Install the Azure Az PowerShell module with:
46
- * `Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force`.
47
- * - You have already logged in to Azure PowerShell using the command
48
- * `Connect-AzAccount` from the command line.
49
- *
50
- * @param options - Options, to optionally allow multi-tenant requests.
51
- */
52
- constructor(options?: AzurePowerShellCredentialOptions);
53
- /**
54
- * Gets the access token from Azure PowerShell
55
- * @param resource - The resource to use when getting the token
56
- */
57
- private getAzurePowerShellAccessToken;
58
- /**
59
- * Authenticates with Microsoft Entra ID and returns an access token if successful.
60
- * If the authentication cannot be performed through PowerShell, a {@link CredentialUnavailableError} will be thrown.
61
- *
62
- * @param scopes - The list of scopes for which the token will have access.
63
- * @param options - The options used to configure any requests this TokenCredential implementation might make.
64
- */
65
- getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
66
- }
67
- /**
68
- *
69
- * @internal
70
- */
71
- export declare function parseJsonToken(result: string): Promise<{
72
- Token: string;
73
- ExpiresOn: string;
74
- }>;
75
- //# sourceMappingURL=azurePowerShellCredential.d.ts.map