@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,40 +0,0 @@
1
- /**
2
- * APP_METADATA Cache
3
- *
4
- * Key:Value Schema:
5
- *
6
- * Key: appmetadata-<environment>-<client_id>
7
- *
8
- * Value:
9
- * {
10
- * clientId: client ID of the application
11
- * environment: entity that issued the token, represented as a full host
12
- * familyId: Family ID identifier, '1' represents Microsoft Family
13
- * }
14
- */
15
- export declare class AppMetadataEntity {
16
- clientId: string;
17
- environment: string;
18
- familyId?: string;
19
- /**
20
- * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id>
21
- */
22
- generateAppMetadataKey(): string;
23
- /**
24
- * Generate AppMetadata Cache Key
25
- */
26
- static generateAppMetadataCacheKey(environment: string, clientId: string): string;
27
- /**
28
- * Creates AppMetadataEntity
29
- * @param clientId
30
- * @param environment
31
- * @param familyId
32
- */
33
- static createAppMetadataEntity(clientId: string, environment: string, familyId?: string): AppMetadataEntity;
34
- /**
35
- * Validates an entity: checks for all expected params
36
- * @param entity
37
- */
38
- static isAppMetadataEntity(key: string, entity: object): boolean;
39
- }
40
- //# sourceMappingURL=AppMetadataEntity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AppMetadataEntity.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,qBAAa,iBAAiB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,sBAAsB,IAAI,MAAM;IAOhC;;OAEG;IACH,MAAM,CAAC,2BAA2B,CAC9B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACjB,MAAM;IAWT;;;;;OAKG;IACH,MAAM,CAAC,uBAAuB,CAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,GAClB,iBAAiB;IAYpB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAWnE"}
@@ -1,73 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- import { Separators, APP_METADATA } from '../../utils/Constants.js';
4
-
5
- /*
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Licensed under the MIT License.
8
- */
9
- /**
10
- * APP_METADATA Cache
11
- *
12
- * Key:Value Schema:
13
- *
14
- * Key: appmetadata-<environment>-<client_id>
15
- *
16
- * Value:
17
- * {
18
- * clientId: client ID of the application
19
- * environment: entity that issued the token, represented as a full host
20
- * familyId: Family ID identifier, '1' represents Microsoft Family
21
- * }
22
- */
23
- class AppMetadataEntity {
24
- /**
25
- * Generate AppMetadata Cache Key as per the schema: appmetadata-<environment>-<client_id>
26
- */
27
- generateAppMetadataKey() {
28
- return AppMetadataEntity.generateAppMetadataCacheKey(this.environment, this.clientId);
29
- }
30
- /**
31
- * Generate AppMetadata Cache Key
32
- */
33
- static generateAppMetadataCacheKey(environment, clientId) {
34
- const appMetaDataKeyArray = [
35
- APP_METADATA,
36
- environment,
37
- clientId,
38
- ];
39
- return appMetaDataKeyArray
40
- .join(Separators.CACHE_KEY_SEPARATOR)
41
- .toLowerCase();
42
- }
43
- /**
44
- * Creates AppMetadataEntity
45
- * @param clientId
46
- * @param environment
47
- * @param familyId
48
- */
49
- static createAppMetadataEntity(clientId, environment, familyId) {
50
- const appMetadata = new AppMetadataEntity();
51
- appMetadata.clientId = clientId;
52
- appMetadata.environment = environment;
53
- if (familyId) {
54
- appMetadata.familyId = familyId;
55
- }
56
- return appMetadata;
57
- }
58
- /**
59
- * Validates an entity: checks for all expected params
60
- * @param entity
61
- */
62
- static isAppMetadataEntity(key, entity) {
63
- if (!entity) {
64
- return false;
65
- }
66
- return (key.indexOf(APP_METADATA) === 0 &&
67
- entity.hasOwnProperty("clientId") &&
68
- entity.hasOwnProperty("environment"));
69
- }
70
- }
71
-
72
- export { AppMetadataEntity };
73
- //# sourceMappingURL=AppMetadataEntity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppMetadataEntity.js","sources":["../../../src/cache/entities/AppMetadataEntity.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;;;;;;;;;;;;AAaG;MACU,iBAAiB,CAAA;AAK1B;;AAEG;IACH,sBAAsB,GAAA;AAClB,QAAA,OAAO,iBAAiB,CAAC,2BAA2B,CAChD,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,QAAQ,CAChB,CAAC;KACL;AAED;;AAEG;AACH,IAAA,OAAO,2BAA2B,CAC9B,WAAmB,EACnB,QAAgB,EAAA;AAEhB,QAAA,MAAM,mBAAmB,GAAkB;YACvC,YAAY;YACZ,WAAW;YACX,QAAQ;SACX,CAAC;AACF,QAAA,OAAO,mBAAmB;AACrB,aAAA,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;AACpC,aAAA,WAAW,EAAE,CAAC;KACtB;AAED;;;;;AAKG;AACH,IAAA,OAAO,uBAAuB,CAC1B,QAAgB,EAChB,WAAmB,EACnB,QAAiB,EAAA;AAEjB,QAAA,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAC;AAE5C,QAAA,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAChC,QAAA,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC;AACtC,QAAA,IAAI,QAAQ,EAAE;AACV,YAAA,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACnC,SAAA;AAED,QAAA,OAAO,WAAW,CAAC;KACtB;AAED;;;AAGG;AACH,IAAA,OAAO,mBAAmB,CAAC,GAAW,EAAE,MAAc,EAAA;QAClD,IAAI,CAAC,MAAM,EAAE;AACT,YAAA,OAAO,KAAK,CAAC;AAChB,SAAA;QAED,QACI,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC;AAC/B,YAAA,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC;AACjC,YAAA,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,EACtC;KACL;AACJ;;;;"}
@@ -1,48 +0,0 @@
1
- import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata";
2
- import { OpenIdConfigResponse } from "../../authority/OpenIdConfigResponse";
3
- export declare class AuthorityMetadataEntity {
4
- aliases: Array<string>;
5
- preferred_cache: string;
6
- preferred_network: string;
7
- canonical_authority: string;
8
- authorization_endpoint: string;
9
- token_endpoint: string;
10
- end_session_endpoint?: string;
11
- issuer: string;
12
- aliasesFromNetwork: boolean;
13
- endpointsFromNetwork: boolean;
14
- expiresAt: number;
15
- jwks_uri: string;
16
- constructor();
17
- /**
18
- * Update the entity with new aliases, preferred_cache and preferred_network values
19
- * @param metadata
20
- * @param fromNetwork
21
- */
22
- updateCloudDiscoveryMetadata(metadata: CloudDiscoveryMetadata, fromNetwork: boolean): void;
23
- /**
24
- * Update the entity with new endpoints
25
- * @param metadata
26
- * @param fromNetwork
27
- */
28
- updateEndpointMetadata(metadata: OpenIdConfigResponse, fromNetwork: boolean): void;
29
- /**
30
- * Save the authority that was used to create this cache entry
31
- * @param authority
32
- */
33
- updateCanonicalAuthority(authority: string): void;
34
- /**
35
- * Reset the exiresAt value
36
- */
37
- resetExpiresAt(): void;
38
- /**
39
- * Returns whether or not the data needs to be refreshed
40
- */
41
- isExpired(): boolean;
42
- /**
43
- * Validates an entity: checks for all expected params
44
- * @param entity
45
- */
46
- static isAuthorityMetadataEntity(key: string, entity: object): boolean;
47
- }
48
- //# sourceMappingURL=AuthorityMetadataEntity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorityMetadataEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/AuthorityMetadataEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAI5E,qBAAa,uBAAuB;IAChC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;;IAQjB;;;;OAIG;IACH,4BAA4B,CACxB,QAAQ,EAAE,sBAAsB,EAChC,WAAW,EAAE,OAAO,GACrB,IAAI;IAOP;;;;OAIG;IACH,sBAAsB,CAClB,QAAQ,EAAE,oBAAoB,EAC9B,WAAW,EAAE,OAAO,GACrB,IAAI;IASP;;;OAGG;IACH,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIjD;;OAEG;IACH,cAAc,IAAI,IAAI;IAMtB;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;;OAGG;IACH,MAAM,CAAC,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAoBzE"}
@@ -1,85 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- import { AUTHORITY_METADATA_CONSTANTS } from '../../utils/Constants.js';
4
- import { TimeUtils } from '../../utils/TimeUtils.js';
5
-
6
- /*
7
- * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Licensed under the MIT License.
9
- */
10
- class AuthorityMetadataEntity {
11
- constructor() {
12
- this.expiresAt =
13
- TimeUtils.nowSeconds() +
14
- AUTHORITY_METADATA_CONSTANTS.REFRESH_TIME_SECONDS;
15
- }
16
- /**
17
- * Update the entity with new aliases, preferred_cache and preferred_network values
18
- * @param metadata
19
- * @param fromNetwork
20
- */
21
- updateCloudDiscoveryMetadata(metadata, fromNetwork) {
22
- this.aliases = metadata.aliases;
23
- this.preferred_cache = metadata.preferred_cache;
24
- this.preferred_network = metadata.preferred_network;
25
- this.aliasesFromNetwork = fromNetwork;
26
- }
27
- /**
28
- * Update the entity with new endpoints
29
- * @param metadata
30
- * @param fromNetwork
31
- */
32
- updateEndpointMetadata(metadata, fromNetwork) {
33
- this.authorization_endpoint = metadata.authorization_endpoint;
34
- this.token_endpoint = metadata.token_endpoint;
35
- this.end_session_endpoint = metadata.end_session_endpoint;
36
- this.issuer = metadata.issuer;
37
- this.endpointsFromNetwork = fromNetwork;
38
- this.jwks_uri = metadata.jwks_uri;
39
- }
40
- /**
41
- * Save the authority that was used to create this cache entry
42
- * @param authority
43
- */
44
- updateCanonicalAuthority(authority) {
45
- this.canonical_authority = authority;
46
- }
47
- /**
48
- * Reset the exiresAt value
49
- */
50
- resetExpiresAt() {
51
- this.expiresAt =
52
- TimeUtils.nowSeconds() +
53
- AUTHORITY_METADATA_CONSTANTS.REFRESH_TIME_SECONDS;
54
- }
55
- /**
56
- * Returns whether or not the data needs to be refreshed
57
- */
58
- isExpired() {
59
- return this.expiresAt <= TimeUtils.nowSeconds();
60
- }
61
- /**
62
- * Validates an entity: checks for all expected params
63
- * @param entity
64
- */
65
- static isAuthorityMetadataEntity(key, entity) {
66
- if (!entity) {
67
- return false;
68
- }
69
- return (key.indexOf(AUTHORITY_METADATA_CONSTANTS.CACHE_KEY) === 0 &&
70
- entity.hasOwnProperty("aliases") &&
71
- entity.hasOwnProperty("preferred_cache") &&
72
- entity.hasOwnProperty("preferred_network") &&
73
- entity.hasOwnProperty("canonical_authority") &&
74
- entity.hasOwnProperty("authorization_endpoint") &&
75
- entity.hasOwnProperty("token_endpoint") &&
76
- entity.hasOwnProperty("issuer") &&
77
- entity.hasOwnProperty("aliasesFromNetwork") &&
78
- entity.hasOwnProperty("endpointsFromNetwork") &&
79
- entity.hasOwnProperty("expiresAt") &&
80
- entity.hasOwnProperty("jwks_uri"));
81
- }
82
- }
83
-
84
- export { AuthorityMetadataEntity };
85
- //# sourceMappingURL=AuthorityMetadataEntity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorityMetadataEntity.js","sources":["../../../src/cache/entities/AuthorityMetadataEntity.ts"],"sourcesContent":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AAS,CAAC,UAAU,EAAE,CAAC;KACnD;AAED;;;AAGG;AACH,IAAA,OAAO,yBAAyB,CAAC,GAAW,EAAE,MAAc,EAAA;QACxD,IAAI,CAAC,MAAM,EAAE;AACT,YAAA,OAAO,KAAK,CAAC;AAChB,SAAA;QAED,QACI,GAAG,CAAC,OAAO,CAAC,4BAA4B,CAAC,SAAS,CAAC,KAAK,CAAC;AACzD,YAAA,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC;AAChC,YAAA,MAAM,CAAC,cAAc,CAAC,iBAAiB,CAAC;AACxC,YAAA,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC;AAC1C,YAAA,MAAM,CAAC,cAAc,CAAC,qBAAqB,CAAC;AAC5C,YAAA,MAAM,CAAC,cAAc,CAAC,wBAAwB,CAAC;AAC/C,YAAA,MAAM,CAAC,cAAc,CAAC,gBAAgB,CAAC;AACvC,YAAA,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC;AAC/B,YAAA,MAAM,CAAC,cAAc,CAAC,oBAAoB,CAAC;AAC3C,YAAA,MAAM,CAAC,cAAc,CAAC,sBAAsB,CAAC;AAC7C,YAAA,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC;AAClC,YAAA,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,EACnC;KACL;AACJ;;;;"}
@@ -1,14 +0,0 @@
1
- import { IdTokenEntity } from "./IdTokenEntity";
2
- import { AccessTokenEntity } from "./AccessTokenEntity";
3
- import { RefreshTokenEntity } from "./RefreshTokenEntity";
4
- import { AccountEntity } from "./AccountEntity";
5
- import { AppMetadataEntity } from "./AppMetadataEntity";
6
- export declare class CacheRecord {
7
- account: AccountEntity | null;
8
- idToken: IdTokenEntity | null;
9
- accessToken: AccessTokenEntity | null;
10
- refreshToken: RefreshTokenEntity | null;
11
- appMetadata: AppMetadataEntity | null;
12
- constructor(accountEntity?: AccountEntity | null, idTokenEntity?: IdTokenEntity | null, accessTokenEntity?: AccessTokenEntity | null, refreshTokenEntity?: RefreshTokenEntity | null, appMetadataEntity?: AppMetadataEntity | null);
13
- }
14
- //# sourceMappingURL=CacheRecord.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CacheRecord.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/CacheRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,WAAW;IACpB,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;gBAGlC,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,EACpC,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,EACpC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAC5C,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAC9C,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI;CAQnD"}
@@ -1,18 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- /*
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Licensed under the MIT License.
6
- */
7
- class CacheRecord {
8
- constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
9
- this.account = accountEntity || null;
10
- this.idToken = idTokenEntity || null;
11
- this.accessToken = accessTokenEntity || null;
12
- this.refreshToken = refreshTokenEntity || null;
13
- this.appMetadata = appMetadataEntity || null;
14
- }
15
- }
16
-
17
- export { CacheRecord };
18
- //# sourceMappingURL=CacheRecord.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CacheRecord.js","sources":["../../../src/cache/entities/CacheRecord.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;MAQU,WAAW,CAAA;IAOpB,WACI,CAAA,aAAoC,EACpC,aAAoC,EACpC,iBAA4C,EAC5C,kBAA8C,EAC9C,iBAA4C,EAAA;AAE5C,QAAA,IAAI,CAAC,OAAO,GAAG,aAAa,IAAI,IAAI,CAAC;AACrC,QAAA,IAAI,CAAC,OAAO,GAAG,aAAa,IAAI,IAAI,CAAC;AACrC,QAAA,IAAI,CAAC,WAAW,GAAG,iBAAiB,IAAI,IAAI,CAAC;AAC7C,QAAA,IAAI,CAAC,YAAY,GAAG,kBAAkB,IAAI,IAAI,CAAC;AAC/C,QAAA,IAAI,CAAC,WAAW,GAAG,iBAAiB,IAAI,IAAI,CAAC;KAChD;AACJ;;;;"}
@@ -1,89 +0,0 @@
1
- import { CredentialType, AuthenticationScheme } from "../../utils/Constants";
2
- /**
3
- * Base type for credentials to be stored in the cache: eg: ACCESS_TOKEN, ID_TOKEN etc
4
- *
5
- * Key:Value Schema:
6
- *
7
- * Key: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<requestedClaims*>-<scheme*>
8
- *
9
- * Value Schema:
10
- * {
11
- * homeAccountId: home account identifier for the auth scheme,
12
- * environment: entity that issued the token, represented as a full host
13
- * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
14
- * clientId: client ID of the application
15
- * secret: Actual credential as a string
16
- * familyId: Family ID identifier, usually only used for refresh tokens
17
- * realm: Full tenant or organizational identifier that the account belongs to
18
- * target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
19
- * tokenType: Matches the authentication scheme for which the token was issued (i.e. Bearer or pop)
20
- * requestedClaimsHash: Matches the SHA 256 hash of the claims object included in the token request
21
- * userAssertionHash: Matches the SHA 256 hash of the obo_assertion for the OBO flow
22
- * }
23
- */
24
- export declare class CredentialEntity {
25
- homeAccountId: string;
26
- environment: string;
27
- credentialType: CredentialType;
28
- clientId: string;
29
- secret: string;
30
- familyId?: string;
31
- realm?: string;
32
- target?: string;
33
- userAssertionHash?: string;
34
- tokenType?: AuthenticationScheme;
35
- keyId?: string;
36
- requestedClaimsHash?: string;
37
- /**
38
- * Generate Account Id key component as per the schema: <home_account_id>-<environment>
39
- */
40
- generateAccountId(): string;
41
- /**
42
- * Generate Credential Id key component as per the schema: <credential_type>-<client_id>-<realm>
43
- */
44
- generateCredentialId(): string;
45
- /**
46
- * Generate target key component as per schema: <target>
47
- */
48
- generateTarget(): string;
49
- /**
50
- * generates credential key
51
- */
52
- generateCredentialKey(): string;
53
- /**
54
- * returns the type of the cache (in this case credential)
55
- */
56
- generateType(): number;
57
- /**
58
- * generates credential key
59
- * <home_account_id*>-\<environment>-<credential_type>-<client_id>-<realm\*>-<target\*>-<scheme\*>
60
- */
61
- static generateCredentialCacheKey(homeAccountId: string, environment: string, credentialType: CredentialType, clientId: string, realm?: string, target?: string, familyId?: string, tokenType?: AuthenticationScheme, requestedClaimsHash?: string): string;
62
- /**
63
- * generates Account Id for keys
64
- * @param homeAccountId
65
- * @param environment
66
- */
67
- private static generateAccountIdForCacheKey;
68
- /**
69
- * Generates Credential Id for keys
70
- * @param credentialType
71
- * @param realm
72
- * @param clientId
73
- * @param familyId
74
- */
75
- private static generateCredentialIdForCacheKey;
76
- /**
77
- * Generate target key component as per schema: <target>
78
- */
79
- private static generateTargetForCacheKey;
80
- /**
81
- * Generate requested claims key component as per schema: <requestedClaims>
82
- */
83
- private static generateClaimsHashForCacheKey;
84
- /**
85
- * Generate scheme key componenet as per schema: <scheme>
86
- */
87
- private static generateSchemeForCacheKey;
88
- }
89
- //# sourceMappingURL=CredentialEntity.d.ts.map
@@ -1 +0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C,+BAA+B;IAmB9C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;IAIxC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,6BAA6B;IAM5C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;CAW3C"}
@@ -1,144 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- import { CredentialType, CacheType, Separators, Constants, AuthenticationScheme } from '../../utils/Constants.js';
4
- import { ClientAuthError } from '../../error/ClientAuthError.js';
5
-
6
- /*
7
- * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Licensed under the MIT License.
9
- */
10
- /**
11
- * Base type for credentials to be stored in the cache: eg: ACCESS_TOKEN, ID_TOKEN etc
12
- *
13
- * Key:Value Schema:
14
- *
15
- * Key: <home_account_id*>-<environment>-<credential_type>-<client_id>-<realm*>-<target*>-<requestedClaims*>-<scheme*>
16
- *
17
- * Value Schema:
18
- * {
19
- * homeAccountId: home account identifier for the auth scheme,
20
- * environment: entity that issued the token, represented as a full host
21
- * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
22
- * clientId: client ID of the application
23
- * secret: Actual credential as a string
24
- * familyId: Family ID identifier, usually only used for refresh tokens
25
- * realm: Full tenant or organizational identifier that the account belongs to
26
- * target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
27
- * tokenType: Matches the authentication scheme for which the token was issued (i.e. Bearer or pop)
28
- * requestedClaimsHash: Matches the SHA 256 hash of the claims object included in the token request
29
- * userAssertionHash: Matches the SHA 256 hash of the obo_assertion for the OBO flow
30
- * }
31
- */
32
- class CredentialEntity {
33
- /**
34
- * Generate Account Id key component as per the schema: <home_account_id>-<environment>
35
- */
36
- generateAccountId() {
37
- return CredentialEntity.generateAccountIdForCacheKey(this.homeAccountId, this.environment);
38
- }
39
- /**
40
- * Generate Credential Id key component as per the schema: <credential_type>-<client_id>-<realm>
41
- */
42
- generateCredentialId() {
43
- return CredentialEntity.generateCredentialIdForCacheKey(this.credentialType, this.clientId, this.realm, this.familyId);
44
- }
45
- /**
46
- * Generate target key component as per schema: <target>
47
- */
48
- generateTarget() {
49
- return CredentialEntity.generateTargetForCacheKey(this.target);
50
- }
51
- /**
52
- * generates credential key
53
- */
54
- generateCredentialKey() {
55
- return CredentialEntity.generateCredentialCacheKey(this.homeAccountId, this.environment, this.credentialType, this.clientId, this.realm, this.target, this.familyId, this.tokenType, this.requestedClaimsHash);
56
- }
57
- /**
58
- * returns the type of the cache (in this case credential)
59
- */
60
- generateType() {
61
- switch (this.credentialType) {
62
- case CredentialType.ID_TOKEN:
63
- return CacheType.ID_TOKEN;
64
- case CredentialType.ACCESS_TOKEN:
65
- case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:
66
- return CacheType.ACCESS_TOKEN;
67
- case CredentialType.REFRESH_TOKEN:
68
- return CacheType.REFRESH_TOKEN;
69
- default: {
70
- throw ClientAuthError.createUnexpectedCredentialTypeError();
71
- }
72
- }
73
- }
74
- /**
75
- * generates credential key
76
- * <home_account_id*>-\<environment>-<credential_type>-<client_id>-<realm\*>-<target\*>-<scheme\*>
77
- */
78
- static generateCredentialCacheKey(homeAccountId, environment, credentialType, clientId, realm, target, familyId, tokenType, requestedClaimsHash) {
79
- const credentialKey = [
80
- this.generateAccountIdForCacheKey(homeAccountId, environment),
81
- this.generateCredentialIdForCacheKey(credentialType, clientId, realm, familyId),
82
- this.generateTargetForCacheKey(target),
83
- this.generateClaimsHashForCacheKey(requestedClaimsHash),
84
- this.generateSchemeForCacheKey(tokenType),
85
- ];
86
- return credentialKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
87
- }
88
- /**
89
- * generates Account Id for keys
90
- * @param homeAccountId
91
- * @param environment
92
- */
93
- static generateAccountIdForCacheKey(homeAccountId, environment) {
94
- const accountId = [homeAccountId, environment];
95
- return accountId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
96
- }
97
- /**
98
- * Generates Credential Id for keys
99
- * @param credentialType
100
- * @param realm
101
- * @param clientId
102
- * @param familyId
103
- */
104
- static generateCredentialIdForCacheKey(credentialType, clientId, realm, familyId) {
105
- const clientOrFamilyId = credentialType === CredentialType.REFRESH_TOKEN
106
- ? familyId || clientId
107
- : clientId;
108
- const credentialId = [
109
- credentialType,
110
- clientOrFamilyId,
111
- realm || Constants.EMPTY_STRING,
112
- ];
113
- return credentialId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
114
- }
115
- /**
116
- * Generate target key component as per schema: <target>
117
- */
118
- static generateTargetForCacheKey(scopes) {
119
- return (scopes || Constants.EMPTY_STRING).toLowerCase();
120
- }
121
- /**
122
- * Generate requested claims key component as per schema: <requestedClaims>
123
- */
124
- static generateClaimsHashForCacheKey(requestedClaimsHash) {
125
- return (requestedClaimsHash || Constants.EMPTY_STRING).toLowerCase();
126
- }
127
- /**
128
- * Generate scheme key componenet as per schema: <scheme>
129
- */
130
- static generateSchemeForCacheKey(tokenType) {
131
- /*
132
- * PoP Tokens and SSH certs include scheme in cache key
133
- * Cast to lowercase to handle "bearer" from ADFS
134
- */
135
- return tokenType &&
136
- tokenType.toLowerCase() !==
137
- AuthenticationScheme.BEARER.toLowerCase()
138
- ? tokenType.toLowerCase()
139
- : Constants.EMPTY_STRING;
140
- }
141
- }
142
-
143
- export { CredentialEntity };
144
- //# sourceMappingURL=CredentialEntity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CredentialEntity.js","sources":["../../../src/cache/entities/CredentialEntity.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAWH;;;;;;;;;;;;;;;;;;;;;AAqBG;MACU,gBAAgB,CAAA;AAczB;;AAEG;IACH,iBAAiB,GAAA;AACb,QAAA,OAAO,gBAAgB,CAAC,4BAA4B,CAChD,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,CACnB,CAAC;KACL;AAED;;AAEG;IACH,oBAAoB,GAAA;Q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;AAEG;IACK,OAAO,yBAAyB,CAAC,SAAkB,EAAA;AACvD;;;AAGG;AACH,QAAA,OAAO,SAAS;YACZ,SAAS,CAAC,WAAW,EAAE;AACnB,gBAAA,oBAAoB,CAAC,MAAM,CAAC,WAAW,EAAE;AAC7C,cAAE,SAAS,CAAC,WAAW,EAAE;AACzB,cAAE,SAAS,CAAC,YAAY,CAAC;KAChC;AACJ;;;;"}
@@ -1,35 +0,0 @@
1
- import { CredentialEntity } from "./CredentialEntity";
2
- /**
3
- * ID_TOKEN Cache
4
- *
5
- * Key:Value Schema:
6
- *
7
- * Key Example: uid.utid-login.microsoftonline.com-idtoken-clientId-contoso.com-
8
- *
9
- * Value Schema:
10
- * {
11
- * homeAccountId: home account identifier for the auth scheme,
12
- * environment: entity that issued the token, represented as a full host
13
- * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
14
- * clientId: client ID of the application
15
- * secret: Actual credential as a string
16
- * realm: Full tenant or organizational identifier that the account belongs to
17
- * }
18
- */
19
- export declare class IdTokenEntity extends CredentialEntity {
20
- realm: string;
21
- /**
22
- * Create IdTokenEntity
23
- * @param homeAccountId
24
- * @param authenticationResult
25
- * @param clientId
26
- * @param authority
27
- */
28
- static createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity;
29
- /**
30
- * Validates an entity: checks for all expected params
31
- * @param entity
32
- */
33
- static isIdTokenEntity(entity: object): boolean;
34
- }
35
- //# sourceMappingURL=IdTokenEntity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IdTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/IdTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAc,SAAQ,gBAAgB;IAC/C,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,MAAM,CAAC,mBAAmB,CACtB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACjB,aAAa;IAahB;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAelD"}
@@ -1,64 +0,0 @@
1
- /*! @azure/msal-common v14.0.0 2023-05-03 */
2
- 'use strict';
3
- import { CredentialEntity } from './CredentialEntity.js';
4
- import { CredentialType } from '../../utils/Constants.js';
5
-
6
- /*
7
- * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Licensed under the MIT License.
9
- */
10
- /**
11
- * ID_TOKEN Cache
12
- *
13
- * Key:Value Schema:
14
- *
15
- * Key Example: uid.utid-login.microsoftonline.com-idtoken-clientId-contoso.com-
16
- *
17
- * Value Schema:
18
- * {
19
- * homeAccountId: home account identifier for the auth scheme,
20
- * environment: entity that issued the token, represented as a full host
21
- * credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
22
- * clientId: client ID of the application
23
- * secret: Actual credential as a string
24
- * realm: Full tenant or organizational identifier that the account belongs to
25
- * }
26
- */
27
- class IdTokenEntity extends CredentialEntity {
28
- /**
29
- * Create IdTokenEntity
30
- * @param homeAccountId
31
- * @param authenticationResult
32
- * @param clientId
33
- * @param authority
34
- */
35
- static createIdTokenEntity(homeAccountId, environment, idToken, clientId, tenantId) {
36
- const idTokenEntity = new IdTokenEntity();
37
- idTokenEntity.credentialType = CredentialType.ID_TOKEN;
38
- idTokenEntity.homeAccountId = homeAccountId;
39
- idTokenEntity.environment = environment;
40
- idTokenEntity.clientId = clientId;
41
- idTokenEntity.secret = idToken;
42
- idTokenEntity.realm = tenantId;
43
- return idTokenEntity;
44
- }
45
- /**
46
- * Validates an entity: checks for all expected params
47
- * @param entity
48
- */
49
- static isIdTokenEntity(entity) {
50
- if (!entity) {
51
- return false;
52
- }
53
- return (entity.hasOwnProperty("homeAccountId") &&
54
- entity.hasOwnProperty("environment") &&
55
- entity.hasOwnProperty("credentialType") &&
56
- entity.hasOwnProperty("realm") &&
57
- entity.hasOwnProperty("clientId") &&
58
- entity.hasOwnProperty("secret") &&
59
- entity["credentialType"] === CredentialType.ID_TOKEN);
60
- }
61
- }
62
-
63
- export { IdTokenEntity };
64
- //# sourceMappingURL=IdTokenEntity.js.map