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