@azure/msal-common 15.12.0 → 16.0.0-alpha.0

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 (419) hide show
  1. package/dist/account/AccountInfo.d.ts +0 -1
  2. package/dist/account/AccountInfo.d.ts.map +1 -1
  3. package/dist/account/AccountInfo.mjs +1 -1
  4. package/dist/account/AccountInfo.mjs.map +1 -1
  5. package/dist/account/AuthToken.mjs +1 -1
  6. package/dist/account/AuthToken.mjs.map +1 -1
  7. package/dist/account/CcsCredential.mjs +1 -1
  8. package/dist/account/CcsCredential.mjs.map +1 -1
  9. package/dist/account/ClientInfo.d.ts.map +1 -1
  10. package/dist/account/ClientInfo.mjs +4 -6
  11. package/dist/account/ClientInfo.mjs.map +1 -1
  12. package/dist/account/TokenClaims.mjs +1 -1
  13. package/dist/account/TokenClaims.mjs.map +1 -1
  14. package/dist/authority/Authority.d.ts +2 -2
  15. package/dist/authority/Authority.d.ts.map +1 -1
  16. package/dist/authority/Authority.mjs +89 -105
  17. package/dist/authority/Authority.mjs.map +1 -1
  18. package/dist/authority/AuthorityFactory.d.ts +6 -2
  19. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  20. package/dist/authority/AuthorityFactory.mjs +8 -5
  21. package/dist/authority/AuthorityFactory.mjs.map +1 -1
  22. package/dist/authority/AuthorityMetadata.d.ts +2 -2
  23. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  24. package/dist/authority/AuthorityMetadata.mjs +8 -8
  25. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  26. package/dist/authority/AuthorityOptions.d.ts +0 -1
  27. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  28. package/dist/authority/AuthorityOptions.mjs +1 -1
  29. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  30. package/dist/authority/AuthorityType.mjs +1 -1
  31. package/dist/authority/AuthorityType.mjs.map +1 -1
  32. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  33. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  34. package/dist/authority/OIDCOptions.d.ts +2 -2
  35. package/dist/authority/OIDCOptions.d.ts.map +1 -1
  36. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  37. package/dist/authority/ProtocolMode.mjs +1 -1
  38. package/dist/authority/ProtocolMode.mjs.map +1 -1
  39. package/dist/authority/RegionDiscovery.d.ts +3 -3
  40. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  41. package/dist/authority/RegionDiscovery.mjs +14 -15
  42. package/dist/authority/RegionDiscovery.mjs.map +1 -1
  43. package/dist/cache/CacheManager.d.ts +25 -17
  44. package/dist/cache/CacheManager.d.ts.map +1 -1
  45. package/dist/cache/CacheManager.mjs +69 -80
  46. package/dist/cache/CacheManager.mjs.map +1 -1
  47. package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
  48. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  49. package/dist/cache/entities/AccountEntity.d.ts +4 -56
  50. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  51. package/dist/cache/entities/CredentialEntity.d.ts +0 -2
  52. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  53. package/dist/cache/interface/ICacheManager.d.ts +41 -12
  54. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  55. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  56. package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
  57. package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
  58. package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  59. package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
  60. package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
  61. package/dist/cache/utils/CacheHelpers.d.ts +2 -2
  62. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  63. package/dist/cache/utils/CacheHelpers.mjs +10 -13
  64. package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
  65. package/dist/cache/utils/CacheTypes.d.ts +0 -1
  66. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  67. package/dist/client/AuthorizationCodeClient.d.ts +1 -1
  68. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  69. package/dist/client/AuthorizationCodeClient.mjs +16 -20
  70. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  71. package/dist/client/BaseClient.d.ts +3 -3
  72. package/dist/client/BaseClient.d.ts.map +1 -1
  73. package/dist/client/BaseClient.mjs +7 -12
  74. package/dist/client/BaseClient.mjs.map +1 -1
  75. package/dist/client/RefreshTokenClient.d.ts +1 -1
  76. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  77. package/dist/client/RefreshTokenClient.mjs +22 -27
  78. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  79. package/dist/client/SilentFlowClient.d.ts +1 -1
  80. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  81. package/dist/client/SilentFlowClient.mjs +8 -12
  82. package/dist/client/SilentFlowClient.mjs.map +1 -1
  83. package/dist/config/ClientConfiguration.d.ts +2 -22
  84. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  85. package/dist/config/ClientConfiguration.mjs +9 -15
  86. package/dist/config/ClientConfiguration.mjs.map +1 -1
  87. package/dist/constants/AADServerParamKeys.mjs +1 -1
  88. package/dist/crypto/ICrypto.d.ts +5 -3
  89. package/dist/crypto/ICrypto.d.ts.map +1 -1
  90. package/dist/crypto/ICrypto.mjs +1 -1
  91. package/dist/crypto/ICrypto.mjs.map +1 -1
  92. package/dist/crypto/JoseHeader.mjs +1 -1
  93. package/dist/crypto/JoseHeader.mjs.map +1 -1
  94. package/dist/crypto/PopTokenGenerator.d.ts +2 -2
  95. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  96. package/dist/crypto/PopTokenGenerator.mjs +3 -5
  97. package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
  98. package/dist/error/AuthError.d.ts +1 -18
  99. package/dist/error/AuthError.d.ts.map +1 -1
  100. package/dist/error/AuthError.mjs +12 -34
  101. package/dist/error/AuthError.mjs.map +1 -1
  102. package/dist/error/AuthErrorCodes.mjs +1 -1
  103. package/dist/error/CacheError.d.ts +1 -6
  104. package/dist/error/CacheError.d.ts.map +1 -1
  105. package/dist/error/CacheError.mjs +6 -13
  106. package/dist/error/CacheError.mjs.map +1 -1
  107. package/dist/error/CacheErrorCodes.mjs +1 -1
  108. package/dist/error/ClientAuthError.d.ts +0 -224
  109. package/dist/error/ClientAuthError.d.ts.map +1 -1
  110. package/dist/error/ClientAuthError.mjs +3 -235
  111. package/dist/error/ClientAuthError.mjs.map +1 -1
  112. package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
  113. package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
  114. package/dist/error/ClientAuthErrorCodes.mjs +2 -10
  115. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  116. package/dist/error/ClientConfigurationError.d.ts +0 -123
  117. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  118. package/dist/error/ClientConfigurationError.mjs +3 -129
  119. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  120. package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
  121. package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  122. package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
  123. package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  124. package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
  125. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  126. package/dist/error/InteractionRequiredAuthError.mjs +10 -35
  127. package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  128. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  129. package/dist/error/JoseHeaderError.d.ts +0 -4
  130. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  131. package/dist/error/JoseHeaderError.mjs +3 -8
  132. package/dist/error/JoseHeaderError.mjs.map +1 -1
  133. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  134. package/dist/error/NetworkError.mjs +1 -1
  135. package/dist/error/NetworkError.mjs.map +1 -1
  136. package/dist/error/ServerError.mjs +1 -1
  137. package/dist/error/ServerError.mjs.map +1 -1
  138. package/dist/exports-browser-only.d.ts +4 -3
  139. package/dist/exports-browser-only.d.ts.map +1 -1
  140. package/dist/exports-common.d.ts +8 -6
  141. package/dist/exports-common.d.ts.map +1 -1
  142. package/dist/exports-node-only.d.ts +1 -4
  143. package/dist/exports-node-only.d.ts.map +1 -1
  144. package/dist/index-browser.mjs +12 -8
  145. package/dist/index-browser.mjs.map +1 -1
  146. package/dist/index-node.mjs +10 -7
  147. package/dist/index-node.mjs.map +1 -1
  148. package/dist/index.mjs +12 -8
  149. package/dist/index.mjs.map +1 -1
  150. package/dist/logger/Logger.d.ts +12 -13
  151. package/dist/logger/Logger.d.ts.map +1 -1
  152. package/dist/logger/Logger.mjs +16 -21
  153. package/dist/logger/Logger.mjs.map +1 -1
  154. package/dist/network/INetworkModule.mjs +1 -1
  155. package/dist/network/INetworkModule.mjs.map +1 -1
  156. package/dist/network/RequestThumbprint.mjs +1 -1
  157. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  158. package/dist/network/ThrottlingUtils.mjs +6 -7
  159. package/dist/network/ThrottlingUtils.mjs.map +1 -1
  160. package/dist/packageMetadata.d.ts +1 -1
  161. package/dist/packageMetadata.d.ts.map +1 -1
  162. package/dist/packageMetadata.mjs +2 -2
  163. package/dist/protocol/Authorize.d.ts +1 -2
  164. package/dist/protocol/Authorize.d.ts.map +1 -1
  165. package/dist/protocol/Authorize.mjs +14 -14
  166. package/dist/protocol/Authorize.mjs.map +1 -1
  167. package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
  168. package/dist/request/AuthenticationHeaderParser.mjs +3 -3
  169. package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
  170. package/dist/request/BaseAuthRequest.d.ts +1 -7
  171. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  172. package/dist/request/RequestParameterBuilder.d.ts +3 -9
  173. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  174. package/dist/request/RequestParameterBuilder.mjs +7 -20
  175. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  176. package/dist/request/ScopeSet.mjs +5 -5
  177. package/dist/request/ScopeSet.mjs.map +1 -1
  178. package/dist/response/AuthenticationResult.d.ts +1 -1
  179. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  180. package/dist/response/ResponseHandler.d.ts +6 -5
  181. package/dist/response/ResponseHandler.d.ts.map +1 -1
  182. package/dist/response/ResponseHandler.mjs +39 -41
  183. package/dist/response/ResponseHandler.mjs.map +1 -1
  184. package/dist/telemetry/performance/IPerformanceClient.d.ts +0 -29
  185. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  186. package/dist/telemetry/performance/PerformanceClient.d.ts +5 -81
  187. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  188. package/dist/telemetry/performance/PerformanceClient.mjs +24 -166
  189. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  190. package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -280
  191. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  192. package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
  193. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  194. package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
  195. package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  196. package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
  197. package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
  198. package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  199. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  200. package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
  201. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  202. package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  203. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  204. package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
  205. package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  206. package/dist/url/UrlString.d.ts +0 -5
  207. package/dist/url/UrlString.d.ts.map +1 -1
  208. package/dist/url/UrlString.mjs +5 -13
  209. package/dist/url/UrlString.mjs.map +1 -1
  210. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  211. package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
  212. package/dist/utils/Constants.d.ts +81 -117
  213. package/dist/utils/Constants.d.ts.map +1 -1
  214. package/dist/utils/Constants.mjs +100 -131
  215. package/dist/utils/Constants.mjs.map +1 -1
  216. package/dist/utils/FunctionWrappers.d.ts +2 -2
  217. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  218. package/dist/utils/FunctionWrappers.mjs +19 -20
  219. package/dist/utils/FunctionWrappers.mjs.map +1 -1
  220. package/dist/utils/ProtocolUtils.mjs +7 -7
  221. package/dist/utils/ProtocolUtils.mjs.map +1 -1
  222. package/dist/utils/StringUtils.mjs +1 -1
  223. package/dist/utils/StringUtils.mjs.map +1 -1
  224. package/dist/utils/TimeUtils.mjs +1 -1
  225. package/dist/utils/TimeUtils.mjs.map +1 -1
  226. package/dist/utils/UrlUtils.d.ts +1 -2
  227. package/dist/utils/UrlUtils.d.ts.map +1 -1
  228. package/dist/utils/UrlUtils.mjs +3 -10
  229. package/dist/utils/UrlUtils.mjs.map +1 -1
  230. package/lib/index-browser.cjs +26 -201
  231. package/lib/index-browser.cjs.map +1 -1
  232. package/lib/{index-node-C8h2xZEM.js → index-node-FrCFfFuh.js} +1606 -2487
  233. package/lib/index-node-FrCFfFuh.js.map +1 -0
  234. package/lib/index-node.cjs +4 -33
  235. package/lib/index-node.cjs.map +1 -1
  236. package/lib/index.cjs +3 -33
  237. package/lib/index.cjs.map +1 -1
  238. package/lib/types/account/AccountInfo.d.ts +0 -1
  239. package/lib/types/account/AccountInfo.d.ts.map +1 -1
  240. package/lib/types/account/ClientInfo.d.ts.map +1 -1
  241. package/lib/types/authority/Authority.d.ts +2 -2
  242. package/lib/types/authority/Authority.d.ts.map +1 -1
  243. package/lib/types/authority/AuthorityFactory.d.ts +6 -2
  244. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
  245. package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
  246. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
  247. package/lib/types/authority/AuthorityOptions.d.ts +0 -1
  248. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
  249. package/lib/types/authority/OIDCOptions.d.ts +2 -2
  250. package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
  251. package/lib/types/authority/RegionDiscovery.d.ts +3 -3
  252. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
  253. package/lib/types/cache/CacheManager.d.ts +25 -17
  254. package/lib/types/cache/CacheManager.d.ts.map +1 -1
  255. package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
  256. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  257. package/lib/types/cache/entities/AccountEntity.d.ts +4 -56
  258. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
  259. package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
  260. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
  261. package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
  262. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
  263. package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
  264. package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  265. package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
  266. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
  267. package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
  268. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
  269. package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
  270. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  271. package/lib/types/client/BaseClient.d.ts +3 -3
  272. package/lib/types/client/BaseClient.d.ts.map +1 -1
  273. package/lib/types/client/RefreshTokenClient.d.ts +1 -1
  274. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
  275. package/lib/types/client/SilentFlowClient.d.ts +1 -1
  276. package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
  277. package/lib/types/config/ClientConfiguration.d.ts +2 -22
  278. package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
  279. package/lib/types/crypto/ICrypto.d.ts +5 -3
  280. package/lib/types/crypto/ICrypto.d.ts.map +1 -1
  281. package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
  282. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
  283. package/lib/types/error/AuthError.d.ts +1 -18
  284. package/lib/types/error/AuthError.d.ts.map +1 -1
  285. package/lib/types/error/CacheError.d.ts +1 -6
  286. package/lib/types/error/CacheError.d.ts.map +1 -1
  287. package/lib/types/error/ClientAuthError.d.ts +0 -224
  288. package/lib/types/error/ClientAuthError.d.ts.map +1 -1
  289. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  290. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
  291. package/lib/types/error/ClientConfigurationError.d.ts +0 -123
  292. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
  293. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
  294. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  295. package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
  296. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
  297. package/lib/types/error/JoseHeaderError.d.ts +0 -4
  298. package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
  299. package/lib/types/exports-browser-only.d.ts +4 -3
  300. package/lib/types/exports-browser-only.d.ts.map +1 -1
  301. package/lib/types/exports-common.d.ts +8 -6
  302. package/lib/types/exports-common.d.ts.map +1 -1
  303. package/lib/types/exports-node-only.d.ts +1 -4
  304. package/lib/types/exports-node-only.d.ts.map +1 -1
  305. package/lib/types/logger/Logger.d.ts +12 -13
  306. package/lib/types/logger/Logger.d.ts.map +1 -1
  307. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
  308. package/lib/types/packageMetadata.d.ts +1 -1
  309. package/lib/types/packageMetadata.d.ts.map +1 -1
  310. package/lib/types/protocol/Authorize.d.ts +1 -2
  311. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  312. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
  313. package/lib/types/request/BaseAuthRequest.d.ts +1 -7
  314. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
  315. package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
  316. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
  317. package/lib/types/response/AuthenticationResult.d.ts +1 -1
  318. package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
  319. package/lib/types/response/ResponseHandler.d.ts +6 -5
  320. package/lib/types/response/ResponseHandler.d.ts.map +1 -1
  321. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -29
  322. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  323. package/lib/types/telemetry/performance/PerformanceClient.d.ts +5 -81
  324. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  325. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -280
  326. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  327. package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
  328. package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  329. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  330. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  331. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  332. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  333. package/lib/types/url/UrlString.d.ts +0 -5
  334. package/lib/types/url/UrlString.d.ts.map +1 -1
  335. package/lib/types/utils/Constants.d.ts +81 -117
  336. package/lib/types/utils/Constants.d.ts.map +1 -1
  337. package/lib/types/utils/FunctionWrappers.d.ts +2 -2
  338. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
  339. package/lib/types/utils/UrlUtils.d.ts +1 -2
  340. package/lib/types/utils/UrlUtils.d.ts.map +1 -1
  341. package/package.json +120 -122
  342. package/src/account/AccountInfo.ts +0 -1
  343. package/src/account/ClientInfo.ts +3 -6
  344. package/src/authority/Authority.ts +145 -146
  345. package/src/authority/AuthorityFactory.ts +7 -7
  346. package/src/authority/AuthorityMetadata.ts +21 -12
  347. package/src/authority/AuthorityOptions.ts +0 -1
  348. package/src/authority/OIDCOptions.ts +2 -2
  349. package/src/authority/RegionDiscovery.ts +20 -33
  350. package/src/cache/CacheManager.ts +176 -126
  351. package/src/cache/entities/AccessTokenEntity.ts +0 -4
  352. package/src/cache/entities/AccountEntity.ts +4 -285
  353. package/src/cache/entities/CredentialEntity.ts +0 -2
  354. package/src/cache/interface/ICacheManager.ts +61 -15
  355. package/src/cache/utils/AccountEntityUtils.ts +287 -0
  356. package/src/cache/utils/CacheHelpers.ts +23 -37
  357. package/src/cache/utils/CacheTypes.ts +0 -1
  358. package/src/client/AuthorizationCodeClient.ts +28 -49
  359. package/src/client/BaseClient.ts +8 -20
  360. package/src/client/RefreshTokenClient.ts +29 -61
  361. package/src/client/SilentFlowClient.ts +11 -20
  362. package/src/config/ClientConfiguration.ts +9 -37
  363. package/src/crypto/ICrypto.ts +5 -3
  364. package/src/crypto/PopTokenGenerator.ts +3 -13
  365. package/src/error/AuthError.ts +11 -30
  366. package/src/error/CacheError.ts +4 -15
  367. package/src/error/ClientAuthError.ts +1 -311
  368. package/src/error/ClientAuthErrorCodes.ts +0 -8
  369. package/src/error/ClientConfigurationError.ts +1 -194
  370. package/src/error/ClientConfigurationErrorCodes.ts +0 -3
  371. package/src/error/InteractionRequiredAuthError.ts +8 -48
  372. package/src/error/JoseHeaderError.ts +1 -8
  373. package/src/exports-browser-only.ts +2 -6
  374. package/src/exports-common.ts +4 -34
  375. package/src/exports-node-only.ts +1 -4
  376. package/src/logger/Logger.ts +26 -39
  377. package/src/network/ThrottlingUtils.ts +12 -15
  378. package/src/packageMetadata.ts +1 -1
  379. package/src/protocol/Authorize.ts +24 -20
  380. package/src/request/AuthenticationHeaderParser.ts +2 -4
  381. package/src/request/BaseAuthRequest.ts +1 -7
  382. package/src/request/RequestParameterBuilder.ts +30 -45
  383. package/src/request/ScopeSet.ts +4 -4
  384. package/src/response/AuthenticationResult.ts +1 -1
  385. package/src/response/ResponseHandler.ts +53 -58
  386. package/src/telemetry/performance/IPerformanceClient.ts +0 -40
  387. package/src/telemetry/performance/PerformanceClient.ts +29 -266
  388. package/src/telemetry/performance/PerformanceEvent.ts +0 -582
  389. package/src/telemetry/performance/PerformanceEvents.ts +97 -0
  390. package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
  391. package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
  392. package/src/url/UrlString.ts +3 -12
  393. package/src/utils/Constants.ts +103 -146
  394. package/src/utils/FunctionWrappers.ts +28 -29
  395. package/src/utils/ProtocolUtils.ts +6 -6
  396. package/src/utils/UrlUtils.ts +2 -15
  397. package/dist/cache/entities/AccountEntity.mjs +0 -226
  398. package/dist/cache/entities/AccountEntity.mjs.map +0 -1
  399. package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
  400. package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  401. package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
  402. package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  403. package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
  404. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  405. package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
  406. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  407. package/lib/index-node-C8h2xZEM.js.map +0 -1
  408. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
  409. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  410. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
  411. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  412. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
  413. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  414. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
  415. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  416. package/src/request/CommonClientCredentialRequest.ts +0 -23
  417. package/src/request/CommonDeviceCodeRequest.ts +0 -31
  418. package/src/request/CommonOnBehalfOfRequest.ts +0 -19
  419. package/src/request/CommonUsernamePasswordRequest.ts +0 -23
@@ -24,8 +24,4 @@ export type AccessTokenEntity = CredentialEntity & {
24
24
  refreshOn?: string;
25
25
  /** Matches the authentication scheme for which the token was issued (i.e. Bearer or pop) */
26
26
  tokenType?: AuthenticationScheme;
27
- /** Stringified claims object */
28
- requestedClaims?: string;
29
- /** Matches the SHA 256 hash of the claims object included in the token request */
30
- requestedClaimsHash?: string;
31
27
  };
@@ -3,26 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CacheAccountType } from "../../utils/Constants.js";
7
- import type { Authority } from "../../authority/Authority.js";
8
- import { ICrypto } from "../../crypto/ICrypto.js";
9
- import { ClientInfo, buildClientInfo } from "../../account/ClientInfo.js";
10
- import {
11
- AccountInfo,
12
- TenantProfile,
13
- buildTenantProfile,
14
- } from "../../account/AccountInfo.js";
15
- import {
16
- createClientAuthError,
17
- ClientAuthErrorCodes,
18
- } from "../../error/ClientAuthError.js";
19
- import { AuthorityType } from "../../authority/AuthorityType.js";
20
- import { Logger } from "../../logger/Logger.js";
21
- import {
22
- TokenClaims,
23
- getTenantIdFromIdTokenClaims,
24
- } from "../../account/TokenClaims.js";
25
- import { ProtocolMode } from "../../authority/ProtocolMode.js";
6
+ import { TenantProfile } from "../../account/AccountInfo.js";
26
7
 
27
8
  /**
28
9
  * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).
@@ -47,7 +28,7 @@ import { ProtocolMode } from "../../authority/ProtocolMode.js";
47
28
  * }
48
29
  * @internal
49
30
  */
50
- export class AccountEntity {
31
+ export type AccountEntity = {
51
32
  homeAccountId: string;
52
33
  environment: string;
53
34
  realm: string;
@@ -63,268 +44,6 @@ export class AccountEntity {
63
44
  msGraphHost?: string;
64
45
  nativeAccountId?: string;
65
46
  tenantProfiles?: Array<TenantProfile>;
47
+ /** Timestamp when the entry was last updated */
66
48
  lastUpdatedAt: string;
67
-
68
- /**
69
- * Returns the AccountInfo interface for this account.
70
- */
71
- getAccountInfo(): AccountInfo {
72
- return {
73
- homeAccountId: this.homeAccountId,
74
- environment: this.environment,
75
- tenantId: this.realm,
76
- username: this.username,
77
- localAccountId: this.localAccountId,
78
- loginHint: this.loginHint,
79
- name: this.name,
80
- nativeAccountId: this.nativeAccountId,
81
- authorityType: this.authorityType,
82
- // Deserialize tenant profiles array into a Map
83
- tenantProfiles: new Map(
84
- (this.tenantProfiles || []).map((tenantProfile) => {
85
- return [tenantProfile.tenantId, tenantProfile];
86
- })
87
- ),
88
- };
89
- }
90
-
91
- /**
92
- * Returns true if the account entity is in single tenant format (outdated), false otherwise
93
- */
94
- isSingleTenant(): boolean {
95
- return !this.tenantProfiles;
96
- }
97
-
98
- /**
99
- * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
100
- * @param accountDetails
101
- */
102
- static createAccount(
103
- accountDetails: {
104
- homeAccountId: string;
105
- idTokenClaims?: TokenClaims;
106
- clientInfo?: string;
107
- cloudGraphHostName?: string;
108
- msGraphHost?: string;
109
- environment?: string;
110
- nativeAccountId?: string;
111
- tenantProfiles?: Array<TenantProfile>;
112
- },
113
- authority: Authority,
114
- base64Decode?: (input: string) => string
115
- ): AccountEntity {
116
- const account: AccountEntity = new AccountEntity();
117
-
118
- if (authority.authorityType === AuthorityType.Adfs) {
119
- account.authorityType = CacheAccountType.ADFS_ACCOUNT_TYPE;
120
- } else if (authority.protocolMode === ProtocolMode.OIDC) {
121
- account.authorityType = CacheAccountType.GENERIC_ACCOUNT_TYPE;
122
- } else {
123
- account.authorityType = CacheAccountType.MSSTS_ACCOUNT_TYPE;
124
- }
125
-
126
- let clientInfo: ClientInfo | undefined;
127
-
128
- if (accountDetails.clientInfo && base64Decode) {
129
- clientInfo = buildClientInfo(
130
- accountDetails.clientInfo,
131
- base64Decode
132
- );
133
- }
134
-
135
- account.clientInfo = accountDetails.clientInfo;
136
- account.homeAccountId = accountDetails.homeAccountId;
137
- account.nativeAccountId = accountDetails.nativeAccountId;
138
-
139
- const env =
140
- accountDetails.environment ||
141
- (authority && authority.getPreferredCache());
142
-
143
- if (!env) {
144
- throw createClientAuthError(
145
- ClientAuthErrorCodes.invalidCacheEnvironment
146
- );
147
- }
148
-
149
- account.environment = env;
150
- // non AAD scenarios can have empty realm
151
- account.realm =
152
- clientInfo?.utid ||
153
- getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) ||
154
- "";
155
-
156
- // How do you account for MSA CID here?
157
- account.localAccountId =
158
- clientInfo?.uid ||
159
- accountDetails.idTokenClaims?.oid ||
160
- accountDetails.idTokenClaims?.sub ||
161
- "";
162
-
163
- /*
164
- * In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
165
- * In most cases it will contain a single email. This field should not be relied upon if a custom
166
- * policy is configured to return more than 1 email.
167
- */
168
- const preferredUsername =
169
- accountDetails.idTokenClaims?.preferred_username ||
170
- accountDetails.idTokenClaims?.upn;
171
- const email = accountDetails.idTokenClaims?.emails
172
- ? accountDetails.idTokenClaims.emails[0]
173
- : null;
174
-
175
- account.username = preferredUsername || email || "";
176
- account.loginHint = accountDetails.idTokenClaims?.login_hint;
177
- account.name = accountDetails.idTokenClaims?.name || "";
178
-
179
- account.cloudGraphHostName = accountDetails.cloudGraphHostName;
180
- account.msGraphHost = accountDetails.msGraphHost;
181
-
182
- if (accountDetails.tenantProfiles) {
183
- account.tenantProfiles = accountDetails.tenantProfiles;
184
- } else {
185
- const tenantProfile = buildTenantProfile(
186
- accountDetails.homeAccountId,
187
- account.localAccountId,
188
- account.realm,
189
- accountDetails.idTokenClaims
190
- );
191
- account.tenantProfiles = [tenantProfile];
192
- }
193
-
194
- return account;
195
- }
196
-
197
- /**
198
- * Creates an AccountEntity object from AccountInfo
199
- * @param accountInfo
200
- * @param cloudGraphHostName
201
- * @param msGraphHost
202
- * @returns
203
- */
204
- static createFromAccountInfo(
205
- accountInfo: AccountInfo,
206
- cloudGraphHostName?: string,
207
- msGraphHost?: string
208
- ): AccountEntity {
209
- const account: AccountEntity = new AccountEntity();
210
-
211
- account.authorityType =
212
- accountInfo.authorityType || CacheAccountType.GENERIC_ACCOUNT_TYPE;
213
- account.homeAccountId = accountInfo.homeAccountId;
214
- account.localAccountId = accountInfo.localAccountId;
215
- account.nativeAccountId = accountInfo.nativeAccountId;
216
-
217
- account.realm = accountInfo.tenantId;
218
- account.environment = accountInfo.environment;
219
-
220
- account.username = accountInfo.username;
221
- account.name = accountInfo.name;
222
- account.loginHint = accountInfo.loginHint;
223
-
224
- account.cloudGraphHostName = cloudGraphHostName;
225
- account.msGraphHost = msGraphHost;
226
- // Serialize tenant profiles map into an array
227
- account.tenantProfiles = Array.from(
228
- accountInfo.tenantProfiles?.values() || []
229
- );
230
-
231
- return account;
232
- }
233
-
234
- /**
235
- * Generate HomeAccountId from server response
236
- * @param serverClientInfo
237
- * @param authType
238
- */
239
- static generateHomeAccountId(
240
- serverClientInfo: string,
241
- authType: AuthorityType,
242
- logger: Logger,
243
- cryptoObj: ICrypto,
244
- idTokenClaims?: TokenClaims
245
- ): string {
246
- // since ADFS/DSTS do not have tid and does not set client_info
247
- if (
248
- !(
249
- authType === AuthorityType.Adfs ||
250
- authType === AuthorityType.Dsts
251
- )
252
- ) {
253
- // for cases where there is clientInfo
254
- if (serverClientInfo) {
255
- try {
256
- const clientInfo = buildClientInfo(
257
- serverClientInfo,
258
- cryptoObj.base64Decode
259
- );
260
- if (clientInfo.uid && clientInfo.utid) {
261
- return `${clientInfo.uid}.${clientInfo.utid}`;
262
- }
263
- } catch (e) {}
264
- }
265
- logger.warning("No client info in response");
266
- }
267
-
268
- // default to "sub" claim
269
- return idTokenClaims?.sub || "";
270
- }
271
-
272
- /**
273
- * Validates an entity: checks for all expected params
274
- * @param entity
275
- */
276
- static isAccountEntity(entity: object): boolean {
277
- if (!entity) {
278
- return false;
279
- }
280
-
281
- return (
282
- entity.hasOwnProperty("homeAccountId") &&
283
- entity.hasOwnProperty("environment") &&
284
- entity.hasOwnProperty("realm") &&
285
- entity.hasOwnProperty("localAccountId") &&
286
- entity.hasOwnProperty("username") &&
287
- entity.hasOwnProperty("authorityType")
288
- );
289
- }
290
-
291
- /**
292
- * Helper function to determine whether 2 accountInfo objects represent the same account
293
- * @param accountA
294
- * @param accountB
295
- * @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
296
- */
297
- static accountInfoIsEqual(
298
- accountA: AccountInfo | null,
299
- accountB: AccountInfo | null,
300
- compareClaims?: boolean
301
- ): boolean {
302
- if (!accountA || !accountB) {
303
- return false;
304
- }
305
-
306
- let claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false
307
- if (compareClaims) {
308
- const accountAClaims = (accountA.idTokenClaims ||
309
- {}) as TokenClaims;
310
- const accountBClaims = (accountB.idTokenClaims ||
311
- {}) as TokenClaims;
312
-
313
- // issued at timestamp and nonce are expected to change each time a new id token is acquired
314
- claimsMatch =
315
- accountAClaims.iat === accountBClaims.iat &&
316
- accountAClaims.nonce === accountBClaims.nonce;
317
- }
318
-
319
- return (
320
- accountA.homeAccountId === accountB.homeAccountId &&
321
- accountA.localAccountId === accountB.localAccountId &&
322
- accountA.username === accountB.username &&
323
- accountA.tenantId === accountB.tenantId &&
324
- accountA.loginHint === accountB.loginHint &&
325
- accountA.environment === accountB.environment &&
326
- accountA.nativeAccountId === accountB.nativeAccountId &&
327
- claimsMatch
328
- );
329
- }
330
- }
49
+ };
@@ -31,8 +31,6 @@ export type CredentialEntity = {
31
31
  tokenType?: AuthenticationScheme;
32
32
  /** KeyId for PoP and SSH tokens stored in the kid claim */
33
33
  keyId?: string;
34
- /** Matches the SHA 256 hash of the claims object included in the token request */
35
- requestedClaimsHash?: string;
36
34
  /** Timestamp when the entry was last updated */
37
35
  lastUpdatedAt: string;
38
36
  };
@@ -20,18 +20,21 @@ export interface ICacheManager {
20
20
  /**
21
21
  * fetch the account entity from the platform cache
22
22
  * @param accountKey
23
+ * @param correlationId
23
24
  */
24
25
  getAccount(accountKey: string, correlationId: string): AccountEntity | null;
25
26
 
26
27
  /**
27
28
  * set account entity in the platform cache
28
29
  * @param account
30
+ * @param correlationId
29
31
  */
30
32
  setAccount(account: AccountEntity, correlationId: string): Promise<void>;
31
33
 
32
34
  /**
33
35
  * fetch the idToken entity from the platform cache
34
36
  * @param idTokenKey
37
+ * @param correlationId
35
38
  */
36
39
  getIdTokenCredential(
37
40
  idTokenKey: string,
@@ -41,6 +44,7 @@ export interface ICacheManager {
41
44
  /**
42
45
  * set idToken entity to the platform cache
43
46
  * @param idToken
47
+ * @param correlationId
44
48
  */
45
49
  setIdTokenCredential(
46
50
  idToken: IdTokenEntity,
@@ -50,6 +54,7 @@ export interface ICacheManager {
50
54
  /**
51
55
  * fetch the idToken entity from the platform cache
52
56
  * @param accessTokenKey
57
+ * @param correlationId
53
58
  */
54
59
  getAccessTokenCredential(
55
60
  accessTokenKey: string,
@@ -59,6 +64,7 @@ export interface ICacheManager {
59
64
  /**
60
65
  * set idToken entity to the platform cache
61
66
  * @param accessToken
67
+ * @param correlationId
62
68
  */
63
69
  setAccessTokenCredential(
64
70
  accessToken: AccessTokenEntity,
@@ -68,6 +74,7 @@ export interface ICacheManager {
68
74
  /**
69
75
  * fetch the idToken entity from the platform cache
70
76
  * @param refreshTokenKey
77
+ * @param correlationId
71
78
  */
72
79
  getRefreshTokenCredential(
73
80
  refreshTokenKey: string,
@@ -77,6 +84,7 @@ export interface ICacheManager {
77
84
  /**
78
85
  * set idToken entity to the platform cache
79
86
  * @param refreshToken
87
+ * @param correlationId
80
88
  */
81
89
  setRefreshTokenCredential(
82
90
  refreshToken: RefreshTokenEntity,
@@ -86,27 +94,35 @@ export interface ICacheManager {
86
94
  /**
87
95
  * fetch appMetadata entity from the platform cache
88
96
  * @param appMetadataKey
97
+ * @param correlationId
89
98
  */
90
- getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
99
+ getAppMetadata(
100
+ appMetadataKey: string,
101
+ correlationId: string
102
+ ): AppMetadataEntity | null;
91
103
 
92
104
  /**
93
105
  * set appMetadata entity to the platform cache
94
106
  * @param appMetadata
107
+ * @param correlationId
95
108
  */
96
109
  setAppMetadata(appMetadata: AppMetadataEntity, correlationId: string): void;
97
110
 
98
111
  /**
99
112
  * fetch server telemetry entity from the platform cache
100
113
  * @param serverTelemetryKey
114
+ * @param correlationId
101
115
  */
102
116
  getServerTelemetry(
103
- serverTelemetryKey: string
117
+ serverTelemetryKey: string,
118
+ correlationId: string
104
119
  ): ServerTelemetryEntity | null;
105
120
 
106
121
  /**
107
122
  * set server telemetry entity to the platform cache
108
123
  * @param serverTelemetryKey
109
124
  * @param serverTelemetry
125
+ * @param correlationId
110
126
  */
111
127
  setServerTelemetry(
112
128
  serverTelemetryKey: string,
@@ -117,43 +133,66 @@ export interface ICacheManager {
117
133
  /**
118
134
  * fetch cloud discovery metadata entity from the platform cache
119
135
  * @param key
136
+ * @param correlationId
120
137
  */
121
- getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
138
+ getAuthorityMetadata(
139
+ key: string,
140
+ correlationId: string
141
+ ): AuthorityMetadataEntity | null;
122
142
 
123
143
  /**
124
144
  * Get cache keys for authority metadata
145
+ * @param correlationId
125
146
  */
126
- getAuthorityMetadataKeys(): Array<string>;
147
+ getAuthorityMetadataKeys(correlationId: string): Array<string>;
127
148
 
128
149
  /**
129
150
  * set cloud discovery metadata entity to the platform cache
130
151
  * @param key
131
152
  * @param value
153
+ * @param correlationId
132
154
  */
133
- setAuthorityMetadata(key: string, value: AuthorityMetadataEntity): void;
155
+ setAuthorityMetadata(
156
+ key: string,
157
+ value: AuthorityMetadataEntity,
158
+ correlationId: string
159
+ ): void;
134
160
 
135
161
  /**
136
162
  * Provide an alias to find a matching AuthorityMetadataEntity in cache
137
163
  * @param host
164
+ * @param correlationId
138
165
  */
139
- getAuthorityMetadataByAlias(host: string): AuthorityMetadataEntity | null;
166
+ getAuthorityMetadataByAlias(
167
+ host: string,
168
+ correlationId: string
169
+ ): AuthorityMetadataEntity | null;
140
170
 
141
171
  /**
142
172
  * given an authority generates the cache key for authorityMetadata
143
173
  * @param authority
174
+ * @param correlationId
144
175
  */
145
- generateAuthorityMetadataCacheKey(authority: string): string;
176
+ generateAuthorityMetadataCacheKey(
177
+ authority: string,
178
+ correlationId: string
179
+ ): string;
146
180
 
147
181
  /**
148
182
  * fetch throttling entity from the platform cache
149
183
  * @param throttlingCacheKey
184
+ * @param correlationId
150
185
  */
151
- getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
186
+ getThrottlingCache(
187
+ throttlingCacheKey: string,
188
+ correlationId: string
189
+ ): ThrottlingEntity | null;
152
190
 
153
191
  /**
154
192
  * set throttling entity to the platform cache
155
193
  * @param throttlingCacheKey
156
194
  * @param throttlingCache
195
+ * @param correlationId
157
196
  */
158
197
  setThrottlingCache(
159
198
  throttlingCacheKey: string,
@@ -163,15 +202,16 @@ export interface ICacheManager {
163
202
 
164
203
  /**
165
204
  * Returns all accounts in cache
205
+ * @param filter
206
+ * @param correlationId
166
207
  */
167
- getAllAccounts(
168
- accountFilter: AccountFilter,
169
- correlationId: string
170
- ): AccountInfo[];
208
+ getAllAccounts(filter: AccountFilter, correlationId: string): AccountInfo[];
171
209
 
172
210
  /**
173
211
  * saves a cache record
174
212
  * @param cacheRecord
213
+ * @param correlationId
214
+ * @param storeInCache
175
215
  */
176
216
  saveCacheRecord(
177
217
  cacheRecord: CacheRecord,
@@ -181,9 +221,8 @@ export interface ICacheManager {
181
221
 
182
222
  /**
183
223
  * retrieve accounts matching all provided filters; if no filter is set, get all accounts
184
- * @param homeAccountId
185
- * @param environment
186
- * @param realm
224
+ * @param filter
225
+ * @param correlationId
187
226
  */
188
227
  getAccountsFilteredBy(
189
228
  filter: AccountFilter,
@@ -193,6 +232,7 @@ export interface ICacheManager {
193
232
  /**
194
233
  * Get AccountInfo object based on provided filters
195
234
  * @param filter
235
+ * @param correlationId
196
236
  */
197
237
  getAccountInfoFilteredBy(
198
238
  filter: AccountFilter,
@@ -201,33 +241,39 @@ export interface ICacheManager {
201
241
 
202
242
  /**
203
243
  * Removes all accounts and related tokens from cache.
244
+ * @param correlationId
204
245
  */
205
246
  removeAllAccounts(correlationId: string): void;
206
247
 
207
248
  /**
208
249
  * returns a boolean if the given account is removed
209
250
  * @param account
251
+ * @param correlationId
210
252
  */
211
253
  removeAccount(account: AccountInfo, correlationId: string): void;
212
254
 
213
255
  /**
214
256
  * returns a boolean if the given account is removed
215
257
  * @param account
258
+ * @param correlationId
216
259
  */
217
260
  removeAccountContext(account: AccountInfo, correlationId: string): void;
218
261
 
219
262
  /**
220
263
  * @param key
264
+ * @param correlationId
221
265
  */
222
266
  removeIdToken(key: string, correlationId: string): void;
223
267
 
224
268
  /**
225
269
  * @param key
270
+ * @param correlationId
226
271
  */
227
272
  removeAccessToken(key: string, correlationId: string): void;
228
273
 
229
274
  /**
230
275
  * @param key
276
+ * @param correlationId
231
277
  */
232
278
  removeRefreshToken(key: string, correlationId: string): void;
233
279
  }