@azure/msal-common 12.1.0 → 14.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 (289) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +62 -62
  3. package/dist/account/AccountInfo.d.ts +2 -2
  4. package/dist/account/AccountInfo.d.ts.map +1 -1
  5. package/dist/account/AuthToken.d.ts.map +1 -1
  6. package/dist/account/AuthToken.js +13 -14
  7. package/dist/account/AuthToken.js.map +1 -1
  8. package/dist/account/CcsCredential.d.ts +1 -1
  9. package/dist/account/CcsCredential.d.ts.map +1 -1
  10. package/dist/account/CcsCredential.js +1 -1
  11. package/dist/account/CcsCredential.js.map +1 -1
  12. package/dist/account/ClientCredentials.d.ts +2 -2
  13. package/dist/account/ClientCredentials.d.ts.map +1 -1
  14. package/dist/account/ClientInfo.d.ts +1 -1
  15. package/dist/account/ClientInfo.d.ts.map +1 -1
  16. package/dist/account/ClientInfo.js +6 -4
  17. package/dist/account/ClientInfo.js.map +1 -1
  18. package/dist/account/DecodedAuthToken.d.ts.map +1 -1
  19. package/dist/account/TokenClaims.d.ts +1 -1
  20. package/dist/account/TokenClaims.d.ts.map +1 -1
  21. package/dist/authority/Authority.d.ts.map +1 -1
  22. package/dist/authority/Authority.js +464 -546
  23. package/dist/authority/Authority.js.map +1 -1
  24. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  25. package/dist/authority/AuthorityFactory.js +19 -34
  26. package/dist/authority/AuthorityFactory.js.map +1 -1
  27. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  28. package/dist/authority/AuthorityMetadata.js +873 -4
  29. package/dist/authority/AuthorityMetadata.js.map +1 -1
  30. package/dist/authority/AuthorityOptions.d.ts +1 -1
  31. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  32. package/dist/authority/AuthorityOptions.js +1 -1
  33. package/dist/authority/AuthorityOptions.js.map +1 -1
  34. package/dist/authority/AuthorityType.js +1 -1
  35. package/dist/authority/AuthorityType.js.map +1 -1
  36. package/dist/authority/AzureRegion.d.ts +1 -1
  37. package/dist/authority/AzureRegion.d.ts.map +1 -1
  38. package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
  39. package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
  40. package/dist/authority/CloudDiscoveryMetadata.d.ts +1 -1
  41. package/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -1
  42. package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +1 -1
  43. package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -1
  44. package/dist/authority/CloudInstanceDiscoveryErrorResponse.js +1 -1
  45. package/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -1
  46. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
  47. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
  48. package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
  49. package/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -1
  50. package/dist/authority/ImdsOptions.d.ts +1 -1
  51. package/dist/authority/ImdsOptions.d.ts.map +1 -1
  52. package/dist/authority/OpenIdConfigResponse.d.ts +1 -1
  53. package/dist/authority/OpenIdConfigResponse.d.ts.map +1 -1
  54. package/dist/authority/OpenIdConfigResponse.js +1 -1
  55. package/dist/authority/OpenIdConfigResponse.js.map +1 -1
  56. package/dist/authority/ProtocolMode.js +1 -1
  57. package/dist/authority/ProtocolMode.js.map +1 -1
  58. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  59. package/dist/authority/RegionDiscovery.js +85 -107
  60. package/dist/authority/RegionDiscovery.js.map +1 -1
  61. package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
  62. package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
  63. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
  64. package/dist/cache/CacheManager.d.ts.map +1 -1
  65. package/dist/cache/CacheManager.js +440 -475
  66. package/dist/cache/CacheManager.js.map +1 -1
  67. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  68. package/dist/cache/entities/AccessTokenEntity.js +21 -22
  69. package/dist/cache/entities/AccessTokenEntity.js.map +1 -1
  70. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  71. package/dist/cache/entities/AccountEntity.js +78 -66
  72. package/dist/cache/entities/AccountEntity.js.map +1 -1
  73. package/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -1
  74. package/dist/cache/entities/AppMetadataEntity.js +16 -17
  75. package/dist/cache/entities/AppMetadataEntity.js.map +1 -1
  76. package/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -1
  77. package/dist/cache/entities/AuthorityMetadataEntity.js +22 -19
  78. package/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -1
  79. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  80. package/dist/cache/entities/CacheRecord.js +4 -5
  81. package/dist/cache/entities/CacheRecord.js.map +1 -1
  82. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  83. package/dist/cache/entities/CredentialEntity.js +35 -34
  84. package/dist/cache/entities/CredentialEntity.js.map +1 -1
  85. package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
  86. package/dist/cache/entities/IdTokenEntity.js +8 -14
  87. package/dist/cache/entities/IdTokenEntity.js.map +1 -1
  88. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  89. package/dist/cache/entities/RefreshTokenEntity.js +8 -14
  90. package/dist/cache/entities/RefreshTokenEntity.js.map +1 -1
  91. package/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -1
  92. package/dist/cache/entities/ServerTelemetryEntity.js +8 -9
  93. package/dist/cache/entities/ServerTelemetryEntity.js.map +1 -1
  94. package/dist/cache/entities/ThrottlingEntity.js +9 -11
  95. package/dist/cache/entities/ThrottlingEntity.js.map +1 -1
  96. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  97. package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
  98. package/dist/cache/persistence/TokenCacheContext.js +16 -25
  99. package/dist/cache/persistence/TokenCacheContext.js.map +1 -1
  100. package/dist/cache/utils/CacheTypes.d.ts +11 -11
  101. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  102. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  103. package/dist/client/AuthorizationCodeClient.js +341 -384
  104. package/dist/client/AuthorizationCodeClient.js.map +1 -1
  105. package/dist/client/BaseClient.d.ts.map +1 -1
  106. package/dist/client/BaseClient.js +27 -35
  107. package/dist/client/BaseClient.js.map +1 -1
  108. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  109. package/dist/client/RefreshTokenClient.js +208 -241
  110. package/dist/client/RefreshTokenClient.js.map +1 -1
  111. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  112. package/dist/client/SilentFlowClient.js +77 -105
  113. package/dist/client/SilentFlowClient.js.map +1 -1
  114. package/dist/config/AppTokenProvider.d.ts +2 -2
  115. package/dist/config/AppTokenProvider.d.ts.map +1 -1
  116. package/dist/config/ClientConfiguration.d.ts +9 -9
  117. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  118. package/dist/config/ClientConfiguration.js +40 -43
  119. package/dist/config/ClientConfiguration.js.map +1 -1
  120. package/dist/crypto/ICrypto.d.ts +2 -2
  121. package/dist/crypto/ICrypto.d.ts.map +1 -1
  122. package/dist/crypto/ICrypto.js +27 -58
  123. package/dist/crypto/ICrypto.js.map +1 -1
  124. package/dist/crypto/JoseHeader.d.ts +1 -1
  125. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  126. package/dist/crypto/JoseHeader.js +8 -9
  127. package/dist/crypto/JoseHeader.js.map +1 -1
  128. package/dist/crypto/PopTokenGenerator.d.ts +2 -2
  129. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  130. package/dist/crypto/PopTokenGenerator.js +47 -71
  131. package/dist/crypto/PopTokenGenerator.js.map +1 -1
  132. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  133. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  134. package/dist/error/AuthError.d.ts.map +1 -1
  135. package/dist/error/AuthError.js +25 -28
  136. package/dist/error/AuthError.js.map +1 -1
  137. package/dist/error/ClientAuthError.d.ts +8 -0
  138. package/dist/error/ClientAuthError.d.ts.map +1 -1
  139. package/dist/error/ClientAuthError.js +187 -181
  140. package/dist/error/ClientAuthError.js.map +1 -1
  141. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  142. package/dist/error/ClientConfigurationError.js +82 -86
  143. package/dist/error/ClientConfigurationError.js.map +1 -1
  144. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  145. package/dist/error/InteractionRequiredAuthError.js +36 -35
  146. package/dist/error/InteractionRequiredAuthError.js.map +1 -1
  147. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  148. package/dist/error/JoseHeaderError.js +14 -18
  149. package/dist/error/JoseHeaderError.js.map +1 -1
  150. package/dist/error/ServerError.d.ts.map +1 -1
  151. package/dist/error/ServerError.js +7 -11
  152. package/dist/error/ServerError.js.map +1 -1
  153. package/dist/index.cjs.js +4221 -4476
  154. package/dist/index.cjs.js.map +1 -1
  155. package/dist/index.d.ts +20 -21
  156. package/dist/index.d.ts.map +1 -1
  157. package/dist/index.js +5 -6
  158. package/dist/index.js.map +1 -1
  159. package/dist/logger/Logger.d.ts +1 -1
  160. package/dist/logger/Logger.d.ts.map +1 -1
  161. package/dist/logger/Logger.js +70 -60
  162. package/dist/logger/Logger.js.map +1 -1
  163. package/dist/network/INetworkModule.d.ts +1 -1
  164. package/dist/network/INetworkModule.d.ts.map +1 -1
  165. package/dist/network/INetworkModule.js +7 -7
  166. package/dist/network/INetworkModule.js.map +1 -1
  167. package/dist/network/NetworkManager.d.ts +4 -3
  168. package/dist/network/NetworkManager.d.ts.map +1 -1
  169. package/dist/network/NetworkManager.js +21 -35
  170. package/dist/network/NetworkManager.js.map +1 -1
  171. package/dist/network/RequestThumbprint.d.ts +1 -1
  172. package/dist/network/RequestThumbprint.d.ts.map +1 -1
  173. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  174. package/dist/network/ThrottlingUtils.js +37 -36
  175. package/dist/network/ThrottlingUtils.js.map +1 -1
  176. package/dist/packageMetadata.d.ts +1 -1
  177. package/dist/packageMetadata.d.ts.map +1 -1
  178. package/dist/packageMetadata.js +3 -3
  179. package/dist/packageMetadata.js.map +1 -1
  180. package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
  181. package/dist/request/AuthenticationHeaderParser.js +17 -18
  182. package/dist/request/AuthenticationHeaderParser.js.map +1 -1
  183. package/dist/request/BaseAuthRequest.d.ts +1 -1
  184. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  185. package/dist/request/CommonAuthorizationCodeRequest.d.ts +1 -1
  186. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  187. package/dist/request/CommonAuthorizationUrlRequest.d.ts +1 -1
  188. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  189. package/dist/request/CommonClientCredentialRequest.d.ts +1 -1
  190. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  191. package/dist/request/CommonDeviceCodeRequest.d.ts +1 -1
  192. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  193. package/dist/request/CommonEndSessionRequest.d.ts +1 -1
  194. package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
  195. package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
  196. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  197. package/dist/request/CommonRefreshTokenRequest.d.ts +1 -1
  198. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  199. package/dist/request/CommonSilentFlowRequest.d.ts +1 -1
  200. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  201. package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
  202. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  203. package/dist/request/NativeRequest.d.ts +1 -1
  204. package/dist/request/NativeRequest.d.ts.map +1 -1
  205. package/dist/request/NativeSignOutRequest.d.ts +1 -1
  206. package/dist/request/NativeSignOutRequest.d.ts.map +1 -1
  207. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  208. package/dist/request/RequestParameterBuilder.js +111 -113
  209. package/dist/request/RequestParameterBuilder.js.map +1 -1
  210. package/dist/request/RequestValidator.d.ts.map +1 -1
  211. package/dist/request/RequestValidator.js +23 -28
  212. package/dist/request/RequestValidator.js.map +1 -1
  213. package/dist/request/ScopeSet.d.ts.map +1 -1
  214. package/dist/request/ScopeSet.js +70 -70
  215. package/dist/request/ScopeSet.js.map +1 -1
  216. package/dist/response/AuthenticationResult.d.ts +1 -1
  217. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  218. package/dist/response/AuthorizationCodePayload.d.ts +1 -1
  219. package/dist/response/AuthorizationCodePayload.d.ts.map +1 -1
  220. package/dist/response/DeviceCodeResponse.d.ts +2 -2
  221. package/dist/response/DeviceCodeResponse.d.ts.map +1 -1
  222. package/dist/response/ExternalTokenResponse.d.ts +1 -1
  223. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  224. package/dist/response/IMDSBadResponse.d.ts +1 -1
  225. package/dist/response/IMDSBadResponse.d.ts.map +1 -1
  226. package/dist/response/ResponseHandler.d.ts.map +1 -1
  227. package/dist/response/ResponseHandler.js +195 -180
  228. package/dist/response/ResponseHandler.js.map +1 -1
  229. package/dist/response/ServerAuthorizationCodeResponse.d.ts +1 -1
  230. package/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -1
  231. package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
  232. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  233. package/dist/telemetry/performance/IPerformanceClient.d.ts +3 -4
  234. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  235. package/dist/telemetry/performance/PerformanceClient.d.ts +2 -10
  236. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  237. package/dist/telemetry/performance/PerformanceClient.js +134 -129
  238. package/dist/telemetry/performance/PerformanceClient.js.map +1 -1
  239. package/dist/telemetry/performance/PerformanceEvent.d.ts +4 -4
  240. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  241. package/dist/telemetry/performance/PerformanceEvent.js +2 -2
  242. package/dist/telemetry/performance/PerformanceEvent.js.map +1 -1
  243. package/dist/telemetry/performance/StubPerformanceClient.d.ts +5 -3
  244. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  245. package/dist/telemetry/performance/StubPerformanceClient.js +23 -32
  246. package/dist/telemetry/performance/StubPerformanceClient.js.map +1 -1
  247. package/dist/telemetry/server/ServerTelemetryManager.d.ts +1 -2
  248. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  249. package/dist/telemetry/server/ServerTelemetryManager.js +106 -68
  250. package/dist/telemetry/server/ServerTelemetryManager.js.map +1 -1
  251. package/dist/telemetry/server/ServerTelemetryRequest.d.ts +1 -1
  252. package/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -1
  253. package/dist/url/UrlString.d.ts.map +1 -1
  254. package/dist/url/UrlString.js +85 -74
  255. package/dist/url/UrlString.js.map +1 -1
  256. package/dist/utils/Constants.d.ts.map +1 -1
  257. package/dist/utils/Constants.js +28 -27
  258. package/dist/utils/Constants.js.map +1 -1
  259. package/dist/utils/MsalTypes.d.ts +1 -1
  260. package/dist/utils/MsalTypes.d.ts.map +1 -1
  261. package/dist/utils/ProtocolUtils.d.ts +2 -2
  262. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  263. package/dist/utils/ProtocolUtils.js +27 -24
  264. package/dist/utils/ProtocolUtils.js.map +1 -1
  265. package/dist/utils/StringUtils.d.ts.map +1 -1
  266. package/dist/utils/StringUtils.js +44 -42
  267. package/dist/utils/StringUtils.js.map +1 -1
  268. package/dist/utils/TimeUtils.d.ts.map +1 -1
  269. package/dist/utils/TimeUtils.js +16 -19
  270. package/dist/utils/TimeUtils.js.map +1 -1
  271. package/package.json +79 -76
  272. package/dist/_virtual/_tslib.js +0 -90
  273. package/dist/_virtual/_tslib.js.map +0 -1
  274. package/dist/client/ClientCredentialClient.d.ts +0 -38
  275. package/dist/client/ClientCredentialClient.d.ts.map +0 -1
  276. package/dist/client/ClientCredentialClient.js +0 -203
  277. package/dist/client/ClientCredentialClient.js.map +0 -1
  278. package/dist/client/DeviceCodeClient.d.ts +0 -57
  279. package/dist/client/DeviceCodeClient.d.ts.map +0 -1
  280. package/dist/client/DeviceCodeClient.js +0 -250
  281. package/dist/client/DeviceCodeClient.js.map +0 -1
  282. package/dist/client/OnBehalfOfClient.d.ts +0 -51
  283. package/dist/client/OnBehalfOfClient.d.ts.map +0 -1
  284. package/dist/client/OnBehalfOfClient.js +0 -248
  285. package/dist/client/OnBehalfOfClient.js.map +0 -1
  286. package/dist/client/UsernamePasswordClient.d.ts +0 -29
  287. package/dist/client/UsernamePasswordClient.d.ts.map +0 -1
  288. package/dist/client/UsernamePasswordClient.js +0 -129
  289. package/dist/client/UsernamePasswordClient.js.map +0 -1
@@ -1,6 +1,5 @@
1
- /*! @azure/msal-common v12.1.0 2023-04-18 */
1
+ /*! @azure/msal-common v14.0.0-alpha.1 2023-05-08 */
2
2
  'use strict';
3
- import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
3
  import { ThrottlingUtils } from './ThrottlingUtils.js';
5
4
  import { AuthError } from '../error/AuthError.js';
6
5
  import { ClientAuthError } from '../error/ClientAuthError.js';
@@ -9,8 +8,8 @@ import { ClientAuthError } from '../error/ClientAuthError.js';
9
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
10
9
  * Licensed under the MIT License.
11
10
  */
12
- var NetworkManager = /** @class */ (function () {
13
- function NetworkManager(networkClient, cacheManager) {
11
+ class NetworkManager {
12
+ constructor(networkClient, cacheManager) {
14
13
  this.networkClient = networkClient;
15
14
  this.cacheManager = cacheManager;
16
15
  }
@@ -20,37 +19,24 @@ var NetworkManager = /** @class */ (function () {
20
19
  * @param tokenEndpoint
21
20
  * @param options
22
21
  */
23
- NetworkManager.prototype.sendPostRequest = function (thumbprint, tokenEndpoint, options) {
24
- return __awaiter(this, void 0, void 0, function () {
25
- var response, e_1;
26
- return __generator(this, function (_a) {
27
- switch (_a.label) {
28
- case 0:
29
- ThrottlingUtils.preProcess(this.cacheManager, thumbprint);
30
- _a.label = 1;
31
- case 1:
32
- _a.trys.push([1, 3, , 4]);
33
- return [4 /*yield*/, this.networkClient.sendPostRequestAsync(tokenEndpoint, options)];
34
- case 2:
35
- response = _a.sent();
36
- return [3 /*break*/, 4];
37
- case 3:
38
- e_1 = _a.sent();
39
- if (e_1 instanceof AuthError) {
40
- throw e_1;
41
- }
42
- else {
43
- throw ClientAuthError.createNetworkError(tokenEndpoint, e_1);
44
- }
45
- case 4:
46
- ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);
47
- return [2 /*return*/, response];
48
- }
49
- });
50
- });
51
- };
52
- return NetworkManager;
53
- }());
22
+ async sendPostRequest(thumbprint, tokenEndpoint, options) {
23
+ ThrottlingUtils.preProcess(this.cacheManager, thumbprint);
24
+ let response;
25
+ try {
26
+ response = await this.networkClient.sendPostRequestAsync(tokenEndpoint, options);
27
+ }
28
+ catch (e) {
29
+ if (e instanceof AuthError) {
30
+ throw e;
31
+ }
32
+ else {
33
+ throw ClientAuthError.createNetworkError(tokenEndpoint, e);
34
+ }
35
+ }
36
+ ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);
37
+ return response;
38
+ }
39
+ }
54
40
 
55
41
  export { NetworkManager };
56
42
  //# sourceMappingURL=NetworkManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkManager.js","sources":["../../src/network/NetworkManager.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { INetworkModule, NetworkRequestOptions } from \"./INetworkModule\";\nimport { RequestThumbprint } from \"./RequestThumbprint\";\nimport { ThrottlingUtils } from \"./ThrottlingUtils\";\nimport { CacheManager } from \"../cache/CacheManager\";\nimport { AuthError } from \"../error/AuthError\";\nimport { ClientAuthError } from \"../error/ClientAuthError\";\n\nexport type NetworkResponse<T> = {\n headers: Record<string, string>;\n body: T;\n status: number;\n};\n\nexport type UrlToHttpRequestOptions = {\n protocol: string;\n hostname: string;\n hash: string;\n search: string;\n pathname: string;\n path: string;\n href: string;\n port?: number;\n auth?: string;\n};\n\nexport class NetworkManager {\n private networkClient: INetworkModule;\n private cacheManager: CacheManager;\n\n constructor(networkClient: INetworkModule, cacheManager: CacheManager) {\n this.networkClient = networkClient;\n this.cacheManager = cacheManager;\n }\n\n /**\n * Wraps sendPostRequestAsync with necessary preflight and postflight logic\n * @param thumbprint\n * @param tokenEndpoint\n * @param options\n */\n async sendPostRequest<T>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions): Promise<NetworkResponse<T>> {\n ThrottlingUtils.preProcess(this.cacheManager, thumbprint);\n\n let response;\n try {\n response = await this.networkClient.sendPostRequestAsync<T>(tokenEndpoint, options);\n } catch (e) {\n if (e instanceof AuthError) {\n throw e;\n } else {\n throw ClientAuthError.createNetworkError(tokenEndpoint, e);\n }\n }\n\n ThrottlingUtils.postProcess(this.cacheManager, thumbprint, response);\n\n return response;\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AA2BH,IAAA,cAAA,kBAAA,YAAA;IAII,SAAY,cAAA,CAAA,aAA6B,EAAE,YAA0B,EAAA;AACjE,QAAA,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;AACnC,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;;;;AAKG;AACG,IAAA,cAAA,CAAA,SAAA,CAAA,eAAe,GAArB,UAAyB,UAA6B,EAAE,aAAqB,EAAE,OAA8B,EAAA;;;;;;w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CAAC,YAAY,SAAS,EAAE;AACxB,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AAAM,iBAAA;gBACH,MAAM,eAAe,CAAC,kBAAkB,CACpC,aAAa,EACb,CAAW,CACd,CAAC;AACL,aAAA;AACJ,SAAA;QAED,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AAErE,QAAA,OAAO,QAAQ,CAAC;KACnB;AACJ;;;;"}
@@ -2,7 +2,7 @@ import { AuthenticationScheme } from "../utils/Constants";
2
2
  /**
3
3
  * Type representing a unique request thumbprint.
4
4
  */
5
- export declare type RequestThumbprint = {
5
+ export type RequestThumbprint = {
6
6
  clientId: string;
7
7
  authority: string;
8
8
  scopes: Array<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;GAEG;AACH,oBAAY,iBAAiB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"RequestThumbprint.d.ts","sourceRoot":"","sources":["../../src/network/RequestThumbprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;GAEG;AACH,MAAM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OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAc1D,MAAM,CAAC,cAAc,CACjB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,eAAe,EACxB,qBAAqB,CAAC,EAAE,MAAM,GAC/B,IAAI;CAiBV"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v12.1.0 2023-04-18 */
1
+ /*! @azure/msal-common v14.0.0-alpha.1 2023-05-08 */
2
2
  'use strict';
3
3
  import { ThrottlingConstants, Constants, HeaderNames } from '../utils/Constants.js';
4
4
  import { ServerError } from '../error/ServerError.js';
@@ -7,79 +7,81 @@ import { ServerError } from '../error/ServerError.js';
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
9
9
  */
10
- var ThrottlingUtils = /** @class */ (function () {
11
- function ThrottlingUtils() {
12
- }
10
+ class ThrottlingUtils {
13
11
  /**
14
12
  * Prepares a RequestThumbprint to be stored as a key.
15
13
  * @param thumbprint
16
14
  */
17
- ThrottlingUtils.generateThrottlingStorageKey = function (thumbprint) {
18
- return ThrottlingConstants.THROTTLING_PREFIX + "." + JSON.stringify(thumbprint);
19
- };
15
+ static generateThrottlingStorageKey(thumbprint) {
16
+ return `${ThrottlingConstants.THROTTLING_PREFIX}.${JSON.stringify(thumbprint)}`;
17
+ }
20
18
  /**
21
19
  * Performs necessary throttling checks before a network request.
22
20
  * @param cacheManager
23
21
  * @param thumbprint
24
22
  */
25
- ThrottlingUtils.preProcess = function (cacheManager, thumbprint) {
26
- var _a;
27
- var key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);
28
- var value = cacheManager.getThrottlingCache(key);
23
+ static preProcess(cacheManager, thumbprint) {
24
+ const key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);
25
+ const value = cacheManager.getThrottlingCache(key);
29
26
  if (value) {
30
27
  if (value.throttleTime < Date.now()) {
31
28
  cacheManager.removeItem(key);
32
29
  return;
33
30
  }
34
- throw new ServerError(((_a = value.errorCodes) === null || _a === void 0 ? void 0 : _a.join(" ")) || Constants.EMPTY_STRING, value.errorMessage, value.subError);
31
+ throw new ServerError(value.errorCodes?.join(" ") || Constants.EMPTY_STRING, value.errorMessage, value.subError);
35
32
  }
36
- };
33
+ }
37
34
  /**
38
35
  * Performs necessary throttling checks after a network request.
39
36
  * @param cacheManager
40
37
  * @param thumbprint
41
38
  * @param response
42
39
  */
43
- ThrottlingUtils.postProcess = function (cacheManager, thumbprint, response) {
44
- if (ThrottlingUtils.checkResponseStatus(response) || ThrottlingUtils.checkResponseForRetryAfter(response)) {
45
- var thumbprintValue = {
40
+ static postProcess(cacheManager, thumbprint, response) {
41
+ if (ThrottlingUtils.checkResponseStatus(response) ||
42
+ ThrottlingUtils.checkResponseForRetryAfter(response)) {
43
+ const thumbprintValue = {
46
44
  throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(response.headers[HeaderNames.RETRY_AFTER])),
47
45
  error: response.body.error,
48
46
  errorCodes: response.body.error_codes,
49
47
  errorMessage: response.body.error_description,
50
- subError: response.body.suberror
48
+ subError: response.body.suberror,
51
49
  };
52
50
  cacheManager.setThrottlingCache(ThrottlingUtils.generateThrottlingStorageKey(thumbprint), thumbprintValue);
53
51
  }
54
- };
52
+ }
55
53
  /**
56
54
  * Checks a NetworkResponse object's status codes against 429 or 5xx
57
55
  * @param response
58
56
  */
59
- ThrottlingUtils.checkResponseStatus = function (response) {
60
- return response.status === 429 || response.status >= 500 && response.status < 600;
61
- };
57
+ static checkResponseStatus(response) {
58
+ return (response.status === 429 ||
59
+ (response.status >= 500 && response.status < 600));
60
+ }
62
61
  /**
63
62
  * Checks a NetworkResponse object's RetryAfter header
64
63
  * @param response
65
64
  */
66
- ThrottlingUtils.checkResponseForRetryAfter = function (response) {
65
+ static checkResponseForRetryAfter(response) {
67
66
  if (response.headers) {
68
- return response.headers.hasOwnProperty(HeaderNames.RETRY_AFTER) && (response.status < 200 || response.status >= 300);
67
+ return (response.headers.hasOwnProperty(HeaderNames.RETRY_AFTER) &&
68
+ (response.status < 200 || response.status >= 300));
69
69
  }
70
70
  return false;
71
- };
71
+ }
72
72
  /**
73
73
  * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds.
74
74
  * @param throttleTime
75
75
  */
76
- ThrottlingUtils.calculateThrottleTime = function (throttleTime) {
77
- var time = throttleTime <= 0 ? 0 : throttleTime;
78
- var currentSeconds = Date.now() / 1000;
79
- return Math.floor(Math.min(currentSeconds + (time || ThrottlingConstants.DEFAULT_THROTTLE_TIME_SECONDS), currentSeconds + ThrottlingConstants.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1000);
80
- };
81
- ThrottlingUtils.removeThrottle = function (cacheManager, clientId, request, homeAccountIdentifier) {
82
- var thumbprint = {
76
+ static calculateThrottleTime(throttleTime) {
77
+ const time = throttleTime <= 0 ? 0 : throttleTime;
78
+ const currentSeconds = Date.now() / 1000;
79
+ return Math.floor(Math.min(currentSeconds +
80
+ (time || ThrottlingConstants.DEFAULT_THROTTLE_TIME_SECONDS), currentSeconds +
81
+ ThrottlingConstants.DEFAULT_MAX_THROTTLE_TIME_SECONDS) * 1000);
82
+ }
83
+ static removeThrottle(cacheManager, clientId, request, homeAccountIdentifier) {
84
+ const thumbprint = {
83
85
  clientId: clientId,
84
86
  authority: request.authority,
85
87
  scopes: request.scopes,
@@ -89,13 +91,12 @@ var ThrottlingUtils = /** @class */ (function () {
89
91
  resourceRequestMethod: request.resourceRequestMethod,
90
92
  resourceRequestUri: request.resourceRequestUri,
91
93
  shrClaims: request.shrClaims,
92
- sshKid: request.sshKid
94
+ sshKid: request.sshKid,
93
95
  };
94
- var key = this.generateThrottlingStorageKey(thumbprint);
96
+ const key = this.generateThrottlingStorageKey(thumbprint);
95
97
  cacheManager.removeItem(key);
96
- };
97
- return ThrottlingUtils;
98
- }());
98
+ }
99
+ }
99
100
 
100
101
  export { ThrottlingUtils };
101
102
  //# sourceMappingURL=ThrottlingUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThrottlingUtils.js","sources":["../../src/network/ThrottlingUtils.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { NetworkResponse } from \"./NetworkManager\";\nimport { ServerAuthorizationTokenResponse } from \"../response/ServerAuthorizationTokenResponse\";\nimport { HeaderNames, ThrottlingConstants, Constants } from \"../utils/Constants\";\nimport { CacheManager } from \"../cache/CacheManager\";\nimport { ServerError } from \"../error/ServerError\";\nimport { RequestThumbprint } from \"./RequestThumbprint\";\nimport { ThrottlingEntity } from \"../cache/entities/ThrottlingEntity\";\nimport { BaseAuthRequest } from \"../request/BaseAuthRequest\";\n\nexport class ThrottlingUtils {\n\n /**\n * Prepares a RequestThumbprint to be stored as a key.\n * @param thumbprint\n */\n static generateThrottlingStorageKey(thumbprint: RequestThumbprint): string {\n return `${ThrottlingConstants.THROTTLING_PREFIX}.${JSON.stringify(thumbprint)}`;\n }\n\n /**\n * Performs necessary throttling checks before a network request.\n * @param cacheManager\n * @param thumbprint\n */\n static preProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint): void {\n const key = ThrottlingUtils.generateThrottlingStorageKey(thumbprint);\n const value = cacheManager.getThrottlingCache(key);\n\n if (value) {\n if (value.throttleTime < Date.now()) {\n cacheManager.removeItem(key);\n return;\n }\n throw new ServerError(value.errorCodes?.join(\" \") || Constants.EMPTY_STRING, value.errorMessage, value.subError);\n }\n }\n\n /**\n * Performs necessary throttling checks after a network request.\n * @param cacheManager\n * @param thumbprint\n * @param response\n */\n static postProcess(cacheManager: CacheManager, thumbprint: RequestThumbprint, response: NetworkResponse<ServerAuthorizationTokenResponse>): void {\n if (ThrottlingUtils.checkResponseStatus(response) || ThrottlingUtils.checkResponseForRetryAfter(response)) {\n const thumbprintValue: ThrottlingEntity = {\n throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(response.headers[HeaderNames.RETRY_AFTER])),\n error: response.body.error,\n errorCodes: response.body.error_codes,\n errorMessage: response.body.error_description,\n subError: response.body.suberror\n };\n cacheManager.setThrottlingCache(\n ThrottlingUtils.generateThrottlingStorageKey(thumbprint),\n thumbprintValue\n );\n }\n }\n\n /**\n * Checks a NetworkResponse object's status codes against 429 or 5xx\n * @param response\n */\n static checkResponseStatus(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean {\n return response.status === 429 || response.status >= 500 && response.status < 600;\n }\n\n /**\n * Checks a NetworkResponse object's RetryAfter header\n * @param response\n */\n static checkResponseForRetryAfter(response: NetworkResponse<ServerAuthorizationTokenResponse>): boolean {\n if (response.headers) {\n return response.headers.hasOwnProperty(HeaderNames.RETRY_AFTER) && (response.status < 200 || response.status >= 300);\n }\n return false;\n }\n\n /**\n * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds.\n * @param throttleTime\n */\n static calculateThrottleTime(throttleTime: number): number {\n const time = throttleTime <= 0 ? 0 : throttleTime;\n\n const currentSeconds = Date.now() / 1000;\n return Math.floor(Math.min(\n currentSeconds + (time || ThrottlingConstants.DEFAULT_THROTTLE_TIME_SECONDS),\n currentSeconds + ThrottlingConstants.DEFAULT_MAX_THROTTLE_TIME_SECONDS\n ) * 1000);\n }\n\n static removeThrottle(cacheManager: CacheManager, clientId: string, request: BaseAuthRequest, homeAccountIdentifier?: string): void {\n const thumbprint: RequestThumbprint = {\n clientId: clientId,\n authority: request.authority,\n scopes: request.scopes,\n homeAccountIdentifier: homeAccountIdentifier,\n claims: request.claims,\n authenticationScheme: request.authenticationScheme,\n resourceRequestMethod: request.resourceRequestMethod,\n resourceRequestUri: request.resourceRequestUri,\n shrClaims: request.shrClaims,\n sshKid: request.sshKid\n };\n\n const key = this.generateThrottlingStorageKey(thumbprint);\n cacheManager.removeItem(key);\n }\n}\n"],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAWH,IAAA,eAAA,kBAAA,YAAA;AAAA,IAAA,SAAA,eAAA,GAAA;KAoGC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S;YAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC;QAEF,MAAM,GAAG,GAAG,IAAI,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;AAC1D,QAAA,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KAChC;AACJ;;;;"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-common";
2
- export declare const version = "12.1.0";
2
+ export declare const version = "14.0.0-alpha.1";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-common v12.1.0 2023-04-18 */
1
+ /*! @azure/msal-common v14.0.0-alpha.1 2023-05-08 */
2
2
  'use strict';
3
3
  /* eslint-disable header/header */
4
- var name = "@azure/msal-common";
5
- var version = "12.1.0";
4
+ const name = "@azure/msal-common";
5
+ const version = "14.0.0-alpha.1";
6
6
 
7
7
  export { name, version };
8
8
  //# sourceMappingURL=packageMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata.js","sources":["../src/packageMetadata.ts"],"sourcesContent":["/* eslint-disable header/header */\nexport const name = \"@azure/msal-common\";\nexport const version = \"12.1.0\";\n"],"names":[],"mappings":";;AAAA;AACO,IAAM,IAAI,GAAG,qBAAqB;AAClC,IAAM,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"packageMetadata.js","sources":["../src/packageMetadata.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACO,MAAM,IAAI,GAAG,qBAAqB;AAClC,MAAM,OAAO,GAAG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAyBrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAa1B"}
1
+ {"version":3,"file":"AuthenticationHeaderParser.d.ts","sourceRoot":"","sources":["../../src/request/AuthenticationHeaderParser.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,OAAO,CAAyB;gBAE5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI3C;;;OAGG;IACH,WAAW,IAAI,MAAM;IAqCrB;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAe1B"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v12.1.0 2023-04-18 */
1
+ /*! @azure/msal-common v14.0.0-alpha.1 2023-05-08 */
2
2
  'use strict';
3
3
  import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
4
4
  import { HeaderNames, Constants } from '../utils/Constants.js';
@@ -11,28 +11,28 @@ import { HeaderNames, Constants } from '../utils/Constants.js';
11
11
  * This is a helper class that parses supported HTTP response authentication headers to extract and return
12
12
  * header challenge values that can be used outside the basic authorization flows.
13
13
  */
14
- var AuthenticationHeaderParser = /** @class */ (function () {
15
- function AuthenticationHeaderParser(headers) {
14
+ class AuthenticationHeaderParser {
15
+ constructor(headers) {
16
16
  this.headers = headers;
17
17
  }
18
18
  /**
19
19
  * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers.
20
20
  * @returns
21
21
  */
22
- AuthenticationHeaderParser.prototype.getShrNonce = function () {
22
+ getShrNonce() {
23
23
  // Attempt to parse nonce from Authentiacation-Info
24
- var authenticationInfo = this.headers[HeaderNames.AuthenticationInfo];
24
+ const authenticationInfo = this.headers[HeaderNames.AuthenticationInfo];
25
25
  if (authenticationInfo) {
26
- var authenticationInfoChallenges = this.parseChallenges(authenticationInfo);
26
+ const authenticationInfoChallenges = this.parseChallenges(authenticationInfo);
27
27
  if (authenticationInfoChallenges.nextnonce) {
28
28
  return authenticationInfoChallenges.nextnonce;
29
29
  }
30
30
  throw ClientConfigurationError.createInvalidAuthenticationHeaderError(HeaderNames.AuthenticationInfo, "nextnonce challenge is missing.");
31
31
  }
32
32
  // Attempt to parse nonce from WWW-Authenticate
33
- var wwwAuthenticate = this.headers[HeaderNames.WWWAuthenticate];
33
+ const wwwAuthenticate = this.headers[HeaderNames.WWWAuthenticate];
34
34
  if (wwwAuthenticate) {
35
- var wwwAuthenticateChallenges = this.parseChallenges(wwwAuthenticate);
35
+ const wwwAuthenticateChallenges = this.parseChallenges(wwwAuthenticate);
36
36
  if (wwwAuthenticateChallenges.nonce) {
37
37
  return wwwAuthenticateChallenges.nonce;
38
38
  }
@@ -40,25 +40,24 @@ var AuthenticationHeaderParser = /** @class */ (function () {
40
40
  }
41
41
  // If neither header is present, throw missing headers error
42
42
  throw ClientConfigurationError.createMissingNonceAuthenticationHeadersError();
43
- };
43
+ }
44
44
  /**
45
45
  * Parses an HTTP header's challenge set into a key/value map.
46
46
  * @param header
47
47
  * @returns
48
48
  */
49
- AuthenticationHeaderParser.prototype.parseChallenges = function (header) {
50
- var schemeSeparator = header.indexOf(" ");
51
- var challenges = header.substr(schemeSeparator + 1).split(",");
52
- var challengeMap = {};
53
- challenges.forEach(function (challenge) {
54
- var _a = challenge.split("="), key = _a[0], value = _a[1];
49
+ parseChallenges(header) {
50
+ const schemeSeparator = header.indexOf(" ");
51
+ const challenges = header.substr(schemeSeparator + 1).split(",");
52
+ const challengeMap = {};
53
+ challenges.forEach((challenge) => {
54
+ const [key, value] = challenge.split("=");
55
55
  // Remove escaped quotation marks (', ") from challenge string to keep only the challenge value
56
56
  challengeMap[key] = unescape(value.replace(/['"]+/g, Constants.EMPTY_STRING));
57
57
  });
58
58
  return challengeMap;
59
- };
60
- return AuthenticationHeaderParser;
61
- }());
59
+ }
60
+ }
62
61
 
63
62
  export { AuthenticationHeaderParser };
64
63
  //# sourceMappingURL=AuthenticationHeaderParser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationHeaderParser.js","sources":["../../src/request/AuthenticationHeaderParser.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ClientConfigurationError } from \"../error/ClientConfigurationError\";\nimport { Constants, HeaderNames } from \"../utils/Constants\";\n\ntype WWWAuthenticateChallenges = {\n nonce?: string,\n};\n\ntype AuthenticationInfoChallenges = {\n nextnonce?: string\n};\n\n/**\n * This is a helper class that parses supported HTTP response authentication headers to extract and return\n * header challenge values that can be used outside the basic authorization flows.\n */\nexport class AuthenticationHeaderParser {\n private headers: Record<string, string>;\n\n constructor(headers: Record<string, string>) {\n this.headers = headers;\n }\n\n /**\n * This method parses the SHR nonce value out of either the Authentication-Info or WWW-Authenticate authentication headers.\n * @returns \n */\n getShrNonce(): string {\n // Attempt to parse nonce from Authentiacation-Info\n const authenticationInfo = this.headers[HeaderNames.AuthenticationInfo];\n if (authenticationInfo) {\n const authenticationInfoChallenges = this.parseChallenges<AuthenticationInfoChallenges>(authenticationInfo);\n if (authenticationInfoChallenges.nextnonce) {\n return authenticationInfoChallenges.nextnonce;\n }\n throw ClientConfigurationError.createInvalidAuthenticationHeaderError(HeaderNames.AuthenticationInfo, \"nextnonce challenge is missing.\");\n }\n\n // Attempt to parse nonce from WWW-Authenticate\n const wwwAuthenticate = this.headers[HeaderNames.WWWAuthenticate];\n if (wwwAuthenticate) {\n const wwwAuthenticateChallenges = this.parseChallenges<WWWAuthenticateChallenges>(wwwAuthenticate); \n if (wwwAuthenticateChallenges.nonce){\n return wwwAuthenticateChallenges.nonce;\n }\n throw ClientConfigurationError.createInvalidAuthenticationHeaderError(HeaderNames.WWWAuthenticate, \"nonce challenge is missing.\");\n }\n\n // If neither header is present, throw missing headers error\n throw ClientConfigurationError.createMissingNonceAuthenticationHeadersError();\n }\n\n /**\n * Parses an HTTP header's challenge set into a key/value map.\n * @param header \n * @returns \n */\n private parseChallenges<T>(header: string): T {\n const schemeSeparator = header.indexOf(\" \");\n const challenges = header.substr(schemeSeparator + 1).split(\",\");\n const challengeMap = {} as T;\n\n challenges.forEach((challenge: string) => {\n const [ key, value ] = challenge.split(\"=\");\n // Remove escaped quotation marks (', \") from challenge string to keep only the challenge value\n challengeMap[key] = unescape(value.replace(/['\"]+/g, Constants.EMPTY_STRING));\n });\n\n return challengeMap;\n }\n}\n"],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAaH;;;AAGG;AACH,IAAA,0BAAA,kBAAA,YAAA;AAGI,IAAA,SAAA,0BAAA,CAAY,OAA+B,EAAA;AACvC,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KAC1B;AAED;;;AAGG;AACH,IAAA,0BAAA,CAAA,SAAA,CAAA,WAAW,GAAX,YAAA;;QAEI,IAAM,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;AACxE,QAAA,IAAI,kBAAkB,EAAE;YACpB,IAAM,4BAA4B,GAAG,IAAI,CAAC,eAAe,CAA+B,kBAAkB,CAAC,CAAC;YAC5G,IAAI,4BAA4B,CAAC,SAAS,EAAE;gBACxC,OAAO,4BAA4B,CAAC,SAAS,CAAC;AACjD,aAAA;YACD,MAAM,wBAAwB,CAAC,sCAAsC,CAAC,WAAW,CAAC,kBAAkB,EAAE,iCAAiC,CAAC,CAAC;AAC5I,SAAA;;QAGD,IAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC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AO,CAAC,CAAC,SAAiB,KAAI;AACrC,YAAA,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;AAE1C,YAAA,YAAY,CAAC,GAAG,CAAC,GAAG,QAAQ,CACxB,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAClD,CAAC;AACN,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,YAAY,CAAC;KACvB;AACJ;;;;"}
@@ -18,7 +18,7 @@ import { StringDict } from "../utils/MsalTypes";
18
18
  * - requestedClaimsHash - SHA 256 hash string of the requested claims string, used as part of an access token cache key so tokens can be filtered by requested claims
19
19
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
20
20
  */
21
- export declare type BaseAuthRequest = {
21
+ export type BaseAuthRequest = {
22
22
  authority: string;
23
23
  correlationId: string;
24
24
  scopes: Array<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;;GAgBG;AACH,oBAAY,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"BaseAuthRequest.d.ts","sourceRoot":"","sources":["../../src/request/BaseAuthRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -16,7 +16,7 @@ import { CcsCredential } from "../account/CcsCredential";
16
16
  * - enableSpaAuthCode - Enables the acqusition of a spa authorization code (confidential clients only)
17
17
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
18
18
  */
19
- export declare type CommonAuthorizationCodeRequest = BaseAuthRequest & {
19
+ export type CommonAuthorizationCodeRequest = BaseAuthRequest & {
20
20
  code: string;
21
21
  redirectUri: string;
22
22
  codeVerifier?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,oBAAY,8BAA8B,GAAG,eAAe,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"CommonAuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC"}
@@ -32,7 +32,7 @@ import { AccountInfo } from "../account/AccountInfo";
32
32
  * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
33
33
  * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
34
34
  */
35
- export declare type CommonAuthorizationUrlRequest = BaseAuthRequest & {
35
+ export type CommonAuthorizationUrlRequest = BaseAuthRequest & {
36
36
  redirectUri: string;
37
37
  responseMode: ResponseMode;
38
38
  account?: AccountInfo;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,oBAAY,6BAA6B,GAAG,eAAe,GAAG;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
@@ -10,7 +10,7 @@ import { ClientAssertion } from "../account/ClientCredentials";
10
10
  * - preferredAzureRegionOptions - Options of the user's preferred azure region
11
11
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
12
12
  */
13
- export declare type CommonClientCredentialRequest = BaseAuthRequest & {
13
+ export type CommonClientCredentialRequest = BaseAuthRequest & {
14
14
  skipCache?: boolean;
15
15
  azureRegion?: AzureRegion;
16
16
  clientAssertion?: ClientAssertion;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;;;;;;;GAQG;AACH,oBAAY,6BAA6B,GAAG,eAAe,GAAG;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
@@ -13,7 +13,7 @@ import { BaseAuthRequest } from "./BaseAuthRequest";
13
13
  * - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
14
14
  * - extraQueryParameters - String to string map of custom query parameters added to the query string
15
15
  */
16
- export declare type CommonDeviceCodeRequest = Omit<BaseAuthRequest, "tokenQueryParameters"> & {
16
+ export type CommonDeviceCodeRequest = Omit<BaseAuthRequest, "tokenQueryParameters"> & {
17
17
  deviceCodeCallback: (response: DeviceCodeResponse) => void;
18
18
  cancel?: boolean;
19
19
  timeout?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AAEH,oBAAY,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,sBAAsB,CAAC,GAAG;IAClF,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,CACzB,GAAG;IACA,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -10,7 +10,7 @@ import { StringDict } from "../utils/MsalTypes";
10
10
  * - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout
11
11
  * - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
12
12
  */
13
- export declare type CommonEndSessionRequest = {
13
+ export type CommonEndSessionRequest = {
14
14
  correlationId: string;
15
15
  account?: AccountInfo | null;
16
16
  postLogoutRedirectUri?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;GASG;AACH,oBAAY,uBAAuB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAA;CACpC,CAAC"}
1
+ {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -7,7 +7,7 @@ import { BaseAuthRequest } from "./BaseAuthRequest";
7
7
  * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
8
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
9
  */
10
- export declare type CommonOnBehalfOfRequest = BaseAuthRequest & {
10
+ export type CommonOnBehalfOfRequest = BaseAuthRequest & {
11
11
  oboAssertion: string;
12
12
  skipCache?: boolean;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;GAOG;AACH,oBAAY,uBAAuB,GAAG,eAAe,GAAG;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -12,7 +12,7 @@ import { CcsCredential } from "../account/CcsCredential";
12
12
  * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
13
13
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
14
  */
15
- export declare type CommonRefreshTokenRequest = BaseAuthRequest & {
15
+ export type CommonRefreshTokenRequest = BaseAuthRequest & {
16
16
  refreshToken: string;
17
17
  ccsCredential?: CcsCredential;
18
18
  forceCache?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,oBAAY,yBAAyB,GAAG,eAAe,GAAG;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -12,7 +12,7 @@ import { BaseAuthRequest } from "./BaseAuthRequest";
12
12
  * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
13
13
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
14
  */
15
- export declare type CommonSilentFlowRequest = BaseAuthRequest & {
15
+ export type CommonSilentFlowRequest = BaseAuthRequest & {
16
16
  account: AccountInfo;
17
17
  forceRefresh: boolean;
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,oBAAY,uBAAuB,GAAG,eAAe,GAAG;IACpD,OAAO,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,OAAO,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -11,7 +11,7 @@ import { BaseAuthRequest } from "./BaseAuthRequest";
11
11
  * - password - credentials
12
12
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
13
  */
14
- export declare type CommonUsernamePasswordRequest = BaseAuthRequest & {
14
+ export type CommonUsernamePasswordRequest = BaseAuthRequest & {
15
15
  username: string;
16
16
  password: string;
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,oBAAY,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { StringDict } from "../utils/MsalTypes";
2
- export declare type NativeRequest = {
2
+ export type NativeRequest = {
3
3
  clientId: string;
4
4
  authority: string;
5
5
  correlationId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,oBAAY,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare type NativeSignOutRequest = {
1
+ export type NativeSignOutRequest = {
2
2
  clientId: string;
3
3
  accountId: string;
4
4
  correlationId: string;