@azure/identity 4.14.0-beta.2 → 4.14.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/dist/browser/constants.d.ts +1 -1
  2. package/dist/browser/constants.js +1 -1
  3. package/dist/browser/constants.js.map +1 -1
  4. package/dist/browser/credentials/authorizationCodeCredential.d.ts +3 -3
  5. package/dist/browser/credentials/authorizationCodeCredential.d.ts.map +1 -0
  6. package/dist/browser/credentials/authorizationCodeCredential.js +2 -2
  7. package/dist/browser/credentials/authorizationCodeCredential.js.map +1 -0
  8. package/dist/browser/credentials/azureCliCredential.d.ts +5 -4
  9. package/dist/browser/credentials/azureCliCredential.d.ts.map +1 -0
  10. package/dist/browser/credentials/azureCliCredential.js +3 -3
  11. package/dist/browser/credentials/azureCliCredential.js.map +1 -0
  12. package/dist/browser/credentials/azureDeveloperCliCredential.d.ts +5 -4
  13. package/dist/browser/credentials/azureDeveloperCliCredential.d.ts.map +1 -0
  14. package/dist/browser/credentials/azureDeveloperCliCredential.js +3 -3
  15. package/dist/browser/credentials/azureDeveloperCliCredential.js.map +1 -0
  16. package/dist/browser/credentials/azurePipelinesCredential.d.ts +5 -4
  17. package/dist/browser/credentials/azurePipelinesCredential.d.ts.map +1 -0
  18. package/dist/browser/credentials/azurePipelinesCredential.js +3 -3
  19. package/dist/browser/credentials/azurePipelinesCredential.js.map +1 -0
  20. package/dist/browser/credentials/azurePowerShellCredential.d.ts +5 -4
  21. package/dist/browser/credentials/azurePowerShellCredential.d.ts.map +1 -0
  22. package/dist/browser/credentials/azurePowerShellCredential.js +3 -3
  23. package/dist/browser/credentials/azurePowerShellCredential.js.map +1 -0
  24. package/dist/browser/credentials/clientAssertionCredential.d.ts +5 -4
  25. package/dist/browser/credentials/clientAssertionCredential.d.ts.map +1 -0
  26. package/dist/browser/credentials/clientAssertionCredential.js +3 -3
  27. package/dist/browser/credentials/clientAssertionCredential.js.map +1 -0
  28. package/dist/browser/credentials/clientCertificateCredential.d.ts +6 -4
  29. package/dist/browser/credentials/clientCertificateCredential.d.ts.map +1 -0
  30. package/dist/browser/credentials/clientCertificateCredential.js +3 -3
  31. package/dist/browser/credentials/clientCertificateCredential.js.map +1 -0
  32. package/dist/browser/credentials/clientSecretCredential.d.ts +1 -1
  33. package/dist/browser/credentials/clientSecretCredential.d.ts.map +1 -0
  34. package/dist/browser/credentials/clientSecretCredential.js +1 -1
  35. package/dist/browser/credentials/clientSecretCredential.js.map +1 -0
  36. package/dist/browser/credentials/defaultAzureCredential.d.ts +3 -3
  37. package/dist/browser/credentials/defaultAzureCredential.d.ts.map +1 -0
  38. package/dist/browser/credentials/defaultAzureCredential.js +2 -2
  39. package/dist/browser/credentials/defaultAzureCredential.js.map +1 -0
  40. package/dist/browser/credentials/defaultAzureCredentialOptions.d.ts +2 -2
  41. package/dist/browser/credentials/defaultAzureCredentialOptions.js.map +1 -1
  42. package/dist/browser/credentials/deviceCodeCredential.d.ts +5 -4
  43. package/dist/browser/credentials/deviceCodeCredential.d.ts.map +1 -0
  44. package/dist/browser/credentials/deviceCodeCredential.js +3 -3
  45. package/dist/browser/credentials/deviceCodeCredential.js.map +1 -0
  46. package/dist/browser/credentials/environmentCredential.d.ts +5 -4
  47. package/dist/browser/credentials/environmentCredential.d.ts.map +1 -0
  48. package/dist/browser/credentials/environmentCredential.js +3 -3
  49. package/dist/browser/credentials/environmentCredential.js.map +1 -0
  50. package/dist/browser/credentials/interactiveBrowserCredential.d.ts +1 -1
  51. package/dist/browser/credentials/interactiveBrowserCredential.d.ts.map +1 -0
  52. package/dist/browser/credentials/interactiveBrowserCredential.js +1 -1
  53. package/dist/browser/credentials/interactiveBrowserCredential.js.map +1 -0
  54. package/dist/browser/credentials/managedIdentityCredential/index.d.ts +9 -4
  55. package/dist/browser/credentials/managedIdentityCredential/index.d.ts.map +1 -0
  56. package/dist/browser/credentials/managedIdentityCredential/index.js +3 -3
  57. package/dist/browser/credentials/managedIdentityCredential/index.js.map +1 -0
  58. package/dist/browser/credentials/onBehalfOfCredential.d.ts +5 -4
  59. package/dist/browser/credentials/onBehalfOfCredential.d.ts.map +1 -0
  60. package/dist/browser/credentials/onBehalfOfCredential.js +3 -3
  61. package/dist/browser/credentials/onBehalfOfCredential.js.map +1 -0
  62. package/dist/browser/credentials/usernamePasswordCredential.d.ts +1 -1
  63. package/dist/browser/credentials/usernamePasswordCredential.d.ts.map +1 -0
  64. package/dist/browser/credentials/usernamePasswordCredential.js +1 -1
  65. package/dist/browser/credentials/usernamePasswordCredential.js.map +1 -0
  66. package/dist/browser/credentials/visualStudioCodeCredential.d.ts +5 -4
  67. package/dist/browser/credentials/visualStudioCodeCredential.d.ts.map +1 -0
  68. package/dist/browser/credentials/visualStudioCodeCredential.js +3 -3
  69. package/dist/browser/credentials/visualStudioCodeCredential.js.map +1 -0
  70. package/dist/browser/credentials/workloadIdentityCredential.d.ts +5 -4
  71. package/dist/browser/credentials/workloadIdentityCredential.d.ts.map +1 -0
  72. package/dist/browser/credentials/workloadIdentityCredential.js +3 -3
  73. package/dist/browser/credentials/workloadIdentityCredential.js.map +1 -0
  74. package/dist/browser/index.d.ts +33 -33
  75. package/dist/browser/index.d.ts.map +1 -1
  76. package/dist/browser/index.js.map +1 -1
  77. package/dist/browser/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -1
  78. package/dist/browser/msal/browserFlows/msalBrowserCommon.js +2 -3
  79. package/dist/browser/msal/browserFlows/msalBrowserCommon.js.map +1 -1
  80. package/dist/browser/msal/msal.d.ts +2 -3
  81. package/dist/browser/msal/msal.d.ts.map +1 -0
  82. package/dist/browser/msal/msal.js +2 -3
  83. package/dist/browser/msal/msal.js.map +1 -0
  84. package/dist/browser/msal/nodeFlows/msalClient.d.ts +2 -2
  85. package/dist/browser/msal/nodeFlows/msalClient.d.ts.map +1 -1
  86. package/dist/browser/msal/nodeFlows/msalClient.js +3 -3
  87. package/dist/browser/msal/nodeFlows/msalClient.js.map +1 -1
  88. package/dist/browser/msal/utils.d.ts +5 -4
  89. package/dist/browser/msal/utils.d.ts.map +1 -1
  90. package/dist/browser/msal/utils.js +10 -10
  91. package/dist/browser/msal/utils.js.map +1 -1
  92. package/dist/browser/plugins/consumer.d.ts +1 -1
  93. package/dist/browser/plugins/consumer.d.ts.map +1 -0
  94. package/dist/browser/plugins/consumer.js +1 -1
  95. package/dist/browser/plugins/consumer.js.map +1 -0
  96. package/dist/browser/util/processMultiTenantRequest.d.ts +3 -2
  97. package/dist/browser/util/processMultiTenantRequest.d.ts.map +1 -0
  98. package/dist/browser/util/processMultiTenantRequest.js +2 -2
  99. package/dist/browser/util/processMultiTenantRequest.js.map +1 -0
  100. package/dist/commonjs/client/identityClient.js +294 -288
  101. package/dist/commonjs/client/identityClient.js.map +7 -1
  102. package/dist/commonjs/constants.d.ts +1 -1
  103. package/dist/commonjs/constants.js +61 -78
  104. package/dist/commonjs/constants.js.map +7 -1
  105. package/dist/commonjs/credentials/authorityValidationOptions.js +16 -5
  106. package/dist/commonjs/credentials/authorityValidationOptions.js.map +7 -1
  107. package/dist/commonjs/credentials/authorizationCodeCredential.js +98 -74
  108. package/dist/commonjs/credentials/authorizationCodeCredential.js.map +7 -1
  109. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js +16 -5
  110. package/dist/commonjs/credentials/authorizationCodeCredentialOptions.js.map +7 -1
  111. package/dist/commonjs/credentials/azureCliCredential.js +245 -214
  112. package/dist/commonjs/credentials/azureCliCredential.js.map +7 -1
  113. package/dist/commonjs/credentials/azureCliCredentialOptions.js +16 -5
  114. package/dist/commonjs/credentials/azureCliCredentialOptions.js.map +7 -1
  115. package/dist/commonjs/credentials/azureDeveloperCliCredential.js +237 -225
  116. package/dist/commonjs/credentials/azureDeveloperCliCredential.js.map +7 -1
  117. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js +16 -5
  118. package/dist/commonjs/credentials/azureDeveloperCliCredentialOptions.js.map +7 -1
  119. package/dist/commonjs/credentials/azurePipelinesCredential.js +173 -135
  120. package/dist/commonjs/credentials/azurePipelinesCredential.js.map +7 -1
  121. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js +16 -5
  122. package/dist/commonjs/credentials/azurePipelinesCredentialOptions.js.map +7 -1
  123. package/dist/commonjs/credentials/azurePowerShellCredential.js +201 -205
  124. package/dist/commonjs/credentials/azurePowerShellCredential.js.map +7 -1
  125. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js +16 -5
  126. package/dist/commonjs/credentials/azurePowerShellCredentialOptions.js.map +7 -1
  127. package/dist/commonjs/credentials/brokerAuthOptions.js +16 -3
  128. package/dist/commonjs/credentials/brokerAuthOptions.js.map +7 -1
  129. package/dist/commonjs/credentials/brokerCredential.js +103 -70
  130. package/dist/commonjs/credentials/brokerCredential.js.map +7 -1
  131. package/dist/commonjs/credentials/browserCustomizationOptions.js +16 -5
  132. package/dist/commonjs/credentials/browserCustomizationOptions.js.map +7 -1
  133. package/dist/commonjs/credentials/chainedTokenCredential.js +113 -93
  134. package/dist/commonjs/credentials/chainedTokenCredential.js.map +7 -1
  135. package/dist/commonjs/credentials/clientAssertionCredential.js +101 -63
  136. package/dist/commonjs/credentials/clientAssertionCredential.js.map +7 -1
  137. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js +16 -5
  138. package/dist/commonjs/credentials/clientAssertionCredentialOptions.js.map +7 -1
  139. package/dist/commonjs/credentials/clientCertificateCredential.js +129 -123
  140. package/dist/commonjs/credentials/clientCertificateCredential.js.map +7 -1
  141. package/dist/commonjs/credentials/clientCertificateCredentialModels.js +16 -5
  142. package/dist/commonjs/credentials/clientCertificateCredentialModels.js.map +7 -1
  143. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js +16 -5
  144. package/dist/commonjs/credentials/clientCertificateCredentialOptions.js.map +7 -1
  145. package/dist/commonjs/credentials/clientSecretCredential.js +96 -67
  146. package/dist/commonjs/credentials/clientSecretCredential.js.map +7 -1
  147. package/dist/commonjs/credentials/clientSecretCredentialOptions.js +16 -5
  148. package/dist/commonjs/credentials/clientSecretCredentialOptions.js.map +7 -1
  149. package/dist/commonjs/credentials/credentialPersistenceOptions.js +16 -5
  150. package/dist/commonjs/credentials/credentialPersistenceOptions.js.map +7 -1
  151. package/dist/commonjs/credentials/defaultAzureCredential.js +121 -159
  152. package/dist/commonjs/credentials/defaultAzureCredential.js.map +7 -1
  153. package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js +110 -140
  154. package/dist/commonjs/credentials/defaultAzureCredentialFunctions.js.map +7 -1
  155. package/dist/commonjs/credentials/defaultAzureCredentialOptions.d.ts +2 -2
  156. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js +16 -5
  157. package/dist/commonjs/credentials/defaultAzureCredentialOptions.js.map +7 -1
  158. package/dist/commonjs/credentials/deviceCodeCredential.js +132 -103
  159. package/dist/commonjs/credentials/deviceCodeCredential.js.map +7 -1
  160. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js +16 -5
  161. package/dist/commonjs/credentials/deviceCodeCredentialOptions.js.map +7 -1
  162. package/dist/commonjs/credentials/environmentCredential.js +157 -123
  163. package/dist/commonjs/credentials/environmentCredential.js.map +7 -1
  164. package/dist/commonjs/credentials/environmentCredentialOptions.js +16 -5
  165. package/dist/commonjs/credentials/environmentCredentialOptions.js.map +7 -1
  166. package/dist/commonjs/credentials/interactiveBrowserCredential.js +144 -107
  167. package/dist/commonjs/credentials/interactiveBrowserCredential.js.map +7 -1
  168. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js +16 -5
  169. package/dist/commonjs/credentials/interactiveBrowserCredentialOptions.js.map +7 -1
  170. package/dist/commonjs/credentials/interactiveCredentialOptions.js +16 -5
  171. package/dist/commonjs/credentials/interactiveCredentialOptions.js.map +7 -1
  172. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js +92 -91
  173. package/dist/commonjs/credentials/managedIdentityCredential/imdsMsi.js.map +7 -1
  174. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js +51 -44
  175. package/dist/commonjs/credentials/managedIdentityCredential/imdsRetryPolicy.js.map +7 -1
  176. package/dist/commonjs/credentials/managedIdentityCredential/index.js +256 -242
  177. package/dist/commonjs/credentials/managedIdentityCredential/index.js.map +7 -1
  178. package/dist/commonjs/credentials/managedIdentityCredential/models.js +16 -5
  179. package/dist/commonjs/credentials/managedIdentityCredential/models.js.map +7 -1
  180. package/dist/commonjs/credentials/managedIdentityCredential/options.js +16 -5
  181. package/dist/commonjs/credentials/managedIdentityCredential/options.js.map +7 -1
  182. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js +56 -39
  183. package/dist/commonjs/credentials/managedIdentityCredential/tokenExchangeMsi.js.map +7 -1
  184. package/dist/commonjs/credentials/managedIdentityCredential/utils.js +79 -75
  185. package/dist/commonjs/credentials/managedIdentityCredential/utils.js.map +7 -1
  186. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js +16 -5
  187. package/dist/commonjs/credentials/multiTenantTokenCredentialOptions.js.map +7 -1
  188. package/dist/commonjs/credentials/onBehalfOfCredential.js +168 -126
  189. package/dist/commonjs/credentials/onBehalfOfCredential.js.map +7 -1
  190. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js +16 -5
  191. package/dist/commonjs/credentials/onBehalfOfCredentialOptions.js.map +7 -1
  192. package/dist/commonjs/credentials/usernamePasswordCredential.js +112 -75
  193. package/dist/commonjs/credentials/usernamePasswordCredential.js.map +7 -1
  194. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js +16 -5
  195. package/dist/commonjs/credentials/usernamePasswordCredentialOptions.js.map +7 -1
  196. package/dist/commonjs/credentials/visualStudioCodeCredential.js +144 -132
  197. package/dist/commonjs/credentials/visualStudioCodeCredential.js.map +7 -1
  198. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js +16 -5
  199. package/dist/commonjs/credentials/visualStudioCodeCredentialOptions.js.map +7 -1
  200. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js +16 -5
  201. package/dist/commonjs/credentials/visualStudioCodeCredentialPlugin.js.map +7 -1
  202. package/dist/commonjs/credentials/workloadIdentityCredential.js +284 -274
  203. package/dist/commonjs/credentials/workloadIdentityCredential.js.map +7 -1
  204. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js +16 -5
  205. package/dist/commonjs/credentials/workloadIdentityCredentialOptions.js.map +7 -1
  206. package/dist/commonjs/errors.js +131 -132
  207. package/dist/commonjs/errors.js.map +7 -1
  208. package/dist/commonjs/index.d.ts +33 -33
  209. package/dist/commonjs/index.d.ts.map +1 -1
  210. package/dist/commonjs/index.js +115 -67
  211. package/dist/commonjs/index.js.map +7 -1
  212. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -1
  213. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js +226 -249
  214. package/dist/commonjs/msal/browserFlows/msalBrowserCommon.js.map +7 -1
  215. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.js +16 -5
  216. package/dist/commonjs/msal/browserFlows/msalBrowserOptions.js.map +7 -1
  217. package/dist/commonjs/msal/credentials.js +16 -5
  218. package/dist/commonjs/msal/credentials.js.map +7 -1
  219. package/dist/commonjs/msal/msal.d.ts +1 -2
  220. package/dist/commonjs/msal/msal.d.ts.map +1 -1
  221. package/dist/commonjs/msal/msal.js +30 -9
  222. package/dist/commonjs/msal/msal.js.map +7 -1
  223. package/dist/commonjs/msal/nodeFlows/brokerOptions.js +16 -3
  224. package/dist/commonjs/msal/nodeFlows/brokerOptions.js.map +7 -1
  225. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts +2 -2
  226. package/dist/commonjs/msal/nodeFlows/msalClient.d.ts.map +1 -1
  227. package/dist/commonjs/msal/nodeFlows/msalClient.js +450 -478
  228. package/dist/commonjs/msal/nodeFlows/msalClient.js.map +7 -1
  229. package/dist/commonjs/msal/nodeFlows/msalPlugins.js +140 -147
  230. package/dist/commonjs/msal/nodeFlows/msalPlugins.js.map +7 -1
  231. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js +16 -5
  232. package/dist/commonjs/msal/nodeFlows/tokenCachePersistenceOptions.js.map +7 -1
  233. package/dist/commonjs/msal/types.js +16 -5
  234. package/dist/commonjs/msal/types.js.map +7 -1
  235. package/dist/commonjs/msal/utils.d.ts +5 -4
  236. package/dist/commonjs/msal/utils.d.ts.map +1 -1
  237. package/dist/commonjs/msal/utils.js +171 -211
  238. package/dist/commonjs/msal/utils.js.map +7 -1
  239. package/dist/commonjs/plugins/consumer.js +32 -40
  240. package/dist/commonjs/plugins/consumer.js.map +7 -1
  241. package/dist/commonjs/plugins/provider.js +16 -5
  242. package/dist/commonjs/plugins/provider.js.map +7 -1
  243. package/dist/commonjs/regionalAuthority.js +93 -141
  244. package/dist/commonjs/regionalAuthority.js.map +7 -1
  245. package/dist/commonjs/tokenCredentialOptions.js +16 -5
  246. package/dist/commonjs/tokenCredentialOptions.js.map +7 -1
  247. package/dist/commonjs/tokenProvider.js +52 -52
  248. package/dist/commonjs/tokenProvider.js.map +7 -1
  249. package/dist/commonjs/tsdoc-metadata.json +1 -1
  250. package/dist/commonjs/util/authorityHost.js +34 -19
  251. package/dist/commonjs/util/authorityHost.js.map +7 -1
  252. package/dist/commonjs/util/certificatesUtils.js +54 -45
  253. package/dist/commonjs/util/certificatesUtils.js.map +7 -1
  254. package/dist/commonjs/util/identityTokenEndpoint.js +32 -12
  255. package/dist/commonjs/util/identityTokenEndpoint.js.map +7 -1
  256. package/dist/commonjs/util/logging.js +91 -97
  257. package/dist/commonjs/util/logging.js.map +7 -1
  258. package/dist/commonjs/util/processMultiTenantRequest.js +43 -33
  259. package/dist/commonjs/util/processMultiTenantRequest.js.map +7 -1
  260. package/dist/commonjs/util/processUtils.js +60 -35
  261. package/dist/commonjs/util/processUtils.js.map +7 -1
  262. package/dist/commonjs/util/scopeUtils.js +39 -28
  263. package/dist/commonjs/util/scopeUtils.js.map +7 -1
  264. package/dist/commonjs/util/subscriptionUtils.js +35 -17
  265. package/dist/commonjs/util/subscriptionUtils.js.map +7 -1
  266. package/dist/commonjs/util/tenantIdUtils.js +61 -45
  267. package/dist/commonjs/util/tenantIdUtils.js.map +7 -1
  268. package/dist/commonjs/util/tracing.js +33 -16
  269. package/dist/commonjs/util/tracing.js.map +7 -1
  270. package/dist/esm/constants.d.ts +1 -1
  271. package/dist/esm/constants.js +1 -1
  272. package/dist/esm/constants.js.map +1 -1
  273. package/dist/esm/credentials/defaultAzureCredentialOptions.d.ts +2 -2
  274. package/dist/esm/credentials/defaultAzureCredentialOptions.js.map +1 -1
  275. package/dist/esm/index.d.ts +33 -33
  276. package/dist/esm/index.d.ts.map +1 -1
  277. package/dist/esm/index.js.map +1 -1
  278. package/dist/esm/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -1
  279. package/dist/esm/msal/browserFlows/msalBrowserCommon.js +2 -3
  280. package/dist/esm/msal/browserFlows/msalBrowserCommon.js.map +1 -1
  281. package/dist/esm/msal/msal.d.ts +1 -2
  282. package/dist/esm/msal/msal.d.ts.map +1 -1
  283. package/dist/esm/msal/msal.js +1 -2
  284. package/dist/esm/msal/msal.js.map +1 -1
  285. package/dist/esm/msal/nodeFlows/msalClient.d.ts +2 -2
  286. package/dist/esm/msal/nodeFlows/msalClient.d.ts.map +1 -1
  287. package/dist/esm/msal/nodeFlows/msalClient.js +3 -3
  288. package/dist/esm/msal/nodeFlows/msalClient.js.map +1 -1
  289. package/dist/esm/msal/utils.d.ts +5 -4
  290. package/dist/esm/msal/utils.d.ts.map +1 -1
  291. package/dist/esm/msal/utils.js +10 -10
  292. package/dist/esm/msal/utils.js.map +1 -1
  293. package/dist/workerd/constants.d.ts +1 -1
  294. package/dist/workerd/constants.js +1 -1
  295. package/dist/workerd/constants.js.map +1 -1
  296. package/dist/workerd/credentials/defaultAzureCredentialOptions.d.ts +2 -2
  297. package/dist/workerd/credentials/defaultAzureCredentialOptions.js.map +1 -1
  298. package/dist/workerd/index.d.ts +33 -33
  299. package/dist/workerd/index.d.ts.map +1 -1
  300. package/dist/workerd/index.js.map +1 -1
  301. package/dist/workerd/msal/browserFlows/msalBrowserCommon.d.ts.map +1 -1
  302. package/dist/workerd/msal/browserFlows/msalBrowserCommon.js +2 -3
  303. package/dist/workerd/msal/browserFlows/msalBrowserCommon.js.map +1 -1
  304. package/dist/workerd/msal/msal.d.ts +1 -2
  305. package/dist/workerd/msal/msal.d.ts.map +1 -1
  306. package/dist/workerd/msal/msal.js +1 -2
  307. package/dist/workerd/msal/msal.js.map +1 -1
  308. package/dist/workerd/msal/nodeFlows/msalClient.d.ts +2 -2
  309. package/dist/workerd/msal/nodeFlows/msalClient.d.ts.map +1 -1
  310. package/dist/workerd/msal/nodeFlows/msalClient.js +3 -3
  311. package/dist/workerd/msal/nodeFlows/msalClient.js.map +1 -1
  312. package/dist/workerd/msal/utils.d.ts +5 -4
  313. package/dist/workerd/msal/utils.d.ts.map +1 -1
  314. package/dist/workerd/msal/utils.js +10 -10
  315. package/dist/workerd/msal/utils.js.map +1 -1
  316. package/package.json +10 -27
  317. package/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map +0 -1
  318. package/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map +0 -1
  319. package/dist/browser/credentials/azureCliCredential-browser.d.mts.map +0 -1
  320. package/dist/browser/credentials/azureCliCredential-browser.mjs.map +0 -1
  321. package/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map +0 -1
  322. package/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map +0 -1
  323. package/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map +0 -1
  324. package/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map +0 -1
  325. package/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map +0 -1
  326. package/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map +0 -1
  327. package/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map +0 -1
  328. package/dist/browser/credentials/clientAssertionCredential-browser.mjs.map +0 -1
  329. package/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map +0 -1
  330. package/dist/browser/credentials/clientCertificateCredential-browser.mjs.map +0 -1
  331. package/dist/browser/credentials/clientSecretCredential-browser.d.mts.map +0 -1
  332. package/dist/browser/credentials/clientSecretCredential-browser.mjs.map +0 -1
  333. package/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map +0 -1
  334. package/dist/browser/credentials/defaultAzureCredential-browser.mjs.map +0 -1
  335. package/dist/browser/credentials/deviceCodeCredential-browser.d.mts.map +0 -1
  336. package/dist/browser/credentials/deviceCodeCredential-browser.mjs.map +0 -1
  337. package/dist/browser/credentials/environmentCredential-browser.d.mts.map +0 -1
  338. package/dist/browser/credentials/environmentCredential-browser.mjs.map +0 -1
  339. package/dist/browser/credentials/interactiveBrowserCredential-browser.d.mts.map +0 -1
  340. package/dist/browser/credentials/interactiveBrowserCredential-browser.mjs.map +0 -1
  341. package/dist/browser/credentials/managedIdentityCredential/index-browser.d.mts.map +0 -1
  342. package/dist/browser/credentials/managedIdentityCredential/index-browser.mjs.map +0 -1
  343. package/dist/browser/credentials/onBehalfOfCredential-browser.d.mts.map +0 -1
  344. package/dist/browser/credentials/onBehalfOfCredential-browser.mjs.map +0 -1
  345. package/dist/browser/credentials/usernamePasswordCredential-browser.d.mts.map +0 -1
  346. package/dist/browser/credentials/usernamePasswordCredential-browser.mjs.map +0 -1
  347. package/dist/browser/credentials/visualStudioCodeCredential-browser.d.mts.map +0 -1
  348. package/dist/browser/credentials/visualStudioCodeCredential-browser.mjs.map +0 -1
  349. package/dist/browser/credentials/workloadIdentityCredential-browser.d.mts.map +0 -1
  350. package/dist/browser/credentials/workloadIdentityCredential-browser.mjs.map +0 -1
  351. package/dist/browser/msal/msal-browser.d.mts.map +0 -1
  352. package/dist/browser/msal/msal-browser.mjs.map +0 -1
  353. package/dist/browser/plugins/consumer-browser.d.mts.map +0 -1
  354. package/dist/browser/plugins/consumer-browser.mjs.map +0 -1
  355. package/dist/browser/util/authHostEnv-browser.d.mts +0 -4
  356. package/dist/browser/util/authHostEnv-browser.d.mts.map +0 -1
  357. package/dist/browser/util/authHostEnv-browser.mjs +0 -7
  358. package/dist/browser/util/authHostEnv-browser.mjs.map +0 -1
  359. package/dist/browser/util/processMultiTenantRequest-browser.d.mts.map +0 -1
  360. package/dist/browser/util/processMultiTenantRequest-browser.mjs.map +0 -1
  361. package/dist/esm/util/authHostEnv-browser.d.mts +0 -4
  362. package/dist/esm/util/authHostEnv-browser.d.mts.map +0 -1
  363. package/dist/esm/util/authHostEnv-browser.mjs +0 -7
  364. package/dist/esm/util/authHostEnv-browser.mjs.map +0 -1
  365. package/dist/workerd/util/authHostEnv-browser.d.mts +0 -4
  366. package/dist/workerd/util/authHostEnv-browser.d.mts.map +0 -1
  367. package/dist/workerd/util/authHostEnv-browser.mjs +0 -7
  368. package/dist/workerd/util/authHostEnv-browser.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Current version of the `@azure/identity` package.
3
3
  */
4
- export declare const SDK_VERSION = "4.14.0-beta.2";
4
+ export declare const SDK_VERSION = "4.14.0-beta.3";
5
5
  /**
6
6
  * The default client ID for authentication
7
7
  * @internal
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Current version of the `@azure/identity` package.
5
5
  */
6
- export const SDK_VERSION = `4.14.0-beta.2`;
6
+ export const SDK_VERSION = `4.14.0-beta.3`;
7
7
  /**
8
8
  * The default client ID for authentication
9
9
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;AAE3C;;;GAGG;AACH,2EAA2E;AAC3E,6CAA6C;AAC7C,uGAAuG;AACvG,MAAM,CAAC,MAAM,uBAAuB,GAAG,sCAAsC,CAAC;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AAExC;;GAEG;AACH,MAAM,CAAN,IAAY,mBAoBX;AApBD,WAAY,mBAAmB;IAC7B;;OAEG;IACH,oEAA6C,CAAA;IAC7C;;;;;SAKK;IACL,wEAAiD,CAAA;IACjD;;OAEG;IACH,2EAAoD,CAAA;IACpD;;OAEG;IACH,6EAAsD,CAAA;AACxD,CAAC,EApBW,mBAAmB,KAAnB,mBAAmB,QAoB9B;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;AAEzE;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAa,CAAC,GAAG,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/identity` package.\n */\nexport const SDK_VERSION = `4.14.0-beta.2`;\n\n/**\n * The default client ID for authentication\n * @internal\n */\n// TODO: temporary - this is the Azure CLI clientID - we'll replace it when\n// Developer Sign On application is available\n// https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/Constants.cs#L9\nexport const DeveloperSignOnClientId = \"04b07795-8ddb-461a-bbee-02f9e1bf7b46\";\n\n/**\n * The default tenant for authentication\n * @internal\n */\nexport const DefaultTenantId = \"common\";\n\n/**\n * A list of known Azure authority hosts\n */\nexport enum AzureAuthorityHosts {\n /**\n * China-based Azure Authority Host\n */\n AzureChina = \"https://login.chinacloudapi.cn\",\n /**\n * Germany-based Azure Authority Host\n *\n * @deprecated Microsoft Cloud Germany was closed on October 29th, 2021.\n *\n * */\n AzureGermany = \"https://login.microsoftonline.de\",\n /**\n * US Government Azure Authority Host\n */\n AzureGovernment = \"https://login.microsoftonline.us\",\n /**\n * Public Cloud Azure Authority Host\n */\n AzurePublicCloud = \"https://login.microsoftonline.com\",\n}\n\n/**\n * @internal\n * The default authority host.\n */\nexport const DefaultAuthorityHost = AzureAuthorityHosts.AzurePublicCloud;\n\n/**\n * @internal\n * The default environment host for Azure Public Cloud\n */\nexport const DefaultAuthority = \"login.microsoftonline.com\";\n\n/**\n * @internal\n * Allow acquiring tokens for any tenant for multi-tentant auth.\n */\nexport const ALL_TENANTS: string[] = [\"*\"];\n\n/**\n * @internal\n */\nexport const CACHE_CAE_SUFFIX = \"cae\";\n\n/**\n * @internal\n */\nexport const CACHE_NON_CAE_SUFFIX = \"nocae\";\n\n/**\n * @internal\n *\n * The default name for the cache persistence plugin.\n * Matches the constant defined in the cache persistence package.\n */\nexport const DEFAULT_TOKEN_CACHE_NAME = \"msal.cache\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;AAE3C;;;GAGG;AACH,2EAA2E;AAC3E,6CAA6C;AAC7C,uGAAuG;AACvG,MAAM,CAAC,MAAM,uBAAuB,GAAG,sCAAsC,CAAC;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AAExC;;GAEG;AACH,MAAM,CAAN,IAAY,mBAoBX;AApBD,WAAY,mBAAmB;IAC7B;;OAEG;IACH,oEAA6C,CAAA;IAC7C;;;;;SAKK;IACL,wEAAiD,CAAA;IACjD;;OAEG;IACH,2EAAoD,CAAA;IACpD;;OAEG;IACH,6EAAsD,CAAA;AACxD,CAAC,EApBW,mBAAmB,KAAnB,mBAAmB,QAoB9B;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC;AAEzE;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAa,CAAC,GAAG,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/identity` package.\n */\nexport const SDK_VERSION = `4.14.0-beta.3`;\n\n/**\n * The default client ID for authentication\n * @internal\n */\n// TODO: temporary - this is the Azure CLI clientID - we'll replace it when\n// Developer Sign On application is available\n// https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/Constants.cs#L9\nexport const DeveloperSignOnClientId = \"04b07795-8ddb-461a-bbee-02f9e1bf7b46\";\n\n/**\n * The default tenant for authentication\n * @internal\n */\nexport const DefaultTenantId = \"common\";\n\n/**\n * A list of known Azure authority hosts\n */\nexport enum AzureAuthorityHosts {\n /**\n * China-based Azure Authority Host\n */\n AzureChina = \"https://login.chinacloudapi.cn\",\n /**\n * Germany-based Azure Authority Host\n *\n * @deprecated Microsoft Cloud Germany was closed on October 29th, 2021.\n *\n * */\n AzureGermany = \"https://login.microsoftonline.de\",\n /**\n * US Government Azure Authority Host\n */\n AzureGovernment = \"https://login.microsoftonline.us\",\n /**\n * Public Cloud Azure Authority Host\n */\n AzurePublicCloud = \"https://login.microsoftonline.com\",\n}\n\n/**\n * @internal\n * The default authority host.\n */\nexport const DefaultAuthorityHost = AzureAuthorityHosts.AzurePublicCloud;\n\n/**\n * @internal\n * The default environment host for Azure Public Cloud\n */\nexport const DefaultAuthority = \"login.microsoftonline.com\";\n\n/**\n * @internal\n * Allow acquiring tokens for any tenant for multi-tentant auth.\n */\nexport const ALL_TENANTS: string[] = [\"*\"];\n\n/**\n * @internal\n */\nexport const CACHE_CAE_SUFFIX = \"cae\";\n\n/**\n * @internal\n */\nexport const CACHE_NON_CAE_SUFFIX = \"nocae\";\n\n/**\n * @internal\n *\n * The default name for the cache persistence plugin.\n * Matches the constant defined in the cache persistence package.\n */\nexport const DEFAULT_TOKEN_CACHE_NAME = \"msal.cache\";\n"]}
@@ -1,4 +1,4 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
2
  import type { AuthorizationCodeCredentialOptions } from "./authorizationCodeCredentialOptions.js";
3
3
  export declare class AuthorizationCodeCredential implements TokenCredential {
4
4
  /**
@@ -6,6 +6,6 @@ export declare class AuthorizationCodeCredential implements TokenCredential {
6
6
  */
7
7
  constructor(tenantId: string | "common", clientId: string, clientSecret: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
8
8
  constructor(tenantId: string | "common", clientId: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
9
- getToken(): Promise<AccessToken | null>;
9
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
10
10
  }
11
- //# sourceMappingURL=authorizationCodeCredential-browser.d.mts.map
11
+ //# sourceMappingURL=authorizationCodeCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizationCodeCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredential.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;AAOlG,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;gBAED,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAC3B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kCAAkC;gBAG5C,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAC3B,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kCAAkC;IAOvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrG"}
@@ -8,9 +8,9 @@ export class AuthorizationCodeCredential {
8
8
  logger.info(formatError("", BrowserNotSupportedError));
9
9
  throw BrowserNotSupportedError;
10
10
  }
11
- getToken() {
11
+ getToken(_scopes, _options) {
12
12
  logger.getToken.info(formatError("", BrowserNotSupportedError));
13
13
  throw BrowserNotSupportedError;
14
14
  }
15
15
  }
16
- //# sourceMappingURL=authorizationCodeCredential-browser.mjs.map
16
+ //# sourceMappingURL=authorizationCodeCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorizationCodeCredential.js","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,kIAAkI,CACnI,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D,MAAM,OAAO,2BAA2B;IAmBtC;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport type { AuthorizationCodeCredentialOptions } from \"./authorizationCodeCredentialOptions.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case.\",\n);\nconst logger = credentialLogger(\"AuthorizationCodeCredential\");\n\nexport class AuthorizationCodeCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(\n tenantId: string | \"common\",\n clientId: string,\n clientSecret: string,\n authorizationCode: string,\n redirectUri: string,\n options?: AuthorizationCodeCredentialOptions,\n );\n constructor(\n tenantId: string | \"common\",\n clientId: string,\n authorizationCode: string,\n redirectUri: string,\n options?: AuthorizationCodeCredentialOptions,\n );\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { AzureCliCredentialOptions } from "./azureCliCredentialOptions.js";
2
3
  /**
3
4
  * This credential will use the currently logged-in user login information
4
5
  * via the Azure CLI ('az') commandline tool.
@@ -7,7 +8,7 @@ export declare class AzureCliCredential implements TokenCredential {
7
8
  /**
8
9
  * Only available in Node.js
9
10
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
11
+ constructor(_options?: AzureCliCredentialOptions);
12
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
13
  }
13
- //# sourceMappingURL=azureCliCredential-browser.d.mts.map
14
+ //# sourceMappingURL=azureCliCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureCliCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureCliCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAMhF;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,eAAe;IACxD;;OAEG;gBACS,QAAQ,CAAC,EAAE,yBAAyB;IAKhD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI9F"}
@@ -11,13 +11,13 @@ export class AzureCliCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=azureCliCredential-browser.mjs.map
23
+ //# sourceMappingURL=azureCliCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureCliCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureCliCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;AAClG,MAAM,MAAM,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC7B;;OAEG;IACH,YAAY,QAAoC;QAC9C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QAC7D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { AzureCliCredentialOptions } from \"./azureCliCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\"AzureCliCredential is not supported in the browser.\");\nconst logger = credentialLogger(\"AzureCliCredential\");\n\n/**\n * This credential will use the currently logged-in user login information\n * via the Azure CLI ('az') commandline tool.\n */\nexport class AzureCliCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(_options?: AzureCliCredentialOptions) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { AzureDeveloperCliCredentialOptions } from "./azureDeveloperCliCredentialOptions.js";
2
3
  /**
3
4
  * This credential will use the currently logged-in user login information
4
5
  * via the Azure Developer CLI ('azd') commandline tool.
@@ -7,7 +8,7 @@ export declare class AzureDeveloperCliCredential implements TokenCredential {
7
8
  /**
8
9
  * Only available in Node.js
9
10
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
11
+ constructor(_options?: AzureDeveloperCliCredentialOptions);
12
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
13
  }
13
- //# sourceMappingURL=azureDeveloperCliCredential-browser.d.mts.map
14
+ //# sourceMappingURL=azureDeveloperCliCredential.d.ts.map
@@ -0,0 +1 @@
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;AACtF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAQlG;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;gBACS,QAAQ,CAAC,EAAE,kCAAkC;IAKzD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI9F"}
@@ -11,13 +11,13 @@ export class AzureDeveloperCliCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=azureDeveloperCliCredential-browser.mjs.map
23
+ //# sourceMappingURL=azureDeveloperCliCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azureDeveloperCliCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,8DAA8D,CAC/D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACH,YAAY,QAA6C;QACvD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QAC7D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { AzureDeveloperCliCredentialOptions } from \"./azureDeveloperCliCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzureDeveloperCliCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzureDeveloperCliCredential\");\n\n/**\n * This credential will use the currently logged-in user login information\n * via the Azure Developer CLI ('azd') commandline tool.\n */\nexport class AzureDeveloperCliCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(_options?: AzureDeveloperCliCredentialOptions) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { AzurePipelinesCredentialOptions } from "./azurePipelinesCredentialOptions.js";
2
3
  /**
3
4
  * Enables authentication to Microsoft Entra ID using a PEM-encoded
4
5
  * certificate that is assigned to an App Registration.
@@ -7,7 +8,7 @@ export declare class AzurePipelinesCredential implements TokenCredential {
7
8
  /**
8
9
  * Only available in Node.js
9
10
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
11
+ constructor(_tenantId: string, _clientId: string, _serviceConnectionId: string, _systemAccessToken: string, _options?: AzurePipelinesCredentialOptions);
12
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
13
  }
13
- //# sourceMappingURL=azurePipelinesCredential-browser.d.mts.map
14
+ //# sourceMappingURL=azurePipelinesCredential.d.ts.map
@@ -0,0 +1 @@
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;AACtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAQ5F;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,eAAe;IAC9D;;OAEG;gBAED,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,oBAAoB,EAAE,MAAM,EAC5B,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,CAAC,EAAE,+BAA+B;IAMrC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrG"}
@@ -11,13 +11,13 @@ export class AzurePipelinesCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_tenantId, _clientId, _serviceConnectionId, _systemAccessToken, _options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=azurePipelinesCredential-browser.mjs.map
23
+ //# sourceMappingURL=azurePipelinesCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azurePipelinesCredential.js","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,2DAA2D,CAC5D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IACnC;;OAEG;IACH,YACE,SAAiB,EACjB,SAAiB,EACjB,oBAA4B,EAC5B,kBAA0B,EAC1B,QAA0C;QAE1C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { AzurePipelinesCredentialOptions } from \"./azurePipelinesCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzurePipelinesCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzurePipelinesCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using a PEM-encoded\n * certificate that is assigned to an App Registration.\n */\nexport class AzurePipelinesCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(\n _tenantId: string,\n _clientId: string,\n _serviceConnectionId: string,\n _systemAccessToken: string,\n _options?: AzurePipelinesCredentialOptions,\n ) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { AzurePowerShellCredentialOptions } from "./azurePowerShellCredentialOptions.js";
2
3
  /**
3
4
  * This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.
4
5
  */
@@ -6,7 +7,7 @@ export declare class AzurePowerShellCredential implements TokenCredential {
6
7
  /**
7
8
  * Only available in Node.js
8
9
  */
9
- constructor();
10
- getToken(): Promise<AccessToken | null>;
10
+ constructor(_options?: AzurePowerShellCredentialOptions);
11
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
11
12
  }
12
- //# sourceMappingURL=azurePowerShellCredential-browser.d.mts.map
13
+ //# sourceMappingURL=azurePowerShellCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azurePowerShellCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAQ9F;;GAEG;AACH,qBAAa,yBAA0B,YAAW,eAAe;IAC/D;;OAEG;gBACS,QAAQ,CAAC,EAAE,gCAAgC;IAKvD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI9F"}
@@ -10,13 +10,13 @@ export class AzurePowerShellCredential {
10
10
  /**
11
11
  * Only available in Node.js
12
12
  */
13
- constructor() {
13
+ constructor(_options) {
14
14
  logger.info(formatError("", BrowserNotSupportedError));
15
15
  throw BrowserNotSupportedError;
16
16
  }
17
- getToken() {
17
+ getToken(_scopes, _options) {
18
18
  logger.getToken.info(formatError("", BrowserNotSupportedError));
19
19
  throw BrowserNotSupportedError;
20
20
  }
21
21
  }
22
- //# sourceMappingURL=azurePowerShellCredential-browser.mjs.map
22
+ //# sourceMappingURL=azurePowerShellCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"azurePowerShellCredential.js","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,4DAA4D,CAC7D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,YAAY,QAA2C;QACrD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QAC7D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { AzurePowerShellCredentialOptions } from \"./azurePowerShellCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzurePowerShellCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzurePowerShellCredential\");\n\n/**\n * This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.\n */\nexport class AzurePowerShellCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(_options?: AzurePowerShellCredentialOptions) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { ClientAssertionCredentialOptions } from "./clientAssertionCredentialOptions.js";
2
3
  /**
3
4
  * Authenticates a service principal with a JWT assertion.
4
5
  */
@@ -6,7 +7,7 @@ export declare class ClientAssertionCredential implements TokenCredential {
6
7
  /**
7
8
  * Only available in Node.js
8
9
  */
9
- constructor();
10
- getToken(): Promise<AccessToken | null>;
10
+ constructor(_tenantId: string, _clientId: string, _getAssertion: () => Promise<string>, _options?: ClientAssertionCredentialOptions);
11
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
11
12
  }
12
- //# sourceMappingURL=clientAssertionCredential-browser.d.mts.map
13
+ //# sourceMappingURL=clientAssertionCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientAssertionCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAQ9F;;GAEG;AACH,qBAAa,yBAA0B,YAAW,eAAe;IAC/D;;OAEG;gBAED,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,EACpC,QAAQ,CAAC,EAAE,gCAAgC;IAMtC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrG"}
@@ -10,13 +10,13 @@ export class ClientAssertionCredential {
10
10
  /**
11
11
  * Only available in Node.js
12
12
  */
13
- constructor() {
13
+ constructor(_tenantId, _clientId, _getAssertion, _options) {
14
14
  logger.info(formatError("", BrowserNotSupportedError));
15
15
  throw BrowserNotSupportedError;
16
16
  }
17
- getToken() {
17
+ getToken(_scopes, _options) {
18
18
  logger.getToken.info(formatError("", BrowserNotSupportedError));
19
19
  throw BrowserNotSupportedError;
20
20
  }
21
21
  }
22
- //# sourceMappingURL=clientAssertionCredential-browser.mjs.map
22
+ //# sourceMappingURL=clientAssertionCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientAssertionCredential.js","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,4DAA4D,CAC7D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,YACE,SAAiB,EACjB,SAAiB,EACjB,aAAoC,EACpC,QAA2C;QAE3C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { ClientAssertionCredentialOptions } from \"./clientAssertionCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"ClientAssertionCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"ClientAssertionCredential\");\n\n/**\n * Authenticates a service principal with a JWT assertion.\n */\nexport class ClientAssertionCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(\n _tenantId: string,\n _clientId: string,\n _getAssertion: () => Promise<string>,\n _options?: ClientAssertionCredentialOptions,\n ) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,6 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { ClientCertificateCredentialOptions } from "./clientCertificateCredentialOptions.js";
3
+ import type { ClientCertificateCredentialPEMConfiguration } from "./clientCertificateCredentialModels.js";
2
4
  /**
3
5
  * Enables authentication to Microsoft Entra ID using a PEM-encoded
4
6
  * certificate that is assigned to an App Registration.
@@ -7,7 +9,7 @@ export declare class ClientCertificateCredential implements TokenCredential {
7
9
  /**
8
10
  * Only available in Node.js
9
11
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
12
+ constructor(_tenantId: string, _clientId: string, _certificatePathOrConfiguration: string | ClientCertificateCredentialPEMConfiguration, _options?: ClientCertificateCredentialOptions);
13
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
14
  }
13
- //# sourceMappingURL=clientCertificateCredential-browser.d.mts.map
15
+ //# sourceMappingURL=clientCertificateCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientCertificateCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,wCAAwC,CAAC;AAQ1G;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;gBAED,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,+BAA+B,EAAE,MAAM,GAAG,2CAA2C,EACrF,QAAQ,CAAC,EAAE,kCAAkC;IAMxC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrG"}
@@ -11,13 +11,13 @@ export class ClientCertificateCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_tenantId, _clientId, _certificatePathOrConfiguration, _options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=clientCertificateCredential-browser.mjs.map
23
+ //# sourceMappingURL=clientCertificateCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientCertificateCredential.js","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,8DAA8D,CAC/D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACH,YACE,SAAiB,EACjB,SAAiB,EACjB,+BAAqF,EACrF,QAA6C;QAE7C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { ClientCertificateCredentialOptions } from \"./clientCertificateCredentialOptions.js\";\nimport type { ClientCertificateCredentialPEMConfiguration } from \"./clientCertificateCredentialModels.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"ClientCertificateCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"ClientCertificateCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using a PEM-encoded\n * certificate that is assigned to an App Registration.\n */\nexport class ClientCertificateCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(\n _tenantId: string,\n _clientId: string,\n _certificatePathOrConfiguration: string | ClientCertificateCredentialPEMConfiguration,\n _options?: ClientCertificateCredentialOptions,\n ) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -37,4 +37,4 @@ export declare class ClientSecretCredential implements TokenCredential {
37
37
  */
38
38
  getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
39
39
  }
40
- //# sourceMappingURL=clientSecretCredential-browser.d.mts.map
40
+ //# sourceMappingURL=clientSecretCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientSecretCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientSecretCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOtF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAWxF;;;;;;;GAOG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;;;;;;OASG;gBAED,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B;IAWzC;;;;;;;;;OASG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CA2C/B"}
@@ -85,4 +85,4 @@ export class ClientSecretCredential {
85
85
  });
86
86
  }
87
87
  }
88
- //# sourceMappingURL=clientSecretCredential-browser.mjs.map
88
+ //# sourceMappingURL=clientSecretCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientSecretCredential.js","sourceRoot":"","sources":["../../../src/credentials/clientSecretCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EACL,yBAAyB,EACzB,mCAAmC,GACpC,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,GAAG,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAE1D,2EAA2E;AAC3E,mGAAmG;AACnG,wDAAwD;AAExD;;;;;;;GAOG;AACH,MAAM,OAAO,sBAAsB;IACzB,cAAc,CAAiB;IAC/B,QAAQ,CAAS;IACjB,4BAA4B,CAAW;IACvC,QAAQ,CAAS;IACjB,YAAY,CAAS;IAE7B;;;;;;;;;OASG;IACH,YACE,QAAgB,EAChB,QAAgB,EAChB,YAAoB,EACpB,OAAuC;QAEvC,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,4BAA4B,GAAG,mCAAmC,CACrE,OAAO,EAAE,0BAA0B,CACpC,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,QAAQ,CACnB,MAAyB,EACzB,UAA2B,EAAE;QAE7B,OAAO,aAAa,CAAC,QAAQ,CAC3B,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,WAAW,EACnC,OAAO,EACP,KAAK,EAAE,UAAU,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,yBAAyB,CACxC,IAAI,CAAC,QAAQ,EACb,UAAU,EACV,IAAI,CAAC,4BAA4B,CAClC,CAAC;YAEF,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC;gBAChC,aAAa,EAAE,OAAO;gBACtB,UAAU,EAAE,oBAAoB;gBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;gBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;gBAChC,KAAK,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aAC9D,CAAC,CAAC;YAEH,IAAI,CAAC;gBACH,MAAM,SAAS,GAAG,8BAA8B,CAAC,QAAS,CAAC,CAAC;gBAC5D,MAAM,OAAO,GAAG,qBAAqB,CAAC;oBACpC,GAAG,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,IAAI,QAAS,IAAI,SAAS,EAAE;oBACrE,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACtB,OAAO,EAAE,iBAAiB,CAAC;wBACzB,MAAM,EAAE,kBAAkB;wBAC1B,cAAc,EAAE,mCAAmC;qBACpD,CAAC;oBACF,WAAW,EAAE,OAAO,IAAI,OAAO,CAAC,WAAW;oBAC3C,cAAc,EAAE,UAAU,EAAE,cAAc;iBAC3C,CAAC,CAAC;gBAEH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;gBAC1E,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC5C,OAAO,CAAC,aAAa,IAAI,aAAa,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;YAC9D,CAAC;YAAC,OAAO,GAAQ,EAAE,CAAC;gBAClB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;gBAC/C,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport { createHttpHeaders, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { credentialLogger, formatError, formatSuccess } from \"../util/logging.js\";\nimport {\n processMultiTenantRequest,\n resolveAdditionallyAllowedTenantIds,\n} from \"../util/tenantIdUtils.js\";\nimport type { ClientSecretCredentialOptions } from \"./clientSecretCredentialOptions.js\";\nimport { IdentityClient } from \"../client/identityClient.js\";\nimport { getIdentityTokenEndpointSuffix } from \"../util/identityTokenEndpoint.js\";\nimport { tracingClient } from \"../util/tracing.js\";\n\nconst logger = credentialLogger(\"ClientSecretCredential\");\n\n// This credential is exported on browser bundles for development purposes.\n// For this credential to work in browsers, browsers would need to have security features disabled.\n// Please do not disable your browser security features.\n\n/**\n * Enables authentication to Microsoft Entra ID using a client secret\n * that was generated for an App Registration. More information on how\n * to configure a client secret can be found here:\n *\n * https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application\n *\n */\nexport class ClientSecretCredential implements TokenCredential {\n private identityClient: IdentityClient;\n private tenantId: string;\n private additionallyAllowedTenantIds: string[];\n private clientId: string;\n private clientSecret: string;\n\n /**\n * Creates an instance of the ClientSecretCredential with the details\n * needed to authenticate against Microsoft Entra ID with a client\n * secret.\n *\n * @param tenantId - The Microsoft Entra tenant (directory) ID.\n * @param clientId - The client (application) ID of an App Registration in the tenant.\n * @param clientSecret - A client secret that was generated for the App Registration.\n * @param options - Options for configuring the client which makes the authentication request.\n */\n constructor(\n tenantId: string,\n clientId: string,\n clientSecret: string,\n options?: ClientSecretCredentialOptions,\n ) {\n this.identityClient = new IdentityClient(options);\n this.tenantId = tenantId;\n this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(\n options?.additionallyAllowedTenants,\n );\n this.clientId = clientId;\n this.clientSecret = clientSecret;\n }\n\n /**\n * Authenticates with Microsoft Entra ID and returns an access token if\n * successful. If authentication cannot be performed at this time, this method may\n * return null. If an error occurs during authentication, an {@link AuthenticationError}\n * containing failure details will be thrown.\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 | null> {\n return tracingClient.withSpan(\n `${this.constructor.name}.getToken`,\n options,\n async (newOptions) => {\n const tenantId = processMultiTenantRequest(\n this.tenantId,\n newOptions,\n this.additionallyAllowedTenantIds,\n );\n\n const query = new URLSearchParams({\n response_type: \"token\",\n grant_type: \"client_credentials\",\n client_id: this.clientId,\n client_secret: this.clientSecret,\n scope: typeof scopes === \"string\" ? scopes : scopes.join(\" \"),\n });\n\n try {\n const urlSuffix = getIdentityTokenEndpointSuffix(tenantId!);\n const request = createPipelineRequest({\n url: `${this.identityClient.authorityHost}/${tenantId!}/${urlSuffix}`,\n method: \"POST\",\n body: query.toString(),\n headers: createHttpHeaders({\n Accept: \"application/json\",\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n }),\n abortSignal: options && options.abortSignal,\n tracingOptions: newOptions?.tracingOptions,\n });\n\n const tokenResponse = await this.identityClient.sendTokenRequest(request);\n logger.getToken.info(formatSuccess(scopes));\n return (tokenResponse && tokenResponse.accessToken) || null;\n } catch (err: any) {\n logger.getToken.info(formatError(scopes, err));\n throw err;\n }\n },\n );\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { AccessToken } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions } from "@azure/core-auth";
2
2
  import { ChainedTokenCredential } from "./chainedTokenCredential.js";
3
3
  import type { TokenCredentialOptions } from "../tokenCredentialOptions.js";
4
4
  /**
@@ -14,6 +14,6 @@ export declare class DefaultAzureCredential extends ChainedTokenCredential {
14
14
  * @param options - Options for configuring the client which makes the authentication request.
15
15
  */
16
16
  constructor(_tokenCredentialOptions?: TokenCredentialOptions);
17
- getToken(): Promise<AccessToken>;
17
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken>;
18
18
  }
19
- //# sourceMappingURL=defaultAzureCredential-browser.d.mts.map
19
+ //# sourceMappingURL=defaultAzureCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultAzureCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredential.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAO3E;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,sBAAsB;IAChE;;;;OAIG;gBACS,uBAAuB,CAAC,EAAE,sBAAsB;IAMrD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CAI9F"}
@@ -21,9 +21,9 @@ export class DefaultAzureCredential extends ChainedTokenCredential {
21
21
  logger.info(formatError("", BrowserNotSupportedError));
22
22
  throw BrowserNotSupportedError;
23
23
  }
24
- getToken() {
24
+ getToken(_scopes, _options) {
25
25
  logger.getToken.info(formatError("", BrowserNotSupportedError));
26
26
  throw BrowserNotSupportedError;
27
27
  }
28
28
  }
29
- //# sourceMappingURL=defaultAzureCredential-browser.mjs.map
29
+ //# sourceMappingURL=defaultAzureCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultAzureCredential.js","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,mGAAmG,CACpG,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,sBAAsB;IAChE;;;;OAIG;IACH,YAAY,uBAAgD;QAC1D,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport type { AccessToken, GetTokenOptions } from \"@azure/core-auth\";\nimport { ChainedTokenCredential } from \"./chainedTokenCredential.js\";\nimport type { TokenCredentialOptions } from \"../tokenCredentialOptions.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead.\",\n);\nconst logger = credentialLogger(\"DefaultAzureCredential\");\n\n/**\n * Provides a default {@link ChainedTokenCredential} configuration for\n * applications that will be deployed to Azure.\n *\n * Only available in Node.js.\n */\nexport class DefaultAzureCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the DefaultAzureCredential class.\n *\n * @param options - Options for configuring the client which makes the authentication request.\n */\n constructor(_tokenCredentialOptions?: TokenCredentialOptions) {\n super();\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -44,8 +44,8 @@ export interface DefaultAzureCredentialOptions extends MultiTenantTokenCredentia
44
44
  */
45
45
  tenantId?: string;
46
46
  /**
47
- * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowershellCredential},
48
- * {@link AzureDeveloperCliCredential} and {@link AzureCliCredential}.
47
+ * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowerShellCredential},
48
+ * {@link AzureDeveloperCliCredential}, and {@link AzureCliCredential}.
49
49
  * Process timeout for credentials should be provided in milliseconds.
50
50
  */
51
51
  processTimeoutInMs?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultAzureCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n * This variation supports `managedIdentityClientId` and not `managedIdentityResourceId`, since only one of both is supported.\n */\nexport interface DefaultAzureCredentialClientIdOptions extends DefaultAzureCredentialOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link WorkloadIdentityCredential}.\n * This client ID can also be passed through to the {@link WorkloadIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n workloadIdentityClientId?: string;\n}\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n * This variation supports `managedIdentityResourceId` and not `managedIdentityClientId`, since only one of both is supported.\n */\nexport interface DefaultAzureCredentialResourceIdOptions extends DefaultAzureCredentialOptions {\n /**\n * Optionally pass in a resource ID to be used by the {@link ManagedIdentityCredential}.\n * In scenarios such as when user assigned identities are created using an ARM template,\n * where the resource Id of the identity is known but the client Id can't be known ahead of time,\n * this parameter allows programs to use these user assigned identities\n * without having to first determine the client Id of the created identity.\n */\n managedIdentityResourceId: string;\n}\n\n/**\n * The commonly supported environment variables for the {@link DefaultAzureCredential} class.\n */\nexport type DefaultAzureCredentialEnvVars =\n | \"AZURE_TOKEN_CREDENTIALS\"\n | \"AZURE_CLIENT_ID\"\n | \"AZURE_TENANT_ID\"\n | \"AZURE_CLIENT_SECRET\"\n | \"AZURE_CLIENT_CERTIFICATE_PATH\"\n | \"AZURE_CLIENT_CERTIFICATE_PASSWORD\"\n | \"AZURE_ADDITIONALLY_ALLOWED_TENANTS\"\n | \"AZURE_CLIENT_SEND_CERTIFICATE_CHAIN\"\n | \"AZURE_FEDERATED_TOKEN_FILE\";\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n */\nexport interface DefaultAzureCredentialOptions\n extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {\n /**\n * Optionally pass in a Tenant ID to be used as part of the credential.\n * By default it may use a generic tenant ID depending on the underlying credential.\n */\n tenantId?: string;\n\n /**\n * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowershellCredential},\n * {@link AzureDeveloperCliCredential} and {@link AzureCliCredential}.\n * Process timeout for credentials should be provided in milliseconds.\n */\n processTimeoutInMs?: number;\n /**\n * List of environment variables that must be defined at runtime.\n * If any variable in this list is missing or set to an empty value,\n * {@link DefaultAzureCredential} constructor will throw an error.\n * Use this to enforce that your application has the necessary environment configuration before\n * continuing execution.\n */\n requiredEnvVars?: DefaultAzureCredentialEnvVars | DefaultAzureCredentialEnvVars[];\n}\n"]}
1
+ {"version":3,"file":"defaultAzureCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n * This variation supports `managedIdentityClientId` and not `managedIdentityResourceId`, since only one of both is supported.\n */\nexport interface DefaultAzureCredentialClientIdOptions extends DefaultAzureCredentialOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link WorkloadIdentityCredential}.\n * This client ID can also be passed through to the {@link WorkloadIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n workloadIdentityClientId?: string;\n}\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n * This variation supports `managedIdentityResourceId` and not `managedIdentityClientId`, since only one of both is supported.\n */\nexport interface DefaultAzureCredentialResourceIdOptions extends DefaultAzureCredentialOptions {\n /**\n * Optionally pass in a resource ID to be used by the {@link ManagedIdentityCredential}.\n * In scenarios such as when user assigned identities are created using an ARM template,\n * where the resource Id of the identity is known but the client Id can't be known ahead of time,\n * this parameter allows programs to use these user assigned identities\n * without having to first determine the client Id of the created identity.\n */\n managedIdentityResourceId: string;\n}\n\n/**\n * The commonly supported environment variables for the {@link DefaultAzureCredential} class.\n */\nexport type DefaultAzureCredentialEnvVars =\n | \"AZURE_TOKEN_CREDENTIALS\"\n | \"AZURE_CLIENT_ID\"\n | \"AZURE_TENANT_ID\"\n | \"AZURE_CLIENT_SECRET\"\n | \"AZURE_CLIENT_CERTIFICATE_PATH\"\n | \"AZURE_CLIENT_CERTIFICATE_PASSWORD\"\n | \"AZURE_ADDITIONALLY_ALLOWED_TENANTS\"\n | \"AZURE_CLIENT_SEND_CERTIFICATE_CHAIN\"\n | \"AZURE_FEDERATED_TOKEN_FILE\";\n\n/**\n * Provides options to configure the {@link DefaultAzureCredential} class.\n */\nexport interface DefaultAzureCredentialOptions\n extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {\n /**\n * Optionally pass in a Tenant ID to be used as part of the credential.\n * By default it may use a generic tenant ID depending on the underlying credential.\n */\n tenantId?: string;\n\n /**\n * Timeout configurable for making token requests for developer credentials, namely, {@link AzurePowerShellCredential},\n * {@link AzureDeveloperCliCredential}, and {@link AzureCliCredential}.\n * Process timeout for credentials should be provided in milliseconds.\n */\n processTimeoutInMs?: number;\n /**\n * List of environment variables that must be defined at runtime.\n * If any variable in this list is missing or set to an empty value,\n * {@link DefaultAzureCredential} constructor will throw an error.\n * Use this to enforce that your application has the necessary environment configuration before\n * continuing execution.\n */\n requiredEnvVars?: DefaultAzureCredentialEnvVars | DefaultAzureCredentialEnvVars[];\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { DeviceCodeCredentialOptions } from "./deviceCodeCredentialOptions.js";
2
3
  /**
3
4
  * Enables authentication to Microsoft Entra ID using a device code
4
5
  * that the user can enter into https://microsoft.com/devicelogin.
@@ -7,7 +8,7 @@ export declare class DeviceCodeCredential implements TokenCredential {
7
8
  /**
8
9
  * Only available in Node.js
9
10
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
11
+ constructor(_options?: DeviceCodeCredentialOptions);
12
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
13
  }
13
- //# sourceMappingURL=deviceCodeCredential-browser.d.mts.map
14
+ //# sourceMappingURL=deviceCodeCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceCodeCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/deviceCodeCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAOpF;;;GAGG;AACH,qBAAa,oBAAqB,YAAW,eAAe;IAC1D;;OAEG;gBACS,QAAQ,CAAC,EAAE,2BAA2B;IAK3C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIrG"}
@@ -11,13 +11,13 @@ export class DeviceCodeCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=deviceCodeCredential-browser.mjs.map
23
+ //# sourceMappingURL=deviceCodeCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceCodeCredential.js","sourceRoot":"","sources":["../../../src/credentials/deviceCodeCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;AACpG,MAAM,MAAM,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH,YAAY,QAAsC;QAChD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QACpE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { DeviceCodeCredentialOptions } from \"./deviceCodeCredentialOptions.js\";\n\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\"DeviceCodeCredential is not supported in the browser.\");\nconst logger = credentialLogger(\"DeviceCodeCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using a device code\n * that the user can enter into https://microsoft.com/devicelogin.\n */\nexport class DeviceCodeCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(_options?: DeviceCodeCredentialOptions) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -1,4 +1,5 @@
1
- import type { AccessToken, TokenCredential } from "@azure/core-auth";
1
+ import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
2
+ import type { EnvironmentCredentialOptions } from "./environmentCredentialOptions.js";
2
3
  /**
3
4
  * Enables authentication to Microsoft Entra ID using client secret
4
5
  * details configured in environment variables
@@ -7,7 +8,7 @@ export declare class EnvironmentCredential implements TokenCredential {
7
8
  /**
8
9
  * Only available in Node.js
9
10
  */
10
- constructor();
11
- getToken(): Promise<AccessToken | null>;
11
+ constructor(_options?: EnvironmentCredentialOptions);
12
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
12
13
  }
13
- //# sourceMappingURL=environmentCredential-browser.d.mts.map
14
+ //# sourceMappingURL=environmentCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/environmentCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAQtF;;;GAGG;AACH,qBAAa,qBAAsB,YAAW,eAAe;IAC3D;;OAEG;gBACS,QAAQ,CAAC,EAAE,4BAA4B;IAKnD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI9F"}
@@ -11,13 +11,13 @@ export class EnvironmentCredential {
11
11
  /**
12
12
  * Only available in Node.js
13
13
  */
14
- constructor() {
14
+ constructor(_options) {
15
15
  logger.info(formatError("", BrowserNotSupportedError));
16
16
  throw BrowserNotSupportedError;
17
17
  }
18
- getToken() {
18
+ getToken(_scopes, _options) {
19
19
  logger.getToken.info(formatError("", BrowserNotSupportedError));
20
20
  throw BrowserNotSupportedError;
21
21
  }
22
22
  }
23
- //# sourceMappingURL=environmentCredential-browser.mjs.map
23
+ //# sourceMappingURL=environmentCredential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentCredential.js","sourceRoot":"","sources":["../../../src/credentials/environmentCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,wDAAwD,CACzD,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IAChC;;OAEG;IACH,YAAY,QAAuC;QACjD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAA0B,EAAE,QAA0B;QAC7D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, GetTokenOptions, TokenCredential } from \"@azure/core-auth\";\nimport type { EnvironmentCredentialOptions } from \"./environmentCredentialOptions.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"EnvironmentCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"EnvironmentCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using client secret\n * details configured in environment variables\n */\nexport class EnvironmentCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(_options?: EnvironmentCredentialOptions) {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
@@ -50,4 +50,4 @@ export declare class InteractiveBrowserCredential implements TokenCredential {
50
50
  */
51
51
  authenticate(scopes: string | string[], options?: GetTokenOptions): Promise<AuthenticationRecord | undefined>;
52
52
  }
53
- //# sourceMappingURL=interactiveBrowserCredential-browser.d.mts.map
53
+ //# sourceMappingURL=interactiveBrowserCredential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactiveBrowserCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/interactiveBrowserCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,KAAK,EACV,4CAA4C,EAC5C,uCAAuC,EACxC,MAAM,0CAA0C,CAAC;AAOlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAS7D;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,eAAe;IAClE,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,8BAA8B,CAAC,CAAU;IAEjD;;;;;;;;;;;;;OAaG;gBAED,OAAO,EAAE,4CAA4C,GAAG,uCAAuC;IA0CjG;;;;;;;;;;;OAWG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAqB9F;;;;;;;;;OASG;IACG,YAAY,CAChB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;CAW7C"}