tntd 1.4.31 → 1.4.33-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1016) hide show
  1. package/components/Ellipsis/index.js +47 -15
  2. package/components/QueryForm/Field/SelectInput.js +3 -1
  3. package/components/QueryForm/README.md +4 -1
  4. package/components/QueryListScene/QueryForm.js +4 -4
  5. package/components/QueryListScene/createActions.js +4 -4
  6. package/dist/1.tntd.js +1 -1
  7. package/dist/stats.json +27465 -26665
  8. package/dist/tntd.css +1 -1
  9. package/dist/tntd.js +7 -10
  10. package/es/ArrayInput/icon.js +5 -5
  11. package/es/ArrayInput/index.js +79 -111
  12. package/es/AuthContext.js +1 -1
  13. package/es/Columns/index.js +33 -40
  14. package/es/DevelopmentLogin/LoginModal.js +33 -46
  15. package/es/DevelopmentLogin/index.js +14 -18
  16. package/es/Ellipsis/Svg/CopySVG.js +13 -13
  17. package/es/Ellipsis/Svg/TickSVG.js +8 -8
  18. package/es/Ellipsis/index.js +100 -79
  19. package/es/Handle/index.js +46 -64
  20. package/es/Icon/fonts/iconfont.js +7 -12
  21. package/es/Icon/index.js +12 -15
  22. package/es/Img/Contain.js +26 -31
  23. package/es/Img/Cover.js +43 -57
  24. package/es/Img/index.js +39 -48
  25. package/es/Layout/ActionsContext.js +3 -2
  26. package/es/Layout/AppList.js +39 -94
  27. package/es/Layout/Application.js +28 -74
  28. package/es/Layout/Avatar.js +30 -67
  29. package/es/Layout/CompatibleLanguage.js +41 -96
  30. package/es/Layout/EnterpriseLayout/Avatar.js +39 -77
  31. package/es/Layout/EnterpriseLayout/Language.js +16 -34
  32. package/es/Layout/EnterpriseLayout/Theme.js +18 -36
  33. package/es/Layout/EnterpriseLayout/index.js +14 -16
  34. package/es/Layout/GlobalNavigation/NavigationPopup.js +61 -172
  35. package/es/Layout/GlobalNavigation/index.js +22 -56
  36. package/es/Layout/Header.js +26 -47
  37. package/es/Layout/HeaderActions.js +45 -59
  38. package/es/Layout/HeaderNavs.js +24 -51
  39. package/es/Layout/HeaderTabs.js +53 -106
  40. package/es/Layout/Iconfont.js +1 -1
  41. package/es/Layout/Language.js +16 -34
  42. package/es/Layout/Layout.js +88 -110
  43. package/es/Layout/Logo.js +17 -33
  44. package/es/Layout/OrgAppList.js +64 -109
  45. package/es/Layout/SideMenu.js +67 -128
  46. package/es/Layout/Theme.js +25 -63
  47. package/es/Layout/index.js +28 -37
  48. package/es/Layout/paaslayout/CompactSideMenu.js +37 -76
  49. package/es/Layout/paaslayout/Header.js +23 -46
  50. package/es/Layout/paaslayout/Logo.js +4 -14
  51. package/es/Layout/paaslayout/SideMenu.js +41 -80
  52. package/es/Layout/paaslayout/index.js +77 -104
  53. package/es/Layout/storage.js +10 -9
  54. package/es/LoadingButton/index.js +18 -27
  55. package/es/Modal/index.js +42 -51
  56. package/es/Page/Box.js +36 -43
  57. package/es/Page/index.js +56 -71
  58. package/es/Page/utils.js +0 -5
  59. package/es/QueryForm/Field/Checkbox.js +7 -11
  60. package/es/QueryForm/Field/Select.js +34 -44
  61. package/es/QueryForm/Field/SelectInput.js +32 -45
  62. package/es/QueryForm/Field/fieldsMap.js +0 -1
  63. package/es/QueryForm/Field/index.js +46 -78
  64. package/es/QueryForm/README.md +4 -1
  65. package/es/QueryForm/createActions.js +6 -7
  66. package/es/QueryForm/index.js +79 -140
  67. package/es/QueryListScene/List.js +83 -139
  68. package/es/QueryListScene/QueryForm.js +54 -91
  69. package/es/QueryListScene/QueryListScene.js +29 -47
  70. package/es/QueryListScene/Title.js +3 -3
  71. package/es/QueryListScene/Toolbar.js +13 -14
  72. package/es/QueryListScene/createActions.js +4 -4
  73. package/es/Select/DropDownWrap.js +32 -55
  74. package/es/Select/index.js +140 -232
  75. package/es/Table/ResizableTable/index.js +29 -43
  76. package/es/Table/index.js +20 -19
  77. package/es/Title/index.js +23 -25
  78. package/es/locale.js +1 -5
  79. package/es/utils/checkAuth.js +6 -8
  80. package/es/utils/findMenuInfoByPath.js +0 -4
  81. package/es/utils/index.js +17 -27
  82. package/lib/ArrayInput/icon.js +7 -9
  83. package/lib/ArrayInput/index.js +82 -131
  84. package/lib/AuthContext.js +2 -6
  85. package/lib/Columns/index.js +36 -54
  86. package/lib/DevelopmentLogin/LoginModal.js +36 -63
  87. package/lib/DevelopmentLogin/index.js +21 -31
  88. package/lib/Ellipsis/Svg/CopySVG.js +15 -18
  89. package/lib/Ellipsis/Svg/TickSVG.js +10 -13
  90. package/lib/Ellipsis/index.js +105 -93
  91. package/lib/Handle/index.js +51 -87
  92. package/lib/Icon/fonts/iconfont.js +7 -12
  93. package/lib/Icon/iconList.js +1 -2
  94. package/lib/Icon/index.js +16 -26
  95. package/lib/Img/Contain.js +29 -40
  96. package/lib/Img/Cover.js +48 -72
  97. package/lib/Img/index.js +42 -58
  98. package/lib/Layout/ActionsContext.js +1 -5
  99. package/lib/Layout/AppList.js +45 -124
  100. package/lib/Layout/Application.js +31 -92
  101. package/lib/Layout/Avatar.js +36 -91
  102. package/lib/Layout/CompatibleLanguage.js +44 -116
  103. package/lib/Layout/EnterpriseLayout/Avatar.js +45 -105
  104. package/lib/Layout/EnterpriseLayout/Language.js +22 -54
  105. package/lib/Layout/EnterpriseLayout/Theme.js +21 -50
  106. package/lib/Layout/EnterpriseLayout/index.js +17 -27
  107. package/lib/Layout/GlobalNavigation/NavigationPopup.js +64 -192
  108. package/lib/Layout/GlobalNavigation/index.js +28 -80
  109. package/lib/Layout/Header.js +36 -68
  110. package/lib/Layout/HeaderActions.js +51 -81
  111. package/lib/Layout/HeaderNavs.js +30 -70
  112. package/lib/Layout/HeaderTabs.js +58 -127
  113. package/lib/Layout/Iconfont.js +4 -9
  114. package/lib/Layout/Language.js +22 -54
  115. package/lib/Layout/Layout.js +93 -134
  116. package/lib/Layout/Logo.js +26 -47
  117. package/lib/Layout/OrgAppList.js +69 -133
  118. package/lib/Layout/SideMenu.js +72 -151
  119. package/lib/Layout/Theme.js +28 -79
  120. package/lib/Layout/createActions.js +3 -9
  121. package/lib/Layout/images/index.js +5 -36
  122. package/lib/Layout/index.js +35 -63
  123. package/lib/Layout/paaslayout/CompactSideMenu.js +40 -90
  124. package/lib/Layout/paaslayout/Header.js +30 -60
  125. package/lib/Layout/paaslayout/Logo.js +11 -24
  126. package/lib/Layout/paaslayout/SideMenu.js +44 -93
  127. package/lib/Layout/paaslayout/index.js +82 -128
  128. package/lib/Layout/storage.js +26 -68
  129. package/lib/LoadingButton/index.js +21 -36
  130. package/lib/Modal/index.js +45 -62
  131. package/lib/Page/Box.js +38 -50
  132. package/lib/Page/index.js +58 -84
  133. package/lib/Page/utils.js +5 -16
  134. package/lib/QueryForm/Field/Checkbox.js +10 -19
  135. package/lib/QueryForm/Field/Select.js +39 -60
  136. package/lib/QueryForm/Field/SelectInput.js +37 -64
  137. package/lib/QueryForm/Field/fieldsMap.js +6 -23
  138. package/lib/QueryForm/Field/index.js +50 -91
  139. package/lib/QueryForm/README.md +4 -1
  140. package/lib/QueryForm/createActions.js +9 -16
  141. package/lib/QueryForm/index.js +83 -165
  142. package/lib/QueryForm/useForm.js +1 -6
  143. package/lib/QueryListScene/List.js +89 -153
  144. package/lib/QueryListScene/QueryForm.js +58 -101
  145. package/lib/QueryListScene/QueryListScene.js +31 -56
  146. package/lib/QueryListScene/Title.js +6 -11
  147. package/lib/QueryListScene/Toolbar.js +16 -22
  148. package/lib/QueryListScene/createActions.js +7 -13
  149. package/lib/QueryListScene/index.js +5 -19
  150. package/lib/QueryListScene/useActions.js +1 -6
  151. package/lib/Select/DropDownWrap.js +35 -63
  152. package/lib/Select/index.js +142 -245
  153. package/lib/Table/ResizableTable/index.js +31 -54
  154. package/lib/Table/index.js +21 -34
  155. package/lib/Title/index.js +26 -34
  156. package/lib/index.js +36 -57
  157. package/lib/locale.js +9 -25
  158. package/lib/utils/checkAuth.js +9 -16
  159. package/lib/utils/findMenuInfoByPath.js +3 -12
  160. package/lib/utils/index.js +26 -60
  161. package/package.json +3 -2
  162. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_28_35_585Z-debug-0.log +0 -39
  163. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_29_14_285Z-debug-0.log +0 -1426
  164. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_25_569Z-debug-0.log +0 -39
  165. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_28_924Z-debug-0.log +0 -1426
  166. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_15_34_815Z-debug-0.log +0 -34
  167. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_18_04_372Z-debug-0.log +0 -34
  168. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_22_54_526Z-debug-0.log +0 -34
  169. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js +0 -239
  170. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js.map +0 -1
  171. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js +0 -215
  172. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js.map +0 -1
  173. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js +0 -2171
  174. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js.map +0 -1
  175. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js +0 -5500
  176. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js.map +0 -1
  177. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js +0 -1171
  178. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js.map +0 -1
  179. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js +0 -104
  180. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js.map +0 -1
  181. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js +0 -2282
  182. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js.map +0 -1
  183. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js +0 -184
  184. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js.map +0 -1
  185. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js +0 -217
  186. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js.map +0 -1
  187. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js +0 -3727
  188. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js.map +0 -1
  189. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js +0 -208
  190. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js.map +0 -1
  191. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js +0 -117
  192. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js.map +0 -1
  193. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts +0 -333
  194. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts.map +0 -1
  195. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js +0 -1039
  196. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js.map +0 -1
  197. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts +0 -46
  198. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts.map +0 -1
  199. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js +0 -103
  200. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js.map +0 -1
  201. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts +0 -71
  202. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts.map +0 -1
  203. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js +0 -278
  204. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js.map +0 -1
  205. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts +0 -60
  206. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +0 -1
  207. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js +0 -261
  208. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js.map +0 -1
  209. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts +0 -44
  210. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts.map +0 -1
  211. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts +0 -49
  212. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts.map +0 -1
  213. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts +0 -52
  214. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts.map +0 -1
  215. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js +0 -210
  216. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js.map +0 -1
  217. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts +0 -319
  218. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts.map +0 -1
  219. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js +0 -975
  220. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js.map +0 -1
  221. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts +0 -12
  222. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts.map +0 -1
  223. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js +0 -43
  224. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js.map +0 -1
  225. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts +0 -18
  226. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts.map +0 -1
  227. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js +0 -58
  228. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js.map +0 -1
  229. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts +0 -57
  230. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts.map +0 -1
  231. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js +0 -262
  232. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js.map +0 -1
  233. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts +0 -28
  234. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts.map +0 -1
  235. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts +0 -11
  236. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts.map +0 -1
  237. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts +0 -28
  238. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts.map +0 -1
  239. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts +0 -12
  240. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts.map +0 -1
  241. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js +0 -37
  242. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js.map +0 -1
  243. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts +0 -77
  244. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts.map +0 -1
  245. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js +0 -227
  246. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js.map +0 -1
  247. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts +0 -196
  248. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts.map +0 -1
  249. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js +0 -86
  250. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js.map +0 -1
  251. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts +0 -62
  252. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts.map +0 -1
  253. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js +0 -167
  254. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js.map +0 -1
  255. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts +0 -74
  256. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts.map +0 -1
  257. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js +0 -223
  258. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js.map +0 -1
  259. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts +0 -13
  260. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts.map +0 -1
  261. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js +0 -93
  262. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js.map +0 -1
  263. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts +0 -10
  264. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts.map +0 -1
  265. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts +0 -10
  266. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts.map +0 -1
  267. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js +0 -55
  268. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js.map +0 -1
  269. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts +0 -10
  270. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts.map +0 -1
  271. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js +0 -112
  272. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js.map +0 -1
  273. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts +0 -18
  274. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts.map +0 -1
  275. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js +0 -59
  276. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js.map +0 -1
  277. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts +0 -25
  278. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts.map +0 -1
  279. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js +0 -87
  280. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js.map +0 -1
  281. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts +0 -31
  282. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
  283. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js +0 -70
  284. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js.map +0 -1
  285. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts +0 -23
  286. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts.map +0 -1
  287. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js +0 -82
  288. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js.map +0 -1
  289. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts +0 -32
  290. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts.map +0 -1
  291. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js +0 -88
  292. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js.map +0 -1
  293. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts +0 -375
  294. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts.map +0 -1
  295. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js +0 -482
  296. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js.map +0 -1
  297. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts +0 -71
  298. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts.map +0 -1
  299. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js +0 -107
  300. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js.map +0 -1
  301. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts +0 -57
  302. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts.map +0 -1
  303. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js +0 -97
  304. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js.map +0 -1
  305. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts +0 -42
  306. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts.map +0 -1
  307. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js +0 -127
  308. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js.map +0 -1
  309. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts +0 -26
  310. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts.map +0 -1
  311. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js +0 -71
  312. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js.map +0 -1
  313. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts +0 -27
  314. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts.map +0 -1
  315. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js +0 -36
  316. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js.map +0 -1
  317. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js +0 -17467
  318. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js.map +0 -1
  319. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts +0 -36
  320. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts.map +0 -1
  321. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js +0 -18
  322. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js.map +0 -1
  323. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts +0 -53
  324. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts.map +0 -1
  325. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js +0 -179
  326. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js.map +0 -1
  327. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +0 -5
  328. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +0 -1
  329. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +0 -21
  330. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +0 -1
  331. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts +0 -86
  332. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts.map +0 -1
  333. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js +0 -480
  334. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js.map +0 -1
  335. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts +0 -112
  336. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts.map +0 -1
  337. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js +0 -513
  338. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js.map +0 -1
  339. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts +0 -49
  340. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts.map +0 -1
  341. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js +0 -353
  342. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js.map +0 -1
  343. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts +0 -23
  344. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts.map +0 -1
  345. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js +0 -87
  346. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js.map +0 -1
  347. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts +0 -22
  348. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts.map +0 -1
  349. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js +0 -108
  350. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js.map +0 -1
  351. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts +0 -32
  352. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts.map +0 -1
  353. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js +0 -158
  354. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js.map +0 -1
  355. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts +0 -20
  356. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts.map +0 -1
  357. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js +0 -100
  358. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js.map +0 -1
  359. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts +0 -60
  360. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts.map +0 -1
  361. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js +0 -308
  362. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js.map +0 -1
  363. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts +0 -40
  364. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts.map +0 -1
  365. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js +0 -162
  366. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js.map +0 -1
  367. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts +0 -25
  368. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts.map +0 -1
  369. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js +0 -145
  370. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js.map +0 -1
  371. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts +0 -48
  372. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts.map +0 -1
  373. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js +0 -161
  374. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js.map +0 -1
  375. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts +0 -21
  376. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts.map +0 -1
  377. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js +0 -23
  378. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js.map +0 -1
  379. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts +0 -17
  380. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts.map +0 -1
  381. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts +0 -23
  382. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts.map +0 -1
  383. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js +0 -48
  384. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js.map +0 -1
  385. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts +0 -13
  386. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts.map +0 -1
  387. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts +0 -27
  388. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts.map +0 -1
  389. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js +0 -138
  390. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js.map +0 -1
  391. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts +0 -41
  392. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts.map +0 -1
  393. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js +0 -138
  394. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js.map +0 -1
  395. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts +0 -3
  396. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts.map +0 -1
  397. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js +0 -8
  398. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js.map +0 -1
  399. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts +0 -9
  400. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts.map +0 -1
  401. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts +0 -9
  402. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
  403. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts +0 -19
  404. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts.map +0 -1
  405. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts +0 -16
  406. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts.map +0 -1
  407. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts +0 -33
  408. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts.map +0 -1
  409. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts +0 -16
  410. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts.map +0 -1
  411. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts +0 -34
  412. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts.map +0 -1
  413. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts +0 -31
  414. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts.map +0 -1
  415. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts +0 -27
  416. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts.map +0 -1
  417. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts +0 -37
  418. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts.map +0 -1
  419. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js +0 -108
  420. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js.map +0 -1
  421. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts +0 -13
  422. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +0 -1
  423. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js +0 -66
  424. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js.map +0 -1
  425. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts +0 -163
  426. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts.map +0 -1
  427. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js +0 -216
  428. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js.map +0 -1
  429. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts +0 -19
  430. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts.map +0 -1
  431. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js +0 -44
  432. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js.map +0 -1
  433. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts +0 -27
  434. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts.map +0 -1
  435. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js +0 -122
  436. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js.map +0 -1
  437. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts +0 -66
  438. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts.map +0 -1
  439. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js +0 -147
  440. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js.map +0 -1
  441. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts +0 -12
  442. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts.map +0 -1
  443. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js +0 -29
  444. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js.map +0 -1
  445. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js +0 -90
  446. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js.map +0 -1
  447. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -32
  448. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
  449. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts +0 -21
  450. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
  451. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js +0 -57
  452. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js.map +0 -1
  453. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -9
  454. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
  455. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js +0 -14
  456. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js.map +0 -1
  457. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -15
  458. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
  459. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -20
  460. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
  461. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js +0 -44
  462. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js.map +0 -1
  463. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +0 -9
  464. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +0 -1
  465. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -61
  466. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
  467. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts +0 -202
  468. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
  469. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js +0 -688
  470. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js.map +0 -1
  471. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -29
  472. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
  473. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js +0 -69
  474. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js.map +0 -1
  475. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -623
  476. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
  477. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js +0 -12
  478. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +0 -1
  479. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -19
  480. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
  481. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js +0 -24
  482. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js.map +0 -1
  483. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -9
  484. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
  485. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js +0 -18
  486. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js.map +0 -1
  487. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
  488. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
  489. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
  490. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
  491. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
  492. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
  493. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
  494. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
  495. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +0 -13
  496. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +0 -1
  497. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -7
  498. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
  499. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
  500. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
  501. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +0 -15
  502. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +0 -1
  503. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -8
  504. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
  505. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js +0 -17
  506. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js.map +0 -1
  507. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -28
  508. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
  509. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js +0 -127
  510. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js.map +0 -1
  511. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
  512. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
  513. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -393
  514. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
  515. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js +0 -890
  516. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js.map +0 -1
  517. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -57
  518. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
  519. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +0 -124
  520. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +0 -1
  521. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -100
  522. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
  523. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js +0 -247
  524. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +0 -1
  525. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -40
  526. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
  527. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +0 -74
  528. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +0 -1
  529. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -48
  530. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
  531. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +0 -82
  532. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +0 -1
  533. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
  534. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
  535. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js +0 -19
  536. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +0 -1
  537. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -94
  538. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
  539. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js +0 -164
  540. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +0 -1
  541. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -35
  542. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
  543. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +0 -70
  544. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +0 -1
  545. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -37
  546. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
  547. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +0 -73
  548. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +0 -1
  549. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -13
  550. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
  551. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +0 -35
  552. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +0 -1
  553. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -14
  554. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
  555. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +0 -32
  556. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +0 -1
  557. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -157
  558. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
  559. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
  560. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
  561. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
  562. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
  563. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
  564. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
  565. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +0 -39
  566. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +0 -1
  567. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -60
  568. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
  569. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -76
  570. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
  571. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js +0 -470
  572. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +0 -1
  573. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts +0 -45
  574. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
  575. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js +0 -103
  576. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js.map +0 -1
  577. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts +0 -39
  578. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts.map +0 -1
  579. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js +0 -202
  580. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js.map +0 -1
  581. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts +0 -52
  582. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts.map +0 -1
  583. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js +0 -232
  584. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js.map +0 -1
  585. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts +0 -51
  586. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts.map +0 -1
  587. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js +0 -244
  588. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js.map +0 -1
  589. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -40
  590. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
  591. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js +0 -284
  592. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js.map +0 -1
  593. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -25
  594. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
  595. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js +0 -136
  596. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js.map +0 -1
  597. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts +0 -29
  598. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts.map +0 -1
  599. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js +0 -120
  600. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js.map +0 -1
  601. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
  602. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
  603. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -135
  604. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
  605. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js +0 -105
  606. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js.map +0 -1
  607. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -63
  608. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
  609. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js +0 -80
  610. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js.map +0 -1
  611. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
  612. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
  613. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -22
  614. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
  615. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js +0 -45
  616. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js.map +0 -1
  617. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -56
  618. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
  619. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js +0 -107
  620. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +0 -1
  621. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -12
  622. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
  623. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts +0 -48
  624. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
  625. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js +0 -61
  626. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js.map +0 -1
  627. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -389
  628. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
  629. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js +0 -500
  630. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js.map +0 -1
  631. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -199
  632. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
  633. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js +0 -260
  634. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js.map +0 -1
  635. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -42
  636. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
  637. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +0 -80
  638. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +0 -1
  639. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -29
  640. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
  641. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js +0 -50
  642. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js.map +0 -1
  643. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts +0 -8
  644. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
  645. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js +0 -25
  646. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js.map +0 -1
  647. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js +0 -8611
  648. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js.map +0 -1
  649. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts +0 -92
  650. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts.map +0 -1
  651. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js +0 -55
  652. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js.map +0 -1
  653. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts +0 -95
  654. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
  655. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js +0 -185
  656. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js.map +0 -1
  657. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -31
  658. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
  659. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js +0 -21
  660. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js.map +0 -1
  661. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts +0 -21
  662. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts.map +0 -1
  663. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js +0 -56
  664. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js.map +0 -1
  665. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -17
  666. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
  667. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -42
  668. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
  669. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js +0 -101
  670. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js.map +0 -1
  671. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
  672. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
  673. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js +0 -8
  674. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js.map +0 -1
  675. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
  676. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
  677. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +0 -64
  678. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +0 -1
  679. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -35
  680. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
  681. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -28
  682. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
  683. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -52
  684. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
  685. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -17
  686. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  687. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -19
  688. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  689. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -21
  690. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
  691. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -13
  692. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  693. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -21
  694. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
  695. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -20
  696. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
  697. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -17
  698. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  699. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -217
  700. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
  701. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js +0 -387
  702. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +0 -1
  703. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts +0 -34
  704. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts.map +0 -1
  705. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js +0 -92
  706. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js.map +0 -1
  707. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -83
  708. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
  709. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js +0 -192
  710. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js.map +0 -1
  711. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -40
  712. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
  713. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
  714. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
  715. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
  716. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
  717. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
  718. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
  719. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
  720. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
  721. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -71
  722. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
  723. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js +0 -302
  724. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js.map +0 -1
  725. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -22
  726. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
  727. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -43
  728. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
  729. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -22
  730. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
  731. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
  732. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
  733. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -125
  734. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
  735. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +0 -284
  736. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +0 -1
  737. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -275
  738. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
  739. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +0 -128
  740. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +0 -1
  741. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -13
  742. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
  743. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +0 -37
  744. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +0 -1
  745. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -67
  746. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
  747. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +0 -168
  748. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +0 -1
  749. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
  750. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
  751. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts +0 -13
  752. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
  753. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts +0 -71
  754. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
  755. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js +0 -241
  756. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js.map +0 -1
  757. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts +0 -345
  758. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
  759. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js +0 -386
  760. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js.map +0 -1
  761. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
  762. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
  763. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
  764. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
  765. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js +0 -77
  766. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js.map +0 -1
  767. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -54
  768. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
  769. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js +0 -129
  770. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js.map +0 -1
  771. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -28
  772. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
  773. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js +0 -53
  774. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js.map +0 -1
  775. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts +0 -16
  776. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts.map +0 -1
  777. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts +0 -181
  778. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts.map +0 -1
  779. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts +0 -91
  780. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts.map +0 -1
  781. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts +0 -11
  782. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  783. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts +0 -18
  784. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts.map +0 -1
  785. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts +0 -33
  786. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts.map +0 -1
  787. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts +0 -43
  788. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts.map +0 -1
  789. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts +0 -40
  790. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts.map +0 -1
  791. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts +0 -102
  792. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts.map +0 -1
  793. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts +0 -143
  794. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts.map +0 -1
  795. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts +0 -47
  796. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts.map +0 -1
  797. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts +0 -59
  798. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts.map +0 -1
  799. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts +0 -40
  800. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts.map +0 -1
  801. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts +0 -38
  802. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts.map +0 -1
  803. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts +0 -46
  804. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts.map +0 -1
  805. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts +0 -91
  806. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts.map +0 -1
  807. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts +0 -53
  808. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map +0 -1
  809. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts +0 -15
  810. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map +0 -1
  811. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts +0 -9
  812. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts.map +0 -1
  813. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts +0 -23
  814. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map +0 -1
  815. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts +0 -66
  816. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts.map +0 -1
  817. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts +0 -31
  818. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts.map +0 -1
  819. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.js +0 -8
  820. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js +0 -2581
  821. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js.map +0 -1
  822. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js +0 -2
  823. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js.map +0 -1
  824. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js +0 -2470
  825. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js.map +0 -1
  826. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts +0 -25
  827. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts.map +0 -1
  828. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts +0 -21
  829. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts.map +0 -1
  830. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts +0 -3
  831. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts.map +0 -1
  832. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts +0 -22
  833. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts.map +0 -1
  834. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts +0 -34
  835. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
  836. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts +0 -16
  837. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts.map +0 -1
  838. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts +0 -16
  839. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts.map +0 -1
  840. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts +0 -8
  841. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts.map +0 -1
  842. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts +0 -15
  843. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts.map +0 -1
  844. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts +0 -18
  845. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts.map +0 -1
  846. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts +0 -17
  847. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts.map +0 -1
  848. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts +0 -20
  849. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts.map +0 -1
  850. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts +0 -93
  851. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts.map +0 -1
  852. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts +0 -27
  853. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts.map +0 -1
  854. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts +0 -5
  855. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts.map +0 -1
  856. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js +0 -25339
  857. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js.map +0 -1
  858. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/rush-lib.d.ts +0 -3652
  859. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/tsdoc-metadata.json +0 -11
  860. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/heft-config-file.d.ts +0 -254
  861. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/tsdoc-metadata.json +0 -11
  862. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/node-core-library.d.ts +0 -3717
  863. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/tsdoc-metadata.json +0 -11
  864. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/package-deps-hash.d.ts +0 -80
  865. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/tsdoc-metadata.json +0 -11
  866. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/rig-package.d.ts +0 -198
  867. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/tsdoc-metadata.json +0 -11
  868. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-amazon-s3-build-cache-plugin/dist/rush-amazon-s3-build-cache-plugin.d.ts +0 -150
  869. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-azure-storage-build-cache-plugin/dist/rush-azure-storage-build-cache-plugin.d.ts +0 -93
  870. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-sdk/dist/rush-lib.d.ts +0 -3652
  871. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/stream-collator.d.ts +0 -124
  872. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/tsdoc-metadata.json +0 -11
  873. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/terminal.d.ts +0 -743
  874. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/tsdoc-metadata.json +0 -11
  875. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/ts-command-line.d.ts +0 -998
  876. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/tsdoc-metadata.json +0 -11
  877. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.d.ts +0 -7
  878. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js +0 -24
  879. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js.map +0 -1
  880. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.d.ts +0 -231
  881. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js +0 -3
  882. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
  883. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.d.ts +0 -17
  884. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js +0 -3
  885. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js.map +0 -1
  886. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.d.ts +0 -78
  887. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js +0 -203
  888. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js.map +0 -1
  889. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.d.ts +0 -4
  890. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js +0 -18
  891. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js.map +0 -1
  892. package/common/temp/rush-recycler/install-run-1678274025679/esprima/dist/esprima.js +0 -6709
  893. package/common/temp/rush-recycler/install-run-1678274025679/form-data/README.md.bak +0 -358
  894. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.d.ts +0 -32
  895. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js +0 -145
  896. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js.map +0 -1
  897. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.d.ts +0 -21
  898. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js +0 -14
  899. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js.map +0 -1
  900. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.d.ts +0 -30
  901. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js +0 -177
  902. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js.map +0 -1
  903. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.d.ts +0 -23
  904. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js +0 -14
  905. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js.map +0 -1
  906. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  907. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  908. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  909. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.js +0 -75
  910. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.min.js +0 -1
  911. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.js +0 -3946
  912. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.min.js +0 -1
  913. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.js +0 -1737
  914. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.js +0 -1
  915. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.mjs +0 -1
  916. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.mjs +0 -1426
  917. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.js +0 -1062
  918. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js +0 -2
  919. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js.map +0 -1
  920. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.js +0 -1072
  921. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js +0 -2
  922. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js.map +0 -1
  923. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.js +0 -11370
  924. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.min.js +0 -13
  925. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.js +0 -350
  926. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.min.js +0 -1
  927. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.js +0 -358
  928. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.min.js +0 -1
  929. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.js +0 -6818
  930. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.min.js +0 -1
  931. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.js +0 -3997
  932. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.min.js +0 -1
  933. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.js +0 -3300
  934. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.min.js +0 -1
  935. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.js +0 -10187
  936. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.min.js +0 -1
  937. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.js +0 -9716
  938. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.min.js +0 -1
  939. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js +0 -4
  940. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  941. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.map +0 -1
  942. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js +0 -4
  943. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js.map +0 -1
  944. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.map +0 -1
  945. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/encodings.xml +0 -6
  946. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/modules.xml +0 -8
  947. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/node-tunnel.iml +0 -12
  948. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/vcs.xml +0 -6
  949. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/workspace.xml +0 -797
  950. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.js +0 -755
  951. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js +0 -1
  952. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js.map +0 -1
  953. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/bin/uuid +0 -2
  954. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/index.js +0 -9
  955. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/md5.js +0 -215
  956. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/nil.js +0 -1
  957. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/parse.js +0 -35
  958. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/regex.js +0 -1
  959. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/rng.js +0 -19
  960. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/sha1.js +0 -96
  961. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/stringify.js +0 -30
  962. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v1.js +0 -95
  963. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v3.js +0 -4
  964. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v35.js +0 -64
  965. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v4.js +0 -24
  966. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v5.js +0 -4
  967. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/validate.js +0 -7
  968. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/version.js +0 -11
  969. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/index.js +0 -9
  970. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/md5.js +0 -13
  971. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/nil.js +0 -1
  972. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/parse.js +0 -35
  973. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/regex.js +0 -1
  974. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/rng.js +0 -12
  975. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/sha1.js +0 -13
  976. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/stringify.js +0 -29
  977. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v1.js +0 -95
  978. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v3.js +0 -4
  979. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v35.js +0 -64
  980. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v4.js +0 -24
  981. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v5.js +0 -4
  982. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/validate.js +0 -7
  983. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/version.js +0 -11
  984. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/index.js +0 -79
  985. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5-browser.js +0 -223
  986. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5.js +0 -23
  987. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/nil.js +0 -8
  988. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/parse.js +0 -45
  989. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/regex.js +0 -8
  990. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng-browser.js +0 -26
  991. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng.js +0 -24
  992. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1-browser.js +0 -104
  993. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1.js +0 -23
  994. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/stringify.js +0 -39
  995. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuid.min.js +0 -1
  996. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidNIL.min.js +0 -1
  997. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidParse.min.js +0 -1
  998. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidStringify.min.js +0 -1
  999. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidValidate.min.js +0 -1
  1000. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidVersion.min.js +0 -1
  1001. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv1.min.js +0 -1
  1002. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv3.min.js +0 -1
  1003. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv4.min.js +0 -1
  1004. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv5.min.js +0 -1
  1005. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/uuid-bin.js +0 -85
  1006. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v1.js +0 -107
  1007. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v3.js +0 -16
  1008. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v35.js +0 -78
  1009. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v4.js +0 -37
  1010. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v5.js +0 -16
  1011. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/validate.js +0 -17
  1012. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/version.js +0 -21
  1013. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js +0 -2
  1014. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js.map +0 -1
  1015. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-test.js +0 -30407
  1016. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser.js +0 -12901
@@ -1,3727 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var msalNode = require('@azure/msal-node');
6
- var coreClient = require('@azure/core-client');
7
- var coreUtil = require('@azure/core-util');
8
- var coreRestPipeline = require('@azure/core-rest-pipeline');
9
- var abortController = require('@azure/abort-controller');
10
- var coreTracing = require('@azure/core-tracing');
11
- var logger$m = require('@azure/logger');
12
- var msalCommon = require('@azure/msal-common');
13
- var uuid = require('uuid');
14
- var fs = require('fs');
15
- var os = require('os');
16
- var path = require('path');
17
- var child_process = require('child_process');
18
- var crypto = require('crypto');
19
- var util = require('util');
20
- var https = require('https');
21
- var http = require('http');
22
- var open = require('open');
23
- var stoppable = require('stoppable');
24
-
25
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
26
-
27
- function _interopNamespace(e) {
28
- if (e && e.__esModule) return e;
29
- var n = Object.create(null);
30
- if (e) {
31
- Object.keys(e).forEach(function (k) {
32
- if (k !== 'default') {
33
- var d = Object.getOwnPropertyDescriptor(e, k);
34
- Object.defineProperty(n, k, d.get ? d : {
35
- enumerable: true,
36
- get: function () { return e[k]; }
37
- });
38
- }
39
- });
40
- }
41
- n["default"] = e;
42
- return Object.freeze(n);
43
- }
44
-
45
- var msalNode__namespace = /*#__PURE__*/_interopNamespace(msalNode);
46
- var msalCommon__namespace = /*#__PURE__*/_interopNamespace(msalCommon);
47
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
48
- var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
49
- var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
50
- var child_process__default = /*#__PURE__*/_interopDefaultLegacy(child_process);
51
- var child_process__namespace = /*#__PURE__*/_interopNamespace(child_process);
52
- var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
53
- var http__default = /*#__PURE__*/_interopDefaultLegacy(http);
54
- var open__default = /*#__PURE__*/_interopDefaultLegacy(open);
55
- var stoppable__default = /*#__PURE__*/_interopDefaultLegacy(stoppable);
56
-
57
- // Copyright (c) Microsoft Corporation.
58
- // Licensed under the MIT license.
59
- function isErrorResponse(errorResponse) {
60
- return (errorResponse &&
61
- typeof errorResponse.error === "string" &&
62
- typeof errorResponse.error_description === "string");
63
- }
64
- /**
65
- * The Error.name value of an CredentialUnavailable
66
- */
67
- const CredentialUnavailableErrorName = "CredentialUnavailableError";
68
- /**
69
- * This signifies that the credential that was tried in a chained credential
70
- * was not available to be used as the credential. Rather than treating this as
71
- * an error that should halt the chain, it's caught and the chain continues
72
- */
73
- class CredentialUnavailableError extends Error {
74
- constructor(message) {
75
- super(message);
76
- this.name = CredentialUnavailableErrorName;
77
- }
78
- }
79
- /**
80
- * The Error.name value of an AuthenticationError
81
- */
82
- const AuthenticationErrorName = "AuthenticationError";
83
- /**
84
- * Provides details about a failure to authenticate with Azure Active
85
- * Directory. The `errorResponse` field contains more details about
86
- * the specific failure.
87
- */
88
- class AuthenticationError extends Error {
89
- // eslint-disable-next-line @typescript-eslint/ban-types
90
- constructor(statusCode, errorBody) {
91
- let errorResponse = {
92
- error: "unknown",
93
- errorDescription: "An unknown error occurred and no additional details are available.",
94
- };
95
- if (isErrorResponse(errorBody)) {
96
- errorResponse = convertOAuthErrorResponseToErrorResponse(errorBody);
97
- }
98
- else if (typeof errorBody === "string") {
99
- try {
100
- // Most error responses will contain JSON-formatted error details
101
- // in the response body
102
- const oauthErrorResponse = JSON.parse(errorBody);
103
- errorResponse = convertOAuthErrorResponseToErrorResponse(oauthErrorResponse);
104
- }
105
- catch (e) {
106
- if (statusCode === 400) {
107
- errorResponse = {
108
- error: "authority_not_found",
109
- errorDescription: "The specified authority URL was not found.",
110
- };
111
- }
112
- else {
113
- errorResponse = {
114
- error: "unknown_error",
115
- errorDescription: `An unknown error has occurred. Response body:\n\n${errorBody}`,
116
- };
117
- }
118
- }
119
- }
120
- else {
121
- errorResponse = {
122
- error: "unknown_error",
123
- errorDescription: "An unknown error occurred and no additional details are available.",
124
- };
125
- }
126
- super(`${errorResponse.error} Status code: ${statusCode}\nMore details:\n${errorResponse.errorDescription}`);
127
- this.statusCode = statusCode;
128
- this.errorResponse = errorResponse;
129
- // Ensure that this type reports the correct name
130
- this.name = AuthenticationErrorName;
131
- }
132
- }
133
- /**
134
- * The Error.name value of an AggregateAuthenticationError
135
- */
136
- const AggregateAuthenticationErrorName = "AggregateAuthenticationError";
137
- /**
138
- * Provides an `errors` array containing {@link AuthenticationError} instance
139
- * for authentication failures from credentials in a {@link ChainedTokenCredential}.
140
- */
141
- class AggregateAuthenticationError extends Error {
142
- constructor(errors, errorMessage) {
143
- const errorDetail = errors.join("\n");
144
- super(`${errorMessage}\n${errorDetail}`);
145
- this.errors = errors;
146
- // Ensure that this type reports the correct name
147
- this.name = AggregateAuthenticationErrorName;
148
- }
149
- }
150
- function convertOAuthErrorResponseToErrorResponse(errorBody) {
151
- return {
152
- error: errorBody.error,
153
- errorDescription: errorBody.error_description,
154
- correlationId: errorBody.correlation_id,
155
- errorCodes: errorBody.error_codes,
156
- timestamp: errorBody.timestamp,
157
- traceId: errorBody.trace_id,
158
- };
159
- }
160
- /**
161
- * Error used to enforce authentication after trying to retrieve a token silently.
162
- */
163
- class AuthenticationRequiredError extends Error {
164
- constructor(
165
- /**
166
- * Optional parameters. A message can be specified. The {@link GetTokenOptions} of the request can also be specified to more easily associate the error with the received parameters.
167
- */
168
- options) {
169
- super(options.message);
170
- this.scopes = options.scopes;
171
- this.getTokenOptions = options.getTokenOptions;
172
- this.name = "AuthenticationRequiredError";
173
- }
174
- }
175
-
176
- // Copyright (c) Microsoft Corporation.
177
- // Licensed under the MIT license.
178
- function getIdentityTokenEndpointSuffix(tenantId) {
179
- if (tenantId === "adfs") {
180
- return "oauth2/token";
181
- }
182
- else {
183
- return "oauth2/v2.0/token";
184
- }
185
- }
186
-
187
- // Copyright (c) Microsoft Corporation.
188
- // Licensed under the MIT license.
189
- /**
190
- * Current version of the `@azure/identity` package.
191
- */
192
- const SDK_VERSION = `2.1.0`;
193
- /**
194
- * The default client ID for authentication
195
- * @internal
196
- */
197
- // TODO: temporary - this is the Azure CLI clientID - we'll replace it when
198
- // Developer Sign On application is available
199
- // https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/Constants.cs#L9
200
- const DeveloperSignOnClientId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46";
201
- /**
202
- * The default tenant for authentication
203
- * @internal
204
- */
205
- const DefaultTenantId = "common";
206
- /**
207
- * A list of known Azure authority hosts
208
- */
209
- exports.AzureAuthorityHosts = void 0;
210
- (function (AzureAuthorityHosts) {
211
- /**
212
- * China-based Azure Authority Host
213
- */
214
- AzureAuthorityHosts["AzureChina"] = "https://login.chinacloudapi.cn";
215
- /**
216
- * Germany-based Azure Authority Host
217
- */
218
- AzureAuthorityHosts["AzureGermany"] = "https://login.microsoftonline.de";
219
- /**
220
- * US Government Azure Authority Host
221
- */
222
- AzureAuthorityHosts["AzureGovernment"] = "https://login.microsoftonline.us";
223
- /**
224
- * Public Cloud Azure Authority Host
225
- */
226
- AzureAuthorityHosts["AzurePublicCloud"] = "https://login.microsoftonline.com";
227
- })(exports.AzureAuthorityHosts || (exports.AzureAuthorityHosts = {}));
228
- /**
229
- * The default authority host.
230
- */
231
- const DefaultAuthorityHost = exports.AzureAuthorityHosts.AzurePublicCloud;
232
-
233
- // Copyright (c) Microsoft Corporation.
234
- /**
235
- * Creates a span using the global tracer.
236
- * @internal
237
- */
238
- const tracingClient = coreTracing.createTracingClient({
239
- namespace: "Microsoft.AAD",
240
- packageName: "@azure/identity",
241
- packageVersion: SDK_VERSION,
242
- });
243
-
244
- // Copyright (c) Microsoft Corporation.
245
- /**
246
- * The AzureLogger used for all clients within the identity package
247
- */
248
- const logger$l = logger$m.createClientLogger("identity");
249
- /**
250
- * Separates a list of environment variable names into a plain object with two arrays: an array of missing environment variables and another array with assigned environment variables.
251
- * @param supportedEnvVars - List of environment variable names
252
- */
253
- function processEnvVars(supportedEnvVars) {
254
- return supportedEnvVars.reduce((acc, envVariable) => {
255
- if (process.env[envVariable]) {
256
- acc.assigned.push(envVariable);
257
- }
258
- else {
259
- acc.missing.push(envVariable);
260
- }
261
- return acc;
262
- }, { missing: [], assigned: [] });
263
- }
264
- /**
265
- * Formatting the success event on the credentials
266
- */
267
- function formatSuccess(scope) {
268
- return `SUCCESS. Scopes: ${Array.isArray(scope) ? scope.join(", ") : scope}.`;
269
- }
270
- /**
271
- * Formatting the success event on the credentials
272
- */
273
- function formatError(scope, error) {
274
- let message = "ERROR.";
275
- if (scope === null || scope === void 0 ? void 0 : scope.length) {
276
- message += ` Scopes: ${Array.isArray(scope) ? scope.join(", ") : scope}.`;
277
- }
278
- return `${message} Error message: ${typeof error === "string" ? error : error.message}.`;
279
- }
280
- /**
281
- * Generates a CredentialLoggerInstance.
282
- *
283
- * It logs with the format:
284
- *
285
- * `[title] => [message]`
286
- *
287
- */
288
- function credentialLoggerInstance(title, parent, log = logger$l) {
289
- const fullTitle = parent ? `${parent.fullTitle} ${title}` : title;
290
- function info(message) {
291
- log.info(`${fullTitle} =>`, message);
292
- }
293
- function warning(message) {
294
- log.warning(`${fullTitle} =>`, message);
295
- }
296
- return {
297
- title,
298
- fullTitle,
299
- info,
300
- warning,
301
- };
302
- }
303
- /**
304
- * Generates a CredentialLogger, which is a logger declared at the credential's constructor, and used at any point in the credential.
305
- * It has all the properties of a CredentialLoggerInstance, plus other logger instances, one per method.
306
- *
307
- * It logs with the format:
308
- *
309
- * `[title] => [message]`
310
- * `[title] => getToken() => [message]`
311
- *
312
- */
313
- function credentialLogger(title, log = logger$l) {
314
- const credLogger = credentialLoggerInstance(title, undefined, log);
315
- return Object.assign(Object.assign({}, credLogger), { parent: log, getToken: credentialLoggerInstance("=> getToken()", credLogger, log) });
316
- }
317
-
318
- // Copyright (c) Microsoft Corporation.
319
- const noCorrelationId = "noCorrelationId";
320
- /**
321
- * @internal
322
- */
323
- function getIdentityClientAuthorityHost(options) {
324
- // The authorityHost can come from options or from the AZURE_AUTHORITY_HOST environment variable.
325
- let authorityHost = options === null || options === void 0 ? void 0 : options.authorityHost;
326
- // The AZURE_AUTHORITY_HOST environment variable can only be provided in Node.js.
327
- if (coreUtil.isNode) {
328
- authorityHost = authorityHost !== null && authorityHost !== void 0 ? authorityHost : process.env.AZURE_AUTHORITY_HOST;
329
- }
330
- // If the authorityHost is not provided, we use the default one from the public cloud: https://login.microsoftonline.com
331
- return authorityHost !== null && authorityHost !== void 0 ? authorityHost : DefaultAuthorityHost;
332
- }
333
- /**
334
- * The network module used by the Identity credentials.
335
- *
336
- * It allows for credentials to abort any pending request independently of the MSAL flow,
337
- * by calling to the `abortRequests()` method.
338
- *
339
- */
340
- class IdentityClient extends coreClient.ServiceClient {
341
- constructor(options) {
342
- var _a, _b;
343
- const packageDetails = `azsdk-js-identity/${SDK_VERSION}`;
344
- const userAgentPrefix = ((_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix)
345
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
346
- : `${packageDetails}`;
347
- const baseUri = getIdentityClientAuthorityHost(options);
348
- if (!baseUri.startsWith("https:")) {
349
- throw new Error("The authorityHost address must use the 'https' protocol.");
350
- }
351
- super(Object.assign(Object.assign({ requestContentType: "application/json; charset=utf-8", retryOptions: {
352
- maxRetries: 3,
353
- } }, options), { userAgentOptions: {
354
- userAgentPrefix,
355
- }, baseUri }));
356
- this.authorityHost = baseUri;
357
- this.abortControllers = new Map();
358
- this.allowLoggingAccountIdentifiers = (_b = options === null || options === void 0 ? void 0 : options.loggingOptions) === null || _b === void 0 ? void 0 : _b.allowLoggingAccountIdentifiers;
359
- }
360
- async sendTokenRequest(request, expiresOnParser) {
361
- logger$l.info(`IdentityClient: sending token request to [${request.url}]`);
362
- const response = await this.sendRequest(request);
363
- expiresOnParser =
364
- expiresOnParser ||
365
- ((responseBody) => {
366
- return Date.now() + responseBody.expires_in * 1000;
367
- });
368
- if (response.bodyAsText && (response.status === 200 || response.status === 201)) {
369
- const parsedBody = JSON.parse(response.bodyAsText);
370
- if (!parsedBody.access_token) {
371
- return null;
372
- }
373
- this.logIdentifiers(response);
374
- const token = {
375
- accessToken: {
376
- token: parsedBody.access_token,
377
- expiresOnTimestamp: expiresOnParser(parsedBody),
378
- },
379
- refreshToken: parsedBody.refresh_token,
380
- };
381
- logger$l.info(`IdentityClient: [${request.url}] token acquired, expires on ${token.accessToken.expiresOnTimestamp}`);
382
- return token;
383
- }
384
- else {
385
- const error = new AuthenticationError(response.status, response.bodyAsText);
386
- logger$l.warning(`IdentityClient: authentication error. HTTP status: ${response.status}, ${error.errorResponse.errorDescription}`);
387
- throw error;
388
- }
389
- }
390
- async refreshAccessToken(tenantId, clientId, scopes, refreshToken, clientSecret, expiresOnParser, options = {}) {
391
- if (refreshToken === undefined) {
392
- return null;
393
- }
394
- logger$l.info(`IdentityClient: refreshing access token with client ID: ${clientId}, scopes: ${scopes} started`);
395
- const refreshParams = {
396
- grant_type: "refresh_token",
397
- client_id: clientId,
398
- refresh_token: refreshToken,
399
- scope: scopes,
400
- };
401
- if (clientSecret !== undefined) {
402
- refreshParams.client_secret = clientSecret;
403
- }
404
- const query = new URLSearchParams(refreshParams);
405
- return tracingClient.withSpan("IdentityClient.refreshAccessToken", options, async (updatedOptions) => {
406
- try {
407
- const urlSuffix = getIdentityTokenEndpointSuffix(tenantId);
408
- const request = coreRestPipeline.createPipelineRequest({
409
- url: `${this.authorityHost}/${tenantId}/${urlSuffix}`,
410
- method: "POST",
411
- body: query.toString(),
412
- abortSignal: options.abortSignal,
413
- headers: coreRestPipeline.createHttpHeaders({
414
- Accept: "application/json",
415
- "Content-Type": "application/x-www-form-urlencoded",
416
- }),
417
- tracingOptions: updatedOptions.tracingOptions,
418
- });
419
- const response = await this.sendTokenRequest(request, expiresOnParser);
420
- logger$l.info(`IdentityClient: refreshed token for client ID: ${clientId}`);
421
- return response;
422
- }
423
- catch (err) {
424
- if (err.name === AuthenticationErrorName &&
425
- err.errorResponse.error === "interaction_required") {
426
- // It's likely that the refresh token has expired, so
427
- // return null so that the credential implementation will
428
- // initiate the authentication flow again.
429
- logger$l.info(`IdentityClient: interaction required for client ID: ${clientId}`);
430
- return null;
431
- }
432
- else {
433
- logger$l.warning(`IdentityClient: failed refreshing token for client ID: ${clientId}: ${err}`);
434
- throw err;
435
- }
436
- }
437
- });
438
- }
439
- // Here is a custom layer that allows us to abort requests that go through MSAL,
440
- // since MSAL doesn't allow us to pass options all the way through.
441
- generateAbortSignal(correlationId) {
442
- const controller = new abortController.AbortController();
443
- const controllers = this.abortControllers.get(correlationId) || [];
444
- controllers.push(controller);
445
- this.abortControllers.set(correlationId, controllers);
446
- const existingOnAbort = controller.signal.onabort;
447
- controller.signal.onabort = (...params) => {
448
- this.abortControllers.set(correlationId, undefined);
449
- if (existingOnAbort) {
450
- existingOnAbort(...params);
451
- }
452
- };
453
- return controller.signal;
454
- }
455
- abortRequests(correlationId) {
456
- const key = correlationId || noCorrelationId;
457
- const controllers = [
458
- ...(this.abortControllers.get(key) || []),
459
- // MSAL passes no correlation ID to the get requests...
460
- ...(this.abortControllers.get(noCorrelationId) || []),
461
- ];
462
- if (!controllers.length) {
463
- return;
464
- }
465
- for (const controller of controllers) {
466
- controller.abort();
467
- }
468
- this.abortControllers.set(key, undefined);
469
- }
470
- getCorrelationId(options) {
471
- var _a;
472
- const parameter = (_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.split("&").map((part) => part.split("=")).find(([key]) => key === "client-request-id");
473
- return parameter && parameter.length ? parameter[1] || noCorrelationId : noCorrelationId;
474
- }
475
- // The MSAL network module methods follow
476
- async sendGetRequestAsync(url, options) {
477
- const request = coreRestPipeline.createPipelineRequest({
478
- url,
479
- method: "GET",
480
- body: options === null || options === void 0 ? void 0 : options.body,
481
- headers: coreRestPipeline.createHttpHeaders(options === null || options === void 0 ? void 0 : options.headers),
482
- abortSignal: this.generateAbortSignal(noCorrelationId),
483
- });
484
- const response = await this.sendRequest(request);
485
- this.logIdentifiers(response);
486
- return {
487
- body: response.bodyAsText ? JSON.parse(response.bodyAsText) : undefined,
488
- headers: response.headers.toJSON(),
489
- status: response.status,
490
- };
491
- }
492
- async sendPostRequestAsync(url, options) {
493
- const request = coreRestPipeline.createPipelineRequest({
494
- url,
495
- method: "POST",
496
- body: options === null || options === void 0 ? void 0 : options.body,
497
- headers: coreRestPipeline.createHttpHeaders(options === null || options === void 0 ? void 0 : options.headers),
498
- // MSAL doesn't send the correlation ID on the get requests.
499
- abortSignal: this.generateAbortSignal(this.getCorrelationId(options)),
500
- });
501
- const response = await this.sendRequest(request);
502
- this.logIdentifiers(response);
503
- return {
504
- body: response.bodyAsText ? JSON.parse(response.bodyAsText) : undefined,
505
- headers: response.headers.toJSON(),
506
- status: response.status,
507
- };
508
- }
509
- /**
510
- * If allowLoggingAccountIdentifiers was set on the constructor options
511
- * we try to log the account identifiers by parsing the received access token.
512
- *
513
- * The account identifiers we try to log are:
514
- * - `appid`: The application or Client Identifier.
515
- * - `upn`: User Principal Name.
516
- * - It might not be available in some authentication scenarios.
517
- * - If it's not available, we put a placeholder: "No User Principal Name available".
518
- * - `tid`: Tenant Identifier.
519
- * - `oid`: Object Identifier of the authenticated user.
520
- */
521
- logIdentifiers(response) {
522
- if (!this.allowLoggingAccountIdentifiers || !response.bodyAsText) {
523
- return;
524
- }
525
- const unavailableUpn = "No User Principal Name available";
526
- try {
527
- const parsed = response.parsedBody || JSON.parse(response.bodyAsText);
528
- const accessToken = parsed.access_token;
529
- if (!accessToken) {
530
- // Without an access token allowLoggingAccountIdentifiers isn't useful.
531
- return;
532
- }
533
- const base64Metadata = accessToken.split(".")[1];
534
- const { appid, upn, tid, oid } = JSON.parse(Buffer.from(base64Metadata, "base64").toString("utf8"));
535
- logger$l.info(`[Authenticated account] Client ID: ${appid}. Tenant ID: ${tid}. User Principal Name: ${upn || unavailableUpn}. Object ID (user): ${oid}`);
536
- }
537
- catch (e) {
538
- logger$l.warning("allowLoggingAccountIdentifiers was set, but we couldn't log the account information. Error:", e.message);
539
- }
540
- }
541
- }
542
-
543
- // Copyright (c) Microsoft Corporation.
544
- function checkTenantId(logger, tenantId) {
545
- if (!tenantId.match(/^[0-9a-zA-Z-.:/]+$/)) {
546
- const error = new Error("Invalid tenant id provided. You can locate your tenant id by following the instructions listed here: https://docs.microsoft.com/partner-center/find-ids-and-domain-names.");
547
- logger.info(formatError("", error));
548
- throw error;
549
- }
550
- }
551
-
552
- // Copyright (c) Microsoft Corporation.
553
- function resolveTenantId(logger, tenantId, clientId) {
554
- if (tenantId) {
555
- checkTenantId(logger, tenantId);
556
- return tenantId;
557
- }
558
- if (!clientId) {
559
- clientId = DeveloperSignOnClientId;
560
- }
561
- if (clientId !== DeveloperSignOnClientId) {
562
- return "common";
563
- }
564
- return "organizations";
565
- }
566
-
567
- // Copyright (c) Microsoft Corporation.
568
- /**
569
- * Latest AuthenticationRecord version
570
- * @internal
571
- */
572
- const LatestAuthenticationRecordVersion = "1.0";
573
- /**
574
- * Ensures the validity of the MSAL token
575
- * @internal
576
- */
577
- function ensureValidMsalToken(scopes, logger, msalToken, getTokenOptions) {
578
- const error = (message) => {
579
- logger.getToken.info(message);
580
- return new AuthenticationRequiredError({
581
- scopes: Array.isArray(scopes) ? scopes : [scopes],
582
- getTokenOptions,
583
- message,
584
- });
585
- };
586
- if (!msalToken) {
587
- throw error("No response");
588
- }
589
- if (!msalToken.expiresOn) {
590
- throw error(`Response had no "expiresOn" property.`);
591
- }
592
- if (!msalToken.accessToken) {
593
- throw error(`Response had no "accessToken" property.`);
594
- }
595
- }
596
- /**
597
- * Generates a valid authority by combining a host with a tenantId.
598
- * @internal
599
- */
600
- function getAuthority(tenantId, host) {
601
- if (!host) {
602
- host = DefaultAuthorityHost;
603
- }
604
- if (new RegExp(`${tenantId}/?$`).test(host)) {
605
- return host;
606
- }
607
- if (host.endsWith("/")) {
608
- return host + tenantId;
609
- }
610
- else {
611
- return `${host}/${tenantId}`;
612
- }
613
- }
614
- /**
615
- * Generates the known authorities.
616
- * If the Tenant Id is `adfs`, the authority can't be validated since the format won't match the expected one.
617
- * For that reason, we have to force MSAL to disable validating the authority
618
- * by sending it within the known authorities in the MSAL configuration.
619
- * @internal
620
- */
621
- function getKnownAuthorities(tenantId, authorityHost) {
622
- if (tenantId === "adfs" && authorityHost) {
623
- return [authorityHost];
624
- }
625
- return [];
626
- }
627
- /**
628
- * Generates a logger that can be passed to the MSAL clients.
629
- * @param logger - The logger of the credential.
630
- * @internal
631
- */
632
- const defaultLoggerCallback = (logger, platform = coreUtil.isNode ? "Node" : "Browser") => (level, message, containsPii) => {
633
- if (containsPii) {
634
- return;
635
- }
636
- switch (level) {
637
- case msalCommon__namespace.LogLevel.Error:
638
- logger.info(`MSAL ${platform} V2 error: ${message}`);
639
- return;
640
- case msalCommon__namespace.LogLevel.Info:
641
- logger.info(`MSAL ${platform} V2 info message: ${message}`);
642
- return;
643
- case msalCommon__namespace.LogLevel.Verbose:
644
- logger.info(`MSAL ${platform} V2 verbose message: ${message}`);
645
- return;
646
- case msalCommon__namespace.LogLevel.Warning:
647
- logger.info(`MSAL ${platform} V2 warning: ${message}`);
648
- return;
649
- }
650
- };
651
- /**
652
- * The common utility functions for the MSAL clients.
653
- * Defined as a class so that the classes extending this one can have access to its methods and protected properties.
654
- *
655
- * It keeps track of a logger and an in-memory copy of the AuthenticationRecord.
656
- *
657
- * @internal
658
- */
659
- class MsalBaseUtilities {
660
- constructor(options) {
661
- this.logger = options.logger;
662
- this.account = options.authenticationRecord;
663
- }
664
- /**
665
- * Generates a UUID
666
- */
667
- generateUuid() {
668
- return uuid.v4();
669
- }
670
- /**
671
- * Handles the MSAL authentication result.
672
- * If the result has an account, we update the local account reference.
673
- * If the token received is invalid, an error will be thrown depending on what's missing.
674
- */
675
- handleResult(scopes, clientId, result, getTokenOptions) {
676
- if (result === null || result === void 0 ? void 0 : result.account) {
677
- this.account = msalToPublic(clientId, result.account);
678
- }
679
- ensureValidMsalToken(scopes, this.logger, result, getTokenOptions);
680
- this.logger.getToken.info(formatSuccess(scopes));
681
- return {
682
- token: result.accessToken,
683
- expiresOnTimestamp: result.expiresOn.getTime(),
684
- };
685
- }
686
- /**
687
- * Handles MSAL errors.
688
- */
689
- handleError(scopes, error, getTokenOptions) {
690
- if (error.name === "AuthError" ||
691
- error.name === "ClientAuthError" ||
692
- error.name === "BrowserAuthError") {
693
- const msalError = error;
694
- switch (msalError.errorCode) {
695
- case "endpoints_resolution_error":
696
- this.logger.info(formatError(scopes, error.message));
697
- return new CredentialUnavailableError(error.message);
698
- case "device_code_polling_cancelled":
699
- return new abortController.AbortError("The authentication has been aborted by the caller.");
700
- case "consent_required":
701
- case "interaction_required":
702
- case "login_required":
703
- this.logger.info(formatError(scopes, `Authentication returned errorCode ${msalError.errorCode}`));
704
- break;
705
- default:
706
- this.logger.info(formatError(scopes, `Failed to acquire token: ${error.message}`));
707
- break;
708
- }
709
- }
710
- if (error.name === "ClientConfigurationError" ||
711
- error.name === "BrowserConfigurationAuthError" ||
712
- error.name === "AbortError") {
713
- return error;
714
- }
715
- return new AuthenticationRequiredError({ scopes, getTokenOptions, message: error.message });
716
- }
717
- }
718
- // transformations.ts
719
- function publicToMsal(account) {
720
- const [environment] = account.authority.match(/([a-z]*\.[a-z]*\.[a-z]*)/) || [];
721
- return Object.assign(Object.assign({}, account), { localAccountId: account.homeAccountId, environment });
722
- }
723
- function msalToPublic(clientId, account) {
724
- const record = {
725
- authority: getAuthority(account.tenantId, account.environment),
726
- homeAccountId: account.homeAccountId,
727
- tenantId: account.tenantId || DefaultTenantId,
728
- username: account.username,
729
- clientId,
730
- version: LatestAuthenticationRecordVersion,
731
- };
732
- return record;
733
- }
734
- /**
735
- * Serializes an `AuthenticationRecord` into a string.
736
- *
737
- * The output of a serialized authentication record will contain the following properties:
738
- *
739
- * - "authority"
740
- * - "homeAccountId"
741
- * - "clientId"
742
- * - "tenantId"
743
- * - "username"
744
- * - "version"
745
- *
746
- * To later convert this string to a serialized `AuthenticationRecord`, please use the exported function `deserializeAuthenticationRecord()`.
747
- */
748
- function serializeAuthenticationRecord(record) {
749
- return JSON.stringify(record);
750
- }
751
- /**
752
- * Deserializes a previously serialized authentication record from a string into an object.
753
- *
754
- * The input string must contain the following properties:
755
- *
756
- * - "authority"
757
- * - "homeAccountId"
758
- * - "clientId"
759
- * - "tenantId"
760
- * - "username"
761
- * - "version"
762
- *
763
- * If the version we receive is unsupported, an error will be thrown.
764
- *
765
- * At the moment, the only available version is: "1.0", which is always set when the authentication record is serialized.
766
- *
767
- * @param serializedRecord - Authentication record previously serialized into string.
768
- * @returns AuthenticationRecord.
769
- */
770
- function deserializeAuthenticationRecord(serializedRecord) {
771
- const parsed = JSON.parse(serializedRecord);
772
- if (parsed.version && parsed.version !== LatestAuthenticationRecordVersion) {
773
- throw Error("Unsupported AuthenticationRecord version");
774
- }
775
- return parsed;
776
- }
777
-
778
- // Copyright (c) Microsoft Corporation.
779
- // Licensed under the MIT license.
780
- /**
781
- * @internal
782
- */
783
- const multiTenantDisabledErrorMessage = "A getToken request was attempted with a tenant different than the tenant configured at the initialization of the credential, but multi-tenant authentication has been disabled by the environment variable AZURE_IDENTITY_DISABLE_MULTITENANTAUTH.";
784
- /**
785
- * @internal
786
- */
787
- const multiTenantADFSErrorMessage = "A new tenant Id can't be assigned through the GetTokenOptions when a credential has been originally configured to use the tenant `adfs`.";
788
- /**
789
- * Of getToken contains a tenantId, this functions allows picking this tenantId as the appropriate for authentication,
790
- * unless multitenant authentication has been disabled through the AZURE_IDENTITY_DISABLE_MULTITENANTAUTH (on Node.js),
791
- * or unless the original tenant Id is `adfs`.
792
- * @internal
793
- */
794
- function processMultiTenantRequest(tenantId, getTokenOptions) {
795
- if (!(getTokenOptions === null || getTokenOptions === void 0 ? void 0 : getTokenOptions.tenantId)) {
796
- return tenantId;
797
- }
798
- if (process.env.AZURE_IDENTITY_DISABLE_MULTITENANTAUTH) {
799
- throw new Error(multiTenantDisabledErrorMessage);
800
- }
801
- if (tenantId === "adfs") {
802
- throw new Error(multiTenantADFSErrorMessage);
803
- }
804
- return getTokenOptions === null || getTokenOptions === void 0 ? void 0 : getTokenOptions.tenantId;
805
- }
806
-
807
- // Copyright (c) Microsoft Corporation.
808
- // Licensed under the MIT license.
809
- /**
810
- * Helps specify a regional authority, or "AutoDiscoverRegion" to auto-detect the region.
811
- */
812
- var RegionalAuthority;
813
- (function (RegionalAuthority) {
814
- /** Instructs MSAL to attempt to discover the region */
815
- RegionalAuthority["AutoDiscoverRegion"] = "AutoDiscoverRegion";
816
- /** Uses the {@link RegionalAuthority} for the Azure 'westus' region. */
817
- RegionalAuthority["USWest"] = "westus";
818
- /** Uses the {@link RegionalAuthority} for the Azure 'westus2' region. */
819
- RegionalAuthority["USWest2"] = "westus2";
820
- /** Uses the {@link RegionalAuthority} for the Azure 'centralus' region. */
821
- RegionalAuthority["USCentral"] = "centralus";
822
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus' region. */
823
- RegionalAuthority["USEast"] = "eastus";
824
- /** Uses the {@link RegionalAuthority} for the Azure 'eastus2' region. */
825
- RegionalAuthority["USEast2"] = "eastus2";
826
- /** Uses the {@link RegionalAuthority} for the Azure 'northcentralus' region. */
827
- RegionalAuthority["USNorthCentral"] = "northcentralus";
828
- /** Uses the {@link RegionalAuthority} for the Azure 'southcentralus' region. */
829
- RegionalAuthority["USSouthCentral"] = "southcentralus";
830
- /** Uses the {@link RegionalAuthority} for the Azure 'westcentralus' region. */
831
- RegionalAuthority["USWestCentral"] = "westcentralus";
832
- /** Uses the {@link RegionalAuthority} for the Azure 'canadacentral' region. */
833
- RegionalAuthority["CanadaCentral"] = "canadacentral";
834
- /** Uses the {@link RegionalAuthority} for the Azure 'canadaeast' region. */
835
- RegionalAuthority["CanadaEast"] = "canadaeast";
836
- /** Uses the {@link RegionalAuthority} for the Azure 'brazilsouth' region. */
837
- RegionalAuthority["BrazilSouth"] = "brazilsouth";
838
- /** Uses the {@link RegionalAuthority} for the Azure 'northeurope' region. */
839
- RegionalAuthority["EuropeNorth"] = "northeurope";
840
- /** Uses the {@link RegionalAuthority} for the Azure 'westeurope' region. */
841
- RegionalAuthority["EuropeWest"] = "westeurope";
842
- /** Uses the {@link RegionalAuthority} for the Azure 'uksouth' region. */
843
- RegionalAuthority["UKSouth"] = "uksouth";
844
- /** Uses the {@link RegionalAuthority} for the Azure 'ukwest' region. */
845
- RegionalAuthority["UKWest"] = "ukwest";
846
- /** Uses the {@link RegionalAuthority} for the Azure 'francecentral' region. */
847
- RegionalAuthority["FranceCentral"] = "francecentral";
848
- /** Uses the {@link RegionalAuthority} for the Azure 'francesouth' region. */
849
- RegionalAuthority["FranceSouth"] = "francesouth";
850
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandnorth' region. */
851
- RegionalAuthority["SwitzerlandNorth"] = "switzerlandnorth";
852
- /** Uses the {@link RegionalAuthority} for the Azure 'switzerlandwest' region. */
853
- RegionalAuthority["SwitzerlandWest"] = "switzerlandwest";
854
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynorth' region. */
855
- RegionalAuthority["GermanyNorth"] = "germanynorth";
856
- /** Uses the {@link RegionalAuthority} for the Azure 'germanywestcentral' region. */
857
- RegionalAuthority["GermanyWestCentral"] = "germanywestcentral";
858
- /** Uses the {@link RegionalAuthority} for the Azure 'norwaywest' region. */
859
- RegionalAuthority["NorwayWest"] = "norwaywest";
860
- /** Uses the {@link RegionalAuthority} for the Azure 'norwayeast' region. */
861
- RegionalAuthority["NorwayEast"] = "norwayeast";
862
- /** Uses the {@link RegionalAuthority} for the Azure 'eastasia' region. */
863
- RegionalAuthority["AsiaEast"] = "eastasia";
864
- /** Uses the {@link RegionalAuthority} for the Azure 'southeastasia' region. */
865
- RegionalAuthority["AsiaSouthEast"] = "southeastasia";
866
- /** Uses the {@link RegionalAuthority} for the Azure 'japaneast' region. */
867
- RegionalAuthority["JapanEast"] = "japaneast";
868
- /** Uses the {@link RegionalAuthority} for the Azure 'japanwest' region. */
869
- RegionalAuthority["JapanWest"] = "japanwest";
870
- /** Uses the {@link RegionalAuthority} for the Azure 'australiaeast' region. */
871
- RegionalAuthority["AustraliaEast"] = "australiaeast";
872
- /** Uses the {@link RegionalAuthority} for the Azure 'australiasoutheast' region. */
873
- RegionalAuthority["AustraliaSouthEast"] = "australiasoutheast";
874
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral' region. */
875
- RegionalAuthority["AustraliaCentral"] = "australiacentral";
876
- /** Uses the {@link RegionalAuthority} for the Azure 'australiacentral2' region. */
877
- RegionalAuthority["AustraliaCentral2"] = "australiacentral2";
878
- /** Uses the {@link RegionalAuthority} for the Azure 'centralindia' region. */
879
- RegionalAuthority["IndiaCentral"] = "centralindia";
880
- /** Uses the {@link RegionalAuthority} for the Azure 'southindia' region. */
881
- RegionalAuthority["IndiaSouth"] = "southindia";
882
- /** Uses the {@link RegionalAuthority} for the Azure 'westindia' region. */
883
- RegionalAuthority["IndiaWest"] = "westindia";
884
- /** Uses the {@link RegionalAuthority} for the Azure 'koreasouth' region. */
885
- RegionalAuthority["KoreaSouth"] = "koreasouth";
886
- /** Uses the {@link RegionalAuthority} for the Azure 'koreacentral' region. */
887
- RegionalAuthority["KoreaCentral"] = "koreacentral";
888
- /** Uses the {@link RegionalAuthority} for the Azure 'uaecentral' region. */
889
- RegionalAuthority["UAECentral"] = "uaecentral";
890
- /** Uses the {@link RegionalAuthority} for the Azure 'uaenorth' region. */
891
- RegionalAuthority["UAENorth"] = "uaenorth";
892
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricanorth' region. */
893
- RegionalAuthority["SouthAfricaNorth"] = "southafricanorth";
894
- /** Uses the {@link RegionalAuthority} for the Azure 'southafricawest' region. */
895
- RegionalAuthority["SouthAfricaWest"] = "southafricawest";
896
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth' region. */
897
- RegionalAuthority["ChinaNorth"] = "chinanorth";
898
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast' region. */
899
- RegionalAuthority["ChinaEast"] = "chinaeast";
900
- /** Uses the {@link RegionalAuthority} for the Azure 'chinanorth2' region. */
901
- RegionalAuthority["ChinaNorth2"] = "chinanorth2";
902
- /** Uses the {@link RegionalAuthority} for the Azure 'chinaeast2' region. */
903
- RegionalAuthority["ChinaEast2"] = "chinaeast2";
904
- /** Uses the {@link RegionalAuthority} for the Azure 'germanycentral' region. */
905
- RegionalAuthority["GermanyCentral"] = "germanycentral";
906
- /** Uses the {@link RegionalAuthority} for the Azure 'germanynortheast' region. */
907
- RegionalAuthority["GermanyNorthEast"] = "germanynortheast";
908
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovvirginia' region. */
909
- RegionalAuthority["GovernmentUSVirginia"] = "usgovvirginia";
910
- /** Uses the {@link RegionalAuthority} for the Azure 'usgoviowa' region. */
911
- RegionalAuthority["GovernmentUSIowa"] = "usgoviowa";
912
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovarizona' region. */
913
- RegionalAuthority["GovernmentUSArizona"] = "usgovarizona";
914
- /** Uses the {@link RegionalAuthority} for the Azure 'usgovtexas' region. */
915
- RegionalAuthority["GovernmentUSTexas"] = "usgovtexas";
916
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodeast' region. */
917
- RegionalAuthority["GovernmentUSDodEast"] = "usdodeast";
918
- /** Uses the {@link RegionalAuthority} for the Azure 'usdodcentral' region. */
919
- RegionalAuthority["GovernmentUSDodCentral"] = "usdodcentral";
920
- })(RegionalAuthority || (RegionalAuthority = {}));
921
-
922
- // Copyright (c) Microsoft Corporation.
923
- /**
924
- * The current persistence provider, undefined by default.
925
- * @internal
926
- */
927
- let persistenceProvider = undefined;
928
- /**
929
- * An object that allows setting the persistence provider.
930
- * @internal
931
- */
932
- const msalNodeFlowCacheControl = {
933
- setPersistence(pluginProvider) {
934
- persistenceProvider = pluginProvider;
935
- },
936
- };
937
- /**
938
- * MSAL partial base client for Node.js.
939
- *
940
- * It completes the input configuration with some default values.
941
- * It also provides with utility protected methods that can be used from any of the clients,
942
- * which includes handlers for successful responses and errors.
943
- *
944
- * @internal
945
- */
946
- class MsalNode extends MsalBaseUtilities {
947
- constructor(options) {
948
- var _a, _b, _c;
949
- super(options);
950
- this.requiresConfidential = false;
951
- this.msalConfig = this.defaultNodeMsalConfig(options);
952
- this.tenantId = resolveTenantId(options.logger, options.tenantId, options.clientId);
953
- this.clientId = this.msalConfig.auth.clientId;
954
- if (options === null || options === void 0 ? void 0 : options.getAssertion) {
955
- this.getAssertion = options.getAssertion;
956
- }
957
- // If persistence has been configured
958
- if (persistenceProvider !== undefined && ((_a = options.tokenCachePersistenceOptions) === null || _a === void 0 ? void 0 : _a.enabled)) {
959
- this.createCachePlugin = () => persistenceProvider(options.tokenCachePersistenceOptions);
960
- }
961
- else if ((_b = options.tokenCachePersistenceOptions) === null || _b === void 0 ? void 0 : _b.enabled) {
962
- throw new Error([
963
- "Persistent token caching was requested, but no persistence provider was configured.",
964
- "You must install the identity-cache-persistence plugin package (`npm install --save @azure/identity-cache-persistence`)",
965
- "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling",
966
- "`useIdentityPlugin(cachePersistencePlugin)` before using `tokenCachePersistenceOptions`.",
967
- ].join(" "));
968
- }
969
- this.azureRegion = (_c = options.regionalAuthority) !== null && _c !== void 0 ? _c : process.env.AZURE_REGIONAL_AUTHORITY_NAME;
970
- if (this.azureRegion === RegionalAuthority.AutoDiscoverRegion) {
971
- this.azureRegion = "AUTO_DISCOVER";
972
- }
973
- }
974
- /**
975
- * Generates a MSAL configuration that generally works for Node.js
976
- */
977
- defaultNodeMsalConfig(options) {
978
- const clientId = options.clientId || DeveloperSignOnClientId;
979
- const tenantId = resolveTenantId(options.logger, options.tenantId, options.clientId);
980
- this.authorityHost = options.authorityHost || process.env.AZURE_AUTHORITY_HOST;
981
- const authority = getAuthority(tenantId, this.authorityHost);
982
- this.identityClient = new IdentityClient(Object.assign(Object.assign({}, options.tokenCredentialOptions), { authorityHost: authority, loggingOptions: options.loggingOptions }));
983
- let clientCapabilities = ["cp1"];
984
- if (process.env.AZURE_IDENTITY_DISABLE_CP1) {
985
- clientCapabilities = [];
986
- }
987
- return {
988
- auth: {
989
- clientId,
990
- authority,
991
- knownAuthorities: getKnownAuthorities(tenantId, authority),
992
- clientCapabilities,
993
- },
994
- // Cache is defined in this.prepare();
995
- system: {
996
- networkClient: this.identityClient,
997
- loggerOptions: {
998
- loggerCallback: defaultLoggerCallback(options.logger),
999
- },
1000
- },
1001
- };
1002
- }
1003
- /**
1004
- * Prepares the MSAL applications.
1005
- */
1006
- async init(options) {
1007
- if (options === null || options === void 0 ? void 0 : options.abortSignal) {
1008
- options.abortSignal.addEventListener("abort", () => {
1009
- // This will abort any pending request in the IdentityClient,
1010
- // based on the received or generated correlationId
1011
- this.identityClient.abortRequests(options.correlationId);
1012
- });
1013
- }
1014
- if (this.publicApp || this.confidentialApp) {
1015
- return;
1016
- }
1017
- if (this.createCachePlugin !== undefined) {
1018
- this.msalConfig.cache = {
1019
- cachePlugin: await this.createCachePlugin(),
1020
- };
1021
- }
1022
- this.publicApp = new msalNode__namespace.PublicClientApplication(this.msalConfig);
1023
- if (this.getAssertion) {
1024
- this.msalConfig.auth.clientAssertion = await this.getAssertion();
1025
- }
1026
- // The confidential client requires either a secret, assertion or certificate.
1027
- if (this.msalConfig.auth.clientSecret ||
1028
- this.msalConfig.auth.clientAssertion ||
1029
- this.msalConfig.auth.clientCertificate) {
1030
- this.confidentialApp = new msalNode__namespace.ConfidentialClientApplication(this.msalConfig);
1031
- }
1032
- else {
1033
- if (this.requiresConfidential) {
1034
- throw new Error("Unable to generate the MSAL confidential client. Missing either the client's secret, certificate or assertion.");
1035
- }
1036
- }
1037
- }
1038
- /**
1039
- * Allows the cancellation of a MSAL request.
1040
- */
1041
- withCancellation(promise, abortSignal, onCancel) {
1042
- return new Promise((resolve, reject) => {
1043
- promise
1044
- .then((msalToken) => {
1045
- return resolve(msalToken);
1046
- })
1047
- .catch(reject);
1048
- if (abortSignal) {
1049
- abortSignal.addEventListener("abort", () => {
1050
- onCancel === null || onCancel === void 0 ? void 0 : onCancel();
1051
- });
1052
- }
1053
- });
1054
- }
1055
- /**
1056
- * Returns the existing account, attempts to load the account from MSAL.
1057
- */
1058
- async getActiveAccount() {
1059
- var _a, _b, _c;
1060
- if (this.account) {
1061
- return this.account;
1062
- }
1063
- const cache = (_b = (_a = this.confidentialApp) === null || _a === void 0 ? void 0 : _a.getTokenCache()) !== null && _b !== void 0 ? _b : (_c = this.publicApp) === null || _c === void 0 ? void 0 : _c.getTokenCache();
1064
- const accountsByTenant = await (cache === null || cache === void 0 ? void 0 : cache.getAllAccounts());
1065
- if (!accountsByTenant) {
1066
- return;
1067
- }
1068
- if (accountsByTenant.length === 1) {
1069
- this.account = msalToPublic(this.clientId, accountsByTenant[0]);
1070
- }
1071
- else {
1072
- this.logger
1073
- .info(`More than one account was found authenticated for this Client ID and Tenant ID.
1074
- However, no "authenticationRecord" has been provided for this credential,
1075
- therefore we're unable to pick between these accounts.
1076
- A new login attempt will be requested, to ensure the correct account is picked.
1077
- To work with multiple accounts for the same Client ID and Tenant ID, please provide an "authenticationRecord" when initializing a credential to prevent this from happening.`);
1078
- return;
1079
- }
1080
- return this.account;
1081
- }
1082
- /**
1083
- * Attempts to retrieve a token from cache.
1084
- */
1085
- async getTokenSilent(scopes, options) {
1086
- var _a, _b;
1087
- await this.getActiveAccount();
1088
- if (!this.account) {
1089
- throw new AuthenticationRequiredError({
1090
- scopes,
1091
- getTokenOptions: options,
1092
- message: "Silent authentication failed. We couldn't retrieve an active account from the cache.",
1093
- });
1094
- }
1095
- const silentRequest = {
1096
- // To be able to re-use the account, the Token Cache must also have been provided.
1097
- account: publicToMsal(this.account),
1098
- correlationId: options === null || options === void 0 ? void 0 : options.correlationId,
1099
- scopes,
1100
- authority: options === null || options === void 0 ? void 0 : options.authority,
1101
- claims: options === null || options === void 0 ? void 0 : options.claims,
1102
- };
1103
- try {
1104
- this.logger.info("Attempting to acquire token silently");
1105
- const response = (_b = (await ((_a = this.confidentialApp) === null || _a === void 0 ? void 0 : _a.acquireTokenSilent(silentRequest)))) !== null && _b !== void 0 ? _b : (await this.publicApp.acquireTokenSilent(silentRequest));
1106
- return this.handleResult(scopes, this.clientId, response || undefined);
1107
- }
1108
- catch (err) {
1109
- throw this.handleError(scopes, err, options);
1110
- }
1111
- }
1112
- /**
1113
- * Wrapper around each MSAL flow get token operation: doGetToken.
1114
- * If disableAutomaticAuthentication is sent through the constructor, it will prevent MSAL from requesting the user input.
1115
- */
1116
- async getToken(scopes, options = {}) {
1117
- const tenantId = processMultiTenantRequest(this.tenantId, options) || this.tenantId;
1118
- options.authority = getAuthority(tenantId, this.authorityHost);
1119
- options.correlationId = (options === null || options === void 0 ? void 0 : options.correlationId) || this.generateUuid();
1120
- await this.init(options);
1121
- try {
1122
- // MSAL now caches tokens based on their claims,
1123
- // so now one has to keep track fo claims in order to retrieve the newer tokens from acquireTokenSilent
1124
- // This update happened on PR: https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/4533
1125
- const optionsClaims = options.claims;
1126
- if (optionsClaims) {
1127
- this.cachedClaims = optionsClaims;
1128
- }
1129
- if (this.cachedClaims && !optionsClaims) {
1130
- options.claims = this.cachedClaims;
1131
- }
1132
- // We don't return the promise since we want to catch errors right here.
1133
- return await this.getTokenSilent(scopes, options);
1134
- }
1135
- catch (err) {
1136
- if (err.name !== "AuthenticationRequiredError") {
1137
- throw err;
1138
- }
1139
- if (options === null || options === void 0 ? void 0 : options.disableAutomaticAuthentication) {
1140
- throw new AuthenticationRequiredError({
1141
- scopes,
1142
- getTokenOptions: options,
1143
- message: "Automatic authentication has been disabled. You may call the authentication() method.",
1144
- });
1145
- }
1146
- this.logger.info(`Silent authentication failed, falling back to interactive method.`);
1147
- return this.doGetToken(scopes, options);
1148
- }
1149
- }
1150
- }
1151
-
1152
- // Copyright (c) Microsoft Corporation.
1153
- const CommonTenantId = "common";
1154
- const AzureAccountClientId = "aebc6443-996d-45c2-90f0-388ff96faa56"; // VSC: 'aebc6443-996d-45c2-90f0-388ff96faa56'
1155
- const logger$k = credentialLogger("VisualStudioCodeCredential");
1156
- let findCredentials = undefined;
1157
- const vsCodeCredentialControl = {
1158
- setVsCodeCredentialFinder(finder) {
1159
- findCredentials = finder;
1160
- },
1161
- };
1162
- // Map of unsupported Tenant IDs and the errors we will be throwing.
1163
- const unsupportedTenantIds = {
1164
- adfs: "The VisualStudioCodeCredential does not support authentication with ADFS tenants.",
1165
- };
1166
- function checkUnsupportedTenant(tenantId) {
1167
- // If the Tenant ID isn't supported, we throw.
1168
- const unsupportedTenantError = unsupportedTenantIds[tenantId];
1169
- if (unsupportedTenantError) {
1170
- throw new CredentialUnavailableError(unsupportedTenantError);
1171
- }
1172
- }
1173
- const mapVSCodeAuthorityHosts = {
1174
- AzureCloud: exports.AzureAuthorityHosts.AzurePublicCloud,
1175
- AzureChina: exports.AzureAuthorityHosts.AzureChina,
1176
- AzureGermanCloud: exports.AzureAuthorityHosts.AzureGermany,
1177
- AzureUSGovernment: exports.AzureAuthorityHosts.AzureGovernment,
1178
- };
1179
- /**
1180
- * Attempts to load a specific property from the VSCode configurations of the current OS.
1181
- * If it fails at any point, returns undefined.
1182
- */
1183
- function getPropertyFromVSCode(property) {
1184
- const settingsPath = ["User", "settings.json"];
1185
- // Eventually we can add more folders for more versions of VSCode.
1186
- const vsCodeFolder = "Code";
1187
- const homedir = os__default["default"].homedir();
1188
- function loadProperty(...pathSegments) {
1189
- const fullPath = path__default["default"].join(...pathSegments, vsCodeFolder, ...settingsPath);
1190
- const settings = JSON.parse(fs__default["default"].readFileSync(fullPath, { encoding: "utf8" }));
1191
- return settings[property];
1192
- }
1193
- try {
1194
- let appData;
1195
- switch (process.platform) {
1196
- case "win32":
1197
- appData = process.env.APPDATA;
1198
- return appData ? loadProperty(appData) : undefined;
1199
- case "darwin":
1200
- return loadProperty(homedir, "Library", "Application Support");
1201
- case "linux":
1202
- return loadProperty(homedir, ".config");
1203
- default:
1204
- return;
1205
- }
1206
- }
1207
- catch (e) {
1208
- logger$k.info(`Failed to load the Visual Studio Code configuration file. Error: ${e.message}`);
1209
- return;
1210
- }
1211
- }
1212
- /**
1213
- * Connects to Azure using the credential provided by the VSCode extension 'Azure Account'.
1214
- * Once the user has logged in via the extension, this credential can share the same refresh token
1215
- * that is cached by the extension.
1216
- */
1217
- class VisualStudioCodeCredential {
1218
- /**
1219
- * Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
1220
- *
1221
- * **Note**: `VisualStudioCodeCredential` is provided by a plugin package:
1222
- * `@azure/identity-vscode`. If this package is not installed and registered
1223
- * using the plugin API (`useIdentityPlugin`), then authentication using
1224
- * `VisualStudioCodeCredential` will not be available.
1225
- *
1226
- * @param options - Options for configuring the client which makes the authentication request.
1227
- */
1228
- constructor(options) {
1229
- // We want to make sure we use the one assigned by the user on the VSCode settings.
1230
- // Or just `AzureCloud` by default.
1231
- this.cloudName = (getPropertyFromVSCode("azure.cloud") || "AzureCloud");
1232
- // Picking an authority host based on the cloud name.
1233
- const authorityHost = mapVSCodeAuthorityHosts[this.cloudName];
1234
- this.identityClient = new IdentityClient(Object.assign({ authorityHost }, options));
1235
- if (options && options.tenantId) {
1236
- checkTenantId(logger$k, options.tenantId);
1237
- this.tenantId = options.tenantId;
1238
- }
1239
- else {
1240
- this.tenantId = CommonTenantId;
1241
- }
1242
- checkUnsupportedTenant(this.tenantId);
1243
- }
1244
- /**
1245
- * Runs preparations for any further getToken request.
1246
- */
1247
- async prepare() {
1248
- // Attempts to load the tenant from the VSCode configuration file.
1249
- const settingsTenant = getPropertyFromVSCode("azure.tenant");
1250
- if (settingsTenant) {
1251
- this.tenantId = settingsTenant;
1252
- }
1253
- checkUnsupportedTenant(this.tenantId);
1254
- }
1255
- /**
1256
- * Runs preparations for any further getToken, but only once.
1257
- */
1258
- prepareOnce() {
1259
- if (!this.preparePromise) {
1260
- this.preparePromise = this.prepare();
1261
- }
1262
- return this.preparePromise;
1263
- }
1264
- /**
1265
- * Returns the token found by searching VSCode's authentication cache or
1266
- * returns null if no token could be found.
1267
- *
1268
- * @param scopes - The list of scopes for which the token will have access.
1269
- * @param options - The options used to configure any requests this
1270
- * `TokenCredential` implementation might make.
1271
- */
1272
- async getToken(scopes, options) {
1273
- var _a, _b;
1274
- await this.prepareOnce();
1275
- const tenantId = processMultiTenantRequest(this.tenantId, options) || this.tenantId;
1276
- if (findCredentials === undefined) {
1277
- throw new CredentialUnavailableError([
1278
- "No implementation of `VisualStudioCodeCredential` is available.",
1279
- "You must install the identity-vscode plugin package (`npm install --save-dev @azure/identity-vscode`)",
1280
- "and enable it by importing `useIdentityPlugin` from `@azure/identity` and calling",
1281
- "`useIdentityPlugin(vsCodePlugin)` before creating a `VisualStudioCodeCredential`.",
1282
- ].join(" "));
1283
- }
1284
- let scopeString = typeof scopes === "string" ? scopes : scopes.join(" ");
1285
- // Check to make sure the scope we get back is a valid scope
1286
- if (!scopeString.match(/^[0-9a-zA-Z-.:/]+$/)) {
1287
- const error = new Error("Invalid scope was specified by the user or calling client");
1288
- logger$k.getToken.info(formatError(scopes, error));
1289
- throw error;
1290
- }
1291
- if (scopeString.indexOf("offline_access") < 0) {
1292
- scopeString += " offline_access";
1293
- }
1294
- // findCredentials returns an array similar to:
1295
- // [
1296
- // {
1297
- // account: "",
1298
- // password: "",
1299
- // },
1300
- // /* ... */
1301
- // ]
1302
- const credentials = await findCredentials();
1303
- // If we can't find the credential based on the name, we'll pick the first one available.
1304
- const { password: refreshToken } = (_b = (_a = credentials.find(({ account }) => account === this.cloudName)) !== null && _a !== void 0 ? _a : credentials[0]) !== null && _b !== void 0 ? _b : {};
1305
- if (refreshToken) {
1306
- const tokenResponse = await this.identityClient.refreshAccessToken(tenantId, AzureAccountClientId, scopeString, refreshToken, undefined);
1307
- if (tokenResponse) {
1308
- logger$k.getToken.info(formatSuccess(scopes));
1309
- return tokenResponse.accessToken;
1310
- }
1311
- else {
1312
- const error = new CredentialUnavailableError("Could not retrieve the token associated with Visual Studio Code. Have you connected using the 'Azure Account' extension recently? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.");
1313
- logger$k.getToken.info(formatError(scopes, error));
1314
- throw error;
1315
- }
1316
- }
1317
- else {
1318
- const error = new CredentialUnavailableError("Could not retrieve the token associated with Visual Studio Code. Did you connect using the 'Azure Account' extension? To troubleshoot, visit https://aka.ms/azsdk/js/identity/vscodecredential/troubleshoot.");
1319
- logger$k.getToken.info(formatError(scopes, error));
1320
- throw error;
1321
- }
1322
- }
1323
- }
1324
-
1325
- // Copyright (c) Microsoft Corporation.
1326
- /**
1327
- * The context passed to an Identity plugin. This contains objects that
1328
- * plugins can use to set backend implementations.
1329
- * @internal
1330
- */
1331
- const pluginContext = {
1332
- cachePluginControl: msalNodeFlowCacheControl,
1333
- vsCodeCredentialControl: vsCodeCredentialControl,
1334
- };
1335
- /**
1336
- * Extend Azure Identity with additional functionality. Pass a plugin from
1337
- * a plugin package, such as:
1338
- *
1339
- * - `@azure/identity-cache-persistence`: provides persistent token caching
1340
- * - `@azure/identity-vscode`: provides the dependencies of
1341
- * `VisualStudioCodeCredential` and enables it
1342
- *
1343
- * Example:
1344
- *
1345
- * ```javascript
1346
- * import { cachePersistencePlugin } from "@azure/identity-cache-persistence";
1347
- *
1348
- * import { useIdentityPlugin, DefaultAzureCredential } from "@azure/identity";
1349
- * useIdentityPlugin(cachePersistencePlugin);
1350
- *
1351
- * // The plugin has the capability to extend `DefaultAzureCredential` and to
1352
- * // add middleware to the underlying credentials, such as persistence.
1353
- * const credential = new DefaultAzureCredential({
1354
- * tokenCachePersistenceOptions: {
1355
- * enabled: true
1356
- * }
1357
- * });
1358
- * ```
1359
- *
1360
- * @param plugin - the plugin to register
1361
- */
1362
- function useIdentityPlugin(plugin) {
1363
- plugin(pluginContext);
1364
- }
1365
-
1366
- // Copyright (c) Microsoft Corporation.
1367
- /**
1368
- * @internal
1369
- */
1370
- const logger$j = credentialLogger("ChainedTokenCredential");
1371
- /**
1372
- * Enables multiple `TokenCredential` implementations to be tried in order
1373
- * until one of the getToken methods returns an access token.
1374
- */
1375
- class ChainedTokenCredential {
1376
- /**
1377
- * Creates an instance of ChainedTokenCredential using the given credentials.
1378
- *
1379
- * @param sources - `TokenCredential` implementations to be tried in order.
1380
- *
1381
- * Example usage:
1382
- * ```javascript
1383
- * const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
1384
- * const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret);
1385
- * const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);
1386
- * ```
1387
- */
1388
- constructor(...sources) {
1389
- /**
1390
- * The message to use when the chained token fails to get a token
1391
- */
1392
- this.UnavailableMessage = "ChainedTokenCredential => failed to retrieve a token from the included credentials";
1393
- this._sources = [];
1394
- this._sources = sources;
1395
- }
1396
- /**
1397
- * Returns the first access token returned by one of the chained
1398
- * `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
1399
- * when one or more credentials throws an {@link AuthenticationError} and
1400
- * no credentials have returned an access token.
1401
- *
1402
- * This method is called automatically by Azure SDK client libraries. You may call this method
1403
- * directly, but you must also handle token caching and token refreshing.
1404
- *
1405
- * @param scopes - The list of scopes for which the token will have access.
1406
- * @param options - The options used to configure any requests this
1407
- * `TokenCredential` implementation might make.
1408
- */
1409
- async getToken(scopes, options = {}) {
1410
- let token = null;
1411
- let successfulCredentialName = "";
1412
- const errors = [];
1413
- return tracingClient.withSpan("ChainedTokenCredential.getToken", options, async (updatedOptions) => {
1414
- for (let i = 0; i < this._sources.length && token === null; i++) {
1415
- try {
1416
- token = await this._sources[i].getToken(scopes, updatedOptions);
1417
- successfulCredentialName = this._sources[i].constructor.name;
1418
- }
1419
- catch (err) {
1420
- if (err.name === "CredentialUnavailableError" ||
1421
- err.name === "AuthenticationRequiredError") {
1422
- errors.push(err);
1423
- }
1424
- else {
1425
- logger$j.getToken.info(formatError(scopes, err));
1426
- throw err;
1427
- }
1428
- }
1429
- }
1430
- if (!token && errors.length > 0) {
1431
- const err = new AggregateAuthenticationError(errors, "ChainedTokenCredential authentication failed.");
1432
- logger$j.getToken.info(formatError(scopes, err));
1433
- throw err;
1434
- }
1435
- logger$j.getToken.info(`Result for ${successfulCredentialName}: ${formatSuccess(scopes)}`);
1436
- if (token === null) {
1437
- throw new CredentialUnavailableError("Failed to retrieve a valid token");
1438
- }
1439
- return token;
1440
- });
1441
- }
1442
- }
1443
-
1444
- // Copyright (c) Microsoft Corporation.
1445
- /**
1446
- * Throws if the received scope is not valid.
1447
- * @internal
1448
- */
1449
- function ensureValidScope(scope, logger) {
1450
- if (!scope.match(/^[0-9a-zA-Z-.:/]+$/)) {
1451
- const error = new Error("Invalid scope was specified by the user or calling client");
1452
- logger.getToken.info(formatError(scope, error));
1453
- throw error;
1454
- }
1455
- }
1456
- /**
1457
- * Returns the resource out of a scope.
1458
- * @internal
1459
- */
1460
- function getScopeResource(scope) {
1461
- return scope.replace(/\/.default$/, "");
1462
- }
1463
-
1464
- // Copyright (c) Microsoft Corporation.
1465
- /**
1466
- * Mockable reference to the CLI credential cliCredentialFunctions
1467
- * @internal
1468
- */
1469
- const cliCredentialInternals = {
1470
- /**
1471
- * @internal
1472
- */
1473
- getSafeWorkingDir() {
1474
- if (process.platform === "win32") {
1475
- if (!process.env.SystemRoot) {
1476
- throw new Error("Azure CLI credential expects a 'SystemRoot' environment variable");
1477
- }
1478
- return process.env.SystemRoot;
1479
- }
1480
- else {
1481
- return "/bin";
1482
- }
1483
- },
1484
- /**
1485
- * Gets the access token from Azure CLI
1486
- * @param resource - The resource to use when getting the token
1487
- * @internal
1488
- */
1489
- async getAzureCliAccessToken(resource, tenantId) {
1490
- let tenantSection = [];
1491
- if (tenantId) {
1492
- tenantSection = ["--tenant", tenantId];
1493
- }
1494
- return new Promise((resolve, reject) => {
1495
- try {
1496
- child_process__default["default"].execFile("az", [
1497
- "account",
1498
- "get-access-token",
1499
- "--output",
1500
- "json",
1501
- "--resource",
1502
- resource,
1503
- ...tenantSection,
1504
- ], { cwd: cliCredentialInternals.getSafeWorkingDir(), shell: true }, (error, stdout, stderr) => {
1505
- resolve({ stdout: stdout, stderr: stderr, error });
1506
- });
1507
- }
1508
- catch (err) {
1509
- reject(err);
1510
- }
1511
- });
1512
- },
1513
- };
1514
- const logger$i = credentialLogger("AzureCliCredential");
1515
- /**
1516
- * This credential will use the currently logged-in user login information
1517
- * via the Azure CLI ('az') commandline tool.
1518
- * To do so, it will read the user access token and expire time
1519
- * with Azure CLI command "az account get-access-token".
1520
- */
1521
- class AzureCliCredential {
1522
- /**
1523
- * Creates an instance of the {@link AzureCliCredential}.
1524
- *
1525
- * To use this credential, ensure that you have already logged
1526
- * in via the 'az' tool using the command "az login" from the commandline.
1527
- *
1528
- * @param options - Options, to optionally allow multi-tenant requests.
1529
- */
1530
- constructor(options) {
1531
- this.tenantId = options === null || options === void 0 ? void 0 : options.tenantId;
1532
- }
1533
- /**
1534
- * Authenticates with Azure Active Directory and returns an access token if successful.
1535
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1536
- *
1537
- * @param scopes - The list of scopes for which the token will have access.
1538
- * @param options - The options used to configure any requests this
1539
- * TokenCredential implementation might make.
1540
- */
1541
- async getToken(scopes, options = {}) {
1542
- const tenantId = processMultiTenantRequest(this.tenantId, options);
1543
- if (tenantId) {
1544
- checkTenantId(logger$i, tenantId);
1545
- }
1546
- const scope = typeof scopes === "string" ? scopes : scopes[0];
1547
- logger$i.getToken.info(`Using the scope ${scope}`);
1548
- ensureValidScope(scope, logger$i);
1549
- const resource = getScopeResource(scope);
1550
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async () => {
1551
- var _a, _b, _c, _d;
1552
- try {
1553
- const obj = await cliCredentialInternals.getAzureCliAccessToken(resource, tenantId);
1554
- const specificScope = (_a = obj.stderr) === null || _a === void 0 ? void 0 : _a.match("(.*)az login --scope(.*)");
1555
- const isLoginError = ((_b = obj.stderr) === null || _b === void 0 ? void 0 : _b.match("(.*)az login(.*)")) && !specificScope;
1556
- const isNotInstallError = ((_c = obj.stderr) === null || _c === void 0 ? void 0 : _c.match("az:(.*)not found")) || ((_d = obj.stderr) === null || _d === void 0 ? void 0 : _d.startsWith("'az' is not recognized"));
1557
- if (isNotInstallError) {
1558
- const error = new CredentialUnavailableError("Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'.");
1559
- logger$i.getToken.info(formatError(scopes, error));
1560
- throw error;
1561
- }
1562
- if (isLoginError) {
1563
- const error = new CredentialUnavailableError("Please run 'az login' from a command prompt to authenticate before using this credential.");
1564
- logger$i.getToken.info(formatError(scopes, error));
1565
- throw error;
1566
- }
1567
- try {
1568
- const responseData = obj.stdout;
1569
- const response = JSON.parse(responseData);
1570
- logger$i.getToken.info(formatSuccess(scopes));
1571
- const returnValue = {
1572
- token: response.accessToken,
1573
- expiresOnTimestamp: new Date(response.expiresOn).getTime(),
1574
- };
1575
- return returnValue;
1576
- }
1577
- catch (e) {
1578
- if (obj.stderr) {
1579
- throw new CredentialUnavailableError(obj.stderr);
1580
- }
1581
- throw e;
1582
- }
1583
- }
1584
- catch (err) {
1585
- const error = err.name === "CredentialUnavailableError"
1586
- ? err
1587
- : new CredentialUnavailableError(err.message || "Unknown error while trying to retrieve the access token");
1588
- logger$i.getToken.info(formatError(scopes, error));
1589
- throw error;
1590
- }
1591
- });
1592
- }
1593
- }
1594
-
1595
- // Copyright (c) Microsoft Corporation.
1596
- /**
1597
- * Easy to mock childProcess utils.
1598
- * @internal
1599
- */
1600
- const processUtils = {
1601
- /**
1602
- * Promisifying childProcess.execFile
1603
- * @internal
1604
- */
1605
- execFile(file, params, options) {
1606
- return new Promise((resolve, reject) => {
1607
- child_process__namespace.execFile(file, params, options, (error, stdout, stderr) => {
1608
- if (Buffer.isBuffer(stdout)) {
1609
- stdout = stdout.toString("utf8");
1610
- }
1611
- if (Buffer.isBuffer(stderr)) {
1612
- stderr = stderr.toString("utf8");
1613
- }
1614
- if (stderr || error) {
1615
- reject(stderr ? new Error(stderr) : error);
1616
- }
1617
- else {
1618
- resolve(stdout);
1619
- }
1620
- });
1621
- });
1622
- },
1623
- };
1624
-
1625
- // Copyright (c) Microsoft Corporation.
1626
- const logger$h = credentialLogger("AzurePowerShellCredential");
1627
- const isWindows = process.platform === "win32";
1628
- /**
1629
- * Returns a platform-appropriate command name by appending ".exe" on Windows.
1630
- *
1631
- * @internal
1632
- */
1633
- function formatCommand(commandName) {
1634
- if (isWindows) {
1635
- return `${commandName}.exe`;
1636
- }
1637
- else {
1638
- return commandName;
1639
- }
1640
- }
1641
- /**
1642
- * Receives a list of commands to run, executes them, then returns the outputs.
1643
- * If anything fails, an error is thrown.
1644
- * @internal
1645
- */
1646
- async function runCommands(commands) {
1647
- const results = [];
1648
- for (const command of commands) {
1649
- const [file, ...parameters] = command;
1650
- const result = (await processUtils.execFile(file, parameters, { encoding: "utf8" }));
1651
- results.push(result);
1652
- }
1653
- return results;
1654
- }
1655
- /**
1656
- * Known PowerShell errors
1657
- * @internal
1658
- */
1659
- const powerShellErrors = {
1660
- login: "Run Connect-AzAccount to login",
1661
- installed: "The specified module 'Az.Accounts' with version '2.2.0' was not loaded because no valid module file was found in any module directory",
1662
- };
1663
- /**
1664
- * Messages to use when throwing in this credential.
1665
- * @internal
1666
- */
1667
- const powerShellPublicErrorMessages = {
1668
- login: "Please run 'Connect-AzAccount' from PowerShell to authenticate before using this credential.",
1669
- installed: `The 'Az.Account' module >= 2.2.0 is not installed. Install the Azure Az PowerShell module with: "Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force".`,
1670
- troubleshoot: `To troubleshoot, visit https://aka.ms/azsdk/js/identity/powershellcredential/troubleshoot.`,
1671
- };
1672
- // PowerShell Azure User not logged in error check.
1673
- const isLoginError = (err) => err.message.match(`(.*)${powerShellErrors.login}(.*)`);
1674
- // Az Module not Installed in Azure PowerShell check.
1675
- const isNotInstalledError = (err) => err.message.match(powerShellErrors.installed);
1676
- /**
1677
- * The PowerShell commands to be tried, in order.
1678
- *
1679
- * @internal
1680
- */
1681
- const commandStack = [formatCommand("pwsh")];
1682
- if (isWindows) {
1683
- commandStack.push(formatCommand("powershell"));
1684
- }
1685
- /**
1686
- * This credential will use the currently logged-in user information from the
1687
- * Azure PowerShell module. To do so, it will read the user access token and
1688
- * expire time with Azure PowerShell command `Get-AzAccessToken -ResourceUrl {ResourceScope}`
1689
- */
1690
- class AzurePowerShellCredential {
1691
- /**
1692
- * Creates an instance of the {@link AzurePowerShellCredential}.
1693
- *
1694
- * To use this credential:
1695
- * - Install the Azure Az PowerShell module with:
1696
- * `Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force`.
1697
- * - You have already logged in to Azure PowerShell using the command
1698
- * `Connect-AzAccount` from the command line.
1699
- *
1700
- * @param options - Options, to optionally allow multi-tenant requests.
1701
- */
1702
- constructor(options) {
1703
- this.tenantId = options === null || options === void 0 ? void 0 : options.tenantId;
1704
- }
1705
- /**
1706
- * Gets the access token from Azure PowerShell
1707
- * @param resource - The resource to use when getting the token
1708
- */
1709
- async getAzurePowerShellAccessToken(resource, tenantId) {
1710
- // Clone the stack to avoid mutating it while iterating
1711
- for (const powerShellCommand of [...commandStack]) {
1712
- try {
1713
- await runCommands([[powerShellCommand, "/?"]]);
1714
- }
1715
- catch (e) {
1716
- // Remove this credential from the original stack so that we don't try it again.
1717
- commandStack.shift();
1718
- continue;
1719
- }
1720
- let tenantSection = "";
1721
- if (tenantId) {
1722
- tenantSection = `-TenantId "${tenantId}"`;
1723
- }
1724
- const results = await runCommands([
1725
- [
1726
- powerShellCommand,
1727
- "-Command",
1728
- "Import-Module Az.Accounts -MinimumVersion 2.2.0 -PassThru",
1729
- ],
1730
- [
1731
- powerShellCommand,
1732
- "-Command",
1733
- `Get-AzAccessToken ${tenantSection} -ResourceUrl "${resource}" | ConvertTo-Json`,
1734
- ],
1735
- ]);
1736
- const result = results[1];
1737
- try {
1738
- return JSON.parse(result);
1739
- }
1740
- catch (e) {
1741
- throw new Error(`Unable to parse the output of PowerShell. Received output: ${result}`);
1742
- }
1743
- }
1744
- throw new Error(`Unable to execute PowerShell. Ensure that it is installed in your system`);
1745
- }
1746
- /**
1747
- * Authenticates with Azure Active Directory and returns an access token if successful.
1748
- * If the authentication cannot be performed through PowerShell, a {@link CredentialUnavailableError} will be thrown.
1749
- *
1750
- * @param scopes - The list of scopes for which the token will have access.
1751
- * @param options - The options used to configure any requests this TokenCredential implementation might make.
1752
- */
1753
- async getToken(scopes, options = {}) {
1754
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async () => {
1755
- const tenantId = processMultiTenantRequest(this.tenantId, options);
1756
- if (tenantId) {
1757
- checkTenantId(logger$h, tenantId);
1758
- }
1759
- const scope = typeof scopes === "string" ? scopes : scopes[0];
1760
- ensureValidScope(scope, logger$h);
1761
- logger$h.getToken.info(`Using the scope ${scope}`);
1762
- const resource = getScopeResource(scope);
1763
- try {
1764
- const response = await this.getAzurePowerShellAccessToken(resource, tenantId);
1765
- logger$h.getToken.info(formatSuccess(scopes));
1766
- return {
1767
- token: response.Token,
1768
- expiresOnTimestamp: new Date(response.ExpiresOn).getTime(),
1769
- };
1770
- }
1771
- catch (err) {
1772
- if (isNotInstalledError(err)) {
1773
- const error = new CredentialUnavailableError(powerShellPublicErrorMessages.installed);
1774
- logger$h.getToken.info(formatError(scope, error));
1775
- throw error;
1776
- }
1777
- else if (isLoginError(err)) {
1778
- const error = new CredentialUnavailableError(powerShellPublicErrorMessages.login);
1779
- logger$h.getToken.info(formatError(scope, error));
1780
- throw error;
1781
- }
1782
- const error = new CredentialUnavailableError(`${err}. ${powerShellPublicErrorMessages.troubleshoot}`);
1783
- logger$h.getToken.info(formatError(scope, error));
1784
- throw error;
1785
- }
1786
- });
1787
- }
1788
- }
1789
-
1790
- // Copyright (c) Microsoft Corporation.
1791
- /**
1792
- * MSAL client secret client. Calls to MSAL's confidential application's `acquireTokenByClientCredential` during `doGetToken`.
1793
- * @internal
1794
- */
1795
- class MsalClientSecret extends MsalNode {
1796
- constructor(options) {
1797
- super(options);
1798
- this.requiresConfidential = true;
1799
- this.msalConfig.auth.clientSecret = options.clientSecret;
1800
- }
1801
- async doGetToken(scopes, options = {}) {
1802
- try {
1803
- const result = await this.confidentialApp.acquireTokenByClientCredential({
1804
- scopes,
1805
- correlationId: options.correlationId,
1806
- azureRegion: this.azureRegion,
1807
- authority: options.authority,
1808
- claims: options.claims,
1809
- });
1810
- // The Client Credential flow does not return an account,
1811
- // so each time getToken gets called, we will have to acquire a new token through the service.
1812
- return this.handleResult(scopes, this.clientId, result || undefined);
1813
- }
1814
- catch (err) {
1815
- throw this.handleError(scopes, err, options);
1816
- }
1817
- }
1818
- }
1819
-
1820
- // Copyright (c) Microsoft Corporation.
1821
- const logger$g = credentialLogger("ClientSecretCredential");
1822
- /**
1823
- * Enables authentication to Azure Active Directory using a client secret
1824
- * that was generated for an App Registration. More information on how
1825
- * to configure a client secret can be found here:
1826
- *
1827
- * https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application
1828
- *
1829
- */
1830
- class ClientSecretCredential {
1831
- /**
1832
- * Creates an instance of the ClientSecretCredential with the details
1833
- * needed to authenticate against Azure Active Directory with a client
1834
- * secret.
1835
- *
1836
- * @param tenantId - The Azure Active Directory tenant (directory) ID.
1837
- * @param clientId - The client (application) ID of an App Registration in the tenant.
1838
- * @param clientSecret - A client secret that was generated for the App Registration.
1839
- * @param options - Options for configuring the client which makes the authentication request.
1840
- */
1841
- constructor(tenantId, clientId, clientSecret, options = {}) {
1842
- if (!tenantId || !clientId || !clientSecret) {
1843
- throw new Error("ClientSecretCredential: tenantId, clientId, and clientSecret are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.");
1844
- }
1845
- this.msalFlow = new MsalClientSecret(Object.assign(Object.assign({}, options), { logger: logger$g,
1846
- clientId,
1847
- tenantId,
1848
- clientSecret, tokenCredentialOptions: options }));
1849
- }
1850
- /**
1851
- * Authenticates with Azure Active Directory and returns an access token if successful.
1852
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1853
- *
1854
- * @param scopes - The list of scopes for which the token will have access.
1855
- * @param options - The options used to configure any requests this
1856
- * TokenCredential implementation might make.
1857
- */
1858
- async getToken(scopes, options = {}) {
1859
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
1860
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
1861
- return this.msalFlow.getToken(arrayScopes, newOptions);
1862
- });
1863
- }
1864
- }
1865
-
1866
- // Copyright (c) Microsoft Corporation.
1867
- const readFileAsync$2 = util.promisify(fs.readFile);
1868
- /**
1869
- * Tries to asynchronously load a certificate from the given path.
1870
- *
1871
- * @param configuration - Either the PEM value or the path to the certificate.
1872
- * @param sendCertificateChain - Option to include x5c header for SubjectName and Issuer name authorization.
1873
- * @returns - The certificate parts, or `undefined` if the certificate could not be loaded.
1874
- * @internal
1875
- */
1876
- async function parseCertificate(configuration, sendCertificateChain) {
1877
- const certificateParts = {};
1878
- const certificate = configuration
1879
- .certificate;
1880
- const certificatePath = configuration
1881
- .certificatePath;
1882
- certificateParts.certificateContents =
1883
- certificate || (await readFileAsync$2(certificatePath, "utf8"));
1884
- if (sendCertificateChain) {
1885
- certificateParts.x5c = certificateParts.certificateContents;
1886
- }
1887
- const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
1888
- const publicKeys = [];
1889
- // Match all possible certificates, in the order they are in the file. These will form the chain that is used for x5c
1890
- let match;
1891
- do {
1892
- match = certificatePattern.exec(certificateParts.certificateContents);
1893
- if (match) {
1894
- publicKeys.push(match[3]);
1895
- }
1896
- } while (match);
1897
- if (publicKeys.length === 0) {
1898
- throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
1899
- }
1900
- certificateParts.thumbprint = crypto.createHash("sha1")
1901
- .update(Buffer.from(publicKeys[0], "base64"))
1902
- .digest("hex")
1903
- .toUpperCase();
1904
- return certificateParts;
1905
- }
1906
- /**
1907
- * MSAL client certificate client. Calls to MSAL's confidential application's `acquireTokenByClientCredential` during `doGetToken`.
1908
- * @internal
1909
- */
1910
- class MsalClientCertificate extends MsalNode {
1911
- constructor(options) {
1912
- super(options);
1913
- this.requiresConfidential = true;
1914
- this.configuration = options.configuration;
1915
- this.sendCertificateChain = options.sendCertificateChain;
1916
- }
1917
- // Changing the MSAL configuration asynchronously
1918
- async init(options) {
1919
- try {
1920
- const parts = await parseCertificate(this.configuration, this.sendCertificateChain);
1921
- this.msalConfig.auth.clientCertificate = {
1922
- thumbprint: parts.thumbprint,
1923
- privateKey: parts.certificateContents,
1924
- x5c: parts.x5c,
1925
- };
1926
- }
1927
- catch (error) {
1928
- this.logger.info(formatError("", error));
1929
- throw error;
1930
- }
1931
- return super.init(options);
1932
- }
1933
- async doGetToken(scopes, options = {}) {
1934
- try {
1935
- const clientCredReq = {
1936
- scopes,
1937
- correlationId: options.correlationId,
1938
- azureRegion: this.azureRegion,
1939
- authority: options.authority,
1940
- claims: options.claims,
1941
- };
1942
- const result = await this.confidentialApp.acquireTokenByClientCredential(clientCredReq);
1943
- // Even though we're providing the same default in memory persistence cache that we use for DeviceCodeCredential,
1944
- // The Client Credential flow does not return the account information from the authentication service,
1945
- // so each time getToken gets called, we will have to acquire a new token through the service.
1946
- return this.handleResult(scopes, this.clientId, result || undefined);
1947
- }
1948
- catch (err) {
1949
- throw this.handleError(scopes, err, options);
1950
- }
1951
- }
1952
- }
1953
-
1954
- // Copyright (c) Microsoft Corporation.
1955
- const credentialName$2 = "ClientCertificateCredential";
1956
- const logger$f = credentialLogger(credentialName$2);
1957
- /**
1958
- * Enables authentication to Azure Active Directory using a PEM-encoded
1959
- * certificate that is assigned to an App Registration. More information
1960
- * on how to configure certificate authentication can be found here:
1961
- *
1962
- * https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-azure-ad
1963
- *
1964
- */
1965
- class ClientCertificateCredential {
1966
- constructor(tenantId, clientId, certificatePathOrConfiguration, options = {}) {
1967
- if (!tenantId || !clientId) {
1968
- throw new Error(`${credentialName$2}: tenantId and clientId are required parameters.`);
1969
- }
1970
- const configuration = Object.assign({}, (typeof certificatePathOrConfiguration === "string"
1971
- ? {
1972
- certificatePath: certificatePathOrConfiguration,
1973
- }
1974
- : certificatePathOrConfiguration));
1975
- const certificate = configuration
1976
- .certificate;
1977
- const certificatePath = configuration.certificatePath;
1978
- if (!configuration || !(certificate || certificatePath)) {
1979
- throw new Error(`${credentialName$2}: Provide either a PEM certificate in string form, or the path to that certificate in the filesystem. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`);
1980
- }
1981
- if (certificate && certificatePath) {
1982
- throw new Error(`${credentialName$2}: To avoid unexpected behaviors, providing both the contents of a PEM certificate and the path to a PEM certificate is forbidden. To troubleshoot, visit https://aka.ms/azsdk/js/identity/serviceprincipalauthentication/troubleshoot.`);
1983
- }
1984
- this.msalFlow = new MsalClientCertificate(Object.assign(Object.assign({}, options), { configuration,
1985
- logger: logger$f,
1986
- clientId,
1987
- tenantId, sendCertificateChain: options.sendCertificateChain, tokenCredentialOptions: options }));
1988
- }
1989
- /**
1990
- * Authenticates with Azure Active Directory and returns an access token if successful.
1991
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
1992
- *
1993
- * @param scopes - The list of scopes for which the token will have access.
1994
- * @param options - The options used to configure any requests this
1995
- * TokenCredential implementation might make.
1996
- */
1997
- async getToken(scopes, options = {}) {
1998
- return tracingClient.withSpan(`${credentialName$2}.getToken`, options, async (newOptions) => {
1999
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
2000
- return this.msalFlow.getToken(arrayScopes, newOptions);
2001
- });
2002
- }
2003
- }
2004
-
2005
- // Copyright (c) Microsoft Corporation.
2006
- /**
2007
- * MSAL username and password client. Calls to the MSAL's public application's `acquireTokenByUsernamePassword` during `doGetToken`.
2008
- * @internal
2009
- */
2010
- class MsalUsernamePassword extends MsalNode {
2011
- constructor(options) {
2012
- super(options);
2013
- this.username = options.username;
2014
- this.password = options.password;
2015
- }
2016
- async doGetToken(scopes, options) {
2017
- try {
2018
- const requestOptions = {
2019
- scopes,
2020
- username: this.username,
2021
- password: this.password,
2022
- correlationId: options === null || options === void 0 ? void 0 : options.correlationId,
2023
- authority: options === null || options === void 0 ? void 0 : options.authority,
2024
- claims: options === null || options === void 0 ? void 0 : options.claims,
2025
- };
2026
- const result = await this.publicApp.acquireTokenByUsernamePassword(requestOptions);
2027
- return this.handleResult(scopes, this.clientId, result || undefined);
2028
- }
2029
- catch (error) {
2030
- throw this.handleError(scopes, error, options);
2031
- }
2032
- }
2033
- }
2034
-
2035
- // Copyright (c) Microsoft Corporation.
2036
- const logger$e = credentialLogger("UsernamePasswordCredential");
2037
- /**
2038
- * Enables authentication to Azure Active Directory with a user's
2039
- * username and password. This credential requires a high degree of
2040
- * trust so you should only use it when other, more secure credential
2041
- * types can't be used.
2042
- */
2043
- class UsernamePasswordCredential {
2044
- /**
2045
- * Creates an instance of the UsernamePasswordCredential with the details
2046
- * needed to authenticate against Azure Active Directory with a username
2047
- * and password.
2048
- *
2049
- * @param tenantId - The Azure Active Directory tenant (directory).
2050
- * @param clientId - The client (application) ID of an App Registration in the tenant.
2051
- * @param username - The user account's e-mail address (user name).
2052
- * @param password - The user account's account password
2053
- * @param options - Options for configuring the client which makes the authentication request.
2054
- */
2055
- constructor(tenantId, clientId, username, password, options = {}) {
2056
- if (!tenantId || !clientId || !username || !password) {
2057
- throw new Error("UsernamePasswordCredential: tenantId, clientId, username and password are required parameters. To troubleshoot, visit https://aka.ms/azsdk/js/identity/usernamepasswordcredential/troubleshoot.");
2058
- }
2059
- this.msalFlow = new MsalUsernamePassword(Object.assign(Object.assign({}, options), { logger: logger$e,
2060
- clientId,
2061
- tenantId,
2062
- username,
2063
- password, tokenCredentialOptions: options || {} }));
2064
- }
2065
- /**
2066
- * Authenticates with Azure Active Directory and returns an access token if successful.
2067
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
2068
- *
2069
- * If the user provided the option `disableAutomaticAuthentication`,
2070
- * once the token can't be retrieved silently,
2071
- * this method won't attempt to request user interaction to retrieve the token.
2072
- *
2073
- * @param scopes - The list of scopes for which the token will have access.
2074
- * @param options - The options used to configure any requests this
2075
- * TokenCredential implementation might make.
2076
- */
2077
- async getToken(scopes, options = {}) {
2078
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
2079
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
2080
- return this.msalFlow.getToken(arrayScopes, newOptions);
2081
- });
2082
- }
2083
- }
2084
-
2085
- // Copyright (c) Microsoft Corporation.
2086
- /**
2087
- * Contains the list of all supported environment variable names so that an
2088
- * appropriate error message can be generated when no credentials can be
2089
- * configured.
2090
- *
2091
- * @internal
2092
- */
2093
- const AllSupportedEnvironmentVariables = [
2094
- "AZURE_TENANT_ID",
2095
- "AZURE_CLIENT_ID",
2096
- "AZURE_CLIENT_SECRET",
2097
- "AZURE_CLIENT_CERTIFICATE_PATH",
2098
- "AZURE_USERNAME",
2099
- "AZURE_PASSWORD",
2100
- ];
2101
- const credentialName$1 = "EnvironmentCredential";
2102
- const logger$d = credentialLogger(credentialName$1);
2103
- /**
2104
- * Enables authentication to Azure Active Directory using client secret
2105
- * details configured in environment variables
2106
- */
2107
- class EnvironmentCredential {
2108
- /**
2109
- * Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.
2110
- *
2111
- * Required environment variables:
2112
- * - `AZURE_TENANT_ID`: The Azure Active Directory tenant (directory) ID.
2113
- * - `AZURE_CLIENT_ID`: The client (application) ID of an App Registration in the tenant.
2114
- *
2115
- * Environment variables used for client credential authentication:
2116
- * - `AZURE_CLIENT_SECRET`: A client secret that was generated for the App Registration.
2117
- * - `AZURE_CLIENT_CERTIFICATE_PATH`: The path to a PEM certificate to use during the authentication, instead of the client secret.
2118
- *
2119
- * Alternatively, users can provide environment variables for username and password authentication:
2120
- * - `AZURE_USERNAME`: Username to authenticate with.
2121
- * - `AZURE_PASSWORD`: Password to authenticate with.
2122
- *
2123
- * If the environment variables required to perform the authentication are missing, a {@link CredentialUnavailableError} will be thrown.
2124
- * If the authentication fails, or if there's an unknown error, an {@link AuthenticationError} will be thrown.
2125
- *
2126
- * @param options - Options for configuring the client which makes the authentication request.
2127
- */
2128
- constructor(options) {
2129
- // Keep track of any missing environment variables for error details
2130
- this._credential = undefined;
2131
- const assigned = processEnvVars(AllSupportedEnvironmentVariables).assigned.join(", ");
2132
- logger$d.info(`Found the following environment variables: ${assigned}`);
2133
- const tenantId = process.env.AZURE_TENANT_ID, clientId = process.env.AZURE_CLIENT_ID, clientSecret = process.env.AZURE_CLIENT_SECRET;
2134
- if (tenantId) {
2135
- checkTenantId(logger$d, tenantId);
2136
- }
2137
- if (tenantId && clientId && clientSecret) {
2138
- logger$d.info(`Invoking ClientSecretCredential with tenant ID: ${tenantId}, clientId: ${clientId} and clientSecret: [REDACTED]`);
2139
- this._credential = new ClientSecretCredential(tenantId, clientId, clientSecret, options);
2140
- return;
2141
- }
2142
- const certificatePath = process.env.AZURE_CLIENT_CERTIFICATE_PATH;
2143
- if (tenantId && clientId && certificatePath) {
2144
- logger$d.info(`Invoking ClientCertificateCredential with tenant ID: ${tenantId}, clientId: ${clientId} and certificatePath: ${certificatePath}`);
2145
- this._credential = new ClientCertificateCredential(tenantId, clientId, { certificatePath }, options);
2146
- return;
2147
- }
2148
- const username = process.env.AZURE_USERNAME;
2149
- const password = process.env.AZURE_PASSWORD;
2150
- if (tenantId && clientId && username && password) {
2151
- logger$d.info(`Invoking UsernamePasswordCredential with tenant ID: ${tenantId}, clientId: ${clientId} and username: ${username}`);
2152
- this._credential = new UsernamePasswordCredential(tenantId, clientId, username, password, options);
2153
- }
2154
- }
2155
- /**
2156
- * Authenticates with Azure Active Directory and returns an access token if successful.
2157
- *
2158
- * @param scopes - The list of scopes for which the token will have access.
2159
- * @param options - Optional parameters. See {@link GetTokenOptions}.
2160
- */
2161
- async getToken(scopes, options = {}) {
2162
- return tracingClient.withSpan(`${credentialName$1}.getToken`, options, async (newOptions) => {
2163
- if (this._credential) {
2164
- try {
2165
- const result = await this._credential.getToken(scopes, newOptions);
2166
- logger$d.getToken.info(formatSuccess(scopes));
2167
- return result;
2168
- }
2169
- catch (err) {
2170
- const authenticationError = new AuthenticationError(400, {
2171
- error: `${credentialName$1} authentication failed. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`,
2172
- error_description: err.message.toString().split("More details:").join(""),
2173
- });
2174
- logger$d.getToken.info(formatError(scopes, authenticationError));
2175
- throw authenticationError;
2176
- }
2177
- }
2178
- throw new CredentialUnavailableError(`${credentialName$1} is unavailable. No underlying credential could be used. To troubleshoot, visit https://aka.ms/azsdk/js/identity/environmentcredential/troubleshoot.`);
2179
- });
2180
- }
2181
- }
2182
-
2183
- // Copyright (c) Microsoft Corporation.
2184
- // Licensed under the MIT license.
2185
- const DefaultScopeSuffix = "/.default";
2186
- const imdsHost = "http://169.254.169.254";
2187
- const imdsEndpointPath = "/metadata/identity/oauth2/token";
2188
- const imdsApiVersion = "2018-02-01";
2189
- const azureArcAPIVersion = "2019-11-01";
2190
- const azureFabricVersion = "2019-07-01-preview";
2191
-
2192
- // Copyright (c) Microsoft Corporation.
2193
- /**
2194
- * Most MSIs send requests to the IMDS endpoint, or a similar endpoint.
2195
- * These are GET requests that require sending a `resource` parameter on the query.
2196
- * This resource can be derived from the scopes received through the getToken call, as long as only one scope is received.
2197
- * Multiple scopes assume that the resulting token will have access to multiple resources, which won't be the case.
2198
- *
2199
- * For that reason, when we encounter multiple scopes, we return undefined.
2200
- * It's up to the individual MSI implementations to throw the errors (which helps us provide less generic errors).
2201
- */
2202
- function mapScopesToResource(scopes) {
2203
- let scope = "";
2204
- if (Array.isArray(scopes)) {
2205
- if (scopes.length !== 1) {
2206
- return;
2207
- }
2208
- scope = scopes[0];
2209
- }
2210
- else if (typeof scopes === "string") {
2211
- scope = scopes;
2212
- }
2213
- if (!scope.endsWith(DefaultScopeSuffix)) {
2214
- return scope;
2215
- }
2216
- return scope.substr(0, scope.lastIndexOf(DefaultScopeSuffix));
2217
- }
2218
-
2219
- // Copyright (c) Microsoft Corporation.
2220
- const msiName$6 = "ManagedIdentityCredential - AppServiceMSI 2017";
2221
- const logger$c = credentialLogger(msiName$6);
2222
- /**
2223
- * Formats the expiration date of the received token into the number of milliseconds between that date and midnight, January 1, 1970.
2224
- */
2225
- function expiresOnParser$3(requestBody) {
2226
- // App Service always returns string expires_on values.
2227
- return Date.parse(requestBody.expires_on);
2228
- }
2229
- /**
2230
- * Generates the options used on the request for an access token.
2231
- */
2232
- function prepareRequestOptions$6(scopes, clientId) {
2233
- const resource = mapScopesToResource(scopes);
2234
- if (!resource) {
2235
- throw new Error(`${msiName$6}: Multiple scopes are not supported.`);
2236
- }
2237
- const queryParameters = {
2238
- resource,
2239
- "api-version": "2017-09-01",
2240
- };
2241
- if (clientId) {
2242
- queryParameters.clientid = clientId;
2243
- }
2244
- const query = new URLSearchParams(queryParameters);
2245
- // This error should not bubble up, since we verify that this environment variable is defined in the isAvailable() method defined below.
2246
- if (!process.env.MSI_ENDPOINT) {
2247
- throw new Error(`${msiName$6}: Missing environment variable: MSI_ENDPOINT`);
2248
- }
2249
- if (!process.env.MSI_SECRET) {
2250
- throw new Error(`${msiName$6}: Missing environment variable: MSI_SECRET`);
2251
- }
2252
- return {
2253
- url: `${process.env.MSI_ENDPOINT}?${query.toString()}`,
2254
- method: "GET",
2255
- headers: coreRestPipeline.createHttpHeaders({
2256
- Accept: "application/json",
2257
- secret: process.env.MSI_SECRET,
2258
- }),
2259
- };
2260
- }
2261
- /**
2262
- * Defines how to determine whether the Azure App Service MSI is available, and also how to retrieve a token from the Azure App Service MSI.
2263
- */
2264
- const appServiceMsi2017 = {
2265
- async isAvailable({ scopes }) {
2266
- const resource = mapScopesToResource(scopes);
2267
- if (!resource) {
2268
- logger$c.info(`${msiName$6}: Unavailable. Multiple scopes are not supported.`);
2269
- return false;
2270
- }
2271
- const env = process.env;
2272
- const result = Boolean(env.MSI_ENDPOINT && env.MSI_SECRET);
2273
- if (!result) {
2274
- logger$c.info(`${msiName$6}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.`);
2275
- }
2276
- return result;
2277
- },
2278
- async getToken(configuration, getTokenOptions = {}) {
2279
- const { identityClient, scopes, clientId, resourceId } = configuration;
2280
- if (resourceId) {
2281
- logger$c.warning(`${msiName$6}: managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.`);
2282
- }
2283
- logger$c.info(`${msiName$6}: Using the endpoint and the secret coming form the environment variables: MSI_ENDPOINT=${process.env.MSI_ENDPOINT} and MSI_SECRET=[REDACTED].`);
2284
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$6(scopes, clientId)), {
2285
- // Generally, MSI endpoints use the HTTP protocol, without transport layer security (TLS).
2286
- allowInsecureConnection: true }));
2287
- const tokenResponse = await identityClient.sendTokenRequest(request, expiresOnParser$3);
2288
- return (tokenResponse && tokenResponse.accessToken) || null;
2289
- },
2290
- };
2291
-
2292
- // Copyright (c) Microsoft Corporation.
2293
- const msiName$5 = "ManagedIdentityCredential - CloudShellMSI";
2294
- const logger$b = credentialLogger(msiName$5);
2295
- /**
2296
- * Generates the options used on the request for an access token.
2297
- */
2298
- function prepareRequestOptions$5(scopes, clientId, resourceId) {
2299
- const resource = mapScopesToResource(scopes);
2300
- if (!resource) {
2301
- throw new Error(`${msiName$5}: Multiple scopes are not supported.`);
2302
- }
2303
- const body = {
2304
- resource,
2305
- };
2306
- if (clientId) {
2307
- body.client_id = clientId;
2308
- }
2309
- if (resourceId) {
2310
- body.msi_res_id = resourceId;
2311
- }
2312
- // This error should not bubble up, since we verify that this environment variable is defined in the isAvailable() method defined below.
2313
- if (!process.env.MSI_ENDPOINT) {
2314
- throw new Error(`${msiName$5}: Missing environment variable: MSI_ENDPOINT`);
2315
- }
2316
- const params = new URLSearchParams(body);
2317
- return {
2318
- url: process.env.MSI_ENDPOINT,
2319
- method: "POST",
2320
- body: params.toString(),
2321
- headers: coreRestPipeline.createHttpHeaders({
2322
- Accept: "application/json",
2323
- Metadata: "true",
2324
- "Content-Type": "application/x-www-form-urlencoded",
2325
- }),
2326
- };
2327
- }
2328
- /**
2329
- * Defines how to determine whether the Azure Cloud Shell MSI is available, and also how to retrieve a token from the Azure Cloud Shell MSI.
2330
- * Since Azure Managed Identities aren't available in the Azure Cloud Shell, we log a warning for users that try to access cloud shell using user assigned identity.
2331
- */
2332
- const cloudShellMsi = {
2333
- async isAvailable({ scopes }) {
2334
- const resource = mapScopesToResource(scopes);
2335
- if (!resource) {
2336
- logger$b.info(`${msiName$5}: Unavailable. Multiple scopes are not supported.`);
2337
- return false;
2338
- }
2339
- const result = Boolean(process.env.MSI_ENDPOINT);
2340
- if (!result) {
2341
- logger$b.info(`${msiName$5}: Unavailable. The environment variable MSI_ENDPOINT is needed.`);
2342
- }
2343
- return result;
2344
- },
2345
- async getToken(configuration, getTokenOptions = {}) {
2346
- const { identityClient, scopes, clientId, resourceId } = configuration;
2347
- if (clientId) {
2348
- logger$b.warning(`${msiName$5}: user-assigned identities not supported. The argument clientId might be ignored by the service.`);
2349
- }
2350
- if (resourceId) {
2351
- logger$b.warning(`${msiName$5}: user defined managed Identity by resource Id not supported. The argument resourceId might be ignored by the service.`);
2352
- }
2353
- logger$b.info(`${msiName$5}: Using the endpoint coming form the environment variable MSI_ENDPOINT = ${process.env.MSI_ENDPOINT}.`);
2354
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$5(scopes, clientId, resourceId)), {
2355
- // Generally, MSI endpoints use the HTTP protocol, without transport layer security (TLS).
2356
- allowInsecureConnection: true }));
2357
- const tokenResponse = await identityClient.sendTokenRequest(request);
2358
- return (tokenResponse && tokenResponse.accessToken) || null;
2359
- },
2360
- };
2361
-
2362
- // Copyright (c) Microsoft Corporation.
2363
- const msiName$4 = "ManagedIdentityCredential - IMDS";
2364
- const logger$a = credentialLogger(msiName$4);
2365
- /**
2366
- * Formats the expiration date of the received token into the number of milliseconds between that date and midnight, January 1, 1970.
2367
- */
2368
- function expiresOnParser$2(requestBody) {
2369
- if (requestBody.expires_on) {
2370
- // Use the expires_on timestamp if it's available
2371
- const expires = +requestBody.expires_on * 1000;
2372
- logger$a.info(`${msiName$4}: Using expires_on: ${expires} (original value: ${requestBody.expires_on})`);
2373
- return expires;
2374
- }
2375
- else {
2376
- // If these aren't possible, use expires_in and calculate a timestamp
2377
- const expires = Date.now() + requestBody.expires_in * 1000;
2378
- logger$a.info(`${msiName$4}: IMDS using expires_in: ${expires} (original value: ${requestBody.expires_in})`);
2379
- return expires;
2380
- }
2381
- }
2382
- /**
2383
- * Generates the options used on the request for an access token.
2384
- */
2385
- function prepareRequestOptions$4(scopes, clientId, resourceId, options) {
2386
- var _a;
2387
- const resource = mapScopesToResource(scopes);
2388
- if (!resource) {
2389
- throw new Error(`${msiName$4}: Multiple scopes are not supported.`);
2390
- }
2391
- const { skipQuery, skipMetadataHeader } = options || {};
2392
- let query = "";
2393
- // Pod Identity will try to process this request even if the Metadata header is missing.
2394
- // We can exclude the request query to ensure no IMDS endpoint tries to process the ping request.
2395
- if (!skipQuery) {
2396
- const queryParameters = {
2397
- resource,
2398
- "api-version": imdsApiVersion,
2399
- };
2400
- if (clientId) {
2401
- queryParameters.client_id = clientId;
2402
- }
2403
- if (resourceId) {
2404
- queryParameters.msi_res_id = resourceId;
2405
- }
2406
- const params = new URLSearchParams(queryParameters);
2407
- query = `?${params.toString()}`;
2408
- }
2409
- const url = new URL(imdsEndpointPath, (_a = process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) !== null && _a !== void 0 ? _a : imdsHost);
2410
- const rawHeaders = {
2411
- Accept: "application/json",
2412
- Metadata: "true",
2413
- };
2414
- // Remove the Metadata header to invoke a request error from some IMDS endpoints.
2415
- if (skipMetadataHeader) {
2416
- delete rawHeaders.Metadata;
2417
- }
2418
- return {
2419
- // In this case, the `?` should be added in the "query" variable `skipQuery` is not set.
2420
- url: `${url}${query}`,
2421
- method: "GET",
2422
- headers: coreRestPipeline.createHttpHeaders(rawHeaders),
2423
- };
2424
- }
2425
- // 800ms -> 1600ms -> 3200ms
2426
- const imdsMsiRetryConfig = {
2427
- maxRetries: 3,
2428
- startDelayInMs: 800,
2429
- intervalIncrement: 2,
2430
- };
2431
- /**
2432
- * Defines how to determine whether the Azure IMDS MSI is available, and also how to retrieve a token from the Azure IMDS MSI.
2433
- */
2434
- const imdsMsi = {
2435
- async isAvailable({ scopes, identityClient, clientId, resourceId, getTokenOptions = {}, }) {
2436
- const resource = mapScopesToResource(scopes);
2437
- if (!resource) {
2438
- logger$a.info(`${msiName$4}: Unavailable. Multiple scopes are not supported.`);
2439
- return false;
2440
- }
2441
- // if the PodIdentityEndpoint environment variable was set no need to probe the endpoint, it can be assumed to exist
2442
- if (process.env.AZURE_POD_IDENTITY_AUTHORITY_HOST) {
2443
- return true;
2444
- }
2445
- if (!identityClient) {
2446
- throw new Error("Missing IdentityClient");
2447
- }
2448
- const requestOptions = prepareRequestOptions$4(resource, clientId, resourceId, {
2449
- skipMetadataHeader: true,
2450
- skipQuery: true,
2451
- });
2452
- return tracingClient.withSpan("ManagedIdentityCredential-pingImdsEndpoint", getTokenOptions, async (options) => {
2453
- var _a, _b;
2454
- requestOptions.tracingOptions = options.tracingOptions;
2455
- try {
2456
- // Create a request with a timeout since we expect that
2457
- // not having a "Metadata" header should cause an error to be
2458
- // returned quickly from the endpoint, proving its availability.
2459
- const request = coreRestPipeline.createPipelineRequest(requestOptions);
2460
- request.timeout = (_b = (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.timeout) !== null && _b !== void 0 ? _b : 300;
2461
- // This MSI uses the imdsEndpoint to get the token, which only uses http://
2462
- request.allowInsecureConnection = true;
2463
- try {
2464
- logger$a.info(`${msiName$4}: Pinging the Azure IMDS endpoint`);
2465
- await identityClient.sendRequest(request);
2466
- }
2467
- catch (err) {
2468
- if ((err.name === "RestError" && err.code === coreRestPipeline.RestError.REQUEST_SEND_ERROR) ||
2469
- err.name === "AbortError" ||
2470
- err.code === "ENETUNREACH" || // Network unreachable
2471
- err.code === "ECONNREFUSED" || // connection refused
2472
- err.code === "EHOSTDOWN" // host is down
2473
- ) {
2474
- // If the request failed, or Node.js was unable to establish a connection,
2475
- // or the host was down, we'll assume the IMDS endpoint isn't available.
2476
- logger$a.info(`${msiName$4}: The Azure IMDS endpoint is unavailable`);
2477
- return false;
2478
- }
2479
- }
2480
- // If we received any response, the endpoint is available
2481
- logger$a.info(`${msiName$4}: The Azure IMDS endpoint is available`);
2482
- return true;
2483
- }
2484
- catch (err) {
2485
- // createWebResource failed.
2486
- // This error should bubble up to the user.
2487
- logger$a.info(`${msiName$4}: Error when creating the WebResource for the Azure IMDS endpoint: ${err.message}`);
2488
- throw err;
2489
- }
2490
- });
2491
- },
2492
- async getToken(configuration, getTokenOptions = {}) {
2493
- const { identityClient, scopes, clientId, resourceId } = configuration;
2494
- logger$a.info(`${msiName$4}: Using the Azure IMDS endpoint coming from the environment variable MSI_ENDPOINT=${process.env.MSI_ENDPOINT}, and using the cloud shell to proceed with the authentication.`);
2495
- let nextDelayInMs = imdsMsiRetryConfig.startDelayInMs;
2496
- for (let retries = 0; retries < imdsMsiRetryConfig.maxRetries; retries++) {
2497
- try {
2498
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$4(scopes, clientId, resourceId)), { allowInsecureConnection: true }));
2499
- const tokenResponse = await identityClient.sendTokenRequest(request, expiresOnParser$2);
2500
- return (tokenResponse && tokenResponse.accessToken) || null;
2501
- }
2502
- catch (error) {
2503
- if (error.statusCode === 404) {
2504
- await coreUtil.delay(nextDelayInMs);
2505
- nextDelayInMs *= imdsMsiRetryConfig.intervalIncrement;
2506
- continue;
2507
- }
2508
- throw error;
2509
- }
2510
- }
2511
- throw new AuthenticationError(404, `${msiName$4}: Failed to retrieve IMDS token after ${imdsMsiRetryConfig.maxRetries} retries.`);
2512
- },
2513
- };
2514
-
2515
- // Copyright (c) Microsoft Corporation.
2516
- const msiName$3 = "ManagedIdentityCredential - Azure Arc MSI";
2517
- const logger$9 = credentialLogger(msiName$3);
2518
- /**
2519
- * Generates the options used on the request for an access token.
2520
- */
2521
- function prepareRequestOptions$3(scopes, clientId, resourceId) {
2522
- const resource = mapScopesToResource(scopes);
2523
- if (!resource) {
2524
- throw new Error(`${msiName$3}: Multiple scopes are not supported.`);
2525
- }
2526
- const queryParameters = {
2527
- resource,
2528
- "api-version": azureArcAPIVersion,
2529
- };
2530
- if (clientId) {
2531
- queryParameters.client_id = clientId;
2532
- }
2533
- if (resourceId) {
2534
- queryParameters.msi_res_id = resourceId;
2535
- }
2536
- // This error should not bubble up, since we verify that this environment variable is defined in the isAvailable() method defined below.
2537
- if (!process.env.IDENTITY_ENDPOINT) {
2538
- throw new Error(`${msiName$3}: Missing environment variable: IDENTITY_ENDPOINT`);
2539
- }
2540
- const query = new URLSearchParams(queryParameters);
2541
- return coreRestPipeline.createPipelineRequest({
2542
- // Should be similar to: http://localhost:40342/metadata/identity/oauth2/token
2543
- url: `${process.env.IDENTITY_ENDPOINT}?${query.toString()}`,
2544
- method: "GET",
2545
- headers: coreRestPipeline.createHttpHeaders({
2546
- Accept: "application/json",
2547
- Metadata: "true",
2548
- }),
2549
- });
2550
- }
2551
- /**
2552
- * Retrieves the file contents at the given path using promises.
2553
- * Useful since `fs`'s readFileSync locks the thread, and to avoid extra dependencies.
2554
- */
2555
- function readFileAsync$1(path, options) {
2556
- return new Promise((resolve, reject) => fs.readFile(path, options, (err, data) => {
2557
- if (err) {
2558
- reject(err);
2559
- }
2560
- resolve(data);
2561
- }));
2562
- }
2563
- /**
2564
- * Does a request to the authentication provider that results in a file path.
2565
- */
2566
- async function filePathRequest(identityClient, requestPrepareOptions) {
2567
- const response = await identityClient.sendRequest(coreRestPipeline.createPipelineRequest(requestPrepareOptions));
2568
- if (response.status !== 401) {
2569
- let message = "";
2570
- if (response.bodyAsText) {
2571
- message = ` Response: ${response.bodyAsText}`;
2572
- }
2573
- throw new AuthenticationError(response.status, `${msiName$3}: To authenticate with Azure Arc MSI, status code 401 is expected on the first request. ${message}`);
2574
- }
2575
- const authHeader = response.headers.get("www-authenticate") || "";
2576
- try {
2577
- return authHeader.split("=").slice(1)[0];
2578
- }
2579
- catch (e) {
2580
- throw Error(`Invalid www-authenticate header format: ${authHeader}`);
2581
- }
2582
- }
2583
- /**
2584
- * Defines how to determine whether the Azure Arc MSI is available, and also how to retrieve a token from the Azure Arc MSI.
2585
- */
2586
- const arcMsi = {
2587
- async isAvailable({ scopes }) {
2588
- const resource = mapScopesToResource(scopes);
2589
- if (!resource) {
2590
- logger$9.info(`${msiName$3}: Unavailable. Multiple scopes are not supported.`);
2591
- return false;
2592
- }
2593
- const result = Boolean(process.env.IMDS_ENDPOINT && process.env.IDENTITY_ENDPOINT);
2594
- if (!result) {
2595
- logger$9.info(`${msiName$3}: The environment variables needed are: IMDS_ENDPOINT and IDENTITY_ENDPOINT`);
2596
- }
2597
- return result;
2598
- },
2599
- async getToken(configuration, getTokenOptions = {}) {
2600
- var _a;
2601
- const { identityClient, scopes, clientId, resourceId } = configuration;
2602
- if (clientId) {
2603
- logger$9.warning(`${msiName$3}: user-assigned identities not supported. The argument clientId might be ignored by the service.`);
2604
- }
2605
- if (resourceId) {
2606
- logger$9.warning(`${msiName$3}: user defined managed Identity by resource Id is not supported. Argument resourceId will be ignored.`);
2607
- }
2608
- logger$9.info(`${msiName$3}: Authenticating.`);
2609
- const requestOptions = Object.assign(Object.assign({ disableJsonStringifyOnBody: true, deserializationMapper: undefined, abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$3(scopes, clientId, resourceId)), { allowInsecureConnection: true });
2610
- const filePath = await filePathRequest(identityClient, requestOptions);
2611
- if (!filePath) {
2612
- throw new Error(`${msiName$3}: Failed to find the token file.`);
2613
- }
2614
- const key = await readFileAsync$1(filePath, { encoding: "utf-8" });
2615
- (_a = requestOptions.headers) === null || _a === void 0 ? void 0 : _a.set("Authorization", `Basic ${key}`);
2616
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({}, requestOptions), {
2617
- // Generally, MSI endpoints use the HTTP protocol, without transport layer security (TLS).
2618
- allowInsecureConnection: true }));
2619
- const tokenResponse = await identityClient.sendTokenRequest(request);
2620
- return (tokenResponse && tokenResponse.accessToken) || null;
2621
- },
2622
- };
2623
-
2624
- // Copyright (c) Microsoft Corporation.
2625
- const msiName$2 = "ManagedIdentityCredential - Token Exchange";
2626
- const logger$8 = credentialLogger(msiName$2);
2627
- const readFileAsync = util.promisify(fs__default["default"].readFile);
2628
- /**
2629
- * Generates the options used on the request for an access token.
2630
- */
2631
- function prepareRequestOptions$2(scopes, clientAssertion, clientId) {
2632
- var _a;
2633
- const bodyParams = {
2634
- scope: Array.isArray(scopes) ? scopes.join(" ") : scopes,
2635
- client_assertion: clientAssertion,
2636
- client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
2637
- client_id: clientId,
2638
- grant_type: "client_credentials",
2639
- };
2640
- const urlParams = new URLSearchParams(bodyParams);
2641
- const url = new URL(`${process.env.AZURE_TENANT_ID}/oauth2/v2.0/token`, (_a = process.env.AZURE_AUTHORITY_HOST) !== null && _a !== void 0 ? _a : DefaultAuthorityHost);
2642
- return {
2643
- url: url.toString(),
2644
- method: "POST",
2645
- body: urlParams.toString(),
2646
- headers: coreRestPipeline.createHttpHeaders({
2647
- Accept: "application/json",
2648
- }),
2649
- };
2650
- }
2651
- /**
2652
- * Defines how to determine whether the token exchange MSI is available, and also how to retrieve a token from the token exchange MSI.
2653
- */
2654
- function tokenExchangeMsi() {
2655
- const azureFederatedTokenFilePath = process.env.AZURE_FEDERATED_TOKEN_FILE;
2656
- let azureFederatedTokenFileContent = undefined;
2657
- let cacheDate = undefined;
2658
- // Only reads from the assertion file once every 5 minutes
2659
- async function readAssertion() {
2660
- // Cached assertions expire after 5 minutes
2661
- if (cacheDate !== undefined && Date.now() - cacheDate >= 1000 * 60 * 5) {
2662
- azureFederatedTokenFileContent = undefined;
2663
- }
2664
- if (!azureFederatedTokenFileContent) {
2665
- const file = await readFileAsync(azureFederatedTokenFilePath, "utf8");
2666
- const value = file.trim();
2667
- if (!value) {
2668
- throw new Error(`No content on the file ${azureFederatedTokenFilePath}, indicated by the environment variable AZURE_FEDERATED_TOKEN_FILE`);
2669
- }
2670
- else {
2671
- azureFederatedTokenFileContent = value;
2672
- cacheDate = Date.now();
2673
- }
2674
- }
2675
- return azureFederatedTokenFileContent;
2676
- }
2677
- return {
2678
- async isAvailable({ clientId }) {
2679
- const env = process.env;
2680
- const result = Boolean((clientId || env.AZURE_CLIENT_ID) && env.AZURE_TENANT_ID && azureFederatedTokenFilePath);
2681
- if (!result) {
2682
- logger$8.info(`${msiName$2}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`);
2683
- }
2684
- return result;
2685
- },
2686
- async getToken(configuration, getTokenOptions = {}) {
2687
- const { identityClient, scopes, clientId } = configuration;
2688
- logger$8.info(`${msiName$2}: Using the client assertion coming from environment variables.`);
2689
- let assertion;
2690
- try {
2691
- assertion = await readAssertion();
2692
- }
2693
- catch (err) {
2694
- throw new Error(`${msiName$2}: Failed to read ${azureFederatedTokenFilePath}, indicated by the environment variable AZURE_FEDERATED_TOKEN_FILE`);
2695
- }
2696
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$2(scopes, assertion, clientId || process.env.AZURE_CLIENT_ID)), {
2697
- // Generally, MSI endpoints use the HTTP protocol, without transport layer security (TLS).
2698
- allowInsecureConnection: true }));
2699
- const tokenResponse = await identityClient.sendTokenRequest(request);
2700
- return (tokenResponse && tokenResponse.accessToken) || null;
2701
- },
2702
- };
2703
- }
2704
-
2705
- // Copyright (c) Microsoft Corporation.
2706
- // This MSI can be easily tested by deploying a container to Azure Service Fabric with the Dockerfile:
2707
- //
2708
- // FROM node:12
2709
- // RUN wget https://host.any/path/bash.sh
2710
- // CMD ["bash", "bash.sh"]
2711
- //
2712
- // Where the bash script contains:
2713
- //
2714
- // curl --insecure $IDENTITY_ENDPOINT'?api-version=2019-07-01-preview&resource=https://vault.azure.net/' -H "Secret: $IDENTITY_HEADER"
2715
- //
2716
- const msiName$1 = "ManagedIdentityCredential - Fabric MSI";
2717
- const logger$7 = credentialLogger(msiName$1);
2718
- /**
2719
- * Formats the expiration date of the received token into the number of milliseconds between that date and midnight, January 1, 1970.
2720
- */
2721
- function expiresOnParser$1(requestBody) {
2722
- // Parses a string representation of the milliseconds since epoch into a number value
2723
- return Number(requestBody.expires_on);
2724
- }
2725
- /**
2726
- * Generates the options used on the request for an access token.
2727
- */
2728
- function prepareRequestOptions$1(scopes, clientId, resourceId) {
2729
- const resource = mapScopesToResource(scopes);
2730
- if (!resource) {
2731
- throw new Error(`${msiName$1}: Multiple scopes are not supported.`);
2732
- }
2733
- const queryParameters = {
2734
- resource,
2735
- "api-version": azureFabricVersion,
2736
- };
2737
- if (clientId) {
2738
- queryParameters.client_id = clientId;
2739
- }
2740
- if (resourceId) {
2741
- queryParameters.msi_res_id = resourceId;
2742
- }
2743
- const query = new URLSearchParams(queryParameters);
2744
- // This error should not bubble up, since we verify that this environment variable is defined in the isAvailable() method defined below.
2745
- if (!process.env.IDENTITY_ENDPOINT) {
2746
- throw new Error("Missing environment variable: IDENTITY_ENDPOINT");
2747
- }
2748
- if (!process.env.IDENTITY_HEADER) {
2749
- throw new Error("Missing environment variable: IDENTITY_HEADER");
2750
- }
2751
- return {
2752
- url: `${process.env.IDENTITY_ENDPOINT}?${query.toString()}`,
2753
- method: "GET",
2754
- headers: coreRestPipeline.createHttpHeaders({
2755
- Accept: "application/json",
2756
- secret: process.env.IDENTITY_HEADER,
2757
- }),
2758
- };
2759
- }
2760
- /**
2761
- * Defines how to determine whether the Azure Service Fabric MSI is available, and also how to retrieve a token from the Azure Service Fabric MSI.
2762
- */
2763
- const fabricMsi = {
2764
- async isAvailable({ scopes }) {
2765
- const resource = mapScopesToResource(scopes);
2766
- if (!resource) {
2767
- logger$7.info(`${msiName$1}: Unavailable. Multiple scopes are not supported.`);
2768
- return false;
2769
- }
2770
- const env = process.env;
2771
- const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER && env.IDENTITY_SERVER_THUMBPRINT);
2772
- if (!result) {
2773
- logger$7.info(`${msiName$1}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT`);
2774
- }
2775
- return result;
2776
- },
2777
- async getToken(configuration, getTokenOptions = {}) {
2778
- const { scopes, identityClient, clientId, resourceId } = configuration;
2779
- if (resourceId) {
2780
- logger$7.warning(`${msiName$1}: user defined managed Identity by resource Id is not supported. Argument resourceId might be ignored by the service.`);
2781
- }
2782
- logger$7.info([
2783
- `${msiName$1}:`,
2784
- "Using the endpoint and the secret coming from the environment variables:",
2785
- `IDENTITY_ENDPOINT=${process.env.IDENTITY_ENDPOINT},`,
2786
- "IDENTITY_HEADER=[REDACTED] and",
2787
- "IDENTITY_SERVER_THUMBPRINT=[REDACTED].",
2788
- ].join(" "));
2789
- const request = coreRestPipeline.createPipelineRequest(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions$1(scopes, clientId, resourceId)));
2790
- request.agent = new https__default["default"].Agent({
2791
- // This is necessary because Service Fabric provides a self-signed certificate.
2792
- // The alternative path is to verify the certificate using the IDENTITY_SERVER_THUMBPRINT env variable.
2793
- rejectUnauthorized: false,
2794
- });
2795
- const tokenResponse = await identityClient.sendTokenRequest(request, expiresOnParser$1);
2796
- return (tokenResponse && tokenResponse.accessToken) || null;
2797
- },
2798
- };
2799
-
2800
- // Copyright (c) Microsoft Corporation.
2801
- const msiName = "ManagedIdentityCredential - AppServiceMSI 2019";
2802
- const logger$6 = credentialLogger(msiName);
2803
- /**
2804
- * Formats the expiration date of the received token into the number of milliseconds between that date and midnight, January 1, 1970.
2805
- */
2806
- function expiresOnParser(requestBody) {
2807
- // App Service always returns string expires_on values.
2808
- return Date.parse(requestBody.expires_on);
2809
- }
2810
- /**
2811
- * Generates the options used on the request for an access token.
2812
- */
2813
- function prepareRequestOptions(scopes, clientId, resourceId) {
2814
- const resource = mapScopesToResource(scopes);
2815
- if (!resource) {
2816
- throw new Error(`${msiName}: Multiple scopes are not supported.`);
2817
- }
2818
- const queryParameters = {
2819
- resource,
2820
- "api-version": "2019-08-01",
2821
- };
2822
- if (clientId) {
2823
- queryParameters.client_id = clientId;
2824
- }
2825
- if (resourceId) {
2826
- queryParameters.mi_res_id = resourceId;
2827
- }
2828
- const query = new URLSearchParams(queryParameters);
2829
- // This error should not bubble up, since we verify that this environment variable is defined in the isAvailable() method defined below.
2830
- if (!process.env.IDENTITY_ENDPOINT) {
2831
- throw new Error(`${msiName}: Missing environment variable: IDENTITY_ENDPOINT`);
2832
- }
2833
- if (!process.env.IDENTITY_HEADER) {
2834
- throw new Error(`${msiName}: Missing environment variable: IDENTITY_HEADER`);
2835
- }
2836
- return {
2837
- url: `${process.env.IDENTITY_ENDPOINT}?${query.toString()}`,
2838
- method: "GET",
2839
- headers: coreRestPipeline.createHttpHeaders({
2840
- Accept: "application/json",
2841
- "X-IDENTITY-HEADER": process.env.IDENTITY_HEADER,
2842
- }),
2843
- };
2844
- }
2845
- /**
2846
- * Defines how to determine whether the Azure App Service MSI is available, and also how to retrieve a token from the Azure App Service MSI.
2847
- */
2848
- const appServiceMsi2019 = {
2849
- async isAvailable({ scopes }) {
2850
- const resource = mapScopesToResource(scopes);
2851
- if (!resource) {
2852
- logger$6.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
2853
- return false;
2854
- }
2855
- const env = process.env;
2856
- const result = Boolean(env.IDENTITY_ENDPOINT && env.IDENTITY_HEADER);
2857
- if (!result) {
2858
- logger$6.info(`${msiName}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.`);
2859
- }
2860
- return result;
2861
- },
2862
- async getToken(configuration, getTokenOptions = {}) {
2863
- const { identityClient, scopes, clientId, resourceId } = configuration;
2864
- logger$6.info(`${msiName}: Using the endpoint and the secret coming form the environment variables: IDENTITY_ENDPOINT=${process.env.IDENTITY_ENDPOINT} and IDENTITY_HEADER=[REDACTED].`);
2865
- const request = coreRestPipeline.createPipelineRequest(Object.assign(Object.assign({ abortSignal: getTokenOptions.abortSignal }, prepareRequestOptions(scopes, clientId, resourceId)), {
2866
- // Generally, MSI endpoints use the HTTP protocol, without transport layer security (TLS).
2867
- allowInsecureConnection: true }));
2868
- const tokenResponse = await identityClient.sendTokenRequest(request, expiresOnParser);
2869
- return (tokenResponse && tokenResponse.accessToken) || null;
2870
- },
2871
- };
2872
-
2873
- // Copyright (c) Microsoft Corporation.
2874
- const logger$5 = credentialLogger("ManagedIdentityCredential");
2875
- /**
2876
- * Attempts authentication using a managed identity available at the deployment environment.
2877
- * This authentication type works in Azure VMs, App Service instances, Azure Functions applications,
2878
- * Azure Kubernetes Services, Azure Service Fabric instances and inside of the Azure Cloud Shell.
2879
- *
2880
- * More information about configuring managed identities can be found here:
2881
- * https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview
2882
- */
2883
- class ManagedIdentityCredential {
2884
- /**
2885
- * @internal
2886
- * @hidden
2887
- */
2888
- constructor(clientIdOrOptions, options) {
2889
- this.isEndpointUnavailable = null;
2890
- let _options;
2891
- if (typeof clientIdOrOptions === "string") {
2892
- this.clientId = clientIdOrOptions;
2893
- _options = options;
2894
- }
2895
- else {
2896
- this.clientId = clientIdOrOptions === null || clientIdOrOptions === void 0 ? void 0 : clientIdOrOptions.clientId;
2897
- _options = clientIdOrOptions;
2898
- }
2899
- this.resourceId = _options === null || _options === void 0 ? void 0 : _options.resourceId;
2900
- // For JavaScript users.
2901
- if (this.clientId && this.resourceId) {
2902
- throw new Error(`${ManagedIdentityCredential.name} - Client Id and Resource Id can't be provided at the same time.`);
2903
- }
2904
- this.identityClient = new IdentityClient(_options);
2905
- this.isAvailableIdentityClient = new IdentityClient(Object.assign(Object.assign({}, _options), { retryOptions: {
2906
- maxRetries: 0,
2907
- } }));
2908
- }
2909
- async cachedAvailableMSI(scopes, getTokenOptions) {
2910
- if (this.cachedMSI) {
2911
- return this.cachedMSI;
2912
- }
2913
- const MSIs = [
2914
- arcMsi,
2915
- fabricMsi,
2916
- appServiceMsi2019,
2917
- appServiceMsi2017,
2918
- cloudShellMsi,
2919
- tokenExchangeMsi(),
2920
- imdsMsi,
2921
- ];
2922
- for (const msi of MSIs) {
2923
- if (await msi.isAvailable({
2924
- scopes,
2925
- identityClient: this.isAvailableIdentityClient,
2926
- clientId: this.clientId,
2927
- resourceId: this.resourceId,
2928
- getTokenOptions,
2929
- })) {
2930
- this.cachedMSI = msi;
2931
- return msi;
2932
- }
2933
- }
2934
- throw new CredentialUnavailableError(`${ManagedIdentityCredential.name} - No MSI credential available`);
2935
- }
2936
- async authenticateManagedIdentity(scopes, getTokenOptions) {
2937
- const { span, updatedOptions } = tracingClient.startSpan(`${ManagedIdentityCredential.name}.authenticateManagedIdentity`, getTokenOptions);
2938
- try {
2939
- // Determining the available MSI, and avoiding checking for other MSIs while the program is running.
2940
- const availableMSI = await this.cachedAvailableMSI(scopes, updatedOptions);
2941
- return availableMSI.getToken({
2942
- identityClient: this.identityClient,
2943
- scopes,
2944
- clientId: this.clientId,
2945
- resourceId: this.resourceId,
2946
- }, updatedOptions);
2947
- }
2948
- catch (err) {
2949
- span.setStatus({
2950
- status: "error",
2951
- error: err,
2952
- });
2953
- throw err;
2954
- }
2955
- finally {
2956
- span.end();
2957
- }
2958
- }
2959
- /**
2960
- * Authenticates with Azure Active Directory and returns an access token if successful.
2961
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
2962
- * If an unexpected error occurs, an {@link AuthenticationError} will be thrown with the details of the failure.
2963
- *
2964
- * @param scopes - The list of scopes for which the token will have access.
2965
- * @param options - The options used to configure any requests this
2966
- * TokenCredential implementation might make.
2967
- */
2968
- async getToken(scopes, options) {
2969
- let result = null;
2970
- const { span, updatedOptions } = tracingClient.startSpan(`${ManagedIdentityCredential.name}.getToken`, options);
2971
- try {
2972
- // isEndpointAvailable can be true, false, or null,
2973
- // If it's null, it means we don't yet know whether
2974
- // the endpoint is available and need to check for it.
2975
- if (this.isEndpointUnavailable !== true) {
2976
- result = await this.authenticateManagedIdentity(scopes, updatedOptions);
2977
- if (result === null) {
2978
- // If authenticateManagedIdentity returns null,
2979
- // it means no MSI endpoints are available.
2980
- // If so, we avoid trying to reach to them in future requests.
2981
- this.isEndpointUnavailable = true;
2982
- // It also means that the endpoint answered with either 200 or 201 (see the sendTokenRequest method),
2983
- // yet we had no access token. For this reason, we'll throw once with a specific message:
2984
- const error = new CredentialUnavailableError("The managed identity endpoint was reached, yet no tokens were received.");
2985
- logger$5.getToken.info(formatError(scopes, error));
2986
- throw error;
2987
- }
2988
- // Since `authenticateManagedIdentity` didn't throw, and the result was not null,
2989
- // We will assume that this endpoint is reachable from this point forward,
2990
- // and avoid pinging again to it.
2991
- this.isEndpointUnavailable = false;
2992
- }
2993
- else {
2994
- // We've previously determined that the endpoint was unavailable,
2995
- // either because it was unreachable or permanently unable to authenticate.
2996
- const error = new CredentialUnavailableError("The managed identity endpoint is not currently available");
2997
- logger$5.getToken.info(formatError(scopes, error));
2998
- throw error;
2999
- }
3000
- logger$5.getToken.info(formatSuccess(scopes));
3001
- return result;
3002
- }
3003
- catch (err) {
3004
- // CredentialUnavailable errors are expected to reach here.
3005
- // We intend them to bubble up, so that DefaultAzureCredential can catch them.
3006
- if (err.name === "AuthenticationRequiredError") {
3007
- throw err;
3008
- }
3009
- // Expected errors to reach this point:
3010
- // - Errors coming from a method unexpectedly breaking.
3011
- // - When identityClient.sendTokenRequest throws, in which case
3012
- // if the status code was 400, it means that the endpoint is working,
3013
- // but no identity is available.
3014
- span.setStatus({
3015
- status: "error",
3016
- error: err,
3017
- });
3018
- // If either the network is unreachable,
3019
- // we can safely assume the credential is unavailable.
3020
- if (err.code === "ENETUNREACH") {
3021
- const error = new CredentialUnavailableError(`${ManagedIdentityCredential.name}: Unavailable. Network unreachable. Message: ${err.message}`);
3022
- logger$5.getToken.info(formatError(scopes, error));
3023
- throw error;
3024
- }
3025
- // If either the host was unreachable,
3026
- // we can safely assume the credential is unavailable.
3027
- if (err.code === "EHOSTUNREACH") {
3028
- const error = new CredentialUnavailableError(`${ManagedIdentityCredential.name}: Unavailable. No managed identity endpoint found. Message: ${err.message}`);
3029
- logger$5.getToken.info(formatError(scopes, error));
3030
- throw error;
3031
- }
3032
- // If err.statusCode has a value of 400, it comes from sendTokenRequest,
3033
- // and it means that the endpoint is working, but that no identity is available.
3034
- if (err.statusCode === 400) {
3035
- throw new CredentialUnavailableError(`${ManagedIdentityCredential.name}: The managed identity endpoint is indicating there's no available identity. Message: ${err.message}`);
3036
- }
3037
- // If the error has no status code, we can assume there was no available identity.
3038
- // This will throw silently during any ChainedTokenCredential.
3039
- if (err.statusCode === undefined) {
3040
- throw new CredentialUnavailableError(`${ManagedIdentityCredential.name}: Authentication failed. Message ${err.message}`);
3041
- }
3042
- // Any other error should break the chain.
3043
- throw new AuthenticationError(err.statusCode, {
3044
- error: `${ManagedIdentityCredential.name} authentication failed.`,
3045
- error_description: err.message,
3046
- });
3047
- }
3048
- finally {
3049
- // Finally is always called, both if we return and if we throw in the above try/catch.
3050
- span.end();
3051
- }
3052
- }
3053
- }
3054
-
3055
- // Copyright (c) Microsoft Corporation.
3056
- /**
3057
- * A shim around ManagedIdentityCredential that adapts it to accept
3058
- * `DefaultAzureCredentialOptions`.
3059
- *
3060
- * @internal
3061
- */
3062
- class DefaultManagedIdentityCredential extends ManagedIdentityCredential {
3063
- // Constructor overload with just the other default options
3064
- // Last constructor overload with Union of all options not required since the above two constructor overloads have optional properties
3065
- constructor(options) {
3066
- var _a;
3067
- const managedIdentityClientId = (_a = options === null || options === void 0 ? void 0 : options.managedIdentityClientId) !== null && _a !== void 0 ? _a : process.env.AZURE_CLIENT_ID;
3068
- const managedResourceId = options === null || options === void 0 ? void 0 : options.managedIdentityResourceId;
3069
- // ManagedIdentityCredential throws if both the resourceId and the clientId are provided.
3070
- if (managedResourceId) {
3071
- const managedIdentityResourceIdOptions = Object.assign(Object.assign({}, options), { resourceId: managedResourceId });
3072
- super(managedIdentityResourceIdOptions);
3073
- }
3074
- else if (managedIdentityClientId) {
3075
- const managedIdentityClientOptions = Object.assign(Object.assign({}, options), { clientId: managedIdentityClientId });
3076
- super(managedIdentityClientOptions);
3077
- }
3078
- else {
3079
- super(options);
3080
- }
3081
- }
3082
- }
3083
- const defaultCredentials = [
3084
- EnvironmentCredential,
3085
- DefaultManagedIdentityCredential,
3086
- VisualStudioCodeCredential,
3087
- AzureCliCredential,
3088
- AzurePowerShellCredential,
3089
- ];
3090
- /**
3091
- * Provides a default {@link ChainedTokenCredential} configuration that should
3092
- * work for most applications that use the Azure SDK.
3093
- */
3094
- class DefaultAzureCredential extends ChainedTokenCredential {
3095
- constructor(options) {
3096
- super(...defaultCredentials.map((ctor) => new ctor(options)));
3097
- this.UnavailableMessage =
3098
- "DefaultAzureCredential => failed to retrieve a token from the included credentials. To troubleshoot, visit https://aka.ms/azsdk/js/identity/defaultazurecredential/troubleshoot.";
3099
- }
3100
- }
3101
-
3102
- // Copyright (c) Microsoft Corporation.
3103
- /**
3104
- * MSAL client assertion client. Calls to MSAL's confidential application's `acquireTokenByClientCredential` during `doGetToken`.
3105
- * @internal
3106
- */
3107
- class MsalClientAssertion extends MsalNode {
3108
- constructor(options) {
3109
- super(options);
3110
- this.requiresConfidential = true;
3111
- this.getAssertion = options.getAssertion;
3112
- }
3113
- async doGetToken(scopes, options = {}) {
3114
- try {
3115
- const assertion = await this.getAssertion();
3116
- const result = await this.confidentialApp.acquireTokenByClientCredential({
3117
- scopes,
3118
- correlationId: options.correlationId,
3119
- azureRegion: this.azureRegion,
3120
- authority: options.authority,
3121
- claims: options.claims,
3122
- clientAssertion: assertion,
3123
- });
3124
- // The Client Credential flow does not return an account,
3125
- // so each time getToken gets called, we will have to acquire a new token through the service.
3126
- return this.handleResult(scopes, this.clientId, result || undefined);
3127
- }
3128
- catch (err) {
3129
- let err2 = err;
3130
- if (err === null || err === undefined) {
3131
- err2 = new Error(JSON.stringify(err));
3132
- }
3133
- else {
3134
- err2 = coreUtil.isError(err) ? err : new Error(String(err));
3135
- }
3136
- throw this.handleError(scopes, err2, options);
3137
- }
3138
- }
3139
- }
3140
-
3141
- // Copyright (c) Microsoft Corporation.
3142
- const logger$4 = credentialLogger("ClientAssertionCredential");
3143
- /**
3144
- * Authenticates a service principal with a JWT assertion.
3145
- */
3146
- class ClientAssertionCredential {
3147
- /**
3148
- * Creates an instance of the ClientAssertionCredential with the details
3149
- * needed to authenticate against Azure Active Directory with a client
3150
- * assertion provided by the developer through the `getAssertion` function parameter.
3151
- *
3152
- * @param tenantId - The Azure Active Directory tenant (directory) ID.
3153
- * @param clientId - The client (application) ID of an App Registration in the tenant.
3154
- * @param getAssertion - A function that retrieves the assertion for the credential to use.
3155
- * @param options - Options for configuring the client which makes the authentication request.
3156
- */
3157
- constructor(tenantId, clientId, getAssertion, options = {}) {
3158
- if (!tenantId || !clientId || !getAssertion) {
3159
- throw new Error("ClientAssertionCredential: tenantId, clientId, and clientAssertion are required parameters.");
3160
- }
3161
- this.tenantId = tenantId;
3162
- this.clientId = clientId;
3163
- this.options = options;
3164
- this.msalFlow = new MsalClientAssertion(Object.assign(Object.assign({}, options), { logger: logger$4, clientId: this.clientId, tenantId: this.tenantId, tokenCredentialOptions: this.options, getAssertion }));
3165
- }
3166
- /**
3167
- * Authenticates with Azure Active Directory and returns an access token if successful.
3168
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3169
- *
3170
- * @param scopes - The list of scopes for which the token will have access.
3171
- * @param options - The options used to configure any requests this
3172
- * TokenCredential implementation might make.
3173
- */
3174
- async getToken(scopes, options = {}) {
3175
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
3176
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3177
- return this.msalFlow.getToken(arrayScopes, newOptions);
3178
- });
3179
- }
3180
- }
3181
-
3182
- // Copyright (c) Microsoft Corporation.
3183
- /**
3184
- * A call to open(), but mockable
3185
- * @internal
3186
- */
3187
- const interactiveBrowserMockable = {
3188
- open: open__default["default"],
3189
- };
3190
- /**
3191
- * This MSAL client sets up a web server to listen for redirect callbacks, then calls to the MSAL's public application's `acquireTokenByDeviceCode` during `doGetToken`
3192
- * to trigger the authentication flow, and then respond based on the values obtained from the redirect callback
3193
- * @internal
3194
- */
3195
- class MsalOpenBrowser extends MsalNode {
3196
- constructor(options) {
3197
- super(options);
3198
- this.logger = credentialLogger("Node.js MSAL Open Browser");
3199
- this.redirectUri = options.redirectUri;
3200
- this.loginHint = options.loginHint;
3201
- const url = new URL(this.redirectUri);
3202
- this.port = parseInt(url.port);
3203
- if (isNaN(this.port)) {
3204
- this.port = 80;
3205
- }
3206
- this.hostname = url.hostname;
3207
- }
3208
- async acquireTokenByCode(request) {
3209
- return this.publicApp.acquireTokenByCode(request);
3210
- }
3211
- doGetToken(scopes, options) {
3212
- return new Promise((resolve, reject) => {
3213
- const socketToDestroy = [];
3214
- const requestListener = (req, res) => {
3215
- var _a;
3216
- if (!req.url) {
3217
- reject(new Error(`Interactive Browser Authentication Error "Did not receive token with a valid expiration"`));
3218
- return;
3219
- }
3220
- let url;
3221
- try {
3222
- url = new URL(req.url, this.redirectUri);
3223
- }
3224
- catch (e) {
3225
- reject(new Error(`Interactive Browser Authentication Error "Did not receive token with a valid expiration"`));
3226
- return;
3227
- }
3228
- const tokenRequest = {
3229
- code: url.searchParams.get("code"),
3230
- redirectUri: this.redirectUri,
3231
- scopes: scopes,
3232
- authority: options === null || options === void 0 ? void 0 : options.authority,
3233
- codeVerifier: (_a = this.pkceCodes) === null || _a === void 0 ? void 0 : _a.verifier,
3234
- };
3235
- this.acquireTokenByCode(tokenRequest)
3236
- .then((authResponse) => {
3237
- if (authResponse === null || authResponse === void 0 ? void 0 : authResponse.account) {
3238
- this.account = msalToPublic(this.clientId, authResponse.account);
3239
- }
3240
- const successMessage = `Authentication Complete. You can close the browser and return to the application.`;
3241
- if (authResponse && authResponse.expiresOn) {
3242
- const expiresOnTimestamp = authResponse === null || authResponse === void 0 ? void 0 : authResponse.expiresOn.valueOf();
3243
- res.writeHead(200);
3244
- res.end(successMessage);
3245
- this.logger.getToken.info(formatSuccess(scopes));
3246
- resolve({
3247
- expiresOnTimestamp,
3248
- token: authResponse.accessToken,
3249
- });
3250
- }
3251
- else {
3252
- const errorMessage = formatError(scopes, `${url.searchParams.get("error")}. ${url.searchParams.get("error_description")}`);
3253
- res.writeHead(500);
3254
- res.end(errorMessage);
3255
- this.logger.getToken.info(errorMessage);
3256
- reject(new Error(`Interactive Browser Authentication Error "Did not receive token with a valid expiration"`));
3257
- }
3258
- cleanup();
3259
- return;
3260
- })
3261
- .catch(() => {
3262
- const errorMessage = formatError(scopes, `${url.searchParams.get("error")}. ${url.searchParams.get("error_description")}`);
3263
- res.writeHead(500);
3264
- res.end(errorMessage);
3265
- this.logger.getToken.info(errorMessage);
3266
- reject(new Error(`Interactive Browser Authentication Error "Did not receive token with a valid expiration"`));
3267
- cleanup();
3268
- });
3269
- };
3270
- const app = http__default["default"].createServer(requestListener);
3271
- const server = stoppable__default["default"](app);
3272
- const listen = app.listen(this.port, this.hostname, () => this.logger.info(`InteractiveBrowserCredential listening on port ${this.port}!`));
3273
- function cleanup() {
3274
- if (listen) {
3275
- listen.close();
3276
- }
3277
- for (const socket of socketToDestroy) {
3278
- socket.destroy();
3279
- }
3280
- if (server) {
3281
- server.close();
3282
- server.stop();
3283
- }
3284
- }
3285
- app.on("connection", (socket) => socketToDestroy.push(socket));
3286
- app.on("error", (err) => {
3287
- cleanup();
3288
- const code = err.code;
3289
- if (code === "EACCES" || code === "EADDRINUSE") {
3290
- reject(new CredentialUnavailableError([
3291
- `InteractiveBrowserCredential: Access denied to port ${this.port}.`,
3292
- `Try sending a redirect URI with a different port, as follows:`,
3293
- '`new InteractiveBrowserCredential({ redirectUri: "http://localhost:1337" })`',
3294
- ].join(" ")));
3295
- }
3296
- else {
3297
- reject(new CredentialUnavailableError(`InteractiveBrowserCredential: Failed to start the necessary web server. Error: ${err.message}`));
3298
- }
3299
- });
3300
- app.on("listening", () => {
3301
- const openPromise = this.openAuthCodeUrl(scopes, options);
3302
- const abortSignal = options === null || options === void 0 ? void 0 : options.abortSignal;
3303
- if (abortSignal) {
3304
- abortSignal.addEventListener("abort", () => {
3305
- cleanup();
3306
- reject(new Error("Aborted"));
3307
- });
3308
- }
3309
- openPromise.then().catch((e) => {
3310
- cleanup();
3311
- reject(e);
3312
- });
3313
- });
3314
- });
3315
- }
3316
- async openAuthCodeUrl(scopeArray, options) {
3317
- // Initialize CryptoProvider instance
3318
- const cryptoProvider = new msalNode__namespace.CryptoProvider();
3319
- // Generate PKCE Codes before starting the authorization flow
3320
- this.pkceCodes = await cryptoProvider.generatePkceCodes();
3321
- const authCodeUrlParameters = {
3322
- scopes: scopeArray,
3323
- correlationId: options === null || options === void 0 ? void 0 : options.correlationId,
3324
- redirectUri: this.redirectUri,
3325
- authority: options === null || options === void 0 ? void 0 : options.authority,
3326
- claims: options === null || options === void 0 ? void 0 : options.claims,
3327
- loginHint: this.loginHint,
3328
- codeChallenge: this.pkceCodes.challenge,
3329
- codeChallengeMethod: "S256", // Use SHA256 Algorithm
3330
- };
3331
- const response = await this.publicApp.getAuthCodeUrl(authCodeUrlParameters);
3332
- try {
3333
- // A new instance on macOS only which allows it to not hang, does not fix the issue on linux
3334
- await interactiveBrowserMockable.open(response, { wait: true, newInstance: true });
3335
- }
3336
- catch (e) {
3337
- throw new CredentialUnavailableError(`InteractiveBrowserCredential: Could not open a browser window. Error: ${e.message}`);
3338
- }
3339
- }
3340
- }
3341
-
3342
- // Copyright (c) Microsoft Corporation.
3343
- const logger$3 = credentialLogger("InteractiveBrowserCredential");
3344
- /**
3345
- * Enables authentication to Azure Active Directory inside of the web browser
3346
- * using the interactive login flow.
3347
- */
3348
- class InteractiveBrowserCredential {
3349
- /**
3350
- * Creates an instance of InteractiveBrowserCredential with the details needed.
3351
- *
3352
- * This credential uses the [Authorization Code Flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow).
3353
- * On Node.js, it will open a browser window while it listens for a redirect response from the authentication service.
3354
- * On browsers, it authenticates via popups. The `loginStyle` optional parameter can be set to `redirect` to authenticate by redirecting the user to an Azure secure login page, which then will redirect the user back to the web application where the authentication started.
3355
- *
3356
- * For Node.js, if a `clientId` is provided, the Azure Active Directory application will need to be configured to have a "Mobile and desktop applications" redirect endpoint.
3357
- * Follow our guide on [setting up Redirect URIs for Desktop apps that calls to web APIs](https://docs.microsoft.com/azure/active-directory/develop/scenario-desktop-app-registration#redirect-uris).
3358
- *
3359
- * @param options - Options for configuring the client which makes the authentication requests.
3360
- */
3361
- constructor(options = {}) {
3362
- const redirectUri = typeof options.redirectUri === "function"
3363
- ? options.redirectUri()
3364
- : options.redirectUri || "http://localhost";
3365
- this.msalFlow = new MsalOpenBrowser(Object.assign(Object.assign({}, options), { tokenCredentialOptions: options, logger: logger$3,
3366
- redirectUri }));
3367
- this.disableAutomaticAuthentication = options === null || options === void 0 ? void 0 : options.disableAutomaticAuthentication;
3368
- }
3369
- /**
3370
- * Authenticates with Azure Active Directory and returns an access token if successful.
3371
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3372
- *
3373
- * If the user provided the option `disableAutomaticAuthentication`,
3374
- * once the token can't be retrieved silently,
3375
- * this method won't attempt to request user interaction to retrieve the token.
3376
- *
3377
- * @param scopes - The list of scopes for which the token will have access.
3378
- * @param options - The options used to configure any requests this
3379
- * TokenCredential implementation might make.
3380
- */
3381
- async getToken(scopes, options = {}) {
3382
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
3383
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3384
- return this.msalFlow.getToken(arrayScopes, Object.assign(Object.assign({}, newOptions), { disableAutomaticAuthentication: this.disableAutomaticAuthentication }));
3385
- });
3386
- }
3387
- /**
3388
- * Authenticates with Azure Active Directory and returns an access token if successful.
3389
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3390
- *
3391
- * If the token can't be retrieved silently, this method will require user interaction to retrieve the token.
3392
- *
3393
- * On Node.js, this credential has [Proof Key for Code Exchange (PKCE)](https://datatracker.ietf.org/doc/html/rfc7636) enabled by default.
3394
- * PKCE is a security feature that mitigates authentication code interception attacks.
3395
- *
3396
- * @param scopes - The list of scopes for which the token will have access.
3397
- * @param options - The options used to configure any requests this
3398
- * TokenCredential implementation might make.
3399
- */
3400
- async authenticate(scopes, options = {}) {
3401
- return tracingClient.withSpan(`${this.constructor.name}.authenticate`, options, async (newOptions) => {
3402
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3403
- await this.msalFlow.getToken(arrayScopes, newOptions);
3404
- return this.msalFlow.getActiveAccount();
3405
- });
3406
- }
3407
- }
3408
-
3409
- // Copyright (c) Microsoft Corporation.
3410
- /**
3411
- * MSAL device code client. Calls to the MSAL's public application's `acquireTokenByDeviceCode` during `doGetToken`.
3412
- * @internal
3413
- */
3414
- class MsalDeviceCode extends MsalNode {
3415
- constructor(options) {
3416
- super(options);
3417
- this.userPromptCallback = options.userPromptCallback;
3418
- }
3419
- async doGetToken(scopes, options) {
3420
- try {
3421
- const requestOptions = {
3422
- deviceCodeCallback: this.userPromptCallback,
3423
- scopes,
3424
- cancel: false,
3425
- correlationId: options === null || options === void 0 ? void 0 : options.correlationId,
3426
- authority: options === null || options === void 0 ? void 0 : options.authority,
3427
- claims: options === null || options === void 0 ? void 0 : options.claims,
3428
- };
3429
- const promise = this.publicApp.acquireTokenByDeviceCode(requestOptions);
3430
- const deviceResponse = await this.withCancellation(promise, options === null || options === void 0 ? void 0 : options.abortSignal, () => {
3431
- requestOptions.cancel = true;
3432
- });
3433
- return this.handleResult(scopes, this.clientId, deviceResponse || undefined);
3434
- }
3435
- catch (error) {
3436
- throw this.handleError(scopes, error, options);
3437
- }
3438
- }
3439
- }
3440
-
3441
- // Copyright (c) Microsoft Corporation.
3442
- const logger$2 = credentialLogger("DeviceCodeCredential");
3443
- /**
3444
- * Method that logs the user code from the DeviceCodeCredential.
3445
- * @param deviceCodeInfo - The device code.
3446
- */
3447
- function defaultDeviceCodePromptCallback(deviceCodeInfo) {
3448
- console.log(deviceCodeInfo.message);
3449
- }
3450
- /**
3451
- * Enables authentication to Azure Active Directory using a device code
3452
- * that the user can enter into https://microsoft.com/devicelogin.
3453
- */
3454
- class DeviceCodeCredential {
3455
- /**
3456
- * Creates an instance of DeviceCodeCredential with the details needed
3457
- * to initiate the device code authorization flow with Azure Active Directory.
3458
- *
3459
- * A message will be logged, giving users a code that they can use to authenticate once they go to https://microsoft.com/devicelogin
3460
- *
3461
- * Developers can configure how this message is shown by passing a custom `userPromptCallback`:
3462
- *
3463
- * ```js
3464
- * const credential = new DeviceCodeCredential({
3465
- * tenantId: env.AZURE_TENANT_ID,
3466
- * clientId: env.AZURE_CLIENT_ID,
3467
- * userPromptCallback: (info) => {
3468
- * console.log("CUSTOMIZED PROMPT CALLBACK", info.message);
3469
- * }
3470
- * });
3471
- * ```
3472
- *
3473
- * @param options - Options for configuring the client which makes the authentication requests.
3474
- */
3475
- constructor(options) {
3476
- this.msalFlow = new MsalDeviceCode(Object.assign(Object.assign({}, options), { logger: logger$2, userPromptCallback: (options === null || options === void 0 ? void 0 : options.userPromptCallback) || defaultDeviceCodePromptCallback, tokenCredentialOptions: options || {} }));
3477
- this.disableAutomaticAuthentication = options === null || options === void 0 ? void 0 : options.disableAutomaticAuthentication;
3478
- }
3479
- /**
3480
- * Authenticates with Azure Active Directory and returns an access token if successful.
3481
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3482
- *
3483
- * If the user provided the option `disableAutomaticAuthentication`,
3484
- * once the token can't be retrieved silently,
3485
- * this method won't attempt to request user interaction to retrieve the token.
3486
- *
3487
- * @param scopes - The list of scopes for which the token will have access.
3488
- * @param options - The options used to configure any requests this
3489
- * TokenCredential implementation might make.
3490
- */
3491
- async getToken(scopes, options = {}) {
3492
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
3493
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3494
- return this.msalFlow.getToken(arrayScopes, Object.assign(Object.assign({}, newOptions), { disableAutomaticAuthentication: this.disableAutomaticAuthentication }));
3495
- });
3496
- }
3497
- /**
3498
- * Authenticates with Azure Active Directory and returns an access token if successful.
3499
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3500
- *
3501
- * If the token can't be retrieved silently, this method will require user interaction to retrieve the token.
3502
- *
3503
- * @param scopes - The list of scopes for which the token will have access.
3504
- * @param options - The options used to configure any requests this
3505
- * TokenCredential implementation might make.
3506
- */
3507
- async authenticate(scopes, options = {}) {
3508
- return tracingClient.withSpan(`${this.constructor.name}.authenticate`, options, async (newOptions) => {
3509
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3510
- await this.msalFlow.getToken(arrayScopes, newOptions);
3511
- return this.msalFlow.getActiveAccount();
3512
- });
3513
- }
3514
- }
3515
-
3516
- // Copyright (c) Microsoft Corporation.
3517
- /**
3518
- * This MSAL client sets up a web server to listen for redirect callbacks, then calls to the MSAL's public application's `acquireTokenByDeviceCode` during `doGetToken`
3519
- * to trigger the authentication flow, and then respond based on the values obtained from the redirect callback
3520
- * @internal
3521
- */
3522
- class MsalAuthorizationCode extends MsalNode {
3523
- constructor(options) {
3524
- super(options);
3525
- this.logger = credentialLogger("Node.js MSAL Authorization Code");
3526
- this.redirectUri = options.redirectUri;
3527
- this.authorizationCode = options.authorizationCode;
3528
- if (options.clientSecret) {
3529
- this.msalConfig.auth.clientSecret = options.clientSecret;
3530
- }
3531
- }
3532
- async getAuthCodeUrl(options) {
3533
- await this.init();
3534
- return (this.confidentialApp || this.publicApp).getAuthCodeUrl(options);
3535
- }
3536
- async doGetToken(scopes, options) {
3537
- var _a;
3538
- try {
3539
- const result = await ((_a = (this.confidentialApp || this.publicApp)) === null || _a === void 0 ? void 0 : _a.acquireTokenByCode({
3540
- scopes,
3541
- redirectUri: this.redirectUri,
3542
- code: this.authorizationCode,
3543
- correlationId: options === null || options === void 0 ? void 0 : options.correlationId,
3544
- authority: options === null || options === void 0 ? void 0 : options.authority,
3545
- claims: options === null || options === void 0 ? void 0 : options.claims,
3546
- }));
3547
- // The Client Credential flow does not return an account,
3548
- // so each time getToken gets called, we will have to acquire a new token through the service.
3549
- return this.handleResult(scopes, this.clientId, result || undefined);
3550
- }
3551
- catch (err) {
3552
- throw this.handleError(scopes, err, options);
3553
- }
3554
- }
3555
- }
3556
-
3557
- // Copyright (c) Microsoft Corporation.
3558
- const logger$1 = credentialLogger("AuthorizationCodeCredential");
3559
- /**
3560
- * Enables authentication to Azure Active Directory using an authorization code
3561
- * that was obtained through the authorization code flow, described in more detail
3562
- * in the Azure Active Directory documentation:
3563
- *
3564
- * https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
3565
- */
3566
- class AuthorizationCodeCredential {
3567
- /**
3568
- * @hidden
3569
- * @internal
3570
- */
3571
- constructor(tenantId, clientId, clientSecretOrAuthorizationCode, authorizationCodeOrRedirectUri, redirectUriOrOptions, options) {
3572
- checkTenantId(logger$1, tenantId);
3573
- let clientSecret = clientSecretOrAuthorizationCode;
3574
- if (typeof redirectUriOrOptions === "string") {
3575
- // the clientId+clientSecret constructor
3576
- this.authorizationCode = authorizationCodeOrRedirectUri;
3577
- this.redirectUri = redirectUriOrOptions;
3578
- // in this case, options are good as they come
3579
- }
3580
- else {
3581
- // clientId only
3582
- this.authorizationCode = clientSecretOrAuthorizationCode;
3583
- this.redirectUri = authorizationCodeOrRedirectUri;
3584
- clientSecret = undefined;
3585
- options = redirectUriOrOptions;
3586
- }
3587
- this.msalFlow = new MsalAuthorizationCode(Object.assign(Object.assign({}, options), { clientSecret,
3588
- clientId,
3589
- tenantId, tokenCredentialOptions: options || {}, logger: logger$1, redirectUri: this.redirectUri, authorizationCode: this.authorizationCode }));
3590
- }
3591
- /**
3592
- * Authenticates with Azure Active Directory and returns an access token if successful.
3593
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3594
- *
3595
- * @param scopes - The list of scopes for which the token will have access.
3596
- * @param options - The options used to configure any requests this
3597
- * TokenCredential implementation might make.
3598
- */
3599
- async getToken(scopes, options = {}) {
3600
- return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
3601
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3602
- return this.msalFlow.getToken(arrayScopes, Object.assign(Object.assign({}, newOptions), { disableAutomaticAuthentication: this.disableAutomaticAuthentication }));
3603
- });
3604
- }
3605
- }
3606
-
3607
- // Copyright (c) Microsoft Corporation.
3608
- /**
3609
- * MSAL on behalf of flow. Calls to MSAL's confidential application's `acquireTokenOnBehalfOf` during `doGetToken`.
3610
- * @internal
3611
- */
3612
- class MsalOnBehalfOf extends MsalNode {
3613
- constructor(options) {
3614
- super(options);
3615
- this.logger.info("Initialized MSAL's On-Behalf-Of flow");
3616
- this.requiresConfidential = true;
3617
- this.userAssertionToken = options.userAssertionToken;
3618
- this.certificatePath = options.certificatePath;
3619
- this.sendCertificateChain = options.sendCertificateChain;
3620
- this.clientSecret = options.clientSecret;
3621
- }
3622
- // Changing the MSAL configuration asynchronously
3623
- async init(options) {
3624
- if (this.certificatePath) {
3625
- try {
3626
- const parts = await parseCertificate({ certificatePath: this.certificatePath }, this.sendCertificateChain);
3627
- this.msalConfig.auth.clientCertificate = {
3628
- thumbprint: parts.thumbprint,
3629
- privateKey: parts.certificateContents,
3630
- x5c: parts.x5c,
3631
- };
3632
- }
3633
- catch (error) {
3634
- this.logger.info(formatError("", error));
3635
- throw error;
3636
- }
3637
- }
3638
- else {
3639
- this.msalConfig.auth.clientSecret = this.clientSecret;
3640
- }
3641
- return super.init(options);
3642
- }
3643
- async doGetToken(scopes, options = {}) {
3644
- try {
3645
- const result = await this.confidentialApp.acquireTokenOnBehalfOf({
3646
- scopes,
3647
- correlationId: options.correlationId,
3648
- authority: options.authority,
3649
- claims: options.claims,
3650
- oboAssertion: this.userAssertionToken,
3651
- });
3652
- return this.handleResult(scopes, this.clientId, result || undefined);
3653
- }
3654
- catch (err) {
3655
- throw this.handleError(scopes, err, options);
3656
- }
3657
- }
3658
- }
3659
-
3660
- // Copyright (c) Microsoft Corporation.
3661
- const credentialName = "OnBehalfOfCredential";
3662
- const logger = credentialLogger(credentialName);
3663
- /**
3664
- * Enables authentication to Azure Active Directory using the [On Behalf Of flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow).
3665
- */
3666
- class OnBehalfOfCredential {
3667
- constructor(options) {
3668
- this.options = options;
3669
- const { clientSecret } = options;
3670
- const { certificatePath } = options;
3671
- const { tenantId, clientId, userAssertionToken } = options;
3672
- if (!tenantId || !clientId || !(clientSecret || certificatePath) || !userAssertionToken) {
3673
- throw new Error(`${credentialName}: tenantId, clientId, clientSecret (or certificatePath) and userAssertionToken are required parameters.`);
3674
- }
3675
- this.msalFlow = new MsalOnBehalfOf(Object.assign(Object.assign({}, this.options), { logger, tokenCredentialOptions: this.options }));
3676
- }
3677
- /**
3678
- * Authenticates with Azure Active Directory and returns an access token if successful.
3679
- * If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
3680
- *
3681
- * @param scopes - The list of scopes for which the token will have access.
3682
- * @param options - The options used to configure the underlying network requests.
3683
- */
3684
- async getToken(scopes, options = {}) {
3685
- return tracingClient.withSpan(`${credentialName}.getToken`, options, async (newOptions) => {
3686
- const arrayScopes = Array.isArray(scopes) ? scopes : [scopes];
3687
- return this.msalFlow.getToken(arrayScopes, newOptions);
3688
- });
3689
- }
3690
- }
3691
-
3692
- // Copyright (c) Microsoft Corporation.
3693
- /**
3694
- * Returns a new instance of the {@link DefaultAzureCredential}.
3695
- */
3696
- function getDefaultAzureCredential() {
3697
- return new DefaultAzureCredential();
3698
- }
3699
-
3700
- exports.AggregateAuthenticationError = AggregateAuthenticationError;
3701
- exports.AggregateAuthenticationErrorName = AggregateAuthenticationErrorName;
3702
- exports.AuthenticationError = AuthenticationError;
3703
- exports.AuthenticationErrorName = AuthenticationErrorName;
3704
- exports.AuthenticationRequiredError = AuthenticationRequiredError;
3705
- exports.AuthorizationCodeCredential = AuthorizationCodeCredential;
3706
- exports.AzureCliCredential = AzureCliCredential;
3707
- exports.AzurePowerShellCredential = AzurePowerShellCredential;
3708
- exports.ChainedTokenCredential = ChainedTokenCredential;
3709
- exports.ClientAssertionCredential = ClientAssertionCredential;
3710
- exports.ClientCertificateCredential = ClientCertificateCredential;
3711
- exports.ClientSecretCredential = ClientSecretCredential;
3712
- exports.CredentialUnavailableError = CredentialUnavailableError;
3713
- exports.CredentialUnavailableErrorName = CredentialUnavailableErrorName;
3714
- exports.DefaultAzureCredential = DefaultAzureCredential;
3715
- exports.DeviceCodeCredential = DeviceCodeCredential;
3716
- exports.EnvironmentCredential = EnvironmentCredential;
3717
- exports.InteractiveBrowserCredential = InteractiveBrowserCredential;
3718
- exports.ManagedIdentityCredential = ManagedIdentityCredential;
3719
- exports.OnBehalfOfCredential = OnBehalfOfCredential;
3720
- exports.UsernamePasswordCredential = UsernamePasswordCredential;
3721
- exports.VisualStudioCodeCredential = VisualStudioCodeCredential;
3722
- exports.deserializeAuthenticationRecord = deserializeAuthenticationRecord;
3723
- exports.getDefaultAzureCredential = getDefaultAzureCredential;
3724
- exports.logger = logger$l;
3725
- exports.serializeAuthenticationRecord = serializeAuthenticationRecord;
3726
- exports.useIdentityPlugin = useIdentityPlugin;
3727
- //# sourceMappingURL=index.js.map