tntd 1.4.29 → 1.4.30

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 (857) hide show
  1. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_28_35_585Z-debug-0.log +39 -0
  2. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_29_14_285Z-debug-0.log +1426 -0
  3. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_25_569Z-debug-0.log +39 -0
  4. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_28_924Z-debug-0.log +1426 -0
  5. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_15_34_815Z-debug-0.log +34 -0
  6. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_18_04_372Z-debug-0.log +34 -0
  7. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_22_54_526Z-debug-0.log +34 -0
  8. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js +239 -0
  9. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js.map +1 -0
  10. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js +215 -0
  11. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js.map +1 -0
  12. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js +2171 -0
  13. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js.map +1 -0
  14. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js +5500 -0
  15. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js.map +1 -0
  16. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js +1171 -0
  17. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js.map +1 -0
  18. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js +104 -0
  19. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js.map +1 -0
  20. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js +2282 -0
  21. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js.map +1 -0
  22. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js +184 -0
  23. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js.map +1 -0
  24. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js +217 -0
  25. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js.map +1 -0
  26. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js +3727 -0
  27. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js.map +1 -0
  28. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js +208 -0
  29. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js.map +1 -0
  30. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js +117 -0
  31. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js.map +1 -0
  32. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts +333 -0
  33. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts.map +1 -0
  34. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js +1039 -0
  35. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js.map +1 -0
  36. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts +46 -0
  37. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts.map +1 -0
  38. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js +103 -0
  39. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js.map +1 -0
  40. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts +71 -0
  41. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts.map +1 -0
  42. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js +278 -0
  43. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js.map +1 -0
  44. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts +60 -0
  45. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -0
  46. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js +261 -0
  47. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -0
  48. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts +44 -0
  49. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -0
  50. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts +49 -0
  51. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts.map +1 -0
  52. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts +52 -0
  53. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts.map +1 -0
  54. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js +210 -0
  55. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js.map +1 -0
  56. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts +319 -0
  57. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts.map +1 -0
  58. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js +975 -0
  59. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js.map +1 -0
  60. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts +12 -0
  61. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts.map +1 -0
  62. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js +43 -0
  63. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js.map +1 -0
  64. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts +18 -0
  65. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts.map +1 -0
  66. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js +58 -0
  67. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js.map +1 -0
  68. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts +57 -0
  69. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts.map +1 -0
  70. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js +262 -0
  71. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js.map +1 -0
  72. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts +28 -0
  73. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts.map +1 -0
  74. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts +11 -0
  75. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts.map +1 -0
  76. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts +28 -0
  77. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts.map +1 -0
  78. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts +12 -0
  79. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts.map +1 -0
  80. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js +37 -0
  81. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js.map +1 -0
  82. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts +77 -0
  83. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts.map +1 -0
  84. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js +227 -0
  85. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js.map +1 -0
  86. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts +196 -0
  87. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts.map +1 -0
  88. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js +86 -0
  89. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js.map +1 -0
  90. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts +62 -0
  91. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts.map +1 -0
  92. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js +167 -0
  93. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js.map +1 -0
  94. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts +74 -0
  95. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts.map +1 -0
  96. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js +223 -0
  97. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js.map +1 -0
  98. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts +13 -0
  99. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts.map +1 -0
  100. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js +93 -0
  101. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js.map +1 -0
  102. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts +10 -0
  103. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts.map +1 -0
  104. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts +10 -0
  105. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts.map +1 -0
  106. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js +55 -0
  107. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js.map +1 -0
  108. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts +10 -0
  109. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts.map +1 -0
  110. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js +112 -0
  111. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js.map +1 -0
  112. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts +18 -0
  113. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts.map +1 -0
  114. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js +59 -0
  115. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js.map +1 -0
  116. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts +25 -0
  117. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts.map +1 -0
  118. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js +87 -0
  119. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js.map +1 -0
  120. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts +31 -0
  121. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
  122. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js +70 -0
  123. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js.map +1 -0
  124. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts +23 -0
  125. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts.map +1 -0
  126. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js +82 -0
  127. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js.map +1 -0
  128. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts +32 -0
  129. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts.map +1 -0
  130. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js +88 -0
  131. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js.map +1 -0
  132. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts +375 -0
  133. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts.map +1 -0
  134. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js +482 -0
  135. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js.map +1 -0
  136. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts +71 -0
  137. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -0
  138. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js +107 -0
  139. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js.map +1 -0
  140. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts +57 -0
  141. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts.map +1 -0
  142. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js +97 -0
  143. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js.map +1 -0
  144. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts +42 -0
  145. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts.map +1 -0
  146. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js +127 -0
  147. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js.map +1 -0
  148. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts +26 -0
  149. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts.map +1 -0
  150. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js +71 -0
  151. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js.map +1 -0
  152. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts +27 -0
  153. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts.map +1 -0
  154. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js +36 -0
  155. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js.map +1 -0
  156. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js +17467 -0
  157. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js.map +1 -0
  158. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts +36 -0
  159. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts.map +1 -0
  160. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js +18 -0
  161. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js.map +1 -0
  162. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts +53 -0
  163. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -0
  164. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js +179 -0
  165. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js.map +1 -0
  166. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
  167. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
  168. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +21 -0
  169. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -0
  170. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts +86 -0
  171. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -0
  172. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js +480 -0
  173. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js.map +1 -0
  174. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts +112 -0
  175. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts.map +1 -0
  176. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js +513 -0
  177. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js.map +1 -0
  178. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts +49 -0
  179. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts.map +1 -0
  180. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js +353 -0
  181. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js.map +1 -0
  182. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts +23 -0
  183. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
  184. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js +87 -0
  185. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js.map +1 -0
  186. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts +22 -0
  187. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts.map +1 -0
  188. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js +108 -0
  189. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js.map +1 -0
  190. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts +32 -0
  191. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts.map +1 -0
  192. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js +158 -0
  193. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js.map +1 -0
  194. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts +20 -0
  195. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -0
  196. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js +100 -0
  197. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js.map +1 -0
  198. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts +60 -0
  199. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -0
  200. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js +308 -0
  201. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js.map +1 -0
  202. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts +40 -0
  203. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts.map +1 -0
  204. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js +162 -0
  205. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js.map +1 -0
  206. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts +25 -0
  207. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts.map +1 -0
  208. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js +145 -0
  209. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js.map +1 -0
  210. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts +48 -0
  211. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts.map +1 -0
  212. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js +161 -0
  213. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js.map +1 -0
  214. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts +21 -0
  215. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts.map +1 -0
  216. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js +23 -0
  217. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js.map +1 -0
  218. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts +17 -0
  219. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts.map +1 -0
  220. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts +23 -0
  221. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts.map +1 -0
  222. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js +48 -0
  223. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js.map +1 -0
  224. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts +13 -0
  225. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts.map +1 -0
  226. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts +27 -0
  227. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts.map +1 -0
  228. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js +138 -0
  229. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js.map +1 -0
  230. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts +41 -0
  231. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts.map +1 -0
  232. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js +138 -0
  233. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js.map +1 -0
  234. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts +3 -0
  235. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts.map +1 -0
  236. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js +8 -0
  237. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js.map +1 -0
  238. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts +9 -0
  239. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
  240. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts +9 -0
  241. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts.map +1 -0
  242. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts +19 -0
  243. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts.map +1 -0
  244. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts +16 -0
  245. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts.map +1 -0
  246. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts +33 -0
  247. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts.map +1 -0
  248. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts +16 -0
  249. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts.map +1 -0
  250. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts +34 -0
  251. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts.map +1 -0
  252. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts +31 -0
  253. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts.map +1 -0
  254. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts +27 -0
  255. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts.map +1 -0
  256. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts +37 -0
  257. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
  258. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js +108 -0
  259. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js.map +1 -0
  260. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts +13 -0
  261. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
  262. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js +66 -0
  263. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -0
  264. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts +163 -0
  265. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts.map +1 -0
  266. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js +216 -0
  267. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js.map +1 -0
  268. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts +19 -0
  269. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts.map +1 -0
  270. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js +44 -0
  271. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js.map +1 -0
  272. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts +27 -0
  273. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts.map +1 -0
  274. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js +122 -0
  275. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js.map +1 -0
  276. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts +66 -0
  277. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts.map +1 -0
  278. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js +147 -0
  279. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js.map +1 -0
  280. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts +12 -0
  281. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts.map +1 -0
  282. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js +29 -0
  283. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js.map +1 -0
  284. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js +90 -0
  285. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js.map +1 -0
  286. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts +32 -0
  287. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts.map +1 -0
  288. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts +21 -0
  289. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts.map +1 -0
  290. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js +57 -0
  291. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js.map +1 -0
  292. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts +9 -0
  293. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts.map +1 -0
  294. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js +14 -0
  295. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js.map +1 -0
  296. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts +15 -0
  297. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +1 -0
  298. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts +20 -0
  299. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts.map +1 -0
  300. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js +44 -0
  301. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js.map +1 -0
  302. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +9 -0
  303. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +1 -0
  304. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts +61 -0
  305. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts.map +1 -0
  306. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts +202 -0
  307. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts.map +1 -0
  308. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js +688 -0
  309. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js.map +1 -0
  310. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +29 -0
  311. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +1 -0
  312. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js +69 -0
  313. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js.map +1 -0
  314. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +623 -0
  315. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +1 -0
  316. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js +12 -0
  317. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +1 -0
  318. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +19 -0
  319. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +1 -0
  320. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js +24 -0
  321. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js.map +1 -0
  322. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts +9 -0
  323. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +1 -0
  324. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js +18 -0
  325. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js.map +1 -0
  326. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts +2 -0
  327. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +1 -0
  328. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +6 -0
  329. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
  330. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +6 -0
  331. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  332. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  333. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  334. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
  335. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
  336. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts +7 -0
  337. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +1 -0
  338. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +12 -0
  339. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +1 -0
  340. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +15 -0
  341. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +1 -0
  342. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts +8 -0
  343. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +1 -0
  344. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js +17 -0
  345. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js.map +1 -0
  346. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +28 -0
  347. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +1 -0
  348. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js +127 -0
  349. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js.map +1 -0
  350. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
  351. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  352. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts +393 -0
  353. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts.map +1 -0
  354. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js +890 -0
  355. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js.map +1 -0
  356. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +57 -0
  357. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  358. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +124 -0
  359. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +1 -0
  360. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +100 -0
  361. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +1 -0
  362. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js +247 -0
  363. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +1 -0
  364. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +40 -0
  365. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  366. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +74 -0
  367. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +1 -0
  368. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -0
  369. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  370. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +82 -0
  371. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
  372. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +14 -0
  373. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +1 -0
  374. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js +19 -0
  375. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +1 -0
  376. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +94 -0
  377. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +1 -0
  378. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js +164 -0
  379. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +1 -0
  380. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +35 -0
  381. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +1 -0
  382. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +70 -0
  383. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +1 -0
  384. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +37 -0
  385. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  386. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +73 -0
  387. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
  388. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +13 -0
  389. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  390. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +35 -0
  391. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
  392. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +14 -0
  393. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  394. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +32 -0
  395. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +1 -0
  396. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +157 -0
  397. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +1 -0
  398. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +6 -0
  399. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +1 -0
  400. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +5 -0
  401. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  402. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +24 -0
  403. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  404. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +39 -0
  405. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +1 -0
  406. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +60 -0
  407. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +1 -0
  408. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +76 -0
  409. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +1 -0
  410. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js +470 -0
  411. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +1 -0
  412. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts +45 -0
  413. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts.map +1 -0
  414. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js +103 -0
  415. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js.map +1 -0
  416. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts +39 -0
  417. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts.map +1 -0
  418. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js +202 -0
  419. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js.map +1 -0
  420. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts +52 -0
  421. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts.map +1 -0
  422. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js +232 -0
  423. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js.map +1 -0
  424. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts +51 -0
  425. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts.map +1 -0
  426. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js +244 -0
  427. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js.map +1 -0
  428. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +40 -0
  429. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +1 -0
  430. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js +284 -0
  431. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js.map +1 -0
  432. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts +25 -0
  433. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +1 -0
  434. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js +136 -0
  435. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js.map +1 -0
  436. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts +29 -0
  437. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts.map +1 -0
  438. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js +120 -0
  439. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js.map +1 -0
  440. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts +39 -0
  441. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +1 -0
  442. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts +135 -0
  443. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +1 -0
  444. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js +105 -0
  445. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js.map +1 -0
  446. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts +63 -0
  447. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +1 -0
  448. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js +80 -0
  449. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js.map +1 -0
  450. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +5 -0
  451. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +1 -0
  452. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts +22 -0
  453. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +1 -0
  454. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js +45 -0
  455. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js.map +1 -0
  456. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +56 -0
  457. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +1 -0
  458. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js +107 -0
  459. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +1 -0
  460. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +12 -0
  461. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
  462. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts +48 -0
  463. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts.map +1 -0
  464. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js +61 -0
  465. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js.map +1 -0
  466. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts +389 -0
  467. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +1 -0
  468. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js +500 -0
  469. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js.map +1 -0
  470. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +199 -0
  471. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +1 -0
  472. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js +260 -0
  473. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js.map +1 -0
  474. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +42 -0
  475. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +1 -0
  476. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +80 -0
  477. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +1 -0
  478. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts +29 -0
  479. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +1 -0
  480. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js +50 -0
  481. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js.map +1 -0
  482. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts +8 -0
  483. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts.map +1 -0
  484. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js +25 -0
  485. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js.map +1 -0
  486. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js +8611 -0
  487. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js.map +1 -0
  488. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts +92 -0
  489. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts.map +1 -0
  490. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js +55 -0
  491. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js.map +1 -0
  492. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts +95 -0
  493. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts.map +1 -0
  494. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js +185 -0
  495. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js.map +1 -0
  496. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts +31 -0
  497. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts.map +1 -0
  498. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js +21 -0
  499. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js.map +1 -0
  500. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts +21 -0
  501. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts.map +1 -0
  502. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js +56 -0
  503. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js.map +1 -0
  504. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts +17 -0
  505. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +1 -0
  506. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +42 -0
  507. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +1 -0
  508. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js +101 -0
  509. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js.map +1 -0
  510. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts +3 -0
  511. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts.map +1 -0
  512. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js +8 -0
  513. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js.map +1 -0
  514. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +20 -0
  515. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +1 -0
  516. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +64 -0
  517. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +1 -0
  518. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +35 -0
  519. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +1 -0
  520. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  521. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  522. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +52 -0
  523. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  524. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +17 -0
  525. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
  526. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +19 -0
  527. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  528. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +21 -0
  529. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +1 -0
  530. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +13 -0
  531. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  532. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +21 -0
  533. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  534. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +20 -0
  535. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +1 -0
  536. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +17 -0
  537. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  538. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +217 -0
  539. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +1 -0
  540. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js +387 -0
  541. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +1 -0
  542. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts +34 -0
  543. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts.map +1 -0
  544. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js +92 -0
  545. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js.map +1 -0
  546. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts +83 -0
  547. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts.map +1 -0
  548. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js +192 -0
  549. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js.map +1 -0
  550. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts +40 -0
  551. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +1 -0
  552. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +14 -0
  553. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +1 -0
  554. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +26 -0
  555. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +1 -0
  556. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +16 -0
  557. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +1 -0
  558. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +5 -0
  559. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +1 -0
  560. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts +71 -0
  561. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +1 -0
  562. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js +302 -0
  563. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js.map +1 -0
  564. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +22 -0
  565. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  566. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +43 -0
  567. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  568. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +22 -0
  569. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  570. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  571. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  572. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +125 -0
  573. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  574. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +284 -0
  575. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +1 -0
  576. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +275 -0
  577. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  578. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +128 -0
  579. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +1 -0
  580. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +13 -0
  581. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  582. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +37 -0
  583. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +1 -0
  584. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +67 -0
  585. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  586. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +168 -0
  587. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
  588. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  589. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  590. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts +13 -0
  591. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts.map +1 -0
  592. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts +71 -0
  593. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts.map +1 -0
  594. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js +241 -0
  595. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js.map +1 -0
  596. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts +345 -0
  597. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts.map +1 -0
  598. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js +386 -0
  599. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js.map +1 -0
  600. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts +7 -0
  601. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +1 -0
  602. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +43 -0
  603. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +1 -0
  604. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js +77 -0
  605. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js.map +1 -0
  606. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts +54 -0
  607. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts.map +1 -0
  608. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js +129 -0
  609. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js.map +1 -0
  610. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts +28 -0
  611. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +1 -0
  612. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js +53 -0
  613. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js.map +1 -0
  614. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts +16 -0
  615. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts.map +1 -0
  616. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts +181 -0
  617. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts.map +1 -0
  618. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts +91 -0
  619. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts.map +1 -0
  620. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts +11 -0
  621. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -0
  622. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts +18 -0
  623. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts.map +1 -0
  624. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts +33 -0
  625. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts.map +1 -0
  626. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts +43 -0
  627. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts.map +1 -0
  628. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts +40 -0
  629. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts.map +1 -0
  630. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts +102 -0
  631. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts.map +1 -0
  632. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts +143 -0
  633. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts.map +1 -0
  634. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts +47 -0
  635. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts.map +1 -0
  636. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts +59 -0
  637. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts.map +1 -0
  638. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts +40 -0
  639. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts.map +1 -0
  640. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts +38 -0
  641. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts.map +1 -0
  642. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts +46 -0
  643. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts.map +1 -0
  644. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts +91 -0
  645. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts.map +1 -0
  646. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts +53 -0
  647. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map +1 -0
  648. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts +15 -0
  649. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map +1 -0
  650. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts +9 -0
  651. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts.map +1 -0
  652. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts +23 -0
  653. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map +1 -0
  654. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts +66 -0
  655. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts.map +1 -0
  656. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts +31 -0
  657. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts.map +1 -0
  658. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.js +8 -0
  659. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js +2581 -0
  660. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js.map +1 -0
  661. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js +2 -0
  662. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js.map +1 -0
  663. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js +2470 -0
  664. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js.map +1 -0
  665. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts +25 -0
  666. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts.map +1 -0
  667. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts +21 -0
  668. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts.map +1 -0
  669. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts +3 -0
  670. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts.map +1 -0
  671. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts +22 -0
  672. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
  673. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts +34 -0
  674. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts.map +1 -0
  675. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts +16 -0
  676. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts.map +1 -0
  677. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts +16 -0
  678. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts.map +1 -0
  679. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts +8 -0
  680. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts.map +1 -0
  681. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts +15 -0
  682. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts.map +1 -0
  683. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts +18 -0
  684. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts.map +1 -0
  685. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts +17 -0
  686. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts.map +1 -0
  687. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts +20 -0
  688. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts.map +1 -0
  689. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts +93 -0
  690. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts.map +1 -0
  691. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts +27 -0
  692. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts.map +1 -0
  693. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts +5 -0
  694. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts.map +1 -0
  695. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js +25339 -0
  696. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js.map +1 -0
  697. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/rush-lib.d.ts +3652 -0
  698. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/tsdoc-metadata.json +11 -0
  699. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/heft-config-file.d.ts +254 -0
  700. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/tsdoc-metadata.json +11 -0
  701. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/node-core-library.d.ts +3717 -0
  702. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/tsdoc-metadata.json +11 -0
  703. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/package-deps-hash.d.ts +80 -0
  704. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/tsdoc-metadata.json +11 -0
  705. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/rig-package.d.ts +198 -0
  706. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/tsdoc-metadata.json +11 -0
  707. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-amazon-s3-build-cache-plugin/dist/rush-amazon-s3-build-cache-plugin.d.ts +150 -0
  708. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-azure-storage-build-cache-plugin/dist/rush-azure-storage-build-cache-plugin.d.ts +93 -0
  709. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-sdk/dist/rush-lib.d.ts +3652 -0
  710. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/stream-collator.d.ts +124 -0
  711. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/tsdoc-metadata.json +11 -0
  712. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/terminal.d.ts +743 -0
  713. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/tsdoc-metadata.json +11 -0
  714. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/ts-command-line.d.ts +998 -0
  715. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/tsdoc-metadata.json +11 -0
  716. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.d.ts +7 -0
  717. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js +24 -0
  718. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js.map +1 -0
  719. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.d.ts +231 -0
  720. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js +3 -0
  721. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js.map +1 -0
  722. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.d.ts +17 -0
  723. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js +3 -0
  724. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js.map +1 -0
  725. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.d.ts +78 -0
  726. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js +203 -0
  727. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js.map +1 -0
  728. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.d.ts +4 -0
  729. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js +18 -0
  730. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js.map +1 -0
  731. package/common/temp/rush-recycler/install-run-1678274025679/esprima/dist/esprima.js +6709 -0
  732. package/common/temp/rush-recycler/install-run-1678274025679/form-data/README.md.bak +358 -0
  733. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.d.ts +32 -0
  734. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js +145 -0
  735. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js.map +1 -0
  736. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.d.ts +21 -0
  737. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js +14 -0
  738. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js.map +1 -0
  739. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.d.ts +30 -0
  740. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js +177 -0
  741. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js.map +1 -0
  742. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.d.ts +23 -0
  743. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js +14 -0
  744. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js.map +1 -0
  745. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  746. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  747. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  748. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.js +75 -0
  749. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.min.js +1 -0
  750. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.js +3946 -0
  751. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.min.js +1 -0
  752. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.js +1737 -0
  753. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.js +1 -0
  754. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.mjs +1 -0
  755. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.mjs +1426 -0
  756. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.js +1062 -0
  757. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js +2 -0
  758. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js.map +1 -0
  759. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.js +1072 -0
  760. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js +2 -0
  761. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js.map +1 -0
  762. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.js +11370 -0
  763. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.min.js +13 -0
  764. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.js +350 -0
  765. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.min.js +1 -0
  766. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.js +358 -0
  767. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.min.js +1 -0
  768. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.js +6818 -0
  769. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.min.js +1 -0
  770. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.js +3997 -0
  771. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.min.js +1 -0
  772. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.js +3300 -0
  773. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.min.js +1 -0
  774. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.js +10187 -0
  775. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.min.js +1 -0
  776. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.js +9716 -0
  777. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.min.js +1 -0
  778. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js +4 -0
  779. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
  780. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.map +1 -0
  781. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js +4 -0
  782. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js.map +1 -0
  783. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.map +1 -0
  784. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/encodings.xml +6 -0
  785. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/modules.xml +8 -0
  786. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/node-tunnel.iml +12 -0
  787. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/vcs.xml +6 -0
  788. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/workspace.xml +797 -0
  789. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.js +755 -0
  790. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js +1 -0
  791. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js.map +1 -0
  792. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/bin/uuid +2 -0
  793. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/index.js +9 -0
  794. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/md5.js +215 -0
  795. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/nil.js +1 -0
  796. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/parse.js +35 -0
  797. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/regex.js +1 -0
  798. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/rng.js +19 -0
  799. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/sha1.js +96 -0
  800. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/stringify.js +30 -0
  801. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v1.js +95 -0
  802. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v3.js +4 -0
  803. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v35.js +64 -0
  804. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v4.js +24 -0
  805. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v5.js +4 -0
  806. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/validate.js +7 -0
  807. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/version.js +11 -0
  808. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/index.js +9 -0
  809. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/md5.js +13 -0
  810. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/nil.js +1 -0
  811. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/parse.js +35 -0
  812. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/regex.js +1 -0
  813. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/rng.js +12 -0
  814. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/sha1.js +13 -0
  815. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/stringify.js +29 -0
  816. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v1.js +95 -0
  817. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v3.js +4 -0
  818. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v35.js +64 -0
  819. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v4.js +24 -0
  820. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v5.js +4 -0
  821. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/validate.js +7 -0
  822. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/version.js +11 -0
  823. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/index.js +79 -0
  824. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5-browser.js +223 -0
  825. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5.js +23 -0
  826. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/nil.js +8 -0
  827. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/parse.js +45 -0
  828. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/regex.js +8 -0
  829. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng-browser.js +26 -0
  830. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng.js +24 -0
  831. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1-browser.js +104 -0
  832. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1.js +23 -0
  833. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/stringify.js +39 -0
  834. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuid.min.js +1 -0
  835. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidNIL.min.js +1 -0
  836. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidParse.min.js +1 -0
  837. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidStringify.min.js +1 -0
  838. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidValidate.min.js +1 -0
  839. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidVersion.min.js +1 -0
  840. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv1.min.js +1 -0
  841. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv3.min.js +1 -0
  842. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv4.min.js +1 -0
  843. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv5.min.js +1 -0
  844. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/uuid-bin.js +85 -0
  845. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v1.js +107 -0
  846. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v3.js +16 -0
  847. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v35.js +78 -0
  848. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v4.js +37 -0
  849. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v5.js +16 -0
  850. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/validate.js +17 -0
  851. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/version.js +21 -0
  852. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js +2 -0
  853. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js.map +1 -0
  854. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-test.js +30407 -0
  855. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser.js +12901 -0
  856. package/components/Handle/index.js +2 -2
  857. package/package.json +1 -1
@@ -0,0 +1,2470 @@
1
+ import { Constants as Constants$1, ProtocolMode, AzureCloudInstance, LogLevel, StringUtils, AccountEntity, CacheManager, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, ServerTelemetryEntity, AuthorityMetadataEntity, ThrottlingEntity, TokenCacheContext, AuthError, Logger, ResponseMode, AuthenticationScheme, AuthorizationCodeClient, RefreshTokenClient, SilentFlowClient, UsernamePasswordClient, ClientAuthError, OIDC_DEFAULT_SCOPES, ServerTelemetryManager, Authority, AuthorityFactory, UrlString, DeviceCodeClient, ServerError, CodeChallengeMethodValues, TimeUtils, ClientCredentialClient, OnBehalfOfClient } from '@azure/msal-common';
2
+ export { AuthError, AuthErrorMessage, AzureCloudInstance, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, LogLevel, Logger, PromptValue, ProtocolMode, ResponseMode, ServerError, TokenCacheContext } from '@azure/msal-common';
3
+ import http, { createServer } from 'http';
4
+ import https from 'https';
5
+ import { v4 } from 'uuid';
6
+ import crypto from 'crypto';
7
+ import { sign } from 'jsonwebtoken';
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation. All rights reserved.
11
+ * Licensed under the MIT License.
12
+ */
13
+ /**
14
+ * http methods
15
+ */
16
+ var HttpMethod;
17
+ (function (HttpMethod) {
18
+ HttpMethod["GET"] = "get";
19
+ HttpMethod["POST"] = "post";
20
+ })(HttpMethod || (HttpMethod = {}));
21
+ var HttpStatus;
22
+ (function (HttpStatus) {
23
+ HttpStatus[HttpStatus["SUCCESS_RANGE_START"] = 200] = "SUCCESS_RANGE_START";
24
+ HttpStatus[HttpStatus["SUCCESS_RANGE_END"] = 299] = "SUCCESS_RANGE_END";
25
+ HttpStatus[HttpStatus["REDIRECT"] = 302] = "REDIRECT";
26
+ HttpStatus[HttpStatus["CLIENT_ERROR_RANGE_START"] = 400] = "CLIENT_ERROR_RANGE_START";
27
+ HttpStatus[HttpStatus["CLIENT_ERROR_RANGE_END"] = 499] = "CLIENT_ERROR_RANGE_END";
28
+ HttpStatus[HttpStatus["SERVER_ERROR_RANGE_START"] = 500] = "SERVER_ERROR_RANGE_START";
29
+ HttpStatus[HttpStatus["SERVER_ERROR_RANGE_END"] = 599] = "SERVER_ERROR_RANGE_END";
30
+ })(HttpStatus || (HttpStatus = {}));
31
+ var ProxyStatus;
32
+ (function (ProxyStatus) {
33
+ ProxyStatus[ProxyStatus["SUCCESS_RANGE_START"] = 200] = "SUCCESS_RANGE_START";
34
+ ProxyStatus[ProxyStatus["SUCCESS_RANGE_END"] = 299] = "SUCCESS_RANGE_END";
35
+ ProxyStatus[ProxyStatus["SERVER_ERROR"] = 500] = "SERVER_ERROR";
36
+ })(ProxyStatus || (ProxyStatus = {}));
37
+ /**
38
+ * Constants used for region discovery
39
+ */
40
+ const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
41
+ /**
42
+ * Constant used for PKCE
43
+ */
44
+ const RANDOM_OCTET_SIZE = 32;
45
+ /**
46
+ * Constants used in PKCE
47
+ */
48
+ const Hash = {
49
+ SHA256: "sha256"
50
+ };
51
+ /**
52
+ * Constants for encoding schemes
53
+ */
54
+ const CharSet = {
55
+ CV_CHARSET: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"
56
+ };
57
+ /**
58
+ * Constants
59
+ */
60
+ const Constants = {
61
+ MSAL_SKU: "msal.js.node",
62
+ JWT_BEARER_ASSERTION_TYPE: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
63
+ AUTHORIZATION_PENDING: "authorization_pending",
64
+ HTTP_PROTOCOL: "http://",
65
+ LOCALHOST: "localhost"
66
+ };
67
+ /**
68
+ * API Codes for Telemetry purposes.
69
+ * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
70
+ * 0-99 Silent Flow
71
+ * 600-699 Device Code Flow
72
+ * 800-899 Auth Code Flow
73
+ */
74
+ var ApiId;
75
+ (function (ApiId) {
76
+ ApiId[ApiId["acquireTokenSilent"] = 62] = "acquireTokenSilent";
77
+ ApiId[ApiId["acquireTokenByUsernamePassword"] = 371] = "acquireTokenByUsernamePassword";
78
+ ApiId[ApiId["acquireTokenByDeviceCode"] = 671] = "acquireTokenByDeviceCode";
79
+ ApiId[ApiId["acquireTokenByClientCredential"] = 771] = "acquireTokenByClientCredential";
80
+ ApiId[ApiId["acquireTokenByCode"] = 871] = "acquireTokenByCode";
81
+ ApiId[ApiId["acquireTokenByRefreshToken"] = 872] = "acquireTokenByRefreshToken";
82
+ })(ApiId || (ApiId = {}));
83
+ /**
84
+ * JWT constants
85
+ */
86
+ const JwtConstants = {
87
+ ALGORITHM: "alg",
88
+ RSA_256: "RS256",
89
+ X5T: "x5t",
90
+ X5C: "x5c",
91
+ AUDIENCE: "aud",
92
+ EXPIRATION_TIME: "exp",
93
+ ISSUER: "iss",
94
+ SUBJECT: "sub",
95
+ NOT_BEFORE: "nbf",
96
+ JWT_ID: "jti"
97
+ };
98
+ const LOOPBACK_SERVER_CONSTANTS = {
99
+ INTERVAL_MS: 100,
100
+ TIMEOUT_MS: 5000
101
+ };
102
+
103
+ /*
104
+ * Copyright (c) Microsoft Corporation. All rights reserved.
105
+ * Licensed under the MIT License.
106
+ */
107
+ class NetworkUtils {
108
+ static getNetworkResponse(headers, body, statusCode) {
109
+ return {
110
+ headers: headers,
111
+ body: body,
112
+ status: statusCode
113
+ };
114
+ }
115
+ }
116
+
117
+ /*
118
+ * Copyright (c) Microsoft Corporation. All rights reserved.
119
+ * Licensed under the MIT License.
120
+ */
121
+ /**
122
+ * This class implements the API for network requests.
123
+ */
124
+ class HttpClient {
125
+ constructor(proxyUrl, customAgentOptions) {
126
+ this.proxyUrl = proxyUrl || "";
127
+ this.customAgentOptions = customAgentOptions || {};
128
+ }
129
+ /**
130
+ * Http Get request
131
+ * @param url
132
+ * @param options
133
+ */
134
+ async sendGetRequestAsync(url, options) {
135
+ if (this.proxyUrl) {
136
+ return networkRequestViaProxy(url, this.proxyUrl, HttpMethod.GET, options, this.customAgentOptions);
137
+ } else {
138
+ return networkRequestViaHttps(url, HttpMethod.GET, options, this.customAgentOptions);
139
+ }
140
+ }
141
+ /**
142
+ * Http Post request
143
+ * @param url
144
+ * @param options
145
+ */
146
+ async sendPostRequestAsync(url, options, cancellationToken) {
147
+ if (this.proxyUrl) {
148
+ return networkRequestViaProxy(url, this.proxyUrl, HttpMethod.POST, options, this.customAgentOptions, cancellationToken);
149
+ } else {
150
+ return networkRequestViaHttps(url, HttpMethod.POST, options, this.customAgentOptions, cancellationToken);
151
+ }
152
+ }
153
+ }
154
+ const networkRequestViaProxy = (url, proxyUrlString, httpMethod, options, agentOptions, timeout) => {
155
+ const headers = (options == null ? void 0 : options.headers) || {};
156
+ const proxyUrl = new URL(proxyUrlString);
157
+ const destinationUrl = new URL(url);
158
+ // "method: connect" must be used to establish a connection to the proxy
159
+ const tunnelRequestOptions = {
160
+ host: proxyUrl.hostname,
161
+ port: proxyUrl.port,
162
+ method: "CONNECT",
163
+ path: destinationUrl.hostname,
164
+ headers: headers
165
+ };
166
+ if (timeout) {
167
+ tunnelRequestOptions.timeout = timeout;
168
+ }
169
+ if (agentOptions && Object.keys(agentOptions).length) {
170
+ tunnelRequestOptions.agent = new http.Agent(agentOptions);
171
+ }
172
+ // compose a request string for the socket
173
+ let postRequestStringContent = "";
174
+ if (httpMethod === HttpMethod.POST) {
175
+ const body = (options == null ? void 0 : options.body) || "";
176
+ postRequestStringContent = "Content-Type: application/x-www-form-urlencoded\r\n" + `Content-Length: ${body.length}\r\n` + `\r\n${body}`;
177
+ }
178
+ const outgoingRequestString = `${httpMethod.toUpperCase()} ${destinationUrl.href} HTTP/1.1\r\n` + `Host: ${destinationUrl.host}\r\n` + "Connection: close\r\n" + postRequestStringContent + "\r\n";
179
+ return new Promise((resolve, reject) => {
180
+ const request = http.request(tunnelRequestOptions);
181
+ if (tunnelRequestOptions.timeout) {
182
+ request.on("timeout", () => {
183
+ request.destroy();
184
+ reject(new Error("Request time out"));
185
+ });
186
+ }
187
+ request.end();
188
+ // establish connection to the proxy
189
+ request.on("connect", (response, socket) => {
190
+ const proxyStatusCode = (response == null ? void 0 : response.statusCode) || ProxyStatus.SERVER_ERROR;
191
+ if (proxyStatusCode < ProxyStatus.SUCCESS_RANGE_START || proxyStatusCode > ProxyStatus.SUCCESS_RANGE_END) {
192
+ request.destroy();
193
+ socket.destroy();
194
+ reject(new Error(`Error connecting to proxy. Http status code: ${response.statusCode}. Http status message: ${(response == null ? void 0 : response.statusMessage) || "Unknown"}`));
195
+ }
196
+ if (tunnelRequestOptions.timeout) {
197
+ socket.setTimeout(tunnelRequestOptions.timeout);
198
+ socket.on("timeout", () => {
199
+ request.destroy();
200
+ socket.destroy();
201
+ reject(new Error("Request time out"));
202
+ });
203
+ }
204
+ // make a request over an HTTP tunnel
205
+ socket.write(outgoingRequestString);
206
+ const data = [];
207
+ socket.on("data", chunk => {
208
+ data.push(chunk);
209
+ });
210
+ socket.on("end", () => {
211
+ // combine all received buffer streams into one buffer, and then into a string
212
+ const dataString = Buffer.concat([...data]).toString();
213
+ // separate each line into it's own entry in an arry
214
+ const dataStringArray = dataString.split("\r\n");
215
+ // the first entry will contain the statusCode and statusMessage
216
+ const httpStatusCode = parseInt(dataStringArray[0].split(" ")[1]);
217
+ // remove "HTTP/1.1" and the status code to get the status message
218
+ const statusMessage = dataStringArray[0].split(" ").slice(2).join(" ");
219
+ // the last entry will contain the body
220
+ const body = dataStringArray[dataStringArray.length - 1];
221
+ // everything in between the first and last entries are the headers
222
+ const headersArray = dataStringArray.slice(1, dataStringArray.length - 2);
223
+ // build an object out of all the headers
224
+ const entries = new Map();
225
+ headersArray.forEach(header => {
226
+ /**
227
+ * the header might look like "Content-Length: 1531", but that is just a string
228
+ * it needs to be converted to a key/value pair
229
+ * split the string at the first instance of ":"
230
+ * there may be more than one ":" if the value of the header is supposed to be a JSON object
231
+ */
232
+ const headerKeyValue = header.split(new RegExp(/:\s(.*)/s));
233
+ const headerKey = headerKeyValue[0];
234
+ let headerValue = headerKeyValue[1];
235
+ // check if the value of the header is supposed to be a JSON object
236
+ try {
237
+ const object = JSON.parse(headerValue);
238
+ // if it is, then convert it from a string to a JSON object
239
+ if (object && typeof object === "object") {
240
+ headerValue = object;
241
+ }
242
+ } catch (e) {
243
+ // otherwise, leave it as a string
244
+ }
245
+ entries.set(headerKey, headerValue);
246
+ });
247
+ const headers = Object.fromEntries(entries);
248
+ const parsedHeaders = headers;
249
+ const networkResponse = NetworkUtils.getNetworkResponse(parsedHeaders, parseBody(httpStatusCode, statusMessage, parsedHeaders, body), httpStatusCode);
250
+ if ((httpStatusCode < HttpStatus.SUCCESS_RANGE_START || httpStatusCode > HttpStatus.SUCCESS_RANGE_END) &&
251
+ // do not destroy the request for the device code flow
252
+ networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
253
+ request.destroy();
254
+ }
255
+ resolve(networkResponse);
256
+ });
257
+ socket.on("error", chunk => {
258
+ request.destroy();
259
+ socket.destroy();
260
+ reject(new Error(chunk.toString()));
261
+ });
262
+ });
263
+ request.on("error", chunk => {
264
+ request.destroy();
265
+ reject(new Error(chunk.toString()));
266
+ });
267
+ });
268
+ };
269
+ const networkRequestViaHttps = (url, httpMethod, options, agentOptions, timeout) => {
270
+ const isPostRequest = httpMethod === HttpMethod.POST;
271
+ const body = (options == null ? void 0 : options.body) || "";
272
+ const emptyHeaders = {};
273
+ const customOptions = {
274
+ method: httpMethod,
275
+ headers: (options == null ? void 0 : options.headers) || emptyHeaders
276
+ };
277
+ if (timeout) {
278
+ customOptions.timeout = timeout;
279
+ }
280
+ if (agentOptions && Object.keys(agentOptions).length) {
281
+ customOptions.agent = new https.Agent(agentOptions);
282
+ }
283
+ if (isPostRequest) {
284
+ // needed for post request to work
285
+ customOptions.headers = {
286
+ ...customOptions.headers,
287
+ "Content-Length": body.length
288
+ };
289
+ }
290
+ return new Promise((resolve, reject) => {
291
+ const request = https.request(url, customOptions);
292
+ if (timeout) {
293
+ request.on("timeout", () => {
294
+ request.destroy();
295
+ reject(new Error("Request time out"));
296
+ });
297
+ }
298
+ if (isPostRequest) {
299
+ request.write(body);
300
+ }
301
+ request.end();
302
+ request.on("response", response => {
303
+ const headers = response.headers;
304
+ const statusCode = response.statusCode;
305
+ const statusMessage = response.statusMessage;
306
+ const data = [];
307
+ response.on("data", chunk => {
308
+ data.push(chunk);
309
+ });
310
+ response.on("end", () => {
311
+ // combine all received buffer streams into one buffer, and then into a string
312
+ const body = Buffer.concat([...data]).toString();
313
+ const parsedHeaders = headers;
314
+ const networkResponse = NetworkUtils.getNetworkResponse(parsedHeaders, parseBody(statusCode, statusMessage, parsedHeaders, body), statusCode);
315
+ if ((statusCode < HttpStatus.SUCCESS_RANGE_START || statusCode > HttpStatus.SUCCESS_RANGE_END) &&
316
+ // do not destroy the request for the device code flow
317
+ networkResponse.body["error"] !== Constants.AUTHORIZATION_PENDING) {
318
+ request.destroy();
319
+ }
320
+ resolve(networkResponse);
321
+ });
322
+ });
323
+ request.on("error", chunk => {
324
+ request.destroy();
325
+ reject(new Error(chunk.toString()));
326
+ });
327
+ });
328
+ };
329
+ /**
330
+ * Check if extra parsing is needed on the repsonse from the server
331
+ * @param statusCode {number} the status code of the response from the server
332
+ * @param statusMessage {string | undefined} the status message of the response from the server
333
+ * @param headers {Record<string, string>} the headers of the response from the server
334
+ * @param body {string} the body from the response of the server
335
+ * @returns {Object} JSON parsed body or error object
336
+ */
337
+ const parseBody = (statusCode, statusMessage, headers, body) => {
338
+ /*
339
+ * Informational responses (100 – 199)
340
+ * Successful responses (200 – 299)
341
+ * Redirection messages (300 – 399)
342
+ * Client error responses (400 – 499)
343
+ * Server error responses (500 – 599)
344
+ */
345
+ let parsedBody;
346
+ try {
347
+ parsedBody = JSON.parse(body);
348
+ } catch (error) {
349
+ let errorType;
350
+ let errorDescriptionHelper;
351
+ if (statusCode >= HttpStatus.CLIENT_ERROR_RANGE_START && statusCode <= HttpStatus.CLIENT_ERROR_RANGE_END) {
352
+ errorType = "client_error";
353
+ errorDescriptionHelper = "A client";
354
+ } else if (statusCode >= HttpStatus.SERVER_ERROR_RANGE_START && statusCode <= HttpStatus.SERVER_ERROR_RANGE_END) {
355
+ errorType = "server_error";
356
+ errorDescriptionHelper = "A server";
357
+ } else {
358
+ errorType = "unknown_error";
359
+ errorDescriptionHelper = "An unknown";
360
+ }
361
+ parsedBody = {
362
+ error: errorType,
363
+ error_description: `${errorDescriptionHelper} error occured.\nHttp status code: ${statusCode}\nHttp status message: ${statusMessage || "Unknown"}\nHeaders: ${JSON.stringify(headers)}`
364
+ };
365
+ }
366
+ return parsedBody;
367
+ };
368
+
369
+ /*
370
+ * Copyright (c) Microsoft Corporation. All rights reserved.
371
+ * Licensed under the MIT License.
372
+ */
373
+ const DEFAULT_AUTH_OPTIONS = {
374
+ clientId: Constants$1.EMPTY_STRING,
375
+ authority: Constants$1.DEFAULT_AUTHORITY,
376
+ clientSecret: Constants$1.EMPTY_STRING,
377
+ clientAssertion: Constants$1.EMPTY_STRING,
378
+ clientCertificate: {
379
+ thumbprint: Constants$1.EMPTY_STRING,
380
+ privateKey: Constants$1.EMPTY_STRING,
381
+ x5c: Constants$1.EMPTY_STRING
382
+ },
383
+ knownAuthorities: [],
384
+ cloudDiscoveryMetadata: Constants$1.EMPTY_STRING,
385
+ authorityMetadata: Constants$1.EMPTY_STRING,
386
+ clientCapabilities: [],
387
+ protocolMode: ProtocolMode.AAD,
388
+ azureCloudOptions: {
389
+ azureCloudInstance: AzureCloudInstance.None,
390
+ tenant: Constants$1.EMPTY_STRING
391
+ },
392
+ skipAuthorityMetadataCache: false
393
+ };
394
+ const DEFAULT_CACHE_OPTIONS = {};
395
+ const DEFAULT_LOGGER_OPTIONS = {
396
+ loggerCallback: () => {
397
+ // allow users to not set logger call back
398
+ },
399
+ piiLoggingEnabled: false,
400
+ logLevel: LogLevel.Info
401
+ };
402
+ const DEFAULT_SYSTEM_OPTIONS = {
403
+ loggerOptions: DEFAULT_LOGGER_OPTIONS,
404
+ networkClient: /*#__PURE__*/new HttpClient(),
405
+ proxyUrl: Constants$1.EMPTY_STRING,
406
+ customAgentOptions: {}
407
+ };
408
+ const DEFAULT_TELEMETRY_OPTIONS = {
409
+ application: {
410
+ appName: Constants$1.EMPTY_STRING,
411
+ appVersion: Constants$1.EMPTY_STRING
412
+ }
413
+ };
414
+ /**
415
+ * Sets the default options when not explicitly configured from app developer
416
+ *
417
+ * @param auth - Authentication options
418
+ * @param cache - Cache options
419
+ * @param system - System options
420
+ * @param telemetry - Telemetry options
421
+ *
422
+ * @returns Configuration
423
+ * @public
424
+ */
425
+ function buildAppConfiguration({
426
+ auth,
427
+ cache,
428
+ system,
429
+ telemetry
430
+ }) {
431
+ const systemOptions = {
432
+ ...DEFAULT_SYSTEM_OPTIONS,
433
+ networkClient: new HttpClient(system == null ? void 0 : system.proxyUrl, system == null ? void 0 : system.customAgentOptions),
434
+ loggerOptions: (system == null ? void 0 : system.loggerOptions) || DEFAULT_LOGGER_OPTIONS
435
+ };
436
+ return {
437
+ auth: {
438
+ ...DEFAULT_AUTH_OPTIONS,
439
+ ...auth
440
+ },
441
+ cache: {
442
+ ...DEFAULT_CACHE_OPTIONS,
443
+ ...cache
444
+ },
445
+ system: {
446
+ ...systemOptions,
447
+ ...system
448
+ },
449
+ telemetry: {
450
+ ...DEFAULT_TELEMETRY_OPTIONS,
451
+ ...telemetry
452
+ }
453
+ };
454
+ }
455
+
456
+ /*
457
+ * Copyright (c) Microsoft Corporation. All rights reserved.
458
+ * Licensed under the MIT License.
459
+ */
460
+ class GuidGenerator {
461
+ /**
462
+ *
463
+ * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
464
+ * uuidv4 generates guids from cryprtographically-string random
465
+ */
466
+ generateGuid() {
467
+ return v4();
468
+ }
469
+ /**
470
+ * verifies if a string is GUID
471
+ * @param guid
472
+ */
473
+ isGuid(guid) {
474
+ const regexGuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
475
+ return regexGuid.test(guid);
476
+ }
477
+ }
478
+
479
+ /*
480
+ * Copyright (c) Microsoft Corporation. All rights reserved.
481
+ * Licensed under the MIT License.
482
+ */
483
+ class EncodingUtils {
484
+ /**
485
+ * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
486
+ * 'base64': Base64 encoding.
487
+ *
488
+ * @param str text
489
+ */
490
+ static base64Encode(str, encoding) {
491
+ return Buffer.from(str, encoding).toString("base64");
492
+ }
493
+ /**
494
+ * encode a URL
495
+ * @param str
496
+ */
497
+ static base64EncodeUrl(str, encoding) {
498
+ return EncodingUtils.base64Encode(str, encoding).replace(/=/g, Constants$1.EMPTY_STRING).replace(/\+/g, "-").replace(/\//g, "_");
499
+ }
500
+ /**
501
+ * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
502
+ * 'base64': Base64 encoding.
503
+ *
504
+ * @param base64Str Base64 encoded text
505
+ */
506
+ static base64Decode(base64Str) {
507
+ return Buffer.from(base64Str, "base64").toString("utf8");
508
+ }
509
+ /**
510
+ * @param base64Str Base64 encoded Url
511
+ */
512
+ static base64DecodeUrl(base64Str) {
513
+ let str = base64Str.replace(/-/g, "+").replace(/_/g, "/");
514
+ while (str.length % 4) {
515
+ str += "=";
516
+ }
517
+ return EncodingUtils.base64Decode(str);
518
+ }
519
+ }
520
+
521
+ /*
522
+ * Copyright (c) Microsoft Corporation. All rights reserved.
523
+ * Licensed under the MIT License.
524
+ */
525
+ class HashUtils {
526
+ /**
527
+ * generate 'SHA256' hash
528
+ * @param buffer
529
+ */
530
+ sha256(buffer) {
531
+ return crypto.createHash(Hash.SHA256).update(buffer).digest();
532
+ }
533
+ }
534
+
535
+ /*
536
+ * Copyright (c) Microsoft Corporation. All rights reserved.
537
+ * Licensed under the MIT License.
538
+ */
539
+ /**
540
+ * https://tools.ietf.org/html/rfc7636#page-8
541
+ */
542
+ class PkceGenerator {
543
+ constructor() {
544
+ this.hashUtils = new HashUtils();
545
+ }
546
+ /**
547
+ * generates the codeVerfier and the challenge from the codeVerfier
548
+ * reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
549
+ */
550
+ async generatePkceCodes() {
551
+ const verifier = this.generateCodeVerifier();
552
+ const challenge = this.generateCodeChallengeFromVerifier(verifier);
553
+ return {
554
+ verifier,
555
+ challenge
556
+ };
557
+ }
558
+ /**
559
+ * generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
560
+ */
561
+ generateCodeVerifier() {
562
+ const charArr = [];
563
+ const maxNumber = 256 - 256 % CharSet.CV_CHARSET.length;
564
+ while (charArr.length <= RANDOM_OCTET_SIZE) {
565
+ const byte = crypto.randomBytes(1)[0];
566
+ if (byte >= maxNumber) {
567
+ /*
568
+ * Ignore this number to maintain randomness.
569
+ * Including it would result in an unequal distribution of characters after doing the modulo
570
+ */
571
+ continue;
572
+ }
573
+ const index = byte % CharSet.CV_CHARSET.length;
574
+ charArr.push(CharSet.CV_CHARSET[index]);
575
+ }
576
+ const verifier = charArr.join(Constants$1.EMPTY_STRING);
577
+ return EncodingUtils.base64EncodeUrl(verifier);
578
+ }
579
+ /**
580
+ * generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
581
+ * @param codeVerifier
582
+ */
583
+ generateCodeChallengeFromVerifier(codeVerifier) {
584
+ return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(codeVerifier).toString("base64"), "base64");
585
+ }
586
+ }
587
+
588
+ /*
589
+ * Copyright (c) Microsoft Corporation. All rights reserved.
590
+ * Licensed under the MIT License.
591
+ */
592
+ /**
593
+ * This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
594
+ * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
595
+ * @public
596
+ */
597
+ class CryptoProvider {
598
+ constructor() {
599
+ // Browser crypto needs to be validated first before any other classes can be set.
600
+ this.pkceGenerator = new PkceGenerator();
601
+ this.guidGenerator = new GuidGenerator();
602
+ this.hashUtils = new HashUtils();
603
+ }
604
+ /**
605
+ * Creates a new random GUID - used to populate state and nonce.
606
+ * @returns string (GUID)
607
+ */
608
+ createNewGuid() {
609
+ return this.guidGenerator.generateGuid();
610
+ }
611
+ /**
612
+ * Encodes input string to base64.
613
+ * @param input - string to be encoded
614
+ */
615
+ base64Encode(input) {
616
+ return EncodingUtils.base64Encode(input);
617
+ }
618
+ /**
619
+ * Decodes input string from base64.
620
+ * @param input - string to be decoded
621
+ */
622
+ base64Decode(input) {
623
+ return EncodingUtils.base64Decode(input);
624
+ }
625
+ /**
626
+ * Generates PKCE codes used in Authorization Code Flow.
627
+ */
628
+ generatePkceCodes() {
629
+ return this.pkceGenerator.generatePkceCodes();
630
+ }
631
+ /**
632
+ * Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
633
+ */
634
+ getPublicKeyThumbprint() {
635
+ throw new Error("Method not implemented.");
636
+ }
637
+ /**
638
+ * Removes cryptographic keypair from key store matching the keyId passed in
639
+ * @param kid
640
+ */
641
+ removeTokenBindingKey() {
642
+ throw new Error("Method not implemented.");
643
+ }
644
+ /**
645
+ * Removes all cryptographic keys from Keystore
646
+ */
647
+ clearKeystore() {
648
+ throw new Error("Method not implemented.");
649
+ }
650
+ /**
651
+ * Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
652
+ */
653
+ signJwt() {
654
+ throw new Error("Method not implemented.");
655
+ }
656
+ /**
657
+ * Returns the SHA-256 hash of an input string
658
+ */
659
+ async hashString(plainText) {
660
+ return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(plainText).toString("base64"), "base64");
661
+ }
662
+ }
663
+
664
+ /*
665
+ * Copyright (c) Microsoft Corporation. All rights reserved.
666
+ * Licensed under the MIT License.
667
+ */
668
+ /**
669
+ * This class deserializes cache entities read from the file into in memory object types defined internally
670
+ */
671
+ class Deserializer {
672
+ /**
673
+ * Parse the JSON blob in memory and deserialize the content
674
+ * @param cachedJson
675
+ */
676
+ static deserializeJSONBlob(jsonFile) {
677
+ const deserializedCache = StringUtils.isEmpty(jsonFile) ? {} : JSON.parse(jsonFile);
678
+ return deserializedCache;
679
+ }
680
+ /**
681
+ * Deserializes accounts to AccountEntity objects
682
+ * @param accounts
683
+ */
684
+ static deserializeAccounts(accounts) {
685
+ const accountObjects = {};
686
+ if (accounts) {
687
+ Object.keys(accounts).map(function (key) {
688
+ const serializedAcc = accounts[key];
689
+ const mappedAcc = {
690
+ homeAccountId: serializedAcc.home_account_id,
691
+ environment: serializedAcc.environment,
692
+ realm: serializedAcc.realm,
693
+ localAccountId: serializedAcc.local_account_id,
694
+ username: serializedAcc.username,
695
+ authorityType: serializedAcc.authority_type,
696
+ name: serializedAcc.name,
697
+ clientInfo: serializedAcc.client_info,
698
+ lastModificationTime: serializedAcc.last_modification_time,
699
+ lastModificationApp: serializedAcc.last_modification_app
700
+ };
701
+ const account = new AccountEntity();
702
+ CacheManager.toObject(account, mappedAcc);
703
+ accountObjects[key] = account;
704
+ });
705
+ }
706
+ return accountObjects;
707
+ }
708
+ /**
709
+ * Deserializes id tokens to IdTokenEntity objects
710
+ * @param idTokens
711
+ */
712
+ static deserializeIdTokens(idTokens) {
713
+ const idObjects = {};
714
+ if (idTokens) {
715
+ Object.keys(idTokens).map(function (key) {
716
+ const serializedIdT = idTokens[key];
717
+ const mappedIdT = {
718
+ homeAccountId: serializedIdT.home_account_id,
719
+ environment: serializedIdT.environment,
720
+ credentialType: serializedIdT.credential_type,
721
+ clientId: serializedIdT.client_id,
722
+ secret: serializedIdT.secret,
723
+ realm: serializedIdT.realm
724
+ };
725
+ const idToken = new IdTokenEntity();
726
+ CacheManager.toObject(idToken, mappedIdT);
727
+ idObjects[key] = idToken;
728
+ });
729
+ }
730
+ return idObjects;
731
+ }
732
+ /**
733
+ * Deserializes access tokens to AccessTokenEntity objects
734
+ * @param accessTokens
735
+ */
736
+ static deserializeAccessTokens(accessTokens) {
737
+ const atObjects = {};
738
+ if (accessTokens) {
739
+ Object.keys(accessTokens).map(function (key) {
740
+ const serializedAT = accessTokens[key];
741
+ const mappedAT = {
742
+ homeAccountId: serializedAT.home_account_id,
743
+ environment: serializedAT.environment,
744
+ credentialType: serializedAT.credential_type,
745
+ clientId: serializedAT.client_id,
746
+ secret: serializedAT.secret,
747
+ realm: serializedAT.realm,
748
+ target: serializedAT.target,
749
+ cachedAt: serializedAT.cached_at,
750
+ expiresOn: serializedAT.expires_on,
751
+ extendedExpiresOn: serializedAT.extended_expires_on,
752
+ refreshOn: serializedAT.refresh_on,
753
+ keyId: serializedAT.key_id,
754
+ tokenType: serializedAT.token_type,
755
+ requestedClaims: serializedAT.requestedClaims,
756
+ requestedClaimsHash: serializedAT.requestedClaimsHash,
757
+ userAssertionHash: serializedAT.userAssertionHash
758
+ };
759
+ const accessToken = new AccessTokenEntity();
760
+ CacheManager.toObject(accessToken, mappedAT);
761
+ atObjects[key] = accessToken;
762
+ });
763
+ }
764
+ return atObjects;
765
+ }
766
+ /**
767
+ * Deserializes refresh tokens to RefreshTokenEntity objects
768
+ * @param refreshTokens
769
+ */
770
+ static deserializeRefreshTokens(refreshTokens) {
771
+ const rtObjects = {};
772
+ if (refreshTokens) {
773
+ Object.keys(refreshTokens).map(function (key) {
774
+ const serializedRT = refreshTokens[key];
775
+ const mappedRT = {
776
+ homeAccountId: serializedRT.home_account_id,
777
+ environment: serializedRT.environment,
778
+ credentialType: serializedRT.credential_type,
779
+ clientId: serializedRT.client_id,
780
+ secret: serializedRT.secret,
781
+ familyId: serializedRT.family_id,
782
+ target: serializedRT.target,
783
+ realm: serializedRT.realm
784
+ };
785
+ const refreshToken = new RefreshTokenEntity();
786
+ CacheManager.toObject(refreshToken, mappedRT);
787
+ rtObjects[key] = refreshToken;
788
+ });
789
+ }
790
+ return rtObjects;
791
+ }
792
+ /**
793
+ * Deserializes appMetadata to AppMetaData objects
794
+ * @param appMetadata
795
+ */
796
+ static deserializeAppMetadata(appMetadata) {
797
+ const appMetadataObjects = {};
798
+ if (appMetadata) {
799
+ Object.keys(appMetadata).map(function (key) {
800
+ const serializedAmdt = appMetadata[key];
801
+ const mappedAmd = {
802
+ clientId: serializedAmdt.client_id,
803
+ environment: serializedAmdt.environment,
804
+ familyId: serializedAmdt.family_id
805
+ };
806
+ const amd = new AppMetadataEntity();
807
+ CacheManager.toObject(amd, mappedAmd);
808
+ appMetadataObjects[key] = amd;
809
+ });
810
+ }
811
+ return appMetadataObjects;
812
+ }
813
+ /**
814
+ * Deserialize an inMemory Cache
815
+ * @param jsonCache
816
+ */
817
+ static deserializeAllCache(jsonCache) {
818
+ return {
819
+ accounts: jsonCache.Account ? this.deserializeAccounts(jsonCache.Account) : {},
820
+ idTokens: jsonCache.IdToken ? this.deserializeIdTokens(jsonCache.IdToken) : {},
821
+ accessTokens: jsonCache.AccessToken ? this.deserializeAccessTokens(jsonCache.AccessToken) : {},
822
+ refreshTokens: jsonCache.RefreshToken ? this.deserializeRefreshTokens(jsonCache.RefreshToken) : {},
823
+ appMetadata: jsonCache.AppMetadata ? this.deserializeAppMetadata(jsonCache.AppMetadata) : {}
824
+ };
825
+ }
826
+ }
827
+
828
+ /*
829
+ * Copyright (c) Microsoft Corporation. All rights reserved.
830
+ * Licensed under the MIT License.
831
+ */
832
+ class Serializer {
833
+ /**
834
+ * serialize the JSON blob
835
+ * @param data
836
+ */
837
+ static serializeJSONBlob(data) {
838
+ return JSON.stringify(data);
839
+ }
840
+ /**
841
+ * Serialize Accounts
842
+ * @param accCache
843
+ */
844
+ static serializeAccounts(accCache) {
845
+ const accounts = {};
846
+ Object.keys(accCache).map(function (key) {
847
+ const accountEntity = accCache[key];
848
+ accounts[key] = {
849
+ home_account_id: accountEntity.homeAccountId,
850
+ environment: accountEntity.environment,
851
+ realm: accountEntity.realm,
852
+ local_account_id: accountEntity.localAccountId,
853
+ username: accountEntity.username,
854
+ authority_type: accountEntity.authorityType,
855
+ name: accountEntity.name,
856
+ client_info: accountEntity.clientInfo,
857
+ last_modification_time: accountEntity.lastModificationTime,
858
+ last_modification_app: accountEntity.lastModificationApp
859
+ };
860
+ });
861
+ return accounts;
862
+ }
863
+ /**
864
+ * Serialize IdTokens
865
+ * @param idTCache
866
+ */
867
+ static serializeIdTokens(idTCache) {
868
+ const idTokens = {};
869
+ Object.keys(idTCache).map(function (key) {
870
+ const idTEntity = idTCache[key];
871
+ idTokens[key] = {
872
+ home_account_id: idTEntity.homeAccountId,
873
+ environment: idTEntity.environment,
874
+ credential_type: idTEntity.credentialType,
875
+ client_id: idTEntity.clientId,
876
+ secret: idTEntity.secret,
877
+ realm: idTEntity.realm
878
+ };
879
+ });
880
+ return idTokens;
881
+ }
882
+ /**
883
+ * Serializes AccessTokens
884
+ * @param atCache
885
+ */
886
+ static serializeAccessTokens(atCache) {
887
+ const accessTokens = {};
888
+ Object.keys(atCache).map(function (key) {
889
+ const atEntity = atCache[key];
890
+ accessTokens[key] = {
891
+ home_account_id: atEntity.homeAccountId,
892
+ environment: atEntity.environment,
893
+ credential_type: atEntity.credentialType,
894
+ client_id: atEntity.clientId,
895
+ secret: atEntity.secret,
896
+ realm: atEntity.realm,
897
+ target: atEntity.target,
898
+ cached_at: atEntity.cachedAt,
899
+ expires_on: atEntity.expiresOn,
900
+ extended_expires_on: atEntity.extendedExpiresOn,
901
+ refresh_on: atEntity.refreshOn,
902
+ key_id: atEntity.keyId,
903
+ token_type: atEntity.tokenType,
904
+ requestedClaims: atEntity.requestedClaims,
905
+ requestedClaimsHash: atEntity.requestedClaimsHash,
906
+ userAssertionHash: atEntity.userAssertionHash
907
+ };
908
+ });
909
+ return accessTokens;
910
+ }
911
+ /**
912
+ * Serialize refreshTokens
913
+ * @param rtCache
914
+ */
915
+ static serializeRefreshTokens(rtCache) {
916
+ const refreshTokens = {};
917
+ Object.keys(rtCache).map(function (key) {
918
+ const rtEntity = rtCache[key];
919
+ refreshTokens[key] = {
920
+ home_account_id: rtEntity.homeAccountId,
921
+ environment: rtEntity.environment,
922
+ credential_type: rtEntity.credentialType,
923
+ client_id: rtEntity.clientId,
924
+ secret: rtEntity.secret,
925
+ family_id: rtEntity.familyId,
926
+ target: rtEntity.target,
927
+ realm: rtEntity.realm
928
+ };
929
+ });
930
+ return refreshTokens;
931
+ }
932
+ /**
933
+ * Serialize amdtCache
934
+ * @param amdtCache
935
+ */
936
+ static serializeAppMetadata(amdtCache) {
937
+ const appMetadata = {};
938
+ Object.keys(amdtCache).map(function (key) {
939
+ const amdtEntity = amdtCache[key];
940
+ appMetadata[key] = {
941
+ client_id: amdtEntity.clientId,
942
+ environment: amdtEntity.environment,
943
+ family_id: amdtEntity.familyId
944
+ };
945
+ });
946
+ return appMetadata;
947
+ }
948
+ /**
949
+ * Serialize the cache
950
+ * @param jsonContent
951
+ */
952
+ static serializeAllCache(inMemCache) {
953
+ return {
954
+ Account: this.serializeAccounts(inMemCache.accounts),
955
+ IdToken: this.serializeIdTokens(inMemCache.idTokens),
956
+ AccessToken: this.serializeAccessTokens(inMemCache.accessTokens),
957
+ RefreshToken: this.serializeRefreshTokens(inMemCache.refreshTokens),
958
+ AppMetadata: this.serializeAppMetadata(inMemCache.appMetadata)
959
+ };
960
+ }
961
+ }
962
+
963
+ /*
964
+ * Copyright (c) Microsoft Corporation. All rights reserved.
965
+ * Licensed under the MIT License.
966
+ */
967
+ /**
968
+ * This class implements Storage for node, reading cache from user specified storage location or an extension library
969
+ * @public
970
+ */
971
+ class NodeStorage extends CacheManager {
972
+ constructor(logger, clientId, cryptoImpl) {
973
+ super(clientId, cryptoImpl);
974
+ this.cache = {};
975
+ this.changeEmitters = [];
976
+ this.logger = logger;
977
+ }
978
+ /**
979
+ * Queue up callbacks
980
+ * @param func - a callback function for cache change indication
981
+ */
982
+ registerChangeEmitter(func) {
983
+ this.changeEmitters.push(func);
984
+ }
985
+ /**
986
+ * Invoke the callback when cache changes
987
+ */
988
+ emitChange() {
989
+ this.changeEmitters.forEach(func => func.call(null));
990
+ }
991
+ /**
992
+ * Converts cacheKVStore to InMemoryCache
993
+ * @param cache - key value store
994
+ */
995
+ cacheToInMemoryCache(cache) {
996
+ const inMemoryCache = {
997
+ accounts: {},
998
+ idTokens: {},
999
+ accessTokens: {},
1000
+ refreshTokens: {},
1001
+ appMetadata: {}
1002
+ };
1003
+ for (const key in cache) {
1004
+ if (cache[key] instanceof AccountEntity) {
1005
+ inMemoryCache.accounts[key] = cache[key];
1006
+ } else if (cache[key] instanceof IdTokenEntity) {
1007
+ inMemoryCache.idTokens[key] = cache[key];
1008
+ } else if (cache[key] instanceof AccessTokenEntity) {
1009
+ inMemoryCache.accessTokens[key] = cache[key];
1010
+ } else if (cache[key] instanceof RefreshTokenEntity) {
1011
+ inMemoryCache.refreshTokens[key] = cache[key];
1012
+ } else if (cache[key] instanceof AppMetadataEntity) {
1013
+ inMemoryCache.appMetadata[key] = cache[key];
1014
+ } else {
1015
+ continue;
1016
+ }
1017
+ }
1018
+ return inMemoryCache;
1019
+ }
1020
+ /**
1021
+ * converts inMemoryCache to CacheKVStore
1022
+ * @param inMemoryCache - kvstore map for inmemory
1023
+ */
1024
+ inMemoryCacheToCache(inMemoryCache) {
1025
+ // convert in memory cache to a flat Key-Value map
1026
+ let cache = this.getCache();
1027
+ cache = {
1028
+ ...cache,
1029
+ ...inMemoryCache.accounts,
1030
+ ...inMemoryCache.idTokens,
1031
+ ...inMemoryCache.accessTokens,
1032
+ ...inMemoryCache.refreshTokens,
1033
+ ...inMemoryCache.appMetadata
1034
+ };
1035
+ // convert in memory cache to a flat Key-Value map
1036
+ return cache;
1037
+ }
1038
+ /**
1039
+ * gets the current in memory cache for the client
1040
+ */
1041
+ getInMemoryCache() {
1042
+ this.logger.trace("Getting in-memory cache");
1043
+ // convert the cache key value store to inMemoryCache
1044
+ const inMemoryCache = this.cacheToInMemoryCache(this.getCache());
1045
+ return inMemoryCache;
1046
+ }
1047
+ /**
1048
+ * sets the current in memory cache for the client
1049
+ * @param inMemoryCache - key value map in memory
1050
+ */
1051
+ setInMemoryCache(inMemoryCache) {
1052
+ this.logger.trace("Setting in-memory cache");
1053
+ // convert and append the inMemoryCache to cacheKVStore
1054
+ const cache = this.inMemoryCacheToCache(inMemoryCache);
1055
+ this.setCache(cache);
1056
+ this.emitChange();
1057
+ }
1058
+ /**
1059
+ * get the current cache key-value store
1060
+ */
1061
+ getCache() {
1062
+ this.logger.trace("Getting cache key-value store");
1063
+ return this.cache;
1064
+ }
1065
+ /**
1066
+ * sets the current cache (key value store)
1067
+ * @param cacheMap - key value map
1068
+ */
1069
+ setCache(cache) {
1070
+ this.logger.trace("Setting cache key value store");
1071
+ this.cache = cache;
1072
+ // mark change in cache
1073
+ this.emitChange();
1074
+ }
1075
+ /**
1076
+ * Gets cache item with given key.
1077
+ * @param key - lookup key for the cache entry
1078
+ */
1079
+ getItem(key) {
1080
+ this.logger.tracePii(`Item key: ${key}`);
1081
+ // read cache
1082
+ const cache = this.getCache();
1083
+ return cache[key];
1084
+ }
1085
+ /**
1086
+ * Gets cache item with given key-value
1087
+ * @param key - lookup key for the cache entry
1088
+ * @param value - value of the cache entry
1089
+ */
1090
+ setItem(key, value) {
1091
+ this.logger.tracePii(`Item key: ${key}`);
1092
+ // read cache
1093
+ const cache = this.getCache();
1094
+ cache[key] = value;
1095
+ // write to cache
1096
+ this.setCache(cache);
1097
+ }
1098
+ /**
1099
+ * fetch the account entity
1100
+ * @param accountKey - lookup key to fetch cache type AccountEntity
1101
+ */
1102
+ getAccount(accountKey) {
1103
+ const account = this.getItem(accountKey);
1104
+ if (AccountEntity.isAccountEntity(account)) {
1105
+ return account;
1106
+ }
1107
+ return null;
1108
+ }
1109
+ /**
1110
+ * set account entity
1111
+ * @param account - cache value to be set of type AccountEntity
1112
+ */
1113
+ setAccount(account) {
1114
+ const accountKey = account.generateAccountKey();
1115
+ this.setItem(accountKey, account);
1116
+ }
1117
+ /**
1118
+ * fetch the idToken credential
1119
+ * @param idTokenKey - lookup key to fetch cache type IdTokenEntity
1120
+ */
1121
+ getIdTokenCredential(idTokenKey) {
1122
+ const idToken = this.getItem(idTokenKey);
1123
+ if (IdTokenEntity.isIdTokenEntity(idToken)) {
1124
+ return idToken;
1125
+ }
1126
+ return null;
1127
+ }
1128
+ /**
1129
+ * set idToken credential
1130
+ * @param idToken - cache value to be set of type IdTokenEntity
1131
+ */
1132
+ setIdTokenCredential(idToken) {
1133
+ const idTokenKey = idToken.generateCredentialKey();
1134
+ this.setItem(idTokenKey, idToken);
1135
+ }
1136
+ /**
1137
+ * fetch the accessToken credential
1138
+ * @param accessTokenKey - lookup key to fetch cache type AccessTokenEntity
1139
+ */
1140
+ getAccessTokenCredential(accessTokenKey) {
1141
+ const accessToken = this.getItem(accessTokenKey);
1142
+ if (AccessTokenEntity.isAccessTokenEntity(accessToken)) {
1143
+ return accessToken;
1144
+ }
1145
+ return null;
1146
+ }
1147
+ /**
1148
+ * set accessToken credential
1149
+ * @param accessToken - cache value to be set of type AccessTokenEntity
1150
+ */
1151
+ setAccessTokenCredential(accessToken) {
1152
+ const accessTokenKey = accessToken.generateCredentialKey();
1153
+ this.setItem(accessTokenKey, accessToken);
1154
+ }
1155
+ /**
1156
+ * fetch the refreshToken credential
1157
+ * @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
1158
+ */
1159
+ getRefreshTokenCredential(refreshTokenKey) {
1160
+ const refreshToken = this.getItem(refreshTokenKey);
1161
+ if (RefreshTokenEntity.isRefreshTokenEntity(refreshToken)) {
1162
+ return refreshToken;
1163
+ }
1164
+ return null;
1165
+ }
1166
+ /**
1167
+ * set refreshToken credential
1168
+ * @param refreshToken - cache value to be set of type RefreshTokenEntity
1169
+ */
1170
+ setRefreshTokenCredential(refreshToken) {
1171
+ const refreshTokenKey = refreshToken.generateCredentialKey();
1172
+ this.setItem(refreshTokenKey, refreshToken);
1173
+ }
1174
+ /**
1175
+ * fetch appMetadata entity from the platform cache
1176
+ * @param appMetadataKey - lookup key to fetch cache type AppMetadataEntity
1177
+ */
1178
+ getAppMetadata(appMetadataKey) {
1179
+ const appMetadata = this.getItem(appMetadataKey);
1180
+ if (AppMetadataEntity.isAppMetadataEntity(appMetadataKey, appMetadata)) {
1181
+ return appMetadata;
1182
+ }
1183
+ return null;
1184
+ }
1185
+ /**
1186
+ * set appMetadata entity to the platform cache
1187
+ * @param appMetadata - cache value to be set of type AppMetadataEntity
1188
+ */
1189
+ setAppMetadata(appMetadata) {
1190
+ const appMetadataKey = appMetadata.generateAppMetadataKey();
1191
+ this.setItem(appMetadataKey, appMetadata);
1192
+ }
1193
+ /**
1194
+ * fetch server telemetry entity from the platform cache
1195
+ * @param serverTelemetrykey - lookup key to fetch cache type ServerTelemetryEntity
1196
+ */
1197
+ getServerTelemetry(serverTelemetrykey) {
1198
+ const serverTelemetryEntity = this.getItem(serverTelemetrykey);
1199
+ if (serverTelemetryEntity && ServerTelemetryEntity.isServerTelemetryEntity(serverTelemetrykey, serverTelemetryEntity)) {
1200
+ return serverTelemetryEntity;
1201
+ }
1202
+ return null;
1203
+ }
1204
+ /**
1205
+ * set server telemetry entity to the platform cache
1206
+ * @param serverTelemetryKey - lookup key to fetch cache type ServerTelemetryEntity
1207
+ * @param serverTelemetry - cache value to be set of type ServerTelemetryEntity
1208
+ */
1209
+ setServerTelemetry(serverTelemetryKey, serverTelemetry) {
1210
+ this.setItem(serverTelemetryKey, serverTelemetry);
1211
+ }
1212
+ /**
1213
+ * fetch authority metadata entity from the platform cache
1214
+ * @param key - lookup key to fetch cache type AuthorityMetadataEntity
1215
+ */
1216
+ getAuthorityMetadata(key) {
1217
+ const authorityMetadataEntity = this.getItem(key);
1218
+ if (authorityMetadataEntity && AuthorityMetadataEntity.isAuthorityMetadataEntity(key, authorityMetadataEntity)) {
1219
+ return authorityMetadataEntity;
1220
+ }
1221
+ return null;
1222
+ }
1223
+ /**
1224
+ * Get all authority metadata keys
1225
+ */
1226
+ getAuthorityMetadataKeys() {
1227
+ return this.getKeys().filter(key => {
1228
+ return this.isAuthorityMetadata(key);
1229
+ });
1230
+ }
1231
+ /**
1232
+ * set authority metadata entity to the platform cache
1233
+ * @param key - lookup key to fetch cache type AuthorityMetadataEntity
1234
+ * @param metadata - cache value to be set of type AuthorityMetadataEntity
1235
+ */
1236
+ setAuthorityMetadata(key, metadata) {
1237
+ this.setItem(key, metadata);
1238
+ }
1239
+ /**
1240
+ * fetch throttling entity from the platform cache
1241
+ * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
1242
+ */
1243
+ getThrottlingCache(throttlingCacheKey) {
1244
+ const throttlingCache = this.getItem(throttlingCacheKey);
1245
+ if (throttlingCache && ThrottlingEntity.isThrottlingEntity(throttlingCacheKey, throttlingCache)) {
1246
+ return throttlingCache;
1247
+ }
1248
+ return null;
1249
+ }
1250
+ /**
1251
+ * set throttling entity to the platform cache
1252
+ * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
1253
+ * @param throttlingCache - cache value to be set of type ThrottlingEntity
1254
+ */
1255
+ setThrottlingCache(throttlingCacheKey, throttlingCache) {
1256
+ this.setItem(throttlingCacheKey, throttlingCache);
1257
+ }
1258
+ /**
1259
+ * Removes the cache item from memory with the given key.
1260
+ * @param key - lookup key to remove a cache entity
1261
+ * @param inMemory - key value map of the cache
1262
+ */
1263
+ removeItem(key) {
1264
+ this.logger.tracePii(`Item key: ${key}`);
1265
+ // read inMemoryCache
1266
+ let result = false;
1267
+ const cache = this.getCache();
1268
+ if (!!cache[key]) {
1269
+ delete cache[key];
1270
+ result = true;
1271
+ }
1272
+ // write to the cache after removal
1273
+ if (result) {
1274
+ this.setCache(cache);
1275
+ this.emitChange();
1276
+ }
1277
+ return result;
1278
+ }
1279
+ /**
1280
+ * Checks whether key is in cache.
1281
+ * @param key - look up key for a cache entity
1282
+ */
1283
+ containsKey(key) {
1284
+ return this.getKeys().includes(key);
1285
+ }
1286
+ /**
1287
+ * Gets all keys in window.
1288
+ */
1289
+ getKeys() {
1290
+ this.logger.trace("Retrieving all cache keys");
1291
+ // read cache
1292
+ const cache = this.getCache();
1293
+ return [...Object.keys(cache)];
1294
+ }
1295
+ /**
1296
+ * Clears all cache entries created by MSAL (except tokens).
1297
+ */
1298
+ async clear() {
1299
+ this.logger.trace("Clearing cache entries created by MSAL");
1300
+ // read inMemoryCache
1301
+ const cacheKeys = this.getKeys();
1302
+ // delete each element
1303
+ cacheKeys.forEach(key => {
1304
+ this.removeItem(key);
1305
+ });
1306
+ this.emitChange();
1307
+ }
1308
+ /**
1309
+ * Initialize in memory cache from an exisiting cache vault
1310
+ * @param cache - blob formatted cache (JSON)
1311
+ */
1312
+ static generateInMemoryCache(cache) {
1313
+ return Deserializer.deserializeAllCache(Deserializer.deserializeJSONBlob(cache));
1314
+ }
1315
+ /**
1316
+ * retrieves the final JSON
1317
+ * @param inMemoryCache - itemised cache read from the JSON
1318
+ */
1319
+ static generateJsonCache(inMemoryCache) {
1320
+ return Serializer.serializeAllCache(inMemoryCache);
1321
+ }
1322
+ /**
1323
+ * Updates a credential's cache key if the current cache key is outdated
1324
+ */
1325
+ updateCredentialCacheKey(currentCacheKey, credential) {
1326
+ const updatedCacheKey = credential.generateCredentialKey();
1327
+ if (currentCacheKey !== updatedCacheKey) {
1328
+ const cacheItem = this.getItem(currentCacheKey);
1329
+ if (cacheItem) {
1330
+ this.removeItem(currentCacheKey);
1331
+ this.setItem(updatedCacheKey, cacheItem);
1332
+ this.logger.verbose(`Updated an outdated ${credential.credentialType} cache key`);
1333
+ return updatedCacheKey;
1334
+ } else {
1335
+ this.logger.error(`Attempted to update an outdated ${credential.credentialType} cache key but no item matching the outdated key was found in storage`);
1336
+ }
1337
+ }
1338
+ return currentCacheKey;
1339
+ }
1340
+ }
1341
+
1342
+ /*
1343
+ * Copyright (c) Microsoft Corporation. All rights reserved.
1344
+ * Licensed under the MIT License.
1345
+ */
1346
+ const defaultSerializedCache = {
1347
+ Account: {},
1348
+ IdToken: {},
1349
+ AccessToken: {},
1350
+ RefreshToken: {},
1351
+ AppMetadata: {}
1352
+ };
1353
+ /**
1354
+ * In-memory token cache manager
1355
+ * @public
1356
+ */
1357
+ class TokenCache {
1358
+ constructor(storage, logger, cachePlugin) {
1359
+ this.cacheHasChanged = false;
1360
+ this.storage = storage;
1361
+ this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
1362
+ if (cachePlugin) {
1363
+ this.persistence = cachePlugin;
1364
+ }
1365
+ this.logger = logger;
1366
+ }
1367
+ /**
1368
+ * Set to true if cache state has changed since last time serialize or writeToPersistence was called
1369
+ */
1370
+ hasChanged() {
1371
+ return this.cacheHasChanged;
1372
+ }
1373
+ /**
1374
+ * Serializes in memory cache to JSON
1375
+ */
1376
+ serialize() {
1377
+ this.logger.trace("Serializing in-memory cache");
1378
+ let finalState = Serializer.serializeAllCache(this.storage.getInMemoryCache());
1379
+ // if cacheSnapshot not null or empty, merge
1380
+ if (!StringUtils.isEmpty(this.cacheSnapshot)) {
1381
+ this.logger.trace("Reading cache snapshot from disk");
1382
+ finalState = this.mergeState(JSON.parse(this.cacheSnapshot), finalState);
1383
+ } else {
1384
+ this.logger.trace("No cache snapshot to merge");
1385
+ }
1386
+ this.cacheHasChanged = false;
1387
+ return JSON.stringify(finalState);
1388
+ }
1389
+ /**
1390
+ * Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format
1391
+ * @param cache - blob formatted cache
1392
+ */
1393
+ deserialize(cache) {
1394
+ this.logger.trace("Deserializing JSON to in-memory cache");
1395
+ this.cacheSnapshot = cache;
1396
+ if (!StringUtils.isEmpty(this.cacheSnapshot)) {
1397
+ this.logger.trace("Reading cache snapshot from disk");
1398
+ const deserializedCache = Deserializer.deserializeAllCache(this.overlayDefaults(JSON.parse(this.cacheSnapshot)));
1399
+ this.storage.setInMemoryCache(deserializedCache);
1400
+ } else {
1401
+ this.logger.trace("No cache snapshot to deserialize");
1402
+ }
1403
+ }
1404
+ /**
1405
+ * Fetches the cache key-value map
1406
+ */
1407
+ getKVStore() {
1408
+ return this.storage.getCache();
1409
+ }
1410
+ /**
1411
+ * API that retrieves all accounts currently in cache to the user
1412
+ */
1413
+ async getAllAccounts() {
1414
+ this.logger.trace("getAllAccounts called");
1415
+ let cacheContext;
1416
+ try {
1417
+ if (this.persistence) {
1418
+ cacheContext = new TokenCacheContext(this, false);
1419
+ await this.persistence.beforeCacheAccess(cacheContext);
1420
+ }
1421
+ return this.storage.getAllAccounts();
1422
+ } finally {
1423
+ if (this.persistence && cacheContext) {
1424
+ await this.persistence.afterCacheAccess(cacheContext);
1425
+ }
1426
+ }
1427
+ }
1428
+ /**
1429
+ * Returns the signed in account matching homeAccountId.
1430
+ * (the account object is created at the time of successful login)
1431
+ * or null when no matching account is found
1432
+ * @param homeAccountId - unique identifier for an account (uid.utid)
1433
+ */
1434
+ async getAccountByHomeId(homeAccountId) {
1435
+ const allAccounts = await this.getAllAccounts();
1436
+ if (!StringUtils.isEmpty(homeAccountId) && allAccounts && allAccounts.length) {
1437
+ return allAccounts.filter(accountObj => accountObj.homeAccountId === homeAccountId)[0] || null;
1438
+ } else {
1439
+ return null;
1440
+ }
1441
+ }
1442
+ /**
1443
+ * Returns the signed in account matching localAccountId.
1444
+ * (the account object is created at the time of successful login)
1445
+ * or null when no matching account is found
1446
+ * @param localAccountId - unique identifier of an account (sub/obj when homeAccountId cannot be populated)
1447
+ */
1448
+ async getAccountByLocalId(localAccountId) {
1449
+ const allAccounts = await this.getAllAccounts();
1450
+ if (!StringUtils.isEmpty(localAccountId) && allAccounts && allAccounts.length) {
1451
+ return allAccounts.filter(accountObj => accountObj.localAccountId === localAccountId)[0] || null;
1452
+ } else {
1453
+ return null;
1454
+ }
1455
+ }
1456
+ /**
1457
+ * API to remove a specific account and the relevant data from cache
1458
+ * @param account - AccountInfo passed by the user
1459
+ */
1460
+ async removeAccount(account) {
1461
+ this.logger.trace("removeAccount called");
1462
+ let cacheContext;
1463
+ try {
1464
+ if (this.persistence) {
1465
+ cacheContext = new TokenCacheContext(this, true);
1466
+ await this.persistence.beforeCacheAccess(cacheContext);
1467
+ }
1468
+ await this.storage.removeAccount(AccountEntity.generateAccountCacheKey(account));
1469
+ } finally {
1470
+ if (this.persistence && cacheContext) {
1471
+ await this.persistence.afterCacheAccess(cacheContext);
1472
+ }
1473
+ }
1474
+ }
1475
+ /**
1476
+ * Called when the cache has changed state.
1477
+ */
1478
+ handleChangeEvent() {
1479
+ this.cacheHasChanged = true;
1480
+ }
1481
+ /**
1482
+ * Merge in memory cache with the cache snapshot.
1483
+ * @param oldState - cache before changes
1484
+ * @param currentState - current cache state in the library
1485
+ */
1486
+ mergeState(oldState, currentState) {
1487
+ this.logger.trace("Merging in-memory cache with cache snapshot");
1488
+ const stateAfterRemoval = this.mergeRemovals(oldState, currentState);
1489
+ return this.mergeUpdates(stateAfterRemoval, currentState);
1490
+ }
1491
+ /**
1492
+ * Deep update of oldState based on newState values
1493
+ * @param oldState - cache before changes
1494
+ * @param newState - updated cache
1495
+ */
1496
+ mergeUpdates(oldState, newState) {
1497
+ Object.keys(newState).forEach(newKey => {
1498
+ const newValue = newState[newKey];
1499
+ // if oldState does not contain value but newValue does, add it
1500
+ if (!oldState.hasOwnProperty(newKey)) {
1501
+ if (newValue !== null) {
1502
+ oldState[newKey] = newValue;
1503
+ }
1504
+ } else {
1505
+ // both oldState and newState contain the key, do deep update
1506
+ const newValueNotNull = newValue !== null;
1507
+ const newValueIsObject = typeof newValue === "object";
1508
+ const newValueIsNotArray = !Array.isArray(newValue);
1509
+ const oldStateNotUndefinedOrNull = typeof oldState[newKey] !== "undefined" && oldState[newKey] !== null;
1510
+ if (newValueNotNull && newValueIsObject && newValueIsNotArray && oldStateNotUndefinedOrNull) {
1511
+ this.mergeUpdates(oldState[newKey], newValue);
1512
+ } else {
1513
+ oldState[newKey] = newValue;
1514
+ }
1515
+ }
1516
+ });
1517
+ return oldState;
1518
+ }
1519
+ /**
1520
+ * Removes entities in oldState that the were removed from newState. If there are any unknown values in root of
1521
+ * oldState that are not recognized, they are left untouched.
1522
+ * @param oldState - cache before changes
1523
+ * @param newState - updated cache
1524
+ */
1525
+ mergeRemovals(oldState, newState) {
1526
+ this.logger.trace("Remove updated entries in cache");
1527
+ const accounts = oldState.Account ? this.mergeRemovalsDict(oldState.Account, newState.Account) : oldState.Account;
1528
+ const accessTokens = oldState.AccessToken ? this.mergeRemovalsDict(oldState.AccessToken, newState.AccessToken) : oldState.AccessToken;
1529
+ const refreshTokens = oldState.RefreshToken ? this.mergeRemovalsDict(oldState.RefreshToken, newState.RefreshToken) : oldState.RefreshToken;
1530
+ const idTokens = oldState.IdToken ? this.mergeRemovalsDict(oldState.IdToken, newState.IdToken) : oldState.IdToken;
1531
+ const appMetadata = oldState.AppMetadata ? this.mergeRemovalsDict(oldState.AppMetadata, newState.AppMetadata) : oldState.AppMetadata;
1532
+ return {
1533
+ ...oldState,
1534
+ Account: accounts,
1535
+ AccessToken: accessTokens,
1536
+ RefreshToken: refreshTokens,
1537
+ IdToken: idTokens,
1538
+ AppMetadata: appMetadata
1539
+ };
1540
+ }
1541
+ /**
1542
+ * Helper to merge new cache with the old one
1543
+ * @param oldState - cache before changes
1544
+ * @param newState - updated cache
1545
+ */
1546
+ mergeRemovalsDict(oldState, newState) {
1547
+ const finalState = {
1548
+ ...oldState
1549
+ };
1550
+ Object.keys(oldState).forEach(oldKey => {
1551
+ if (!newState || !newState.hasOwnProperty(oldKey)) {
1552
+ delete finalState[oldKey];
1553
+ }
1554
+ });
1555
+ return finalState;
1556
+ }
1557
+ /**
1558
+ * Helper to overlay as a part of cache merge
1559
+ * @param passedInCache - cache read from the blob
1560
+ */
1561
+ overlayDefaults(passedInCache) {
1562
+ this.logger.trace("Overlaying input cache with the default cache");
1563
+ return {
1564
+ Account: {
1565
+ ...defaultSerializedCache.Account,
1566
+ ...passedInCache.Account
1567
+ },
1568
+ IdToken: {
1569
+ ...defaultSerializedCache.IdToken,
1570
+ ...passedInCache.IdToken
1571
+ },
1572
+ AccessToken: {
1573
+ ...defaultSerializedCache.AccessToken,
1574
+ ...passedInCache.AccessToken
1575
+ },
1576
+ RefreshToken: {
1577
+ ...defaultSerializedCache.RefreshToken,
1578
+ ...passedInCache.RefreshToken
1579
+ },
1580
+ AppMetadata: {
1581
+ ...defaultSerializedCache.AppMetadata,
1582
+ ...passedInCache.AppMetadata
1583
+ }
1584
+ };
1585
+ }
1586
+ }
1587
+
1588
+ /* eslint-disable header/header */
1589
+ const name = "@azure/msal-node";
1590
+ const version = "1.15.0";
1591
+
1592
+ /*
1593
+ * Copyright (c) Microsoft Corporation. All rights reserved.
1594
+ * Licensed under the MIT License.
1595
+ */
1596
+ /**
1597
+ * NodeAuthErrorMessage class containing string constants used by error codes and messages.
1598
+ */
1599
+ const NodeAuthErrorMessage = {
1600
+ invalidLoopbackAddressType: {
1601
+ code: "invalid_loopback_server_address_type",
1602
+ desc: "Loopback server address is not type string. This is unexpected."
1603
+ },
1604
+ unableToLoadRedirectUri: {
1605
+ code: "unable_to_load_redirectUrl",
1606
+ desc: "Loopback server callback was invoked without a url. This is unexpected."
1607
+ },
1608
+ noAuthCodeInResponse: {
1609
+ code: "no_auth_code_in_response",
1610
+ desc: "No auth code found in the server response. Please check your network trace to determine what happened."
1611
+ },
1612
+ noLoopbackServerExists: {
1613
+ code: "no_loopback_server_exists",
1614
+ desc: "No loopback server exists yet."
1615
+ },
1616
+ loopbackServerAlreadyExists: {
1617
+ code: "loopback_server_already_exists",
1618
+ desc: "Loopback server already exists. Cannot create another."
1619
+ },
1620
+ loopbackServerTimeout: {
1621
+ code: "loopback_server_timeout",
1622
+ desc: "Timed out waiting for auth code listener to be registered."
1623
+ },
1624
+ stateNotFoundError: {
1625
+ code: "state_not_found",
1626
+ desc: "State not found. Please verify that the request originated from msal."
1627
+ }
1628
+ };
1629
+ class NodeAuthError extends AuthError {
1630
+ constructor(errorCode, errorMessage) {
1631
+ super(errorCode, errorMessage);
1632
+ this.name = "NodeAuthError";
1633
+ }
1634
+ /**
1635
+ * Creates an error thrown if loopback server address is of type string.
1636
+ */
1637
+ static createInvalidLoopbackAddressTypeError() {
1638
+ return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
1639
+ }
1640
+ /**
1641
+ * Creates an error thrown if the loopback server is unable to get a url.
1642
+ */
1643
+ static createUnableToLoadRedirectUrlError() {
1644
+ return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
1645
+ }
1646
+ /**
1647
+ * Creates an error thrown if the server response does not contain an auth code.
1648
+ */
1649
+ static createNoAuthCodeInResponseError() {
1650
+ return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
1651
+ }
1652
+ /**
1653
+ * Creates an error thrown if the loopback server has not been spun up yet.
1654
+ */
1655
+ static createNoLoopbackServerExistsError() {
1656
+ return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
1657
+ }
1658
+ /**
1659
+ * Creates an error thrown if a loopback server already exists when attempting to create another one.
1660
+ */
1661
+ static createLoopbackServerAlreadyExistsError() {
1662
+ return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
1663
+ }
1664
+ /**
1665
+ * Creates an error thrown if the loopback server times out registering the auth code listener.
1666
+ */
1667
+ static createLoopbackServerTimeoutError() {
1668
+ return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
1669
+ }
1670
+ /**
1671
+ * Creates an error thrown when the state is not present.
1672
+ */
1673
+ static createStateNotFoundError() {
1674
+ return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
1675
+ }
1676
+ }
1677
+
1678
+ /*
1679
+ * Copyright (c) Microsoft Corporation. All rights reserved.
1680
+ * Licensed under the MIT License.
1681
+ */
1682
+ /**
1683
+ * Base abstract class for all ClientApplications - public and confidential
1684
+ * @public
1685
+ */
1686
+ class ClientApplication {
1687
+ /**
1688
+ * Constructor for the ClientApplication
1689
+ */
1690
+ constructor(configuration) {
1691
+ this.config = buildAppConfiguration(configuration);
1692
+ this.cryptoProvider = new CryptoProvider();
1693
+ this.logger = new Logger(this.config.system.loggerOptions, name, version);
1694
+ this.storage = new NodeStorage(this.logger, this.config.auth.clientId, this.cryptoProvider);
1695
+ this.tokenCache = new TokenCache(this.storage, this.logger, this.config.cache.cachePlugin);
1696
+ }
1697
+ /**
1698
+ * Creates the URL of the authorization request, letting the user input credentials and consent to the
1699
+ * application. The URL targets the /authorize endpoint of the authority configured in the
1700
+ * application object.
1701
+ *
1702
+ * Once the user inputs their credentials and consents, the authority will send a response to the redirect URI
1703
+ * sent in the request and should contain an authorization code, which can then be used to acquire tokens via
1704
+ * `acquireTokenByCode(AuthorizationCodeRequest)`.
1705
+ */
1706
+ async getAuthCodeUrl(request) {
1707
+ this.logger.info("getAuthCodeUrl called", request.correlationId);
1708
+ const validRequest = {
1709
+ ...request,
1710
+ ...(await this.initializeBaseRequest(request)),
1711
+ responseMode: request.responseMode || ResponseMode.QUERY,
1712
+ authenticationScheme: AuthenticationScheme.BEARER
1713
+ };
1714
+ const authClientConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, undefined, undefined, request.azureCloudOptions);
1715
+ const authorizationCodeClient = new AuthorizationCodeClient(authClientConfig);
1716
+ this.logger.verbose("Auth code client created", validRequest.correlationId);
1717
+ return authorizationCodeClient.getAuthCodeUrl(validRequest);
1718
+ }
1719
+ /**
1720
+ * Acquires a token by exchanging the Authorization Code received from the first step of OAuth2.0
1721
+ * Authorization Code flow.
1722
+ *
1723
+ * `getAuthCodeUrl(AuthorizationCodeUrlRequest)` can be used to create the URL for the first step of OAuth2.0
1724
+ * Authorization Code flow. Ensure that values for redirectUri and scopes in AuthorizationCodeUrlRequest and
1725
+ * AuthorizationCodeRequest are the same.
1726
+ */
1727
+ async acquireTokenByCode(request, authCodePayLoad) {
1728
+ this.logger.info("acquireTokenByCode called");
1729
+ if (request.state && authCodePayLoad) {
1730
+ this.logger.info("acquireTokenByCode - validating state");
1731
+ this.validateState(request.state, authCodePayLoad.state || "");
1732
+ // eslint-disable-next-line no-param-reassign
1733
+ authCodePayLoad = {
1734
+ ...authCodePayLoad,
1735
+ state: ""
1736
+ };
1737
+ }
1738
+ const validRequest = {
1739
+ ...request,
1740
+ ...(await this.initializeBaseRequest(request)),
1741
+ authenticationScheme: AuthenticationScheme.BEARER
1742
+ };
1743
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenByCode, validRequest.correlationId);
1744
+ try {
1745
+ const authClientConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, undefined, request.azureCloudOptions);
1746
+ const authorizationCodeClient = new AuthorizationCodeClient(authClientConfig);
1747
+ this.logger.verbose("Auth code client created", validRequest.correlationId);
1748
+ return authorizationCodeClient.acquireToken(validRequest, authCodePayLoad);
1749
+ } catch (e) {
1750
+ if (e instanceof AuthError) {
1751
+ e.setCorrelationId(validRequest.correlationId);
1752
+ }
1753
+ serverTelemetryManager.cacheFailedRequest(e);
1754
+ throw e;
1755
+ }
1756
+ }
1757
+ /**
1758
+ * Acquires a token by exchanging the refresh token provided for a new set of tokens.
1759
+ *
1760
+ * This API is provided only for scenarios where you would like to migrate from ADAL to MSAL. Otherwise, it is
1761
+ * recommended that you use `acquireTokenSilent()` for silent scenarios. When using `acquireTokenSilent()`, MSAL will
1762
+ * handle the caching and refreshing of tokens automatically.
1763
+ */
1764
+ async acquireTokenByRefreshToken(request) {
1765
+ this.logger.info("acquireTokenByRefreshToken called", request.correlationId);
1766
+ const validRequest = {
1767
+ ...request,
1768
+ ...(await this.initializeBaseRequest(request)),
1769
+ authenticationScheme: AuthenticationScheme.BEARER
1770
+ };
1771
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenByRefreshToken, validRequest.correlationId);
1772
+ try {
1773
+ const refreshTokenClientConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, undefined, request.azureCloudOptions);
1774
+ const refreshTokenClient = new RefreshTokenClient(refreshTokenClientConfig);
1775
+ this.logger.verbose("Refresh token client created", validRequest.correlationId);
1776
+ return refreshTokenClient.acquireToken(validRequest);
1777
+ } catch (e) {
1778
+ if (e instanceof AuthError) {
1779
+ e.setCorrelationId(validRequest.correlationId);
1780
+ }
1781
+ serverTelemetryManager.cacheFailedRequest(e);
1782
+ throw e;
1783
+ }
1784
+ }
1785
+ /**
1786
+ * Acquires a token silently when a user specifies the account the token is requested for.
1787
+ *
1788
+ * This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
1789
+ * There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
1790
+ * In case the refresh_token is expired or not found, an error is thrown
1791
+ * and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
1792
+ */
1793
+ async acquireTokenSilent(request) {
1794
+ const validRequest = {
1795
+ ...request,
1796
+ ...(await this.initializeBaseRequest(request)),
1797
+ forceRefresh: request.forceRefresh || false
1798
+ };
1799
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenSilent, validRequest.correlationId, validRequest.forceRefresh);
1800
+ try {
1801
+ const silentFlowClientConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, undefined, request.azureCloudOptions);
1802
+ const silentFlowClient = new SilentFlowClient(silentFlowClientConfig);
1803
+ this.logger.verbose("Silent flow client created", validRequest.correlationId);
1804
+ return silentFlowClient.acquireToken(validRequest);
1805
+ } catch (e) {
1806
+ if (e instanceof AuthError) {
1807
+ e.setCorrelationId(validRequest.correlationId);
1808
+ }
1809
+ serverTelemetryManager.cacheFailedRequest(e);
1810
+ throw e;
1811
+ }
1812
+ }
1813
+ /**
1814
+ * Acquires tokens with password grant by exchanging client applications username and password for credentials
1815
+ *
1816
+ * The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely.
1817
+ * More details on this recommendation at https://tools.ietf.org/html/draft-ietf-oauth-security-topics-13#section-3.4
1818
+ * Microsoft's documentation and recommendations are at:
1819
+ * https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#usernamepassword
1820
+ *
1821
+ * @param request - UsenamePasswordRequest
1822
+ */
1823
+ async acquireTokenByUsernamePassword(request) {
1824
+ this.logger.info("acquireTokenByUsernamePassword called", request.correlationId);
1825
+ const validRequest = {
1826
+ ...request,
1827
+ ...(await this.initializeBaseRequest(request))
1828
+ };
1829
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenByUsernamePassword, validRequest.correlationId);
1830
+ try {
1831
+ const usernamePasswordClientConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, undefined, request.azureCloudOptions);
1832
+ const usernamePasswordClient = new UsernamePasswordClient(usernamePasswordClientConfig);
1833
+ this.logger.verbose("Username password client created", validRequest.correlationId);
1834
+ return usernamePasswordClient.acquireToken(validRequest);
1835
+ } catch (e) {
1836
+ if (e instanceof AuthError) {
1837
+ e.setCorrelationId(validRequest.correlationId);
1838
+ }
1839
+ serverTelemetryManager.cacheFailedRequest(e);
1840
+ throw e;
1841
+ }
1842
+ }
1843
+ /**
1844
+ * Gets the token cache for the application.
1845
+ */
1846
+ getTokenCache() {
1847
+ this.logger.info("getTokenCache called");
1848
+ return this.tokenCache;
1849
+ }
1850
+ /**
1851
+ * Validates OIDC state by comparing the user cached state with the state received from the server.
1852
+ *
1853
+ * This API is provided for scenarios where you would use OAuth2.0 state parameter to mitigate against
1854
+ * CSRF attacks.
1855
+ * For more information about state, visit https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
1856
+ * @param state
1857
+ * @param cachedState
1858
+ */
1859
+ validateState(state, cachedState) {
1860
+ if (!state) {
1861
+ throw NodeAuthError.createStateNotFoundError();
1862
+ }
1863
+ if (state !== cachedState) {
1864
+ throw ClientAuthError.createStateMismatchError();
1865
+ }
1866
+ }
1867
+ /**
1868
+ * Returns the logger instance
1869
+ */
1870
+ getLogger() {
1871
+ return this.logger;
1872
+ }
1873
+ /**
1874
+ * Replaces the default logger set in configurations with new Logger with new configurations
1875
+ * @param logger - Logger instance
1876
+ */
1877
+ setLogger(logger) {
1878
+ this.logger = logger;
1879
+ }
1880
+ /**
1881
+ * Builds the common configuration to be passed to the common component based on the platform configurarion
1882
+ * @param authority - user passed authority in configuration
1883
+ * @param serverTelemetryManager - initializes servertelemetry if passed
1884
+ */
1885
+ async buildOauthClientConfiguration(authority, requestCorrelationId, serverTelemetryManager, azureRegionConfiguration, azureCloudOptions) {
1886
+ this.logger.verbose("buildOauthClientConfiguration called", requestCorrelationId);
1887
+ // precedence - azureCloudInstance + tenant >> authority and request >> config
1888
+ const userAzureCloudOptions = azureCloudOptions ? azureCloudOptions : this.config.auth.azureCloudOptions;
1889
+ // using null assertion operator as we ensure that all config values have default values in buildConfiguration()
1890
+ this.logger.verbose(`building oauth client configuration with the authority: ${authority}`, requestCorrelationId);
1891
+ const discoveredAuthority = await this.createAuthority(authority, azureRegionConfiguration, requestCorrelationId, userAzureCloudOptions);
1892
+ serverTelemetryManager == null ? void 0 : serverTelemetryManager.updateRegionDiscoveryMetadata(discoveredAuthority.regionDiscoveryMetadata);
1893
+ const clientConfiguration = {
1894
+ authOptions: {
1895
+ clientId: this.config.auth.clientId,
1896
+ authority: discoveredAuthority,
1897
+ clientCapabilities: this.config.auth.clientCapabilities
1898
+ },
1899
+ loggerOptions: {
1900
+ logLevel: this.config.system.loggerOptions.logLevel,
1901
+ loggerCallback: this.config.system.loggerOptions.loggerCallback,
1902
+ piiLoggingEnabled: this.config.system.loggerOptions.piiLoggingEnabled,
1903
+ correlationId: requestCorrelationId
1904
+ },
1905
+ cryptoInterface: this.cryptoProvider,
1906
+ networkInterface: this.config.system.networkClient,
1907
+ storageInterface: this.storage,
1908
+ serverTelemetryManager: serverTelemetryManager,
1909
+ clientCredentials: {
1910
+ clientSecret: this.clientSecret,
1911
+ clientAssertion: this.clientAssertion ? this.getClientAssertion(discoveredAuthority) : undefined
1912
+ },
1913
+ libraryInfo: {
1914
+ sku: Constants.MSAL_SKU,
1915
+ version: version,
1916
+ cpu: process.arch || Constants$1.EMPTY_STRING,
1917
+ os: process.platform || Constants$1.EMPTY_STRING
1918
+ },
1919
+ telemetry: this.config.telemetry,
1920
+ persistencePlugin: this.config.cache.cachePlugin,
1921
+ serializableCache: this.tokenCache
1922
+ };
1923
+ return clientConfiguration;
1924
+ }
1925
+ getClientAssertion(authority) {
1926
+ return {
1927
+ assertion: this.clientAssertion.getJwt(this.cryptoProvider, this.config.auth.clientId, authority.tokenEndpoint),
1928
+ assertionType: Constants.JWT_BEARER_ASSERTION_TYPE
1929
+ };
1930
+ }
1931
+ /**
1932
+ * Generates a request with the default scopes & generates a correlationId.
1933
+ * @param authRequest - BaseAuthRequest for initialization
1934
+ */
1935
+ async initializeBaseRequest(authRequest) {
1936
+ this.logger.verbose("initializeRequestScopes called", authRequest.correlationId);
1937
+ // Default authenticationScheme to Bearer, log that POP isn't supported yet
1938
+ if (authRequest.authenticationScheme && authRequest.authenticationScheme === AuthenticationScheme.POP) {
1939
+ this.logger.verbose("Authentication Scheme 'pop' is not supported yet, setting Authentication Scheme to 'Bearer' for request", authRequest.correlationId);
1940
+ }
1941
+ authRequest.authenticationScheme = AuthenticationScheme.BEARER;
1942
+ // Set requested claims hash if claims were requested
1943
+ if (authRequest.claims && !StringUtils.isEmpty(authRequest.claims)) {
1944
+ authRequest.requestedClaimsHash = await this.cryptoProvider.hashString(authRequest.claims);
1945
+ }
1946
+ return {
1947
+ ...authRequest,
1948
+ scopes: [...(authRequest && authRequest.scopes || []), ...OIDC_DEFAULT_SCOPES],
1949
+ correlationId: authRequest && authRequest.correlationId || this.cryptoProvider.createNewGuid(),
1950
+ authority: authRequest.authority || this.config.auth.authority
1951
+ };
1952
+ }
1953
+ /**
1954
+ * Initializes the server telemetry payload
1955
+ * @param apiId - Id for a specific request
1956
+ * @param correlationId - GUID
1957
+ * @param forceRefresh - boolean to indicate network call
1958
+ */
1959
+ initializeServerTelemetryManager(apiId, correlationId, forceRefresh) {
1960
+ const telemetryPayload = {
1961
+ clientId: this.config.auth.clientId,
1962
+ correlationId: correlationId,
1963
+ apiId: apiId,
1964
+ forceRefresh: forceRefresh || false
1965
+ };
1966
+ return new ServerTelemetryManager(telemetryPayload, this.storage);
1967
+ }
1968
+ /**
1969
+ * Create authority instance. If authority not passed in request, default to authority set on the application
1970
+ * object. If no authority set in application object, then default to common authority.
1971
+ * @param authorityString - authority from user configuration
1972
+ */
1973
+ async createAuthority(authorityString, azureRegionConfiguration, requestCorrelationId, azureCloudOptions) {
1974
+ this.logger.verbose("createAuthority called", requestCorrelationId);
1975
+ // build authority string based on auth params - azureCloudInstance is prioritized if provided
1976
+ const authorityUrl = Authority.generateAuthority(authorityString, azureCloudOptions);
1977
+ const authorityOptions = {
1978
+ protocolMode: this.config.auth.protocolMode,
1979
+ knownAuthorities: this.config.auth.knownAuthorities,
1980
+ cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
1981
+ authorityMetadata: this.config.auth.authorityMetadata,
1982
+ azureRegionConfiguration,
1983
+ skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
1984
+ };
1985
+ return await AuthorityFactory.createDiscoveredInstance(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger);
1986
+ }
1987
+ /**
1988
+ * Clear the cache
1989
+ */
1990
+ clearCache() {
1991
+ this.storage.clear();
1992
+ }
1993
+ }
1994
+
1995
+ /*
1996
+ * Copyright (c) Microsoft Corporation. All rights reserved.
1997
+ * Licensed under the MIT License.
1998
+ */
1999
+ class LoopbackClient {
2000
+ /**
2001
+ * Spins up a loopback server which returns the server response when the localhost redirectUri is hit
2002
+ * @param successTemplate
2003
+ * @param errorTemplate
2004
+ * @returns
2005
+ */
2006
+ async listenForAuthCode(successTemplate, errorTemplate) {
2007
+ if (!!this.server) {
2008
+ throw NodeAuthError.createLoopbackServerAlreadyExistsError();
2009
+ }
2010
+ const authCodeListener = new Promise((resolve, reject) => {
2011
+ this.server = createServer(async (req, res) => {
2012
+ const url = req.url;
2013
+ if (!url) {
2014
+ res.end(errorTemplate || "Error occurred loading redirectUrl");
2015
+ reject(NodeAuthError.createUnableToLoadRedirectUrlError());
2016
+ return;
2017
+ } else if (url === Constants$1.FORWARD_SLASH) {
2018
+ res.end(successTemplate || "Auth code was successfully acquired. You can close this window now.");
2019
+ return;
2020
+ }
2021
+ const authCodeResponse = UrlString.getDeserializedQueryString(url);
2022
+ if (authCodeResponse.code) {
2023
+ const redirectUri = await this.getRedirectUri();
2024
+ res.writeHead(HttpStatus.REDIRECT, {
2025
+ location: redirectUri
2026
+ }); // Prevent auth code from being saved in the browser history
2027
+ res.end();
2028
+ }
2029
+ resolve(authCodeResponse);
2030
+ });
2031
+ this.server.listen(0); // Listen on any available port
2032
+ });
2033
+ // Wait for server to be listening
2034
+ await new Promise(resolve => {
2035
+ let ticks = 0;
2036
+ const id = setInterval(() => {
2037
+ if (LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS / LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS < ticks) {
2038
+ throw NodeAuthError.createLoopbackServerTimeoutError();
2039
+ }
2040
+ if (this.server.listening) {
2041
+ clearInterval(id);
2042
+ resolve();
2043
+ }
2044
+ ticks++;
2045
+ }, LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS);
2046
+ });
2047
+ return authCodeListener;
2048
+ }
2049
+ /**
2050
+ * Get the port that the loopback server is running on
2051
+ * @returns
2052
+ */
2053
+ getRedirectUri() {
2054
+ if (!this.server) {
2055
+ throw NodeAuthError.createNoLoopbackServerExistsError();
2056
+ }
2057
+ const address = this.server.address();
2058
+ if (!address || typeof address === "string" || !address.port) {
2059
+ this.closeServer();
2060
+ throw NodeAuthError.createInvalidLoopbackAddressTypeError();
2061
+ }
2062
+ const port = address && address.port;
2063
+ return `${Constants.HTTP_PROTOCOL}${Constants.LOCALHOST}:${port}`;
2064
+ }
2065
+ /**
2066
+ * Close the loopback server
2067
+ */
2068
+ closeServer() {
2069
+ if (!!this.server) {
2070
+ this.server.close();
2071
+ }
2072
+ }
2073
+ }
2074
+
2075
+ /*
2076
+ * Copyright (c) Microsoft Corporation. All rights reserved.
2077
+ * Licensed under the MIT License.
2078
+ */
2079
+ /**
2080
+ * This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
2081
+ * are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
2082
+ * @public
2083
+ */
2084
+ class PublicClientApplication extends ClientApplication {
2085
+ /**
2086
+ * Important attributes in the Configuration object for auth are:
2087
+ * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal.
2088
+ * - authority: the authority URL for your application.
2089
+ *
2090
+ * AAD authorities are of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
2091
+ * - If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
2092
+ * - If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
2093
+ * - If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
2094
+ * - To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
2095
+ *
2096
+ * Azure B2C authorities are of the form https://\{instance\}/\{tenant\}/\{policy\}. Each policy is considered
2097
+ * its own authority. You will have to set the all of the knownAuthorities at the time of the client application
2098
+ * construction.
2099
+ *
2100
+ * ADFS authorities are of the form https://\{instance\}/adfs.
2101
+ */
2102
+ constructor(configuration) {
2103
+ super(configuration);
2104
+ }
2105
+ /**
2106
+ * Acquires a token from the authority using OAuth2.0 device code flow.
2107
+ * This flow is designed for devices that do not have access to a browser or have input constraints.
2108
+ * The authorization server issues a DeviceCode object with a verification code, an end-user code,
2109
+ * and the end-user verification URI. The DeviceCode object is provided through a callback, and the end-user should be
2110
+ * instructed to use another device to navigate to the verification URI to input credentials.
2111
+ * Since the client cannot receive incoming requests, it polls the authorization server repeatedly
2112
+ * until the end-user completes input of credentials.
2113
+ */
2114
+ async acquireTokenByDeviceCode(request) {
2115
+ this.logger.info("acquireTokenByDeviceCode called", request.correlationId);
2116
+ const validRequest = Object.assign(request, await this.initializeBaseRequest(request));
2117
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenByDeviceCode, validRequest.correlationId);
2118
+ try {
2119
+ const deviceCodeConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, undefined, request.azureCloudOptions);
2120
+ const deviceCodeClient = new DeviceCodeClient(deviceCodeConfig);
2121
+ this.logger.verbose("Device code client created", validRequest.correlationId);
2122
+ return deviceCodeClient.acquireToken(validRequest);
2123
+ } catch (e) {
2124
+ if (e instanceof AuthError) {
2125
+ e.setCorrelationId(validRequest.correlationId);
2126
+ }
2127
+ serverTelemetryManager.cacheFailedRequest(e);
2128
+ throw e;
2129
+ }
2130
+ }
2131
+ /**
2132
+ * Acquires a token by requesting an Authorization code then exchanging it for a token.
2133
+ */
2134
+ async acquireTokenInteractive(request) {
2135
+ const {
2136
+ verifier,
2137
+ challenge
2138
+ } = await this.cryptoProvider.generatePkceCodes();
2139
+ const {
2140
+ openBrowser,
2141
+ successTemplate,
2142
+ errorTemplate,
2143
+ ...remainingProperties
2144
+ } = request;
2145
+ const loopbackClient = new LoopbackClient();
2146
+ const authCodeListener = loopbackClient.listenForAuthCode(successTemplate, errorTemplate);
2147
+ const redirectUri = loopbackClient.getRedirectUri();
2148
+ const validRequest = {
2149
+ ...remainingProperties,
2150
+ scopes: request.scopes || OIDC_DEFAULT_SCOPES,
2151
+ redirectUri: redirectUri,
2152
+ responseMode: ResponseMode.QUERY,
2153
+ codeChallenge: challenge,
2154
+ codeChallengeMethod: CodeChallengeMethodValues.S256
2155
+ };
2156
+ const authCodeUrl = await this.getAuthCodeUrl(validRequest);
2157
+ await openBrowser(authCodeUrl);
2158
+ const authCodeResponse = await authCodeListener.finally(() => {
2159
+ loopbackClient.closeServer();
2160
+ });
2161
+ if (authCodeResponse.error) {
2162
+ throw new ServerError(authCodeResponse.error, authCodeResponse.error_description, authCodeResponse.suberror);
2163
+ } else if (!authCodeResponse.code) {
2164
+ throw NodeAuthError.createNoAuthCodeInResponseError();
2165
+ }
2166
+ const clientInfo = authCodeResponse.client_info;
2167
+ const tokenRequest = {
2168
+ code: authCodeResponse.code,
2169
+ codeVerifier: verifier,
2170
+ clientInfo: clientInfo || Constants$1.EMPTY_STRING,
2171
+ ...validRequest
2172
+ };
2173
+ return this.acquireTokenByCode(tokenRequest);
2174
+ }
2175
+ }
2176
+
2177
+ /*
2178
+ * Copyright (c) Microsoft Corporation. All rights reserved.
2179
+ * Licensed under the MIT License.
2180
+ */
2181
+ /**
2182
+ * Client assertion of type jwt-bearer used in confidential client flows
2183
+ * @public
2184
+ */
2185
+ class ClientAssertion {
2186
+ /**
2187
+ * Initialize the ClientAssertion class from the clientAssertion passed by the user
2188
+ * @param assertion - refer https://tools.ietf.org/html/rfc7521
2189
+ */
2190
+ static fromAssertion(assertion) {
2191
+ const clientAssertion = new ClientAssertion();
2192
+ clientAssertion.jwt = assertion;
2193
+ return clientAssertion;
2194
+ }
2195
+ /**
2196
+ * Initialize the ClientAssertion class from the certificate passed by the user
2197
+ * @param thumbprint - identifier of a certificate
2198
+ * @param privateKey - secret key
2199
+ * @param publicCertificate - electronic document provided to prove the ownership of the public key
2200
+ */
2201
+ static fromCertificate(thumbprint, privateKey, publicCertificate) {
2202
+ const clientAssertion = new ClientAssertion();
2203
+ clientAssertion.privateKey = privateKey;
2204
+ clientAssertion.thumbprint = thumbprint;
2205
+ if (publicCertificate) {
2206
+ clientAssertion.publicCertificate = this.parseCertificate(publicCertificate);
2207
+ }
2208
+ return clientAssertion;
2209
+ }
2210
+ /**
2211
+ * Update JWT for certificate based clientAssertion, if passed by the user, uses it as is
2212
+ * @param cryptoProvider - library's crypto helper
2213
+ * @param issuer - iss claim
2214
+ * @param jwtAudience - aud claim
2215
+ */
2216
+ getJwt(cryptoProvider, issuer, jwtAudience) {
2217
+ // if assertion was created from certificate, check if jwt is expired and create new one.
2218
+ if (this.privateKey && this.thumbprint) {
2219
+ if (this.jwt && !this.isExpired() && issuer === this.issuer && jwtAudience === this.jwtAudience) {
2220
+ return this.jwt;
2221
+ }
2222
+ return this.createJwt(cryptoProvider, issuer, jwtAudience);
2223
+ }
2224
+ /*
2225
+ * if assertion was created by caller, then we just append it. It is up to the caller to
2226
+ * ensure that it contains necessary claims and that it is not expired.
2227
+ */
2228
+ if (this.jwt) {
2229
+ return this.jwt;
2230
+ }
2231
+ throw ClientAuthError.createInvalidAssertionError();
2232
+ }
2233
+ /**
2234
+ * JWT format and required claims specified: https://tools.ietf.org/html/rfc7523#section-3
2235
+ */
2236
+ createJwt(cryptoProvider, issuer, jwtAudience) {
2237
+ this.issuer = issuer;
2238
+ this.jwtAudience = jwtAudience;
2239
+ const issuedAt = TimeUtils.nowSeconds();
2240
+ this.expirationTime = issuedAt + 600;
2241
+ const header = {
2242
+ alg: JwtConstants.RSA_256,
2243
+ x5t: EncodingUtils.base64EncodeUrl(this.thumbprint, "hex")
2244
+ };
2245
+ if (this.publicCertificate) {
2246
+ Object.assign(header, {
2247
+ x5c: this.publicCertificate
2248
+ });
2249
+ }
2250
+ const payload = {
2251
+ [JwtConstants.AUDIENCE]: this.jwtAudience,
2252
+ [JwtConstants.EXPIRATION_TIME]: this.expirationTime,
2253
+ [JwtConstants.ISSUER]: this.issuer,
2254
+ [JwtConstants.SUBJECT]: this.issuer,
2255
+ [JwtConstants.NOT_BEFORE]: issuedAt,
2256
+ [JwtConstants.JWT_ID]: cryptoProvider.createNewGuid()
2257
+ };
2258
+ this.jwt = sign(payload, this.privateKey, {
2259
+ header
2260
+ });
2261
+ return this.jwt;
2262
+ }
2263
+ /**
2264
+ * Utility API to check expiration
2265
+ */
2266
+ isExpired() {
2267
+ return this.expirationTime < TimeUtils.nowSeconds();
2268
+ }
2269
+ /**
2270
+ * Extracts the raw certs from a given certificate string and returns them in an array.
2271
+ * @param publicCertificate - electronic document provided to prove the ownership of the public key
2272
+ */
2273
+ static parseCertificate(publicCertificate) {
2274
+ /**
2275
+ * This is regex to identify the certs in a given certificate string.
2276
+ * We want to look for the contents between the BEGIN and END certificate strings, without the associated newlines.
2277
+ * The information in parens "(.+?)" is the capture group to represent the cert we want isolated.
2278
+ * "." means any string character, "+" means match 1 or more times, and "?" means the shortest match.
2279
+ * The "g" at the end of the regex means search the string globally, and the "s" enables the "." to match newlines.
2280
+ */
2281
+ const regexToFindCerts = /-----BEGIN CERTIFICATE-----\r*\n(.+?)\r*\n-----END CERTIFICATE-----/gs;
2282
+ const certs = [];
2283
+ let matches;
2284
+ while ((matches = regexToFindCerts.exec(publicCertificate)) !== null) {
2285
+ // matches[1] represents the first parens capture group in the regex.
2286
+ certs.push(matches[1].replace(/\r*\n/g, Constants$1.EMPTY_STRING));
2287
+ }
2288
+ return certs;
2289
+ }
2290
+ }
2291
+
2292
+ /*
2293
+ * Copyright (c) Microsoft Corporation. All rights reserved.
2294
+ * Licensed under the MIT License.
2295
+ */
2296
+ /**
2297
+ * This class is to be used to acquire tokens for confidential client applications (webApp, webAPI). Confidential client applications
2298
+ * will configure application secrets, client certificates/assertions as applicable
2299
+ * @public
2300
+ */
2301
+ class ConfidentialClientApplication extends ClientApplication {
2302
+ /**
2303
+ * Constructor for the ConfidentialClientApplication
2304
+ *
2305
+ * Required attributes in the Configuration object are:
2306
+ * - clientID: the application ID of your application. You can obtain one by registering your application with our application registration portal
2307
+ * - authority: the authority URL for your application.
2308
+ * - client credential: Must set either client secret, certificate, or assertion for confidential clients. You can obtain a client secret from the application registration portal.
2309
+ *
2310
+ * In Azure AD, authority is a URL indicating of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
2311
+ * If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
2312
+ * If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
2313
+ * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
2314
+ * To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
2315
+ *
2316
+ * In Azure B2C, authority is of the form https://\{instance\}/tfp/\{tenant\}/\{policyName\}/
2317
+ * Full B2C functionality will be available in this library in future versions.
2318
+ *
2319
+ * @param Configuration - configuration object for the MSAL ConfidentialClientApplication instance
2320
+ */
2321
+ constructor(configuration) {
2322
+ super(configuration);
2323
+ this.setClientCredential(this.config);
2324
+ this.appTokenProvider = undefined;
2325
+ }
2326
+ /**
2327
+ * This extensibility point only works for the client_credential flow, i.e. acquireTokenByClientCredential and
2328
+ * is meant for Azure SDK to enhance Managed Identity support.
2329
+ *
2330
+ * @param IAppTokenProvider - Extensibility interface, which allows the app developer to return a token from a custom source.
2331
+ */
2332
+ SetAppTokenProvider(provider) {
2333
+ this.appTokenProvider = provider;
2334
+ }
2335
+ /**
2336
+ * Acquires tokens from the authority for the application (not for an end user).
2337
+ */
2338
+ async acquireTokenByClientCredential(request) {
2339
+ this.logger.info("acquireTokenByClientCredential called", request.correlationId);
2340
+ // If there is a client assertion present in the request, it overrides the one present in the client configuration
2341
+ let clientAssertion;
2342
+ if (request.clientAssertion) {
2343
+ clientAssertion = {
2344
+ assertion: request.clientAssertion,
2345
+ assertionType: Constants.JWT_BEARER_ASSERTION_TYPE
2346
+ };
2347
+ }
2348
+ const baseRequest = await this.initializeBaseRequest(request);
2349
+ // valid base request should not contain oidc scopes in this grant type
2350
+ const validBaseRequest = {
2351
+ ...baseRequest,
2352
+ scopes: baseRequest.scopes.filter(scope => !OIDC_DEFAULT_SCOPES.includes(scope))
2353
+ };
2354
+ const validRequest = {
2355
+ ...request,
2356
+ ...validBaseRequest,
2357
+ clientAssertion
2358
+ };
2359
+ const azureRegionConfiguration = {
2360
+ azureRegion: validRequest.azureRegion,
2361
+ environmentRegion: process.env[REGION_ENVIRONMENT_VARIABLE]
2362
+ };
2363
+ const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenByClientCredential, validRequest.correlationId, validRequest.skipCache);
2364
+ try {
2365
+ const clientCredentialConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, serverTelemetryManager, azureRegionConfiguration, request.azureCloudOptions);
2366
+ const clientCredentialClient = new ClientCredentialClient(clientCredentialConfig, this.appTokenProvider);
2367
+ this.logger.verbose("Client credential client created", validRequest.correlationId);
2368
+ return clientCredentialClient.acquireToken(validRequest);
2369
+ } catch (e) {
2370
+ if (e instanceof AuthError) {
2371
+ e.setCorrelationId(validRequest.correlationId);
2372
+ }
2373
+ serverTelemetryManager.cacheFailedRequest(e);
2374
+ throw e;
2375
+ }
2376
+ }
2377
+ /**
2378
+ * Acquires tokens from the authority for the application.
2379
+ *
2380
+ * Used in scenarios where the current app is a middle-tier service which was called with a token
2381
+ * representing an end user. The current app can use the token (oboAssertion) to request another
2382
+ * token to access downstream web API, on behalf of that user.
2383
+ *
2384
+ * The current middle-tier app has no user interaction to obtain consent.
2385
+ * See how to gain consent upfront for your middle-tier app from this article.
2386
+ * https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow#gaining-consent-for-the-middle-tier-application
2387
+ */
2388
+ async acquireTokenOnBehalfOf(request) {
2389
+ this.logger.info("acquireTokenOnBehalfOf called", request.correlationId);
2390
+ const validRequest = {
2391
+ ...request,
2392
+ ...(await this.initializeBaseRequest(request))
2393
+ };
2394
+ try {
2395
+ const onBehalfOfConfig = await this.buildOauthClientConfiguration(validRequest.authority, validRequest.correlationId, undefined, undefined, request.azureCloudOptions);
2396
+ const oboClient = new OnBehalfOfClient(onBehalfOfConfig);
2397
+ this.logger.verbose("On behalf of client created", validRequest.correlationId);
2398
+ return oboClient.acquireToken(validRequest);
2399
+ } catch (e) {
2400
+ if (e instanceof AuthError) {
2401
+ e.setCorrelationId(validRequest.correlationId);
2402
+ }
2403
+ throw e;
2404
+ }
2405
+ }
2406
+ setClientCredential(configuration) {
2407
+ const clientSecretNotEmpty = !StringUtils.isEmpty(configuration.auth.clientSecret);
2408
+ const clientAssertionNotEmpty = !StringUtils.isEmpty(configuration.auth.clientAssertion);
2409
+ const certificate = configuration.auth.clientCertificate || {
2410
+ thumbprint: Constants$1.EMPTY_STRING,
2411
+ privateKey: Constants$1.EMPTY_STRING
2412
+ };
2413
+ const certificateNotEmpty = !StringUtils.isEmpty(certificate.thumbprint) || !StringUtils.isEmpty(certificate.privateKey);
2414
+ /*
2415
+ * If app developer configures this callback, they don't need a credential
2416
+ * i.e. AzureSDK can get token from Managed Identity without a cert / secret
2417
+ */
2418
+ if (this.appTokenProvider) {
2419
+ return;
2420
+ }
2421
+ // Check that at most one credential is set on the application
2422
+ if (clientSecretNotEmpty && clientAssertionNotEmpty || clientAssertionNotEmpty && certificateNotEmpty || clientSecretNotEmpty && certificateNotEmpty) {
2423
+ throw ClientAuthError.createInvalidCredentialError();
2424
+ }
2425
+ if (configuration.auth.clientSecret) {
2426
+ this.clientSecret = configuration.auth.clientSecret;
2427
+ return;
2428
+ }
2429
+ if (configuration.auth.clientAssertion) {
2430
+ this.clientAssertion = ClientAssertion.fromAssertion(configuration.auth.clientAssertion);
2431
+ return;
2432
+ }
2433
+ if (!certificateNotEmpty) {
2434
+ throw ClientAuthError.createInvalidCredentialError();
2435
+ } else {
2436
+ var _configuration$auth$c;
2437
+ this.clientAssertion = ClientAssertion.fromCertificate(certificate.thumbprint, certificate.privateKey, (_configuration$auth$c = configuration.auth.clientCertificate) == null ? void 0 : _configuration$auth$c.x5c);
2438
+ }
2439
+ }
2440
+ }
2441
+
2442
+ /*
2443
+ * Copyright (c) Microsoft Corporation. All rights reserved.
2444
+ * Licensed under the MIT License.
2445
+ */
2446
+ class DistributedCachePlugin {
2447
+ constructor(client, partitionManager) {
2448
+ this.client = client;
2449
+ this.partitionManager = partitionManager;
2450
+ }
2451
+ async beforeCacheAccess(cacheContext) {
2452
+ const partitionKey = await this.partitionManager.getKey();
2453
+ const cacheData = await this.client.get(partitionKey);
2454
+ cacheContext.tokenCache.deserialize(cacheData);
2455
+ }
2456
+ async afterCacheAccess(cacheContext) {
2457
+ if (cacheContext.cacheHasChanged) {
2458
+ const kvStore = cacheContext.tokenCache.getKVStore();
2459
+ const accountEntities = Object.values(kvStore).filter(value => AccountEntity.isAccountEntity(value));
2460
+ if (accountEntities.length > 0) {
2461
+ const accountEntity = accountEntities[0];
2462
+ const partitionKey = await this.partitionManager.extractKey(accountEntity);
2463
+ await this.client.set(partitionKey, cacheContext.tokenCache.serialize());
2464
+ }
2465
+ }
2466
+ }
2467
+ }
2468
+
2469
+ export { ClientApplication, ClientAssertion, ConfidentialClientApplication, CryptoProvider, DistributedCachePlugin, NodeStorage, PublicClientApplication, TokenCache, buildAppConfiguration, version };
2470
+ //# sourceMappingURL=msal-node.esm.js.map