@azure/msal-browser 3.0.0-alpha.0 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/dist/app/IPublicClientApplication.js +1 -1
  2. package/dist/app/PublicClientApplication.js +1 -1
  3. package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
  4. package/dist/cache/AsyncMemoryStorage.js +1 -1
  5. package/dist/cache/BrowserCacheManager.js +1 -1
  6. package/dist/cache/BrowserStorage.js +1 -1
  7. package/dist/cache/CryptoKeyStore.js +1 -1
  8. package/dist/cache/DatabaseStorage.js +1 -1
  9. package/dist/cache/MemoryStorage.js +1 -1
  10. package/dist/cache/TokenCache.js +1 -1
  11. package/dist/config/Configuration.js +1 -1
  12. package/dist/controllers/ControllerFactory.js +1 -1
  13. package/dist/controllers/StandardController.js +1 -1
  14. package/dist/crypto/BrowserCrypto.js +1 -1
  15. package/dist/crypto/CryptoOps.js +1 -1
  16. package/dist/crypto/GuidGenerator.js +1 -1
  17. package/dist/crypto/ModernBrowserCrypto.js +1 -1
  18. package/dist/crypto/MsBrowserCrypto.js +1 -1
  19. package/dist/crypto/MsrBrowserCrypto.js +1 -1
  20. package/dist/crypto/PkceGenerator.js +1 -1
  21. package/dist/crypto/SignedHttpRequest.js +1 -1
  22. package/dist/encode/Base64Decode.js +1 -1
  23. package/dist/encode/Base64Encode.js +1 -1
  24. package/dist/error/BrowserAuthError.js +1 -1
  25. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  26. package/dist/error/NativeAuthError.js +1 -1
  27. package/dist/event/EventHandler.js +1 -1
  28. package/dist/event/EventMessage.js +1 -1
  29. package/dist/event/EventType.js +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/interaction_client/BaseInteractionClient.js +1 -1
  32. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
  33. package/dist/interaction_client/NativeInteractionClient.js +1 -1
  34. package/dist/interaction_client/PopupClient.js +1 -1
  35. package/dist/interaction_client/RedirectClient.js +1 -1
  36. package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
  37. package/dist/interaction_client/SilentCacheClient.js +1 -1
  38. package/dist/interaction_client/SilentIframeClient.js +1 -1
  39. package/dist/interaction_client/SilentRefreshClient.js +1 -1
  40. package/dist/interaction_client/StandardInteractionClient.js +1 -1
  41. package/dist/interaction_handler/InteractionHandler.js +1 -1
  42. package/dist/interaction_handler/RedirectHandler.js +1 -1
  43. package/dist/interaction_handler/SilentHandler.js +1 -1
  44. package/dist/internals.js +1 -1
  45. package/dist/navigation/NavigationClient.js +1 -1
  46. package/dist/network/FetchClient.js +1 -1
  47. package/dist/network/XhrClient.js +1 -1
  48. package/dist/operatingcontext/BaseOperatingContext.js +1 -1
  49. package/dist/operatingcontext/StandardOperatingContext.js +1 -1
  50. package/dist/operatingcontext/TeamsAppOperatingContext.js +1 -1
  51. package/dist/packageMetadata.d.ts +1 -1
  52. package/dist/packageMetadata.js +2 -2
  53. package/dist/telemetry/BrowserPerformanceClient.js +1 -1
  54. package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
  55. package/dist/utils/BrowserConstants.js +1 -1
  56. package/dist/utils/BrowserProtocolUtils.js +1 -1
  57. package/dist/utils/BrowserStringUtils.js +1 -1
  58. package/dist/utils/BrowserUtils.js +1 -1
  59. package/dist/utils/MathUtils.js +1 -1
  60. package/package.json +5 -8
  61. package/node_modules/@azure/msal-common/LICENSE +0 -21
  62. package/node_modules/@azure/msal-common/README.md +0 -62
  63. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -32
  64. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
  65. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +0 -21
  66. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
  67. package/node_modules/@azure/msal-common/dist/account/AuthToken.js +0 -56
  68. package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +0 -1
  69. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -9
  70. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
  71. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +0 -14
  72. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +0 -1
  73. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -15
  74. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
  75. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -20
  76. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
  77. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +0 -46
  78. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +0 -1
  79. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +0 -9
  80. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +0 -1
  81. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -66
  82. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
  83. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +0 -216
  84. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
  85. package/node_modules/@azure/msal-common/dist/authority/Authority.js +0 -688
  86. package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +0 -1
  87. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -31
  88. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
  89. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +0 -58
  90. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +0 -1
  91. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -623
  92. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
  93. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +0 -881
  94. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +0 -1
  95. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -19
  96. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
  97. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +0 -24
  98. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +0 -1
  99. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -10
  100. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
  101. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +0 -19
  102. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +0 -1
  103. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
  104. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
  105. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
  106. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
  107. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
  108. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
  109. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +0 -14
  110. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +0 -1
  111. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +0 -13
  112. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +0 -1
  113. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
  114. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
  115. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +0 -13
  116. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +0 -1
  117. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -6
  118. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
  119. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
  120. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
  121. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +0 -15
  122. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +0 -1
  123. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -8
  124. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
  125. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +0 -17
  126. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +0 -1
  127. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -31
  128. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
  129. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +0 -116
  130. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +0 -1
  131. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
  132. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
  133. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +0 -16
  134. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +0 -1
  135. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -444
  136. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
  137. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +0 -1024
  138. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +0 -1
  139. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -57
  140. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
  141. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +0 -123
  142. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +0 -1
  143. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -100
  144. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
  145. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +0 -259
  146. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +0 -1
  147. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -40
  148. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
  149. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +0 -73
  150. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +0 -1
  151. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -48
  152. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
  153. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +0 -85
  154. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +0 -1
  155. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
  156. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
  157. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +0 -18
  158. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +0 -1
  159. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -89
  160. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
  161. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +0 -144
  162. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +0 -1
  163. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -35
  164. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
  165. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +0 -64
  166. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +0 -1
  167. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -37
  168. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
  169. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +0 -67
  170. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +0 -1
  171. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -13
  172. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
  173. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +0 -34
  174. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +0 -1
  175. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -14
  176. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
  177. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +0 -30
  178. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +0 -1
  179. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -166
  180. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
  181. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
  182. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
  183. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
  184. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
  185. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
  186. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
  187. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +0 -30
  188. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +0 -1
  189. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -63
  190. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
  191. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -72
  192. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
  193. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +0 -453
  194. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +0 -1
  195. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +0 -51
  196. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
  197. package/node_modules/@azure/msal-common/dist/client/BaseClient.js +0 -107
  198. package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +0 -1
  199. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -35
  200. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
  201. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +0 -260
  202. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +0 -1
  203. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -25
  204. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
  205. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +0 -108
  206. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +0 -1
  207. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
  208. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
  209. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -134
  210. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
  211. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +0 -101
  212. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +0 -1
  213. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -63
  214. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
  215. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +0 -49
  216. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +0 -1
  217. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
  218. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
  219. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -22
  220. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
  221. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +0 -44
  222. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +0 -1
  223. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -58
  224. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
  225. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +0 -92
  226. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +0 -1
  227. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -12
  228. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
  229. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +0 -48
  230. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
  231. package/node_modules/@azure/msal-common/dist/error/AuthError.js +0 -58
  232. package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +0 -1
  233. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -413
  234. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
  235. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +0 -526
  236. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +0 -1
  237. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -199
  238. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
  239. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +0 -256
  240. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +0 -1
  241. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -60
  242. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
  243. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +0 -86
  244. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +0 -1
  245. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -29
  246. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
  247. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +0 -46
  248. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +0 -1
  249. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +0 -8
  250. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
  251. package/node_modules/@azure/msal-common/dist/error/ServerError.js +0 -21
  252. package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +0 -1
  253. package/node_modules/@azure/msal-common/dist/index.cjs.js +0 -8975
  254. package/node_modules/@azure/msal-common/dist/index.cjs.js.map +0 -1
  255. package/node_modules/@azure/msal-common/dist/index.d.ts +0 -94
  256. package/node_modules/@azure/msal-common/dist/index.d.ts.map +0 -1
  257. package/node_modules/@azure/msal-common/dist/index.js +0 -54
  258. package/node_modules/@azure/msal-common/dist/index.js.map +0 -1
  259. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +0 -96
  260. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
  261. package/node_modules/@azure/msal-common/dist/logger/Logger.js +0 -205
  262. package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +0 -1
  263. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -30
  264. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
  265. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +0 -21
  266. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +0 -1
  267. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +0 -33
  268. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +0 -1
  269. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +0 -42
  270. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +0 -1
  271. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -17
  272. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
  273. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -42
  274. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
  275. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +0 -102
  276. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +0 -1
  277. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
  278. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
  279. package/node_modules/@azure/msal-common/dist/packageMetadata.js +0 -8
  280. package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +0 -1
  281. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
  282. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
  283. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +0 -63
  284. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +0 -1
  285. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -38
  286. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
  287. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -28
  288. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
  289. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -51
  290. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
  291. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -18
  292. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  293. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
  294. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  295. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -22
  296. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
  297. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
  298. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  299. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -20
  300. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
  301. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -19
  302. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
  303. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
  304. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  305. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +0 -20
  306. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +0 -1
  307. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +0 -6
  308. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +0 -1
  309. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -217
  310. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
  311. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +0 -385
  312. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +0 -1
  313. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +0 -34
  314. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +0 -1
  315. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +0 -92
  316. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +0 -1
  317. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -89
  318. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
  319. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +0 -207
  320. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +0 -1
  321. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -40
  322. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
  323. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
  324. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
  325. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
  326. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
  327. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
  328. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
  329. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
  330. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
  331. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -73
  332. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
  333. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +0 -325
  334. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +0 -1
  335. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -26
  336. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
  337. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -45
  338. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
  339. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -43
  340. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
  341. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
  342. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
  343. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -190
  344. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
  345. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +0 -413
  346. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +0 -1
  347. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -440
  348. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
  349. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +0 -232
  350. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +0 -1
  351. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -20
  352. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
  353. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +0 -43
  354. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +0 -1
  355. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -66
  356. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
  357. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +0 -206
  358. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +0 -1
  359. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
  360. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
  361. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +0 -13
  362. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
  363. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +0 -71
  364. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
  365. package/node_modules/@azure/msal-common/dist/url/UrlString.js +0 -252
  366. package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +0 -1
  367. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +0 -332
  368. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
  369. package/node_modules/@azure/msal-common/dist/utils/Constants.js +0 -378
  370. package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +0 -1
  371. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
  372. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
  373. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
  374. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
  375. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +0 -80
  376. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +0 -1
  377. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -54
  378. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
  379. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +0 -131
  380. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +0 -1
  381. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -28
  382. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
  383. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +0 -50
  384. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +0 -1
  385. package/node_modules/@azure/msal-common/package.json +0 -79
@@ -1,325 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- import { buildClientInfo } from '../account/ClientInfo.js';
4
- import { ClientAuthError } from '../error/ClientAuthError.js';
5
- import { StringUtils } from '../utils/StringUtils.js';
6
- import { ServerError } from '../error/ServerError.js';
7
- import { AuthToken } from '../account/AuthToken.js';
8
- import { ScopeSet } from '../request/ScopeSet.js';
9
- import { AccountEntity } from '../cache/entities/AccountEntity.js';
10
- import { AuthorityType } from '../authority/AuthorityType.js';
11
- import { IdTokenEntity } from '../cache/entities/IdTokenEntity.js';
12
- import { AccessTokenEntity } from '../cache/entities/AccessTokenEntity.js';
13
- import { RefreshTokenEntity } from '../cache/entities/RefreshTokenEntity.js';
14
- import { InteractionRequiredAuthError } from '../error/InteractionRequiredAuthError.js';
15
- import { CacheRecord } from '../cache/entities/CacheRecord.js';
16
- import { ProtocolUtils } from '../utils/ProtocolUtils.js';
17
- import { Constants, AuthenticationScheme, THE_FAMILY_ID } from '../utils/Constants.js';
18
- import { PopTokenGenerator } from '../crypto/PopTokenGenerator.js';
19
- import { AppMetadataEntity } from '../cache/entities/AppMetadataEntity.js';
20
- import { TokenCacheContext } from '../cache/persistence/TokenCacheContext.js';
21
- import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';
22
-
23
- /*
24
- * Copyright (c) Microsoft Corporation. All rights reserved.
25
- * Licensed under the MIT License.
26
- */
27
- /**
28
- * Class that handles response parsing.
29
- */
30
- class ResponseHandler {
31
- constructor(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
32
- this.clientId = clientId;
33
- this.cacheStorage = cacheStorage;
34
- this.cryptoObj = cryptoObj;
35
- this.logger = logger;
36
- this.serializableCache = serializableCache;
37
- this.persistencePlugin = persistencePlugin;
38
- this.performanceClient = performanceClient;
39
- }
40
- /**
41
- * Function which validates server authorization code response.
42
- * @param serverResponseHash
43
- * @param cachedState
44
- * @param cryptoObj
45
- */
46
- validateServerAuthorizationCodeResponse(serverResponseHash, cachedState, cryptoObj) {
47
- if (!serverResponseHash.state || !cachedState) {
48
- throw !serverResponseHash.state
49
- ? ClientAuthError.createStateNotFoundError("Server State")
50
- : ClientAuthError.createStateNotFoundError("Cached State");
51
- }
52
- if (decodeURIComponent(serverResponseHash.state) !==
53
- decodeURIComponent(cachedState)) {
54
- throw ClientAuthError.createStateMismatchError();
55
- }
56
- // Check for error
57
- if (serverResponseHash.error ||
58
- serverResponseHash.error_description ||
59
- serverResponseHash.suberror) {
60
- if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponseHash.error, serverResponseHash.error_description, serverResponseHash.suberror)) {
61
- throw new InteractionRequiredAuthError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror, serverResponseHash.timestamp || Constants.EMPTY_STRING, serverResponseHash.trace_id || Constants.EMPTY_STRING, serverResponseHash.correlation_id || Constants.EMPTY_STRING, serverResponseHash.claims || Constants.EMPTY_STRING);
62
- }
63
- throw new ServerError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror);
64
- }
65
- if (serverResponseHash.client_info) {
66
- buildClientInfo(serverResponseHash.client_info, cryptoObj);
67
- }
68
- }
69
- /**
70
- * Function which validates server authorization token response.
71
- * @param serverResponse
72
- */
73
- validateTokenResponse(serverResponse) {
74
- // Check for error
75
- if (serverResponse.error ||
76
- serverResponse.error_description ||
77
- serverResponse.suberror) {
78
- if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponse.error, serverResponse.error_description, serverResponse.suberror)) {
79
- throw new InteractionRequiredAuthError(serverResponse.error, serverResponse.error_description, serverResponse.suberror, serverResponse.timestamp || Constants.EMPTY_STRING, serverResponse.trace_id || Constants.EMPTY_STRING, serverResponse.correlation_id || Constants.EMPTY_STRING, serverResponse.claims || Constants.EMPTY_STRING);
80
- }
81
- const errString = `${serverResponse.error_codes} - [${serverResponse.timestamp}]: ${serverResponse.error_description} - Correlation ID: ${serverResponse.correlation_id} - Trace ID: ${serverResponse.trace_id}`;
82
- throw new ServerError(serverResponse.error, errString, serverResponse.suberror);
83
- }
84
- }
85
- /**
86
- * Returns a constructed token response based on given string. Also manages the cache updates and cleanups.
87
- * @param serverTokenResponse
88
- * @param authority
89
- */
90
- async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
91
- this.performanceClient?.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);
92
- // create an idToken object (not entity)
93
- let idTokenObj;
94
- if (serverTokenResponse.id_token) {
95
- idTokenObj = new AuthToken(serverTokenResponse.id_token || Constants.EMPTY_STRING, this.cryptoObj);
96
- // token nonce check (TODO: Add a warning if no nonce is given?)
97
- if (authCodePayload &&
98
- !StringUtils.isEmpty(authCodePayload.nonce)) {
99
- if (idTokenObj.claims.nonce !== authCodePayload.nonce) {
100
- throw ClientAuthError.createNonceMismatchError();
101
- }
102
- }
103
- // token max_age check
104
- if (request.maxAge || request.maxAge === 0) {
105
- const authTime = idTokenObj.claims.auth_time;
106
- if (!authTime) {
107
- throw ClientAuthError.createAuthTimeNotFoundError();
108
- }
109
- AuthToken.checkMaxAge(authTime, request.maxAge);
110
- }
111
- }
112
- // generate homeAccountId
113
- this.homeAccountIdentifier = AccountEntity.generateHomeAccountId(serverTokenResponse.client_info || Constants.EMPTY_STRING, authority.authorityType, this.logger, this.cryptoObj, idTokenObj);
114
- // save the response tokens
115
- let requestStateObj;
116
- if (!!authCodePayload && !!authCodePayload.state) {
117
- requestStateObj = ProtocolUtils.parseRequestState(this.cryptoObj, authCodePayload.state);
118
- }
119
- // Add keyId from request to serverTokenResponse if defined
120
- serverTokenResponse.key_id =
121
- serverTokenResponse.key_id || request.sshKid || undefined;
122
- const cacheRecord = this.generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload);
123
- let cacheContext;
124
- try {
125
- if (this.persistencePlugin && this.serializableCache) {
126
- this.logger.verbose("Persistence enabled, calling beforeCacheAccess");
127
- cacheContext = new TokenCacheContext(this.serializableCache, true);
128
- await this.persistencePlugin.beforeCacheAccess(cacheContext);
129
- }
130
- /*
131
- * When saving a refreshed tokens to the cache, it is expected that the account that was used is present in the cache.
132
- * If not present, we should return null, as it's the case that another application called removeAccount in between
133
- * the calls to getAllAccounts and acquireTokenSilent. We should not overwrite that removal, unless explicitly flagged by
134
- * the developer, as in the case of refresh token flow used in ADAL Node to MSAL Node migration.
135
- */
136
- if (handlingRefreshTokenResponse &&
137
- !forceCacheRefreshTokenResponse &&
138
- cacheRecord.account) {
139
- const key = cacheRecord.account.generateAccountKey();
140
- const account = this.cacheStorage.getAccount(key);
141
- if (!account) {
142
- this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache");
143
- return ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, undefined, serverRequestId);
144
- }
145
- }
146
- await this.cacheStorage.saveCacheRecord(cacheRecord);
147
- }
148
- finally {
149
- if (this.persistencePlugin &&
150
- this.serializableCache &&
151
- cacheContext) {
152
- this.logger.verbose("Persistence enabled, calling afterCacheAccess");
153
- await this.persistencePlugin.afterCacheAccess(cacheContext);
154
- }
155
- }
156
- return ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, serverTokenResponse, serverRequestId);
157
- }
158
- /**
159
- * Generates CacheRecord
160
- * @param serverTokenResponse
161
- * @param idTokenObj
162
- * @param authority
163
- */
164
- generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload) {
165
- const env = authority.getPreferredCache();
166
- if (StringUtils.isEmpty(env)) {
167
- throw ClientAuthError.createInvalidCacheEnvironmentError();
168
- }
169
- // IdToken: non AAD scenarios can have empty realm
170
- let cachedIdToken;
171
- let cachedAccount;
172
- if (!StringUtils.isEmpty(serverTokenResponse.id_token) &&
173
- !!idTokenObj) {
174
- cachedIdToken = IdTokenEntity.createIdTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.id_token || Constants.EMPTY_STRING, this.clientId, idTokenObj.claims.tid || Constants.EMPTY_STRING);
175
- cachedAccount = this.generateAccountEntity(serverTokenResponse, idTokenObj, authority, authCodePayload);
176
- }
177
- // AccessToken
178
- let cachedAccessToken = null;
179
- if (!StringUtils.isEmpty(serverTokenResponse.access_token)) {
180
- // If scopes not returned in server response, use request scopes
181
- const responseScopes = serverTokenResponse.scope
182
- ? ScopeSet.fromString(serverTokenResponse.scope)
183
- : new ScopeSet(request.scopes || []);
184
- /*
185
- * Use timestamp calculated before request
186
- * Server may return timestamps as strings, parse to numbers if so.
187
- */
188
- const expiresIn = (typeof serverTokenResponse.expires_in === "string"
189
- ? parseInt(serverTokenResponse.expires_in, 10)
190
- : serverTokenResponse.expires_in) || 0;
191
- const extExpiresIn = (typeof serverTokenResponse.ext_expires_in === "string"
192
- ? parseInt(serverTokenResponse.ext_expires_in, 10)
193
- : serverTokenResponse.ext_expires_in) || 0;
194
- const refreshIn = (typeof serverTokenResponse.refresh_in === "string"
195
- ? parseInt(serverTokenResponse.refresh_in, 10)
196
- : serverTokenResponse.refresh_in) || undefined;
197
- const tokenExpirationSeconds = reqTimestamp + expiresIn;
198
- const extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn;
199
- const refreshOnSeconds = refreshIn && refreshIn > 0
200
- ? reqTimestamp + refreshIn
201
- : undefined;
202
- // non AAD scenarios can have empty realm
203
- cachedAccessToken = AccessTokenEntity.createAccessTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.access_token || Constants.EMPTY_STRING, this.clientId, idTokenObj
204
- ? idTokenObj.claims.tid || Constants.EMPTY_STRING
205
- : authority.tenant, responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request.claims, request.requestedClaimsHash);
206
- }
207
- // refreshToken
208
- let cachedRefreshToken = null;
209
- if (!StringUtils.isEmpty(serverTokenResponse.refresh_token)) {
210
- cachedRefreshToken = RefreshTokenEntity.createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token || Constants.EMPTY_STRING, this.clientId, serverTokenResponse.foci, userAssertionHash);
211
- }
212
- // appMetadata
213
- let cachedAppMetadata = null;
214
- if (!StringUtils.isEmpty(serverTokenResponse.foci)) {
215
- cachedAppMetadata = AppMetadataEntity.createAppMetadataEntity(this.clientId, env, serverTokenResponse.foci);
216
- }
217
- return new CacheRecord(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);
218
- }
219
- /**
220
- * Generate Account
221
- * @param serverTokenResponse
222
- * @param idToken
223
- * @param authority
224
- */
225
- generateAccountEntity(serverTokenResponse, idToken, authority, authCodePayload) {
226
- const authorityType = authority.authorityType;
227
- const cloudGraphHostName = authCodePayload
228
- ? authCodePayload.cloud_graph_host_name
229
- : Constants.EMPTY_STRING;
230
- const msGraphhost = authCodePayload
231
- ? authCodePayload.msgraph_host
232
- : Constants.EMPTY_STRING;
233
- // ADFS does not require client_info in the response
234
- if (authorityType === AuthorityType.Adfs) {
235
- this.logger.verbose("Authority type is ADFS, creating ADFS account");
236
- return AccountEntity.createGenericAccount(this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost);
237
- }
238
- // This fallback applies to B2C as well as they fall under an AAD account type.
239
- if (StringUtils.isEmpty(serverTokenResponse.client_info) &&
240
- authority.protocolMode === "AAD") {
241
- throw ClientAuthError.createClientInfoEmptyError();
242
- }
243
- return serverTokenResponse.client_info
244
- ? AccountEntity.createAccount(serverTokenResponse.client_info, this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost)
245
- : AccountEntity.createGenericAccount(this.homeAccountIdentifier, idToken, authority, cloudGraphHostName, msGraphhost);
246
- }
247
- /**
248
- * Creates an @AuthenticationResult from @CacheRecord , @IdToken , and a boolean that states whether or not the result is from cache.
249
- *
250
- * Optionally takes a state string that is set as-is in the response.
251
- *
252
- * @param cacheRecord
253
- * @param idTokenObj
254
- * @param fromTokenCache
255
- * @param stateString
256
- */
257
- static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, idTokenObj, requestState, serverTokenResponse, requestId) {
258
- let accessToken = Constants.EMPTY_STRING;
259
- let responseScopes = [];
260
- let expiresOn = null;
261
- let extExpiresOn;
262
- let familyId = Constants.EMPTY_STRING;
263
- if (cacheRecord.accessToken) {
264
- if (cacheRecord.accessToken.tokenType === AuthenticationScheme.POP) {
265
- const popTokenGenerator = new PopTokenGenerator(cryptoObj);
266
- const { secret, keyId } = cacheRecord.accessToken;
267
- if (!keyId) {
268
- throw ClientAuthError.createKeyIdMissingError();
269
- }
270
- accessToken = await popTokenGenerator.signPopToken(secret, keyId, request);
271
- }
272
- else {
273
- accessToken = cacheRecord.accessToken.secret;
274
- }
275
- responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target).asArray();
276
- expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000);
277
- extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000);
278
- }
279
- if (cacheRecord.appMetadata) {
280
- familyId =
281
- cacheRecord.appMetadata.familyId === THE_FAMILY_ID
282
- ? THE_FAMILY_ID
283
- : Constants.EMPTY_STRING;
284
- }
285
- const uid = idTokenObj?.claims.oid ||
286
- idTokenObj?.claims.sub ||
287
- Constants.EMPTY_STRING;
288
- const tid = idTokenObj?.claims.tid || Constants.EMPTY_STRING;
289
- // for hybrid + native bridge enablement, send back the native account Id
290
- if (serverTokenResponse?.spa_accountid && !!cacheRecord.account) {
291
- cacheRecord.account.nativeAccountId =
292
- serverTokenResponse?.spa_accountid;
293
- }
294
- return {
295
- authority: authority.canonicalAuthority,
296
- uniqueId: uid,
297
- tenantId: tid,
298
- scopes: responseScopes,
299
- account: cacheRecord.account
300
- ? cacheRecord.account.getAccountInfo()
301
- : null,
302
- idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,
303
- idTokenClaims: idTokenObj ? idTokenObj.claims : {},
304
- accessToken: accessToken,
305
- fromCache: fromTokenCache,
306
- expiresOn: expiresOn,
307
- correlationId: request.correlationId,
308
- requestId: requestId || Constants.EMPTY_STRING,
309
- extExpiresOn: extExpiresOn,
310
- familyId: familyId,
311
- tokenType: cacheRecord.accessToken?.tokenType || Constants.EMPTY_STRING,
312
- state: requestState
313
- ? requestState.userRequestState
314
- : Constants.EMPTY_STRING,
315
- cloudGraphHostName: cacheRecord.account?.cloudGraphHostName ||
316
- Constants.EMPTY_STRING,
317
- msGraphHost: cacheRecord.account?.msGraphHost || Constants.EMPTY_STRING,
318
- code: serverTokenResponse?.spa_code,
319
- fromNativeBroker: false,
320
- };
321
- }
322
- }
323
-
324
- export { ResponseHandler };
325
- //# sourceMappingURL=ResponseHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResponseHandler.js","sources":["../../src/response/ResponseHandler.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAsCH;;AAEG;MACU,eAAe,CAAA;AAUxB,IAAA,WAAA,CACI,QAAgB,EAChB,YAA0B,EAC1B,SAAkB,EAClB,MAAc,EACd,iBAAiD,EACjD,iBAAsC,EACtC,iBAAsC,EAAA;AAEtC,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;AACjC,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;KAC9C;AAED;;;;;AAKG;AACH,IAAA,uCAAuC,CACnC,kBAAmD,EACnD,WAAmB,EACnB,SAAkB,EAAA;AAElB,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC,WAAW,EAAE;YAC3C,MAAM,CAAC,kBAAkB,CAAC,KAAK;AAC3B,kBAAE,eAAe,CAAC,wBAAwB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AAE;YAC7D,WAAW,CAAC,OAAO,CAAC,eAAe;gBAC/B,mBAAmB,EAAE,aAAa,CAAC;AAC1C,SAAA;QAED,OAAO;YACH,SAAS,EAAE,SAAS,CAAC,kBAAkB;AACvC,YAAA,QAAQ,EAAE,GAAG;AACb,YAAA,QAAQ,EAAE,GAAG;AACb,YAAA,MAAM,EAAE,cAAc;YACtB,OAAO,EAAE,WAAW,CAAC,OAAO;AACxB,kBAAE,WAAW,CAAC,OAAO,CAAC,cAAc,EAAE;AACtC,kBAAE,IAAI;AACV,YAAA,OAAO,EAAE,UAAU,GAAG,UAAU,CAAC,QAAQ,GAAG,SAAS,CAAC,YAAY;YAClE,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,MAAM,GAAG,EAAE;AAClD,YAAA,WAAW,EAAE,WAAW;AACxB,YAAA,SAAS,EAAE,cAAc;AACzB,YAAA,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,OAAO,CAAC,aAAa;AACpC,YAAA,SAAS,EAAE,SAAS,IAAI,SAAS,CAAC,YAAY;AAC9C,YAAA,YAAY,EAAE,YAAY;AAC1B,YAAA,QAAQ,EAAE,QAAQ;YAClB,SAAS,EACL,WAAW,CAAC,WAAW,EAAE,SAAS,IAAI,SAAS,CAAC,YAAY;AAChE,YAAA,KAAK,EAAE,YAAY;kBACb,YAAY,CAAC,gBAAgB;kBAC7B,SAAS,CAAC,YAAY;AAC5B,YAAA,kBAAkB,EACd,WAAW,CAAC,OAAO,EAAE,kBAAkB;AACvC,gBAAA,SAAS,CAAC,YAAY;YAC1B,WAAW,EACP,WAAW,CAAC,OAAO,EAAE,WAAW,IAAI,SAAS,CAAC,YAAY;YAC9D,IAAI,EAAE,mBAAmB,EAAE,QAAQ;AACnC,YAAA,gBAAgB,EAAE,KAAK;SAC1B,CAAC;KACL;AACJ;;;;"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Deserialized response object from server authorization code request.
3
- * - code: authorization code from server
4
- * - client_info: client info object
5
- * - state: OAuth2 request state
6
- * - error: error sent back in hash
7
- * - error: description
8
- */
9
- export type ServerAuthorizationCodeResponse = {
10
- code?: string;
11
- client_info?: string;
12
- state?: string;
13
- cloud_instance_name?: string;
14
- cloud_instance_host_name?: string;
15
- cloud_graph_host_name?: string;
16
- msgraph_host?: string;
17
- error?: string;
18
- error_description?: string;
19
- suberror?: string;
20
- timestamp?: string;
21
- trace_id?: string;
22
- correlation_id?: string;
23
- claims?: string;
24
- accountId?: string;
25
- };
26
- //# sourceMappingURL=ServerAuthorizationCodeResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerAuthorizationCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/ServerAuthorizationCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAE1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,45 +0,0 @@
1
- import { AuthenticationScheme } from "../utils/Constants";
2
- /**
3
- * Deserialized response object from server authorization code request.
4
- * - token_type: Indicates the token type value. Can be either Bearer or pop.
5
- * - scope: The scopes that the access_token is valid for.
6
- * - expires_in: How long the access token is valid (in seconds).
7
- * - refresh_in: Duration afer which a token should be renewed, regardless of expiration.
8
- * - ext_expires_in: How long the access token is valid (in seconds) if the server isn't responding.
9
- * - access_token: The requested access token. The app can use this token to authenticate to the secured resource, such as a web API.
10
- * - refresh_token: An OAuth 2.0 refresh token. The app can use this token acquire additional access tokens after the current access token expires.
11
- * - id_token: A JSON Web Token (JWT). The app can decode the segments of this token to request information about the user who signed in.
12
- * - key_id: A string that uniquely identifies a public key that the request is bound to.
13
- *
14
- * In case of error:
15
- * - error: An error code string that can be used to classify types of errors that occur, and can be used to react to errors.
16
- * - error_description: A specific error message that can help a developer identify the root cause of an authentication error.
17
- * - error_codes: A list of STS-specific error codes that can help in diagnostics.
18
- * - timestamp: The time at which the error occurred.
19
- * - trace_id: A unique identifier for the request that can help in diagnostics.
20
- * - correlation_id: A unique identifier for the request that can help in diagnostics across components.
21
- */
22
- export type ServerAuthorizationTokenResponse = {
23
- token_type?: AuthenticationScheme;
24
- scope?: string;
25
- expires_in?: number;
26
- refresh_in?: number;
27
- ext_expires_in?: number;
28
- access_token?: string;
29
- refresh_token?: string;
30
- id_token?: string;
31
- client_info?: string;
32
- foci?: string;
33
- spa_code?: string;
34
- spa_accountid?: string;
35
- key_id?: string;
36
- error?: string;
37
- error_description?: string;
38
- error_codes?: Array<string>;
39
- suberror?: string;
40
- timestamp?: string;
41
- trace_id?: string;
42
- correlation_id?: string;
43
- claims?: string;
44
- };
45
- //# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerAuthorizationTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ServerAuthorizationTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAE3C,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,43 +0,0 @@
1
- import { Counters, PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";
2
- import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
3
- export type PerformanceCallbackFunction = (events: PerformanceEvent[]) => void;
4
- export type InProgressPerformanceEvent = {
5
- endMeasurement: (event?: Partial<PerformanceEvent>) => PerformanceEvent | null;
6
- discardMeasurement: () => void;
7
- addStaticFields: (staticFields: StaticFields) => void;
8
- increment: (counters: Counters) => void;
9
- event: PerformanceEvent;
10
- measurement: IPerformanceMeasurement;
11
- };
12
- export interface IPerformanceClient {
13
- startMeasurement(measureName: PerformanceEvents, correlationId?: string): InProgressPerformanceEvent;
14
- endMeasurement(event: PerformanceEvent): PerformanceEvent | null;
15
- discardMeasurements(correlationId: string): void;
16
- addStaticFields(staticFields: StaticFields, correlationId: string): void;
17
- removePerformanceCallback(callbackId: string): boolean;
18
- addPerformanceCallback(callback: PerformanceCallbackFunction): string;
19
- emitEvents(events: PerformanceEvent[], correlationId: string): void;
20
- startPerformanceMeasurement(measureName: string, correlationId: string): IPerformanceMeasurement;
21
- generateId(): string;
22
- calculateQueuedTime(preQueueTime: number, currentTime: number): number;
23
- addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void;
24
- setPreQueueTime(eventName: PerformanceEvents, correlationId?: string): void;
25
- }
26
- /**
27
- * Queue measurement type
28
- */
29
- export type QueueMeasurement = {
30
- /**
31
- * Name of performance event
32
- */
33
- eventName: PerformanceEvents;
34
- /**
35
- * Time spent in JS queue
36
- */
37
- queueTime: number;
38
- /**
39
- * Incomplete pre-queue events are instrumentation bugs that should be fixed.
40
- */
41
- manuallyCompleted?: boolean;
42
- };
43
- //# sourceMappingURL=IPerformanceClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,MAAM,2BAA2B,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;AAE/E,MAAM,MAAM,0BAA0B,GAAG;IACrC,cAAc,EAAE,CACZ,KAAK,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAChC,gBAAgB,GAAG,IAAI,CAAC;IAC7B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,CAAC,QAAQ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iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
@@ -1,6 +0,0 @@
1
- export interface IPerformanceMeasurement {
2
- startMeasurement(): void;
3
- endMeasurement(): void;
4
- flushMeasurement(): number | null;
5
- }
6
- //# sourceMappingURL=IPerformanceMeasurement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPerformanceMeasurement.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/IPerformanceMeasurement.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACpC,gBAAgB,IAAI,IAAI,CAAC;IACzB,cAAc,IAAI,IAAI,CAAC;IACvB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC"}