@azure/identity 4.5.1-alpha.20250114.1 → 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 +80 -66
  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,238 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { AuthenticationRequiredError, CredentialUnavailableError } from "../errors.js";
4
- import { credentialLogger, formatError } from "../util/logging.js";
5
- import { DefaultAuthority, DefaultAuthorityHost, DefaultTenantId } from "../constants.js";
6
- import { randomUUID as coreRandomUUID, isNode, isNodeLike } from "@azure/core-util";
7
- import { AbortError } from "@azure/abort-controller";
8
- import { msalCommon } from "./msal.js";
9
- /**
10
- * @internal
11
- */
12
- const logger = credentialLogger("IdentityUtils");
13
- /**
14
- * Latest AuthenticationRecord version
15
- * @internal
16
- */
17
- const LatestAuthenticationRecordVersion = "1.0";
18
- /**
19
- * Ensures the validity of the MSAL token
20
- * @internal
21
- */
22
- export function ensureValidMsalToken(scopes, msalToken, getTokenOptions) {
23
- const error = (message) => {
24
- logger.getToken.info(message);
25
- return new AuthenticationRequiredError({
26
- scopes: Array.isArray(scopes) ? scopes : [scopes],
27
- getTokenOptions,
28
- message,
29
- });
30
- };
31
- if (!msalToken) {
32
- throw error("No response");
33
- }
34
- if (!msalToken.expiresOn) {
35
- throw error(`Response had no "expiresOn" property.`);
36
- }
37
- if (!msalToken.accessToken) {
38
- throw error(`Response had no "accessToken" property.`);
39
- }
40
- }
41
- /**
42
- * Returns the authority host from either the options bag or the AZURE_AUTHORITY_HOST environment variable.
43
- *
44
- * Defaults to {@link DefaultAuthorityHost}.
45
- * @internal
46
- */
47
- export function getAuthorityHost(options) {
48
- let authorityHost = options === null || options === void 0 ? void 0 : options.authorityHost;
49
- if (!authorityHost && isNodeLike) {
50
- authorityHost = process.env.AZURE_AUTHORITY_HOST;
51
- }
52
- return authorityHost !== null && authorityHost !== void 0 ? authorityHost : DefaultAuthorityHost;
53
- }
54
- /**
55
- * Generates a valid authority by combining a host with a tenantId.
56
- * @internal
57
- */
58
- export function getAuthority(tenantId, host) {
59
- if (!host) {
60
- host = DefaultAuthorityHost;
61
- }
62
- if (new RegExp(`${tenantId}/?$`).test(host)) {
63
- return host;
64
- }
65
- if (host.endsWith("/")) {
66
- return host + tenantId;
67
- }
68
- else {
69
- return `${host}/${tenantId}`;
70
- }
71
- }
72
- /**
73
- * Generates the known authorities.
74
- * If the Tenant Id is `adfs`, the authority can't be validated since the format won't match the expected one.
75
- * For that reason, we have to force MSAL to disable validating the authority
76
- * by sending it within the known authorities in the MSAL configuration.
77
- * @internal
78
- */
79
- export function getKnownAuthorities(tenantId, authorityHost, disableInstanceDiscovery) {
80
- if ((tenantId === "adfs" && authorityHost) || disableInstanceDiscovery) {
81
- return [authorityHost];
82
- }
83
- return [];
84
- }
85
- /**
86
- * Generates a logger that can be passed to the MSAL clients.
87
- * @param credLogger - The logger of the credential.
88
- * @internal
89
- */
90
- export const defaultLoggerCallback = (credLogger, platform = isNode ? "Node" : "Browser") => (level, message, containsPii) => {
91
- if (containsPii) {
92
- return;
93
- }
94
- switch (level) {
95
- case msalCommon.LogLevel.Error:
96
- credLogger.info(`MSAL ${platform} V2 error: ${message}`);
97
- return;
98
- case msalCommon.LogLevel.Info:
99
- credLogger.info(`MSAL ${platform} V2 info message: ${message}`);
100
- return;
101
- case msalCommon.LogLevel.Verbose:
102
- credLogger.info(`MSAL ${platform} V2 verbose message: ${message}`);
103
- return;
104
- case msalCommon.LogLevel.Warning:
105
- credLogger.info(`MSAL ${platform} V2 warning: ${message}`);
106
- return;
107
- }
108
- };
109
- /**
110
- * @internal
111
- */
112
- export function getMSALLogLevel(logLevel) {
113
- switch (logLevel) {
114
- case "error":
115
- return msalCommon.LogLevel.Error;
116
- case "info":
117
- return msalCommon.LogLevel.Info;
118
- case "verbose":
119
- return msalCommon.LogLevel.Verbose;
120
- case "warning":
121
- return msalCommon.LogLevel.Warning;
122
- default:
123
- // default msal logging level should be Info
124
- return msalCommon.LogLevel.Info;
125
- }
126
- }
127
- /**
128
- * Wraps core-util's randomUUID in order to allow for mocking in tests.
129
- * This prepares the library for the upcoming core-util update to ESM.
130
- *
131
- * @internal
132
- * @returns A string containing a random UUID
133
- */
134
- export function randomUUID() {
135
- return coreRandomUUID();
136
- }
137
- /**
138
- * Handles MSAL errors.
139
- */
140
- export function handleMsalError(scopes, error, getTokenOptions) {
141
- if (error.name === "AuthError" ||
142
- error.name === "ClientAuthError" ||
143
- error.name === "BrowserAuthError") {
144
- const msalError = error;
145
- switch (msalError.errorCode) {
146
- case "endpoints_resolution_error":
147
- logger.info(formatError(scopes, error.message));
148
- return new CredentialUnavailableError(error.message);
149
- case "device_code_polling_cancelled":
150
- return new AbortError("The authentication has been aborted by the caller.");
151
- case "consent_required":
152
- case "interaction_required":
153
- case "login_required":
154
- logger.info(formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`));
155
- break;
156
- default:
157
- logger.info(formatError(scopes, `Failed to acquire token: ${error.message}`));
158
- break;
159
- }
160
- }
161
- if (error.name === "ClientConfigurationError" ||
162
- error.name === "BrowserConfigurationAuthError" ||
163
- error.name === "AbortError" ||
164
- error.name === "AuthenticationError") {
165
- return error;
166
- }
167
- if (error.name === "NativeAuthError") {
168
- logger.info(formatError(scopes, `Error from the native broker: ${error.message} with status code: ${error.statusCode}`));
169
- return error;
170
- }
171
- return new AuthenticationRequiredError({ scopes, getTokenOptions, message: error.message });
172
- }
173
- // transformations
174
- export function publicToMsal(account) {
175
- return {
176
- localAccountId: account.homeAccountId,
177
- environment: account.authority,
178
- username: account.username,
179
- homeAccountId: account.homeAccountId,
180
- tenantId: account.tenantId,
181
- };
182
- }
183
- export function msalToPublic(clientId, account) {
184
- var _a;
185
- const record = {
186
- authority: (_a = account.environment) !== null && _a !== void 0 ? _a : DefaultAuthority,
187
- homeAccountId: account.homeAccountId,
188
- tenantId: account.tenantId || DefaultTenantId,
189
- username: account.username,
190
- clientId,
191
- version: LatestAuthenticationRecordVersion,
192
- };
193
- return record;
194
- }
195
- /**
196
- * Serializes an `AuthenticationRecord` into a string.
197
- *
198
- * The output of a serialized authentication record will contain the following properties:
199
- *
200
- * - "authority"
201
- * - "homeAccountId"
202
- * - "clientId"
203
- * - "tenantId"
204
- * - "username"
205
- * - "version"
206
- *
207
- * To later convert this string to a serialized `AuthenticationRecord`, please use the exported function `deserializeAuthenticationRecord()`.
208
- */
209
- export function serializeAuthenticationRecord(record) {
210
- return JSON.stringify(record);
211
- }
212
- /**
213
- * Deserializes a previously serialized authentication record from a string into an object.
214
- *
215
- * The input string must contain the following properties:
216
- *
217
- * - "authority"
218
- * - "homeAccountId"
219
- * - "clientId"
220
- * - "tenantId"
221
- * - "username"
222
- * - "version"
223
- *
224
- * If the version we receive is unsupported, an error will be thrown.
225
- *
226
- * At the moment, the only available version is: "1.0", which is always set when the authentication record is serialized.
227
- *
228
- * @param serializedRecord - Authentication record previously serialized into string.
229
- * @returns AuthenticationRecord.
230
- */
231
- export function deserializeAuthenticationRecord(serializedRecord) {
232
- const parsed = JSON.parse(serializedRecord);
233
- if (parsed.version && parsed.version !== LatestAuthenticationRecordVersion) {
234
- throw Error("Unsupported AuthenticationRecord version");
235
- }
236
- return parsed;
237
- }
238
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/msal/utils.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthenticationRecord, MsalAccountInfo, MsalToken, ValidMsalToken } from \"./types.js\";\nimport { AuthenticationRequiredError, CredentialUnavailableError } from \"../errors.js\";\nimport type { CredentialLogger } from \"../util/logging.js\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport { DefaultAuthority, DefaultAuthorityHost, DefaultTenantId } from \"../constants.js\";\nimport { randomUUID as coreRandomUUID, isNode, isNodeLike } from \"@azure/core-util\";\n\nimport { AbortError } from \"@azure/abort-controller\";\nimport type { AzureLogLevel } from \"@azure/logger\";\nimport type { GetTokenOptions } from \"@azure/core-auth\";\nimport { msalCommon } from \"./msal.js\";\n\nexport interface ILoggerCallback {\n (level: msalCommon.LogLevel, message: string, containsPii: boolean): void;\n}\n\n/**\n * @internal\n */\nconst logger = credentialLogger(\"IdentityUtils\");\n\n/**\n * Latest AuthenticationRecord version\n * @internal\n */\nconst LatestAuthenticationRecordVersion = \"1.0\";\n\n/**\n * Ensures the validity of the MSAL token\n * @internal\n */\nexport function ensureValidMsalToken(\n scopes: string | string[],\n msalToken?: MsalToken | null,\n getTokenOptions?: GetTokenOptions,\n): asserts msalToken is ValidMsalToken {\n const error = (message: string): Error => {\n logger.getToken.info(message);\n return new AuthenticationRequiredError({\n scopes: Array.isArray(scopes) ? scopes : [scopes],\n getTokenOptions,\n message,\n });\n };\n if (!msalToken) {\n throw error(\"No response\");\n }\n if (!msalToken.expiresOn) {\n throw error(`Response had no \"expiresOn\" property.`);\n }\n if (!msalToken.accessToken) {\n throw error(`Response had no \"accessToken\" property.`);\n }\n}\n\n/**\n * Returns the authority host from either the options bag or the AZURE_AUTHORITY_HOST environment variable.\n *\n * Defaults to {@link DefaultAuthorityHost}.\n * @internal\n */\nexport function getAuthorityHost(options?: { authorityHost?: string }): string {\n let authorityHost = options?.authorityHost;\n\n if (!authorityHost && isNodeLike) {\n authorityHost = process.env.AZURE_AUTHORITY_HOST;\n }\n\n return authorityHost ?? DefaultAuthorityHost;\n}\n\n/**\n * Generates a valid authority by combining a host with a tenantId.\n * @internal\n */\nexport function getAuthority(tenantId: string, host?: string): string {\n if (!host) {\n host = DefaultAuthorityHost;\n }\n if (new RegExp(`${tenantId}/?$`).test(host)) {\n return host;\n }\n if (host.endsWith(\"/\")) {\n return host + tenantId;\n } else {\n return `${host}/${tenantId}`;\n }\n}\n\n/**\n * Generates the known authorities.\n * If the Tenant Id is `adfs`, the authority can't be validated since the format won't match the expected one.\n * For that reason, we have to force MSAL to disable validating the authority\n * by sending it within the known authorities in the MSAL configuration.\n * @internal\n */\nexport function getKnownAuthorities(\n tenantId: string,\n authorityHost: string,\n disableInstanceDiscovery?: boolean,\n): string[] {\n if ((tenantId === \"adfs\" && authorityHost) || disableInstanceDiscovery) {\n return [authorityHost];\n }\n return [];\n}\n\n/**\n * Generates a logger that can be passed to the MSAL clients.\n * @param credLogger - The logger of the credential.\n * @internal\n */\nexport const defaultLoggerCallback: (\n logger: CredentialLogger,\n platform?: \"Node\" | \"Browser\",\n) => ILoggerCallback =\n (credLogger: CredentialLogger, platform: \"Node\" | \"Browser\" = isNode ? \"Node\" : \"Browser\") =>\n (level, message, containsPii): void => {\n if (containsPii) {\n return;\n }\n switch (level) {\n case msalCommon.LogLevel.Error:\n credLogger.info(`MSAL ${platform} V2 error: ${message}`);\n return;\n case msalCommon.LogLevel.Info:\n credLogger.info(`MSAL ${platform} V2 info message: ${message}`);\n return;\n case msalCommon.LogLevel.Verbose:\n credLogger.info(`MSAL ${platform} V2 verbose message: ${message}`);\n return;\n case msalCommon.LogLevel.Warning:\n credLogger.info(`MSAL ${platform} V2 warning: ${message}`);\n return;\n }\n };\n\n/**\n * @internal\n */\nexport function getMSALLogLevel(logLevel: AzureLogLevel | undefined): msalCommon.LogLevel {\n switch (logLevel) {\n case \"error\":\n return msalCommon.LogLevel.Error;\n case \"info\":\n return msalCommon.LogLevel.Info;\n case \"verbose\":\n return msalCommon.LogLevel.Verbose;\n case \"warning\":\n return msalCommon.LogLevel.Warning;\n default:\n // default msal logging level should be Info\n return msalCommon.LogLevel.Info;\n }\n}\n\n/**\n * Wraps core-util's randomUUID in order to allow for mocking in tests.\n * This prepares the library for the upcoming core-util update to ESM.\n *\n * @internal\n * @returns A string containing a random UUID\n */\nexport function randomUUID(): string {\n return coreRandomUUID();\n}\n\n/**\n * Handles MSAL errors.\n */\nexport function handleMsalError(\n scopes: string[],\n error: Error,\n getTokenOptions?: GetTokenOptions,\n): Error {\n if (\n error.name === \"AuthError\" ||\n error.name === \"ClientAuthError\" ||\n error.name === \"BrowserAuthError\"\n ) {\n const msalError = error as msalCommon.AuthError;\n switch (msalError.errorCode) {\n case \"endpoints_resolution_error\":\n logger.info(formatError(scopes, error.message));\n return new CredentialUnavailableError(error.message);\n case \"device_code_polling_cancelled\":\n return new AbortError(\"The authentication has been aborted by the caller.\");\n case \"consent_required\":\n case \"interaction_required\":\n case \"login_required\":\n logger.info(\n formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`),\n );\n break;\n default:\n logger.info(formatError(scopes, `Failed to acquire token: ${error.message}`));\n break;\n }\n }\n if (\n error.name === \"ClientConfigurationError\" ||\n error.name === \"BrowserConfigurationAuthError\" ||\n error.name === \"AbortError\" ||\n error.name === \"AuthenticationError\"\n ) {\n return error;\n }\n if (error.name === \"NativeAuthError\") {\n logger.info(\n formatError(\n scopes,\n `Error from the native broker: ${error.message} with status code: ${\n (error as any).statusCode\n }`,\n ),\n );\n return error;\n }\n return new AuthenticationRequiredError({ scopes, getTokenOptions, message: error.message });\n}\n\n// transformations\nexport function publicToMsal(account: AuthenticationRecord): msalCommon.AccountInfo {\n return {\n localAccountId: account.homeAccountId,\n environment: account.authority,\n username: account.username,\n homeAccountId: account.homeAccountId,\n tenantId: account.tenantId,\n };\n}\n\nexport function msalToPublic(clientId: string, account: MsalAccountInfo): AuthenticationRecord {\n const record = {\n authority: account.environment ?? DefaultAuthority,\n homeAccountId: account.homeAccountId,\n tenantId: account.tenantId || DefaultTenantId,\n username: account.username,\n clientId,\n version: LatestAuthenticationRecordVersion,\n };\n return record;\n}\n\n/**\n * Serializes an `AuthenticationRecord` into a string.\n *\n * The output of a serialized authentication record will contain the following properties:\n *\n * - \"authority\"\n * - \"homeAccountId\"\n * - \"clientId\"\n * - \"tenantId\"\n * - \"username\"\n * - \"version\"\n *\n * To later convert this string to a serialized `AuthenticationRecord`, please use the exported function `deserializeAuthenticationRecord()`.\n */\nexport function serializeAuthenticationRecord(record: AuthenticationRecord): string {\n return JSON.stringify(record);\n}\n\n/**\n * Deserializes a previously serialized authentication record from a string into an object.\n *\n * The input string must contain the following properties:\n *\n * - \"authority\"\n * - \"homeAccountId\"\n * - \"clientId\"\n * - \"tenantId\"\n * - \"username\"\n * - \"version\"\n *\n * If the version we receive is unsupported, an error will be thrown.\n *\n * At the moment, the only available version is: \"1.0\", which is always set when the authentication record is serialized.\n *\n * @param serializedRecord - Authentication record previously serialized into string.\n * @returns AuthenticationRecord.\n */\nexport function deserializeAuthenticationRecord(serializedRecord: string): AuthenticationRecord {\n const parsed: AuthenticationRecord & { version?: string } = JSON.parse(serializedRecord);\n\n if (parsed.version && parsed.version !== LatestAuthenticationRecordVersion) {\n throw Error(\"Unsupported AuthenticationRecord version\");\n }\n\n return parsed;\n}\n"]}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,28 +0,0 @@
1
- import type { IdentityPlugin } from "./provider.js";
2
- /**
3
- * Extend Azure Identity with additional functionality. Pass a plugin from
4
- * a plugin package, such as:
5
- *
6
- * - `@azure/identity-cache-persistence`: provides persistent token caching
7
- * - `@azure/identity-vscode`: provides the dependencies of
8
- * `VisualStudioCodeCredential` and enables it
9
- *
10
- * Example:
11
- *
12
- * ```ts snippet:consumer_example
13
- * import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
14
- *
15
- * useIdentityPlugin(cachePersistencePlugin);
16
- * // The plugin has the capability to extend `DeviceCodeCredential` and to
17
- * // add middleware to the underlying credentials, such as persistence.
18
- * const credential = new DeviceCodeCredential({
19
- * tokenCachePersistenceOptions: {
20
- * enabled: true,
21
- * },
22
- * });
23
- * ```
24
- *
25
- * @param plugin - the plugin to register
26
- */
27
- export declare function useIdentityPlugin(plugin: IdentityPlugin): void;
28
- //# sourceMappingURL=consumer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consumer.d.ts","sourceRoot":"","sources":["../../../src/plugins/consumer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAsB,cAAc,EAAE,MAAM,eAAe,CAAC;AAmBxE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAE9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"consumer.js","sourceRoot":"","sources":["../../../src/plugins/consumer.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAEvF;;;;GAIG;AACH,MAAM,aAAa,GAAuB;IACxC,kBAAkB,EAAE,wBAAwB;IAC5C,yBAAyB,EAAE,+BAA+B;IAC1D,uBAAuB,EAAE,uBAAuB;CACjD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAsB;IACtD,MAAM,CAAC,aAAa,CAAC,CAAC;AACxB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzurePluginContext, IdentityPlugin } from \"./provider.js\";\nimport {\n msalNodeFlowCacheControl,\n msalNodeFlowNativeBrokerControl,\n} from \"../msal/nodeFlows/msalPlugins.js\";\n\nimport { vsCodeCredentialControl } from \"../credentials/visualStudioCodeCredential.js\";\n\n/**\n * The context passed to an Identity plugin. This contains objects that\n * plugins can use to set backend implementations.\n * @internal\n */\nconst pluginContext: AzurePluginContext = {\n cachePluginControl: msalNodeFlowCacheControl,\n nativeBrokerPluginControl: msalNodeFlowNativeBrokerControl,\n vsCodeCredentialControl: vsCodeCredentialControl,\n};\n\n/**\n * Extend Azure Identity with additional functionality. Pass a plugin from\n * a plugin package, such as:\n *\n * - `@azure/identity-cache-persistence`: provides persistent token caching\n * - `@azure/identity-vscode`: provides the dependencies of\n * `VisualStudioCodeCredential` and enables it\n *\n * Example:\n *\n * ```ts snippet:consumer_example\n * import { useIdentityPlugin, DeviceCodeCredential } from \"@azure/identity\";\n *\n * useIdentityPlugin(cachePersistencePlugin);\n * // The plugin has the capability to extend `DeviceCodeCredential` and to\n * // add middleware to the underlying credentials, such as persistence.\n * const credential = new DeviceCodeCredential({\n * tokenCachePersistenceOptions: {\n * enabled: true,\n * },\n * });\n * ```\n *\n * @param plugin - the plugin to register\n */\nexport function useIdentityPlugin(plugin: IdentityPlugin): void {\n plugin(pluginContext);\n}\n"]}
@@ -1,36 +0,0 @@
1
- import type { TokenCachePersistenceOptions } from "../msal/nodeFlows/tokenCachePersistenceOptions.js";
2
- import type { VSCodeCredentialFinder } from "../credentials/visualStudioCodeCredentialPlugin.js";
3
- /**
4
- * The type of an Azure Identity plugin, a function accepting a plugin
5
- * context.
6
- */
7
- export type IdentityPlugin = (context: unknown) => void;
8
- /**
9
- * Plugin context entries for controlling cache plugins.
10
- */
11
- export interface CachePluginControl {
12
- setPersistence(persistenceFactory: (options?: TokenCachePersistenceOptions) => Promise<import("@azure/msal-node").ICachePlugin>): void;
13
- }
14
- export interface NativeBrokerPluginControl {
15
- setNativeBroker(nativeBroker: import("@azure/msal-node").INativeBrokerPlugin): void;
16
- }
17
- /**
18
- * Plugin context entries for controlling VisualStudioCodeCredential.
19
- */
20
- export interface VisualStudioCodeCredentialControl {
21
- setVsCodeCredentialFinder(finder: VSCodeCredentialFinder): void;
22
- }
23
- /**
24
- * Context options passed to a plugin during initialization.
25
- *
26
- * Plugin authors are responsible for casting their plugin context values
27
- * to this type.
28
- *
29
- * @internal
30
- */
31
- export interface AzurePluginContext {
32
- cachePluginControl: CachePluginControl;
33
- nativeBrokerPluginControl: NativeBrokerPluginControl;
34
- vsCodeCredentialControl: VisualStudioCodeCredentialControl;
35
- }
36
- //# sourceMappingURL=provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/plugins/provider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAEjG;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CACZ,kBAAkB,EAAE,CAClB,OAAO,CAAC,EAAE,4BAA4B,KAEnC,OAAO,CAAC,OAAO,kBAAkB,EAAE,YAAY,CAAC,GACpD,IAAI,CAAC;CACT;AAED,MAAM,WAAW,yBAAyB;IAExC,eAAe,CAAC,YAAY,EAAE,OAAO,kBAAkB,EAAE,mBAAmB,GAAG,IAAI,CAAC;CACrF;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,yBAAyB,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACjE;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,uBAAuB,EAAE,iCAAiC,CAAC;CAC5D"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- export {};
4
- //# sourceMappingURL=provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/plugins/provider.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCachePersistenceOptions } from \"../msal/nodeFlows/tokenCachePersistenceOptions.js\";\nimport type { VSCodeCredentialFinder } from \"../credentials/visualStudioCodeCredentialPlugin.js\";\n\n/**\n * The type of an Azure Identity plugin, a function accepting a plugin\n * context.\n */\nexport type IdentityPlugin = (context: unknown) => void;\n\n/**\n * Plugin context entries for controlling cache plugins.\n */\nexport interface CachePluginControl {\n setPersistence(\n persistenceFactory: (\n options?: TokenCachePersistenceOptions,\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n ) => Promise<import(\"@azure/msal-node\").ICachePlugin>,\n ): void;\n}\n\nexport interface NativeBrokerPluginControl {\n // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n setNativeBroker(nativeBroker: import(\"@azure/msal-node\").INativeBrokerPlugin): void;\n}\n\n/**\n * Plugin context entries for controlling VisualStudioCodeCredential.\n */\nexport interface VisualStudioCodeCredentialControl {\n setVsCodeCredentialFinder(finder: VSCodeCredentialFinder): void;\n}\n\n/**\n * Context options passed to a plugin during initialization.\n *\n * Plugin authors are responsible for casting their plugin context values\n * to this type.\n *\n * @internal\n */\nexport interface AzurePluginContext {\n cachePluginControl: CachePluginControl;\n nativeBrokerPluginControl: NativeBrokerPluginControl;\n vsCodeCredentialControl: VisualStudioCodeCredentialControl;\n}\n"]}
@@ -1,122 +0,0 @@
1
- /**
2
- * Helps specify a regional authority, or "AutoDiscoverRegion" to auto-detect the region.
3
- */
4
- export declare enum RegionalAuthority {
5
- /** Instructs MSAL to attempt to discover the region */
6
- AutoDiscoverRegion = "AutoDiscoverRegion",
7
- /** Uses the {@link RegionalAuthority} for the Azure 'westus' region. */
8
- USWest = "westus",
9
- /** Uses the {@link RegionalAuthority} for the Azure 'westus2' region. */
10
- USWest2 = "westus2",
11
- /** Uses the {@link RegionalAuthority} for the Azure 'centralus' region. */
12
- USCentral = "centralus",
13
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus' region. */
14
- USEast = "eastus",
15
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus2' region. */
16
- USEast2 = "eastus2",
17
- /** Uses the {@link RegionalAuthority} for the Azure 'northcentralus' region. */
18
- USNorthCentral = "northcentralus",
19
- /** Uses the {@link RegionalAuthority} for the Azure 'southcentralus' region. */
20
- USSouthCentral = "southcentralus",
21
- /** Uses the {@link RegionalAuthority} for the Azure 'westcentralus' region. */
22
- USWestCentral = "westcentralus",
23
- /** Uses the {@link RegionalAuthority} for the Azure 'canadacentral' region. */
24
- CanadaCentral = "canadacentral",
25
- /** Uses the {@link RegionalAuthority} for the Azure 'canadaeast' region. */
26
- CanadaEast = "canadaeast",
27
- /** Uses the {@link RegionalAuthority} for the Azure 'brazilsouth' region. */
28
- BrazilSouth = "brazilsouth",
29
- /** Uses the {@link RegionalAuthority} for the Azure 'northeurope' region. */
30
- EuropeNorth = "northeurope",
31
- /** Uses the {@link RegionalAuthority} for the Azure 'westeurope' region. */
32
- EuropeWest = "westeurope",
33
- /** Uses the {@link RegionalAuthority} for the Azure 'uksouth' region. */
34
- UKSouth = "uksouth",
35
- /** Uses the {@link RegionalAuthority} for the Azure 'ukwest' region. */
36
- UKWest = "ukwest",
37
- /** Uses the {@link RegionalAuthority} for the Azure 'francecentral' region. */
38
- FranceCentral = "francecentral",
39
- /** Uses the {@link RegionalAuthority} for the Azure 'francesouth' region. */
40
- FranceSouth = "francesouth",
41
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandnorth' region. */
42
- SwitzerlandNorth = "switzerlandnorth",
43
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandwest' region. */
44
- SwitzerlandWest = "switzerlandwest",
45
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynorth' region. */
46
- GermanyNorth = "germanynorth",
47
- /** Uses the {@link RegionalAuthority} for the Azure 'germanywestcentral' region. */
48
- GermanyWestCentral = "germanywestcentral",
49
- /** Uses the {@link RegionalAuthority} for the Azure 'norwaywest' region. */
50
- NorwayWest = "norwaywest",
51
- /** Uses the {@link RegionalAuthority} for the Azure 'norwayeast' region. */
52
- NorwayEast = "norwayeast",
53
- /** Uses the {@link RegionalAuthority} for the Azure 'eastasia' region. */
54
- AsiaEast = "eastasia",
55
- /** Uses the {@link RegionalAuthority} for the Azure 'southeastasia' region. */
56
- AsiaSouthEast = "southeastasia",
57
- /** Uses the {@link RegionalAuthority} for the Azure 'japaneast' region. */
58
- JapanEast = "japaneast",
59
- /** Uses the {@link RegionalAuthority} for the Azure 'japanwest' region. */
60
- JapanWest = "japanwest",
61
- /** Uses the {@link RegionalAuthority} for the Azure 'australiaeast' region. */
62
- AustraliaEast = "australiaeast",
63
- /** Uses the {@link RegionalAuthority} for the Azure 'australiasoutheast' region. */
64
- AustraliaSouthEast = "australiasoutheast",
65
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral' region. */
66
- AustraliaCentral = "australiacentral",
67
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral2' region. */
68
- AustraliaCentral2 = "australiacentral2",
69
- /** Uses the {@link RegionalAuthority} for the Azure 'centralindia' region. */
70
- IndiaCentral = "centralindia",
71
- /** Uses the {@link RegionalAuthority} for the Azure 'southindia' region. */
72
- IndiaSouth = "southindia",
73
- /** Uses the {@link RegionalAuthority} for the Azure 'westindia' region. */
74
- IndiaWest = "westindia",
75
- /** Uses the {@link RegionalAuthority} for the Azure 'koreasouth' region. */
76
- KoreaSouth = "koreasouth",
77
- /** Uses the {@link RegionalAuthority} for the Azure 'koreacentral' region. */
78
- KoreaCentral = "koreacentral",
79
- /** Uses the {@link RegionalAuthority} for the Azure 'uaecentral' region. */
80
- UAECentral = "uaecentral",
81
- /** Uses the {@link RegionalAuthority} for the Azure 'uaenorth' region. */
82
- UAENorth = "uaenorth",
83
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricanorth' region. */
84
- SouthAfricaNorth = "southafricanorth",
85
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricawest' region. */
86
- SouthAfricaWest = "southafricawest",
87
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth' region. */
88
- ChinaNorth = "chinanorth",
89
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast' region. */
90
- ChinaEast = "chinaeast",
91
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth2' region. */
92
- ChinaNorth2 = "chinanorth2",
93
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast2' region. */
94
- ChinaEast2 = "chinaeast2",
95
- /** Uses the {@link RegionalAuthority} for the Azure 'germanycentral' region. */
96
- GermanyCentral = "germanycentral",
97
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynortheast' region. */
98
- GermanyNorthEast = "germanynortheast",
99
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovvirginia' region. */
100
- GovernmentUSVirginia = "usgovvirginia",
101
- /** Uses the {@link RegionalAuthority} for the Azure 'usgoviowa' region. */
102
- GovernmentUSIowa = "usgoviowa",
103
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovarizona' region. */
104
- GovernmentUSArizona = "usgovarizona",
105
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovtexas' region. */
106
- GovernmentUSTexas = "usgovtexas",
107
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodeast' region. */
108
- GovernmentUSDodEast = "usdodeast",
109
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodcentral' region. */
110
- GovernmentUSDodCentral = "usdodcentral"
111
- }
112
- /**
113
- * Calculates the correct regional authority based on the supplied value
114
- * and the AZURE_REGIONAL_AUTHORITY_NAME environment variable.
115
- *
116
- * Values will be returned verbatim, except for {@link RegionalAuthority.AutoDiscoverRegion}
117
- * which is mapped to a value MSAL can understand.
118
- *
119
- * @internal
120
- */
121
- export declare function calculateRegionalAuthority(regionalAuthority?: string): string | undefined;
122
- //# sourceMappingURL=regionalAuthority.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regionalAuthority.d.ts","sourceRoot":"","sources":["../../src/regionalAuthority.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,uDAAuD;IACvD,kBAAkB,uBAAuB;IACzC,wEAAwE;IACxE,MAAM,WAAW;IACjB,yEAAyE;IACzE,OAAO,YAAY;IACnB,2EAA2E;IAC3E,SAAS,cAAc;IACvB,wEAAwE;IACxE,MAAM,WAAW;IACjB,yEAAyE;IACzE,OAAO,YAAY;IACnB,gFAAgF;IAChF,cAAc,mBAAmB;IACjC,gFAAgF;IAChF,cAAc,mBAAmB;IACjC,+EAA+E;IAC/E,aAAa,kBAAkB;IAC/B,+EAA+E;IAC/E,aAAa,kBAAkB;IAC/B,4EAA4E;IAC5E,UAAU,eAAe;IACzB,6EAA6E;IAC7E,WAAW,gBAAgB;IAC3B,6EAA6E;IAC7E,WAAW,gBAAgB;IAC3B,4EAA4E;IAC5E,UAAU,eAAe;IACzB,yEAAyE;IACzE,OAAO,YAAY;IACnB,wEAAwE;IACxE,MAAM,WAAW;IACjB,+EAA+E;IAC/E,aAAa,kBAAkB;IAC/B,6EAA6E;IAC7E,WAAW,gBAAgB;IAC3B,kFAAkF;IAClF,gBAAgB,qBAAqB;IACrC,iFAAiF;IACjF,eAAe,oBAAoB;IACnC,8EAA8E;IAC9E,YAAY,iBAAiB;IAC7B,oFAAoF;IACpF,kBAAkB,uBAAuB;IACzC,4EAA4E;IAC5E,UAAU,eAAe;IACzB,4EAA4E;IAC5E,UAAU,eAAe;IACzB,0EAA0E;IAC1E,QAAQ,aAAa;IACrB,+EAA+E;IAC/E,aAAa,kBAAkB;IAC/B,2EAA2E;IAC3E,SAAS,cAAc;IACvB,2EAA2E;IAC3E,SAAS,cAAc;IACvB,+EAA+E;IAC/E,aAAa,kBAAkB;IAC/B,oFAAoF;IACpF,kBAAkB,uBAAuB;IACzC,kFAAkF;IAClF,gBAAgB,qBAAqB;IACrC,mFAAmF;IACnF,iBAAiB,sBAAsB;IACvC,8EAA8E;IAC9E,YAAY,iBAAiB;IAC7B,4EAA4E;IAC5E,UAAU,eAAe;IACzB,2EAA2E;IAC3E,SAAS,cAAc;IACvB,4EAA4E;IAC5E,UAAU,eAAe;IACzB,8EAA8E;IAC9E,YAAY,iBAAiB;IAC7B,4EAA4E;IAC5E,UAAU,eAAe;IACzB,0EAA0E;IAC1E,QAAQ,aAAa;IACrB,kFAAkF;IAClF,gBAAgB,qBAAqB;IACrC,iFAAiF;IACjF,eAAe,oBAAoB;IACnC,4EAA4E;IAC5E,UAAU,eAAe;IACzB,2EAA2E;IAC3E,SAAS,cAAc;IACvB,6EAA6E;IAC7E,WAAW,gBAAgB;IAC3B,4EAA4E;IAC5E,UAAU,eAAe;IACzB,gFAAgF;IAChF,cAAc,mBAAmB;IACjC,kFAAkF;IAClF,gBAAgB,qBAAqB;IACrC,+EAA+E;IAC/E,oBAAoB,kBAAkB;IACtC,2EAA2E;IAC3E,gBAAgB,cAAc;IAC9B,8EAA8E;IAC9E,mBAAmB,iBAAiB;IACpC,4EAA4E;IAC5E,iBAAiB,eAAe;IAChC,2EAA2E;IAC3E,mBAAmB,cAAc;IACjC,8EAA8E;IAC9E,sBAAsB,iBAAiB;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoBzF"}
@@ -1,140 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * Helps specify a regional authority, or "AutoDiscoverRegion" to auto-detect the region.
5
- */
6
- export var RegionalAuthority;
7
- (function (RegionalAuthority) {
8
- /** Instructs MSAL to attempt to discover the region */
9
- RegionalAuthority["AutoDiscoverRegion"] = "AutoDiscoverRegion";
10
- /** Uses the {@link RegionalAuthority} for the Azure 'westus' region. */
11
- RegionalAuthority["USWest"] = "westus";
12
- /** Uses the {@link RegionalAuthority} for the Azure 'westus2' region. */
13
- RegionalAuthority["USWest2"] = "westus2";
14
- /** Uses the {@link RegionalAuthority} for the Azure 'centralus' region. */
15
- RegionalAuthority["USCentral"] = "centralus";
16
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus' region. */
17
- RegionalAuthority["USEast"] = "eastus";
18
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus2' region. */
19
- RegionalAuthority["USEast2"] = "eastus2";
20
- /** Uses the {@link RegionalAuthority} for the Azure 'northcentralus' region. */
21
- RegionalAuthority["USNorthCentral"] = "northcentralus";
22
- /** Uses the {@link RegionalAuthority} for the Azure 'southcentralus' region. */
23
- RegionalAuthority["USSouthCentral"] = "southcentralus";
24
- /** Uses the {@link RegionalAuthority} for the Azure 'westcentralus' region. */
25
- RegionalAuthority["USWestCentral"] = "westcentralus";
26
- /** Uses the {@link RegionalAuthority} for the Azure 'canadacentral' region. */
27
- RegionalAuthority["CanadaCentral"] = "canadacentral";
28
- /** Uses the {@link RegionalAuthority} for the Azure 'canadaeast' region. */
29
- RegionalAuthority["CanadaEast"] = "canadaeast";
30
- /** Uses the {@link RegionalAuthority} for the Azure 'brazilsouth' region. */
31
- RegionalAuthority["BrazilSouth"] = "brazilsouth";
32
- /** Uses the {@link RegionalAuthority} for the Azure 'northeurope' region. */
33
- RegionalAuthority["EuropeNorth"] = "northeurope";
34
- /** Uses the {@link RegionalAuthority} for the Azure 'westeurope' region. */
35
- RegionalAuthority["EuropeWest"] = "westeurope";
36
- /** Uses the {@link RegionalAuthority} for the Azure 'uksouth' region. */
37
- RegionalAuthority["UKSouth"] = "uksouth";
38
- /** Uses the {@link RegionalAuthority} for the Azure 'ukwest' region. */
39
- RegionalAuthority["UKWest"] = "ukwest";
40
- /** Uses the {@link RegionalAuthority} for the Azure 'francecentral' region. */
41
- RegionalAuthority["FranceCentral"] = "francecentral";
42
- /** Uses the {@link RegionalAuthority} for the Azure 'francesouth' region. */
43
- RegionalAuthority["FranceSouth"] = "francesouth";
44
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandnorth' region. */
45
- RegionalAuthority["SwitzerlandNorth"] = "switzerlandnorth";
46
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandwest' region. */
47
- RegionalAuthority["SwitzerlandWest"] = "switzerlandwest";
48
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynorth' region. */
49
- RegionalAuthority["GermanyNorth"] = "germanynorth";
50
- /** Uses the {@link RegionalAuthority} for the Azure 'germanywestcentral' region. */
51
- RegionalAuthority["GermanyWestCentral"] = "germanywestcentral";
52
- /** Uses the {@link RegionalAuthority} for the Azure 'norwaywest' region. */
53
- RegionalAuthority["NorwayWest"] = "norwaywest";
54
- /** Uses the {@link RegionalAuthority} for the Azure 'norwayeast' region. */
55
- RegionalAuthority["NorwayEast"] = "norwayeast";
56
- /** Uses the {@link RegionalAuthority} for the Azure 'eastasia' region. */
57
- RegionalAuthority["AsiaEast"] = "eastasia";
58
- /** Uses the {@link RegionalAuthority} for the Azure 'southeastasia' region. */
59
- RegionalAuthority["AsiaSouthEast"] = "southeastasia";
60
- /** Uses the {@link RegionalAuthority} for the Azure 'japaneast' region. */
61
- RegionalAuthority["JapanEast"] = "japaneast";
62
- /** Uses the {@link RegionalAuthority} for the Azure 'japanwest' region. */
63
- RegionalAuthority["JapanWest"] = "japanwest";
64
- /** Uses the {@link RegionalAuthority} for the Azure 'australiaeast' region. */
65
- RegionalAuthority["AustraliaEast"] = "australiaeast";
66
- /** Uses the {@link RegionalAuthority} for the Azure 'australiasoutheast' region. */
67
- RegionalAuthority["AustraliaSouthEast"] = "australiasoutheast";
68
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral' region. */
69
- RegionalAuthority["AustraliaCentral"] = "australiacentral";
70
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral2' region. */
71
- RegionalAuthority["AustraliaCentral2"] = "australiacentral2";
72
- /** Uses the {@link RegionalAuthority} for the Azure 'centralindia' region. */
73
- RegionalAuthority["IndiaCentral"] = "centralindia";
74
- /** Uses the {@link RegionalAuthority} for the Azure 'southindia' region. */
75
- RegionalAuthority["IndiaSouth"] = "southindia";
76
- /** Uses the {@link RegionalAuthority} for the Azure 'westindia' region. */
77
- RegionalAuthority["IndiaWest"] = "westindia";
78
- /** Uses the {@link RegionalAuthority} for the Azure 'koreasouth' region. */
79
- RegionalAuthority["KoreaSouth"] = "koreasouth";
80
- /** Uses the {@link RegionalAuthority} for the Azure 'koreacentral' region. */
81
- RegionalAuthority["KoreaCentral"] = "koreacentral";
82
- /** Uses the {@link RegionalAuthority} for the Azure 'uaecentral' region. */
83
- RegionalAuthority["UAECentral"] = "uaecentral";
84
- /** Uses the {@link RegionalAuthority} for the Azure 'uaenorth' region. */
85
- RegionalAuthority["UAENorth"] = "uaenorth";
86
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricanorth' region. */
87
- RegionalAuthority["SouthAfricaNorth"] = "southafricanorth";
88
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricawest' region. */
89
- RegionalAuthority["SouthAfricaWest"] = "southafricawest";
90
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth' region. */
91
- RegionalAuthority["ChinaNorth"] = "chinanorth";
92
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast' region. */
93
- RegionalAuthority["ChinaEast"] = "chinaeast";
94
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth2' region. */
95
- RegionalAuthority["ChinaNorth2"] = "chinanorth2";
96
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast2' region. */
97
- RegionalAuthority["ChinaEast2"] = "chinaeast2";
98
- /** Uses the {@link RegionalAuthority} for the Azure 'germanycentral' region. */
99
- RegionalAuthority["GermanyCentral"] = "germanycentral";
100
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynortheast' region. */
101
- RegionalAuthority["GermanyNorthEast"] = "germanynortheast";
102
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovvirginia' region. */
103
- RegionalAuthority["GovernmentUSVirginia"] = "usgovvirginia";
104
- /** Uses the {@link RegionalAuthority} for the Azure 'usgoviowa' region. */
105
- RegionalAuthority["GovernmentUSIowa"] = "usgoviowa";
106
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovarizona' region. */
107
- RegionalAuthority["GovernmentUSArizona"] = "usgovarizona";
108
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovtexas' region. */
109
- RegionalAuthority["GovernmentUSTexas"] = "usgovtexas";
110
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodeast' region. */
111
- RegionalAuthority["GovernmentUSDodEast"] = "usdodeast";
112
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodcentral' region. */
113
- RegionalAuthority["GovernmentUSDodCentral"] = "usdodcentral";
114
- })(RegionalAuthority || (RegionalAuthority = {}));
115
- /**
116
- * Calculates the correct regional authority based on the supplied value
117
- * and the AZURE_REGIONAL_AUTHORITY_NAME environment variable.
118
- *
119
- * Values will be returned verbatim, except for {@link RegionalAuthority.AutoDiscoverRegion}
120
- * which is mapped to a value MSAL can understand.
121
- *
122
- * @internal
123
- */
124
- export function calculateRegionalAuthority(regionalAuthority) {
125
- // Note: as of today only 3 credentials support regional authority, and the parameter
126
- // is not exposed via the public API. Regional Authority is _only_ supported
127
- // via the AZURE_REGIONAL_AUTHORITY_NAME env var and _only_ for: ClientSecretCredential, ClientCertificateCredential, and ClientAssertionCredential.
128
- var _a, _b;
129
- // Accepting the regionalAuthority parameter will allow us to support it in the future.
130
- let azureRegion = regionalAuthority;
131
- if (azureRegion === undefined &&
132
- ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.AZURE_REGIONAL_AUTHORITY_NAME) !== undefined) {
133
- azureRegion = process.env.AZURE_REGIONAL_AUTHORITY_NAME;
134
- }
135
- if (azureRegion === RegionalAuthority.AutoDiscoverRegion) {
136
- return "AUTO_DISCOVER";
137
- }
138
- return azureRegion;
139
- }
140
- //# sourceMappingURL=regionalAuthority.js.map