@azure/msal-common 13.0.0 → 14.0.0-alpha.2

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 (333) hide show
  1. package/dist/account/AccountInfo.d.ts +31 -31
  2. package/dist/account/AccountInfo.d.ts.map +1 -1
  3. package/dist/account/AuthToken.d.ts +20 -20
  4. package/dist/account/AuthToken.d.ts.map +1 -1
  5. package/dist/account/AuthToken.js +49 -50
  6. package/dist/account/AuthToken.js.map +1 -1
  7. package/dist/account/CcsCredential.d.ts +8 -8
  8. package/dist/account/CcsCredential.d.ts.map +1 -1
  9. package/dist/account/CcsCredential.js +9 -9
  10. package/dist/account/CcsCredential.js.map +1 -1
  11. package/dist/account/ClientCredentials.d.ts +14 -14
  12. package/dist/account/ClientCredentials.d.ts.map +1 -1
  13. package/dist/account/ClientInfo.d.ts +19 -19
  14. package/dist/account/ClientInfo.d.ts.map +1 -1
  15. package/dist/account/ClientInfo.js +37 -35
  16. package/dist/account/ClientInfo.js.map +1 -1
  17. package/dist/account/DecodedAuthToken.d.ts +8 -8
  18. package/dist/account/DecodedAuthToken.d.ts.map +1 -1
  19. package/dist/account/TokenClaims.d.ts +65 -65
  20. package/dist/account/TokenClaims.d.ts.map +1 -1
  21. package/dist/authority/Authority.d.ts +228 -215
  22. package/dist/authority/Authority.d.ts.map +1 -1
  23. package/dist/authority/Authority.js +717 -765
  24. package/dist/authority/Authority.js.map +1 -1
  25. package/dist/authority/AuthorityFactory.d.ts +30 -30
  26. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  27. package/dist/authority/AuthorityFactory.js +48 -63
  28. package/dist/authority/AuthorityFactory.js.map +1 -1
  29. package/dist/authority/AuthorityMetadata.d.ts +622 -622
  30. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  31. package/dist/authority/AuthorityMetadata.js +877 -8
  32. package/dist/authority/AuthorityMetadata.js.map +1 -1
  33. package/dist/authority/AuthorityOptions.d.ts +18 -18
  34. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  35. package/dist/authority/AuthorityOptions.js +19 -19
  36. package/dist/authority/AuthorityOptions.js.map +1 -1
  37. package/dist/authority/AuthorityType.d.ts +9 -9
  38. package/dist/authority/AuthorityType.js +14 -14
  39. package/dist/authority/AuthorityType.js.map +1 -1
  40. package/dist/authority/AzureRegion.d.ts +1 -1
  41. package/dist/authority/AzureRegion.d.ts.map +1 -1
  42. package/dist/authority/AzureRegionConfiguration.d.ts +5 -5
  43. package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
  44. package/dist/authority/CloudDiscoveryMetadata.d.ts +5 -5
  45. package/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -1
  46. package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +13 -13
  47. package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -1
  48. package/dist/authority/CloudInstanceDiscoveryErrorResponse.js +8 -8
  49. package/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -1
  50. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +9 -9
  51. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
  52. package/dist/authority/CloudInstanceDiscoveryResponse.js +8 -8
  53. package/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -1
  54. package/dist/authority/ImdsOptions.d.ts +5 -5
  55. package/dist/authority/ImdsOptions.d.ts.map +1 -1
  56. package/dist/authority/OpenIdConfigResponse.d.ts +11 -11
  57. package/dist/authority/OpenIdConfigResponse.d.ts.map +1 -1
  58. package/dist/authority/OpenIdConfigResponse.js +10 -10
  59. package/dist/authority/OpenIdConfigResponse.js.map +1 -1
  60. package/dist/authority/ProtocolMode.d.ts +7 -7
  61. package/dist/authority/ProtocolMode.js +12 -12
  62. package/dist/authority/ProtocolMode.js.map +1 -1
  63. package/dist/authority/RegionDiscovery.d.ts +30 -30
  64. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  65. package/dist/authority/RegionDiscovery.js +110 -132
  66. package/dist/authority/RegionDiscovery.js.map +1 -1
  67. package/dist/authority/RegionDiscoveryMetadata.d.ts +6 -6
  68. package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
  69. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +15 -15
  70. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
  71. package/dist/cache/CacheManager.d.ts +443 -443
  72. package/dist/cache/CacheManager.d.ts.map +1 -1
  73. package/dist/cache/CacheManager.js +1012 -1047
  74. package/dist/cache/CacheManager.js.map +1 -1
  75. package/dist/cache/entities/AccessTokenEntity.d.ts +56 -56
  76. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  77. package/dist/cache/entities/AccessTokenEntity.js +112 -113
  78. package/dist/cache/entities/AccessTokenEntity.js.map +1 -1
  79. package/dist/cache/entities/AccountEntity.d.ts +99 -99
  80. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  81. package/dist/cache/entities/AccountEntity.js +249 -237
  82. package/dist/cache/entities/AccountEntity.js.map +1 -1
  83. package/dist/cache/entities/AppMetadataEntity.d.ts +39 -39
  84. package/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -1
  85. package/dist/cache/entities/AppMetadataEntity.js +67 -68
  86. package/dist/cache/entities/AppMetadataEntity.js.map +1 -1
  87. package/dist/cache/entities/AuthorityMetadataEntity.d.ts +47 -47
  88. package/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -1
  89. package/dist/cache/entities/AuthorityMetadataEntity.js +78 -75
  90. package/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -1
  91. package/dist/cache/entities/CacheRecord.d.ts +13 -13
  92. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  93. package/dist/cache/entities/CacheRecord.js +14 -15
  94. package/dist/cache/entities/CacheRecord.js.map +1 -1
  95. package/dist/cache/entities/CredentialEntity.d.ts +88 -88
  96. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  97. package/dist/cache/entities/CredentialEntity.js +137 -136
  98. package/dist/cache/entities/CredentialEntity.js.map +1 -1
  99. package/dist/cache/entities/IdTokenEntity.d.ts +34 -34
  100. package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
  101. package/dist/cache/entities/IdTokenEntity.js +57 -63
  102. package/dist/cache/entities/IdTokenEntity.js.map +1 -1
  103. package/dist/cache/entities/RefreshTokenEntity.d.ts +36 -36
  104. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  105. package/dist/cache/entities/RefreshTokenEntity.js +60 -66
  106. package/dist/cache/entities/RefreshTokenEntity.js.map +1 -1
  107. package/dist/cache/entities/ServerTelemetryEntity.d.ts +12 -12
  108. package/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -1
  109. package/dist/cache/entities/ServerTelemetryEntity.js +28 -29
  110. package/dist/cache/entities/ServerTelemetryEntity.js.map +1 -1
  111. package/dist/cache/entities/ThrottlingEntity.d.ts +13 -13
  112. package/dist/cache/entities/ThrottlingEntity.js +24 -26
  113. package/dist/cache/entities/ThrottlingEntity.js.map +1 -1
  114. package/dist/cache/interface/ICacheManager.d.ts +165 -165
  115. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  116. package/dist/cache/interface/ICachePlugin.d.ts +5 -5
  117. package/dist/cache/interface/ISerializableTokenCache.d.ts +4 -4
  118. package/dist/cache/persistence/TokenCacheContext.d.ts +23 -23
  119. package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
  120. package/dist/cache/persistence/TokenCacheContext.js +26 -35
  121. package/dist/cache/persistence/TokenCacheContext.js.map +1 -1
  122. package/dist/cache/utils/CacheTypes.d.ts +62 -62
  123. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  124. package/dist/client/AuthorizationCodeClient.d.ts +71 -71
  125. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  126. package/dist/client/AuthorizationCodeClient.js +435 -478
  127. package/dist/client/AuthorizationCodeClient.js.map +1 -1
  128. package/dist/client/BaseClient.d.ts +50 -50
  129. package/dist/client/BaseClient.d.ts.map +1 -1
  130. package/dist/client/BaseClient.js +93 -101
  131. package/dist/client/BaseClient.js.map +1 -1
  132. package/dist/client/RefreshTokenClient.d.ts +34 -34
  133. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  134. package/dist/client/RefreshTokenClient.js +241 -274
  135. package/dist/client/RefreshTokenClient.js.map +1 -1
  136. package/dist/client/SilentFlowClient.d.ts +24 -24
  137. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  138. package/dist/client/SilentFlowClient.js +95 -123
  139. package/dist/client/SilentFlowClient.js.map +1 -1
  140. package/dist/config/AppTokenProvider.d.ts +38 -38
  141. package/dist/config/AppTokenProvider.d.ts.map +1 -1
  142. package/dist/config/ClientConfiguration.d.ts +133 -133
  143. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  144. package/dist/config/ClientConfiguration.js +88 -91
  145. package/dist/config/ClientConfiguration.js.map +1 -1
  146. package/dist/crypto/ICrypto.d.ts +62 -62
  147. package/dist/crypto/ICrypto.d.ts.map +1 -1
  148. package/dist/crypto/ICrypto.js +42 -73
  149. package/dist/crypto/ICrypto.js.map +1 -1
  150. package/dist/crypto/IGuidGenerator.d.ts +4 -4
  151. package/dist/crypto/JoseHeader.d.ts +21 -21
  152. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  153. package/dist/crypto/JoseHeader.js +37 -38
  154. package/dist/crypto/JoseHeader.js.map +1 -1
  155. package/dist/crypto/PopTokenGenerator.d.ts +57 -57
  156. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  157. package/dist/crypto/PopTokenGenerator.js +84 -108
  158. package/dist/crypto/PopTokenGenerator.js.map +1 -1
  159. package/dist/crypto/SignedHttpRequest.d.ts +11 -11
  160. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  161. package/dist/error/AuthError.d.ts +47 -47
  162. package/dist/error/AuthError.d.ts.map +1 -1
  163. package/dist/error/AuthError.js +52 -55
  164. package/dist/error/AuthError.js.map +1 -1
  165. package/dist/error/ClientAuthError.d.ts +412 -404
  166. package/dist/error/ClientAuthError.d.ts.map +1 -1
  167. package/dist/error/ClientAuthError.js +520 -514
  168. package/dist/error/ClientAuthError.js.map +1 -1
  169. package/dist/error/ClientConfigurationError.d.ts +198 -198
  170. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  171. package/dist/error/ClientConfigurationError.js +250 -254
  172. package/dist/error/ClientConfigurationError.js.map +1 -1
  173. package/dist/error/InteractionRequiredAuthError.d.ts +59 -59
  174. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  175. package/dist/error/InteractionRequiredAuthError.js +79 -78
  176. package/dist/error/InteractionRequiredAuthError.js.map +1 -1
  177. package/dist/error/JoseHeaderError.d.ts +28 -28
  178. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  179. package/dist/error/JoseHeaderError.js +40 -44
  180. package/dist/error/JoseHeaderError.js.map +1 -1
  181. package/dist/error/ServerError.d.ts +7 -7
  182. package/dist/error/ServerError.d.ts.map +1 -1
  183. package/dist/error/ServerError.js +15 -19
  184. package/dist/error/ServerError.js.map +1 -1
  185. package/dist/index.cjs.js +8890 -9111
  186. package/dist/index.cjs.js.map +1 -1
  187. package/dist/index.d.ts +93 -94
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +5 -6
  190. package/dist/index.js.map +1 -1
  191. package/dist/logger/Logger.d.ts +95 -95
  192. package/dist/logger/Logger.d.ts.map +1 -1
  193. package/dist/logger/Logger.js +198 -188
  194. package/dist/logger/Logger.js.map +1 -1
  195. package/dist/network/INetworkModule.d.ts +29 -29
  196. package/dist/network/INetworkModule.d.ts.map +1 -1
  197. package/dist/network/INetworkModule.js +14 -14
  198. package/dist/network/INetworkModule.js.map +1 -1
  199. package/dist/network/NetworkManager.d.ts +32 -31
  200. package/dist/network/NetworkManager.d.ts.map +1 -1
  201. package/dist/network/NetworkManager.js +34 -48
  202. package/dist/network/NetworkManager.js.map +1 -1
  203. package/dist/network/RequestThumbprint.d.ts +16 -16
  204. package/dist/network/RequestThumbprint.d.ts.map +1 -1
  205. package/dist/network/ThrottlingUtils.d.ts +41 -41
  206. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  207. package/dist/network/ThrottlingUtils.js +95 -94
  208. package/dist/network/ThrottlingUtils.js.map +1 -1
  209. package/dist/packageMetadata.d.ts +2 -2
  210. package/dist/packageMetadata.d.ts.map +1 -1
  211. package/dist/packageMetadata.js +4 -4
  212. package/dist/packageMetadata.js.map +1 -1
  213. package/dist/request/AuthenticationHeaderParser.d.ts +19 -19
  214. package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
  215. package/dist/request/AuthenticationHeaderParser.js +56 -57
  216. package/dist/request/AuthenticationHeaderParser.js.map +1 -1
  217. package/dist/request/BaseAuthRequest.d.ts +37 -37
  218. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  219. package/dist/request/CommonAuthorizationCodeRequest.d.ts +27 -27
  220. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  221. package/dist/request/CommonAuthorizationUrlRequest.d.ts +50 -50
  222. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  223. package/dist/request/CommonClientCredentialRequest.d.ts +17 -17
  224. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  225. package/dist/request/CommonDeviceCodeRequest.d.ts +21 -21
  226. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  227. package/dist/request/CommonEndSessionRequest.d.ts +21 -21
  228. package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
  229. package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -13
  230. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  231. package/dist/request/CommonRefreshTokenRequest.d.ts +19 -19
  232. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  233. package/dist/request/CommonSilentFlowRequest.d.ts +18 -18
  234. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  235. package/dist/request/CommonUsernamePasswordRequest.d.ts +17 -17
  236. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  237. package/dist/request/NativeRequest.d.ts +19 -19
  238. package/dist/request/NativeRequest.d.ts.map +1 -1
  239. package/dist/request/NativeSignOutRequest.d.ts +5 -5
  240. package/dist/request/NativeSignOutRequest.d.ts.map +1 -1
  241. package/dist/request/RequestParameterBuilder.d.ts +216 -216
  242. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  243. package/dist/request/RequestParameterBuilder.js +376 -378
  244. package/dist/request/RequestParameterBuilder.js.map +1 -1
  245. package/dist/request/RequestValidator.d.ts +33 -33
  246. package/dist/request/RequestValidator.d.ts.map +1 -1
  247. package/dist/request/RequestValidator.js +84 -89
  248. package/dist/request/RequestValidator.js.map +1 -1
  249. package/dist/request/ScopeSet.d.ts +88 -88
  250. package/dist/request/ScopeSet.d.ts.map +1 -1
  251. package/dist/request/ScopeSet.js +198 -198
  252. package/dist/request/ScopeSet.js.map +1 -1
  253. package/dist/response/AuthenticationResult.d.ts +39 -39
  254. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  255. package/dist/response/AuthorizationCodePayload.d.ts +13 -13
  256. package/dist/response/AuthorizationCodePayload.d.ts.map +1 -1
  257. package/dist/response/DeviceCodeResponse.d.ts +25 -25
  258. package/dist/response/DeviceCodeResponse.d.ts.map +1 -1
  259. package/dist/response/ExternalTokenResponse.d.ts +15 -15
  260. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  261. package/dist/response/IMDSBadResponse.d.ts +4 -4
  262. package/dist/response/IMDSBadResponse.d.ts.map +1 -1
  263. package/dist/response/ResponseHandler.d.ts +72 -72
  264. package/dist/response/ResponseHandler.d.ts.map +1 -1
  265. package/dist/response/ResponseHandler.js +301 -286
  266. package/dist/response/ResponseHandler.js.map +1 -1
  267. package/dist/response/ServerAuthorizationCodeResponse.d.ts +25 -25
  268. package/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -1
  269. package/dist/response/ServerAuthorizationTokenResponse.d.ts +44 -44
  270. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  271. package/dist/telemetry/performance/IPerformanceClient.d.ts +42 -43
  272. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  273. package/dist/telemetry/performance/IPerformanceMeasurement.d.ts +5 -5
  274. package/dist/telemetry/performance/PerformanceClient.d.ts +189 -197
  275. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  276. package/dist/telemetry/performance/PerformanceClient.js +407 -402
  277. package/dist/telemetry/performance/PerformanceClient.js.map +1 -1
  278. package/dist/telemetry/performance/PerformanceEvent.d.ts +439 -439
  279. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  280. package/dist/telemetry/performance/PerformanceEvent.js +227 -227
  281. package/dist/telemetry/performance/PerformanceEvent.js.map +1 -1
  282. package/dist/telemetry/performance/StubPerformanceClient.d.ts +19 -17
  283. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  284. package/dist/telemetry/performance/StubPerformanceClient.js +37 -46
  285. package/dist/telemetry/performance/StubPerformanceClient.js.map +1 -1
  286. package/dist/telemetry/server/ServerTelemetryManager.d.ts +65 -66
  287. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  288. package/dist/telemetry/server/ServerTelemetryManager.js +199 -161
  289. package/dist/telemetry/server/ServerTelemetryManager.js.map +1 -1
  290. package/dist/telemetry/server/ServerTelemetryRequest.d.ts +8 -8
  291. package/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -1
  292. package/dist/url/IUri.d.ts +12 -12
  293. package/dist/url/UrlString.d.ts +70 -70
  294. package/dist/url/UrlString.d.ts.map +1 -1
  295. package/dist/url/UrlString.js +243 -232
  296. package/dist/url/UrlString.js.map +1 -1
  297. package/dist/utils/Constants.d.ts +331 -331
  298. package/dist/utils/Constants.d.ts.map +1 -1
  299. package/dist/utils/Constants.js +374 -373
  300. package/dist/utils/Constants.js.map +1 -1
  301. package/dist/utils/MsalTypes.d.ts +6 -6
  302. package/dist/utils/MsalTypes.d.ts.map +1 -1
  303. package/dist/utils/ProtocolUtils.d.ts +42 -42
  304. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  305. package/dist/utils/ProtocolUtils.js +72 -69
  306. package/dist/utils/ProtocolUtils.js.map +1 -1
  307. package/dist/utils/StringUtils.d.ts +53 -53
  308. package/dist/utils/StringUtils.d.ts.map +1 -1
  309. package/dist/utils/StringUtils.js +125 -123
  310. package/dist/utils/StringUtils.js.map +1 -1
  311. package/dist/utils/TimeUtils.d.ts +27 -27
  312. package/dist/utils/TimeUtils.d.ts.map +1 -1
  313. package/dist/utils/TimeUtils.js +46 -49
  314. package/dist/utils/TimeUtils.js.map +1 -1
  315. package/package.json +10 -7
  316. package/dist/_virtual/_tslib.js +0 -90
  317. package/dist/_virtual/_tslib.js.map +0 -1
  318. package/dist/client/ClientCredentialClient.d.ts +0 -38
  319. package/dist/client/ClientCredentialClient.d.ts.map +0 -1
  320. package/dist/client/ClientCredentialClient.js +0 -203
  321. package/dist/client/ClientCredentialClient.js.map +0 -1
  322. package/dist/client/DeviceCodeClient.d.ts +0 -57
  323. package/dist/client/DeviceCodeClient.d.ts.map +0 -1
  324. package/dist/client/DeviceCodeClient.js +0 -250
  325. package/dist/client/DeviceCodeClient.js.map +0 -1
  326. package/dist/client/OnBehalfOfClient.d.ts +0 -51
  327. package/dist/client/OnBehalfOfClient.d.ts.map +0 -1
  328. package/dist/client/OnBehalfOfClient.js +0 -248
  329. package/dist/client/OnBehalfOfClient.js.map +0 -1
  330. package/dist/client/UsernamePasswordClient.d.ts +0 -29
  331. package/dist/client/UsernamePasswordClient.d.ts.map +0 -1
  332. package/dist/client/UsernamePasswordClient.js +0 -129
  333. package/dist/client/UsernamePasswordClient.js.map +0 -1
@@ -1,207 +1,207 @@
1
- /*! @azure/msal-common v13.0.0 2023-05-01 */
1
+ /*! @azure/msal-common v14.0.0-alpha.2 2023-05-17 */
2
2
  'use strict';
3
- import { __spreadArrays } from '../_virtual/_tslib.js';
4
3
  import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
5
4
  import { StringUtils } from '../utils/StringUtils.js';
6
5
  import { ClientAuthError } from '../error/ClientAuthError.js';
7
6
  import { Constants, OIDC_SCOPES } from '../utils/Constants.js';
8
7
 
9
- /*
10
- * Copyright (c) Microsoft Corporation. All rights reserved.
11
- * Licensed under the MIT License.
12
- */
13
- /**
14
- * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
15
- * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
16
- * to ensure uniqueness of strings.
17
- */
18
- var ScopeSet = /** @class */ (function () {
19
- function ScopeSet(inputScopes) {
20
- var _this = this;
21
- // Filter empty string and null/undefined array items
22
- var scopeArr = inputScopes ? StringUtils.trimArrayEntries(__spreadArrays(inputScopes)) : [];
23
- var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
24
- // Validate and filter scopes (validate function throws if validation fails)
25
- this.validateInputScopes(filteredInput);
26
- this.scopes = new Set(); // Iterator in constructor not supported by IE11
27
- filteredInput.forEach(function (scope) { return _this.scopes.add(scope); });
28
- }
29
- /**
30
- * Factory method to create ScopeSet from space-delimited string
31
- * @param inputScopeString
32
- * @param appClientId
33
- * @param scopesRequired
34
- */
35
- ScopeSet.fromString = function (inputScopeString) {
36
- var scopeString = inputScopeString || Constants.EMPTY_STRING;
37
- var inputScopes = scopeString.split(" ");
38
- return new ScopeSet(inputScopes);
39
- };
40
- /**
41
- * Creates the set of scopes to search for in cache lookups
42
- * @param inputScopeString
43
- * @returns
44
- */
45
- ScopeSet.createSearchScopes = function (inputScopeString) {
46
- var scopeSet = new ScopeSet(inputScopeString);
47
- if (!scopeSet.containsOnlyOIDCScopes()) {
48
- scopeSet.removeOIDCScopes();
49
- }
50
- else {
51
- scopeSet.removeScope(Constants.OFFLINE_ACCESS_SCOPE);
52
- }
53
- return scopeSet;
54
- };
55
- /**
56
- * Used to validate the scopes input parameter requested by the developer.
57
- * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.
58
- * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
59
- */
60
- ScopeSet.prototype.validateInputScopes = function (inputScopes) {
61
- // Check if scopes are required but not given or is an empty array
62
- if (!inputScopes || inputScopes.length < 1) {
63
- throw ClientConfigurationError.createEmptyScopesArrayError();
64
- }
65
- };
66
- /**
67
- * Check if a given scope is present in this set of scopes.
68
- * @param scope
69
- */
70
- ScopeSet.prototype.containsScope = function (scope) {
71
- var lowerCaseScopes = this.printScopesLowerCase().split(" ");
72
- var lowerCaseScopesSet = new ScopeSet(lowerCaseScopes);
73
- // compare lowercase scopes
74
- return !StringUtils.isEmpty(scope) ? lowerCaseScopesSet.scopes.has(scope.toLowerCase()) : false;
75
- };
76
- /**
77
- * Check if a set of scopes is present in this set of scopes.
78
- * @param scopeSet
79
- */
80
- ScopeSet.prototype.containsScopeSet = function (scopeSet) {
81
- var _this = this;
82
- if (!scopeSet || scopeSet.scopes.size <= 0) {
83
- return false;
84
- }
85
- return (this.scopes.size >= scopeSet.scopes.size && scopeSet.asArray().every(function (scope) { return _this.containsScope(scope); }));
86
- };
87
- /**
88
- * Check if set of scopes contains only the defaults
89
- */
90
- ScopeSet.prototype.containsOnlyOIDCScopes = function () {
91
- var _this = this;
92
- var defaultScopeCount = 0;
93
- OIDC_SCOPES.forEach(function (defaultScope) {
94
- if (_this.containsScope(defaultScope)) {
95
- defaultScopeCount += 1;
96
- }
97
- });
98
- return this.scopes.size === defaultScopeCount;
99
- };
100
- /**
101
- * Appends single scope if passed
102
- * @param newScope
103
- */
104
- ScopeSet.prototype.appendScope = function (newScope) {
105
- if (!StringUtils.isEmpty(newScope)) {
106
- this.scopes.add(newScope.trim());
107
- }
108
- };
109
- /**
110
- * Appends multiple scopes if passed
111
- * @param newScopes
112
- */
113
- ScopeSet.prototype.appendScopes = function (newScopes) {
114
- var _this = this;
115
- try {
116
- newScopes.forEach(function (newScope) { return _this.appendScope(newScope); });
117
- }
118
- catch (e) {
119
- throw ClientAuthError.createAppendScopeSetError(e);
120
- }
121
- };
122
- /**
123
- * Removes element from set of scopes.
124
- * @param scope
125
- */
126
- ScopeSet.prototype.removeScope = function (scope) {
127
- if (StringUtils.isEmpty(scope)) {
128
- throw ClientAuthError.createRemoveEmptyScopeFromSetError(scope);
129
- }
130
- this.scopes.delete(scope.trim());
131
- };
132
- /**
133
- * Removes default scopes from set of scopes
134
- * Primarily used to prevent cache misses if the default scopes are not returned from the server
135
- */
136
- ScopeSet.prototype.removeOIDCScopes = function () {
137
- var _this = this;
138
- OIDC_SCOPES.forEach(function (defaultScope) {
139
- _this.scopes.delete(defaultScope);
140
- });
141
- };
142
- /**
143
- * Combines an array of scopes with the current set of scopes.
144
- * @param otherScopes
145
- */
146
- ScopeSet.prototype.unionScopeSets = function (otherScopes) {
147
- if (!otherScopes) {
148
- throw ClientAuthError.createEmptyInputScopeSetError();
149
- }
150
- var unionScopes = new Set(); // Iterator in constructor not supported in IE11
151
- otherScopes.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); });
152
- this.scopes.forEach(function (scope) { return unionScopes.add(scope.toLowerCase()); });
153
- return unionScopes;
154
- };
155
- /**
156
- * Check if scopes intersect between this set and another.
157
- * @param otherScopes
158
- */
159
- ScopeSet.prototype.intersectingScopeSets = function (otherScopes) {
160
- if (!otherScopes) {
161
- throw ClientAuthError.createEmptyInputScopeSetError();
162
- }
163
- // Do not allow OIDC scopes to be the only intersecting scopes
164
- if (!otherScopes.containsOnlyOIDCScopes()) {
165
- otherScopes.removeOIDCScopes();
166
- }
167
- var unionScopes = this.unionScopeSets(otherScopes);
168
- var sizeOtherScopes = otherScopes.getScopeCount();
169
- var sizeThisScopes = this.getScopeCount();
170
- var sizeUnionScopes = unionScopes.size;
171
- return sizeUnionScopes < (sizeThisScopes + sizeOtherScopes);
172
- };
173
- /**
174
- * Returns size of set of scopes.
175
- */
176
- ScopeSet.prototype.getScopeCount = function () {
177
- return this.scopes.size;
178
- };
179
- /**
180
- * Returns the scopes as an array of string values
181
- */
182
- ScopeSet.prototype.asArray = function () {
183
- var array = [];
184
- this.scopes.forEach(function (val) { return array.push(val); });
185
- return array;
186
- };
187
- /**
188
- * Prints scopes into a space-delimited string
189
- */
190
- ScopeSet.prototype.printScopes = function () {
191
- if (this.scopes) {
192
- var scopeArr = this.asArray();
193
- return scopeArr.join(" ");
194
- }
195
- return Constants.EMPTY_STRING;
196
- };
197
- /**
198
- * Prints scopes into a space-delimited lower-case string (used for caching)
199
- */
200
- ScopeSet.prototype.printScopesLowerCase = function () {
201
- return this.printScopes().toLowerCase();
202
- };
203
- return ScopeSet;
204
- }());
8
+ /*
9
+ * Copyright (c) Microsoft Corporation. All rights reserved.
10
+ * Licensed under the MIT License.
11
+ */
12
+ /**
13
+ * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
14
+ * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
15
+ * to ensure uniqueness of strings.
16
+ */
17
+ class ScopeSet {
18
+ constructor(inputScopes) {
19
+ // Filter empty string and null/undefined array items
20
+ const scopeArr = inputScopes
21
+ ? StringUtils.trimArrayEntries([...inputScopes])
22
+ : [];
23
+ const filteredInput = scopeArr
24
+ ? StringUtils.removeEmptyStringsFromArray(scopeArr)
25
+ : [];
26
+ // Validate and filter scopes (validate function throws if validation fails)
27
+ this.validateInputScopes(filteredInput);
28
+ this.scopes = new Set(); // Iterator in constructor not supported by IE11
29
+ filteredInput.forEach((scope) => this.scopes.add(scope));
30
+ }
31
+ /**
32
+ * Factory method to create ScopeSet from space-delimited string
33
+ * @param inputScopeString
34
+ * @param appClientId
35
+ * @param scopesRequired
36
+ */
37
+ static fromString(inputScopeString) {
38
+ const scopeString = inputScopeString || Constants.EMPTY_STRING;
39
+ const inputScopes = scopeString.split(" ");
40
+ return new ScopeSet(inputScopes);
41
+ }
42
+ /**
43
+ * Creates the set of scopes to search for in cache lookups
44
+ * @param inputScopeString
45
+ * @returns
46
+ */
47
+ static createSearchScopes(inputScopeString) {
48
+ const scopeSet = new ScopeSet(inputScopeString);
49
+ if (!scopeSet.containsOnlyOIDCScopes()) {
50
+ scopeSet.removeOIDCScopes();
51
+ }
52
+ else {
53
+ scopeSet.removeScope(Constants.OFFLINE_ACCESS_SCOPE);
54
+ }
55
+ return scopeSet;
56
+ }
57
+ /**
58
+ * Used to validate the scopes input parameter requested by the developer.
59
+ * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.
60
+ * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
61
+ */
62
+ validateInputScopes(inputScopes) {
63
+ // Check if scopes are required but not given or is an empty array
64
+ if (!inputScopes || inputScopes.length < 1) {
65
+ throw ClientConfigurationError.createEmptyScopesArrayError();
66
+ }
67
+ }
68
+ /**
69
+ * Check if a given scope is present in this set of scopes.
70
+ * @param scope
71
+ */
72
+ containsScope(scope) {
73
+ const lowerCaseScopes = this.printScopesLowerCase().split(" ");
74
+ const lowerCaseScopesSet = new ScopeSet(lowerCaseScopes);
75
+ // compare lowercase scopes
76
+ return !StringUtils.isEmpty(scope)
77
+ ? lowerCaseScopesSet.scopes.has(scope.toLowerCase())
78
+ : false;
79
+ }
80
+ /**
81
+ * Check if a set of scopes is present in this set of scopes.
82
+ * @param scopeSet
83
+ */
84
+ containsScopeSet(scopeSet) {
85
+ if (!scopeSet || scopeSet.scopes.size <= 0) {
86
+ return false;
87
+ }
88
+ return (this.scopes.size >= scopeSet.scopes.size &&
89
+ scopeSet.asArray().every((scope) => this.containsScope(scope)));
90
+ }
91
+ /**
92
+ * Check if set of scopes contains only the defaults
93
+ */
94
+ containsOnlyOIDCScopes() {
95
+ let defaultScopeCount = 0;
96
+ OIDC_SCOPES.forEach((defaultScope) => {
97
+ if (this.containsScope(defaultScope)) {
98
+ defaultScopeCount += 1;
99
+ }
100
+ });
101
+ return this.scopes.size === defaultScopeCount;
102
+ }
103
+ /**
104
+ * Appends single scope if passed
105
+ * @param newScope
106
+ */
107
+ appendScope(newScope) {
108
+ if (!StringUtils.isEmpty(newScope)) {
109
+ this.scopes.add(newScope.trim());
110
+ }
111
+ }
112
+ /**
113
+ * Appends multiple scopes if passed
114
+ * @param newScopes
115
+ */
116
+ appendScopes(newScopes) {
117
+ try {
118
+ newScopes.forEach((newScope) => this.appendScope(newScope));
119
+ }
120
+ catch (e) {
121
+ throw ClientAuthError.createAppendScopeSetError(e);
122
+ }
123
+ }
124
+ /**
125
+ * Removes element from set of scopes.
126
+ * @param scope
127
+ */
128
+ removeScope(scope) {
129
+ if (StringUtils.isEmpty(scope)) {
130
+ throw ClientAuthError.createRemoveEmptyScopeFromSetError(scope);
131
+ }
132
+ this.scopes.delete(scope.trim());
133
+ }
134
+ /**
135
+ * Removes default scopes from set of scopes
136
+ * Primarily used to prevent cache misses if the default scopes are not returned from the server
137
+ */
138
+ removeOIDCScopes() {
139
+ OIDC_SCOPES.forEach((defaultScope) => {
140
+ this.scopes.delete(defaultScope);
141
+ });
142
+ }
143
+ /**
144
+ * Combines an array of scopes with the current set of scopes.
145
+ * @param otherScopes
146
+ */
147
+ unionScopeSets(otherScopes) {
148
+ if (!otherScopes) {
149
+ throw ClientAuthError.createEmptyInputScopeSetError();
150
+ }
151
+ const unionScopes = new Set(); // Iterator in constructor not supported in IE11
152
+ otherScopes.scopes.forEach((scope) => unionScopes.add(scope.toLowerCase()));
153
+ this.scopes.forEach((scope) => unionScopes.add(scope.toLowerCase()));
154
+ return unionScopes;
155
+ }
156
+ /**
157
+ * Check if scopes intersect between this set and another.
158
+ * @param otherScopes
159
+ */
160
+ intersectingScopeSets(otherScopes) {
161
+ if (!otherScopes) {
162
+ throw ClientAuthError.createEmptyInputScopeSetError();
163
+ }
164
+ // Do not allow OIDC scopes to be the only intersecting scopes
165
+ if (!otherScopes.containsOnlyOIDCScopes()) {
166
+ otherScopes.removeOIDCScopes();
167
+ }
168
+ const unionScopes = this.unionScopeSets(otherScopes);
169
+ const sizeOtherScopes = otherScopes.getScopeCount();
170
+ const sizeThisScopes = this.getScopeCount();
171
+ const sizeUnionScopes = unionScopes.size;
172
+ return sizeUnionScopes < sizeThisScopes + sizeOtherScopes;
173
+ }
174
+ /**
175
+ * Returns size of set of scopes.
176
+ */
177
+ getScopeCount() {
178
+ return this.scopes.size;
179
+ }
180
+ /**
181
+ * Returns the scopes as an array of string values
182
+ */
183
+ asArray() {
184
+ const array = [];
185
+ this.scopes.forEach((val) => array.push(val));
186
+ return array;
187
+ }
188
+ /**
189
+ * Prints scopes into a space-delimited string
190
+ */
191
+ printScopes() {
192
+ if (this.scopes) {
193
+ const scopeArr = this.asArray();
194
+ return scopeArr.join(" ");
195
+ }
196
+ return Constants.EMPTY_STRING;
197
+ }
198
+ /**
199
+ * Prints scopes into a space-delimited lower-case string (used for caching)
200
+ */
201
+ printScopesLowerCase() {
202
+ return this.printScopes().toLowerCase();
203
+ }
204
+ }
205
205
 
206
206
  export { ScopeSet };
207
207
  //# sourceMappingURL=ScopeSet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScopeSet.js","sources":["../../src/request/ScopeSet.ts"],"sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ClientConfigurationError } from \"../error/ClientConfigurationError\";\nimport { StringUtils } from \"../utils/StringUtils\";\nimport { ClientAuthError } from \"../error/ClientAuthError\";\nimport { Constants, OIDC_SCOPES } from \"../utils/Constants\";\n\n/**\n * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes\n * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions\n * to ensure uniqueness of strings.\n */\nexport class ScopeSet {\n // Scopes as a Set of strings\n private scopes: Set<string>;\n\n constructor(inputScopes: Array<string>) {\n // Filter empty string and null/undefined array items\n const scopeArr = inputScopes ? StringUtils.trimArrayEntries([...inputScopes]) : [];\n const filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];\n\n // Validate and filter scopes (validate function throws if validation fails)\n this.validateInputScopes(filteredInput);\n\n this.scopes = new Set<string>(); // Iterator in constructor not supported by IE11\n filteredInput.forEach(scope => this.scopes.add(scope));\n }\n\n /**\n * Factory method to create ScopeSet from space-delimited string\n * @param inputScopeString\n * @param appClientId\n * @param scopesRequired\n */\n static fromString(inputScopeString: string): ScopeSet {\n const scopeString = inputScopeString || Constants.EMPTY_STRING;\n const inputScopes: Array<string> = scopeString.split(\" \");\n return new ScopeSet(inputScopes);\n }\n\n /**\n * Creates the set of scopes to search for in cache lookups\n * @param inputScopeString \n * @returns \n */\n static createSearchScopes(inputScopeString: Array<string>): ScopeSet {\n const scopeSet = new ScopeSet(inputScopeString);\n if (!scopeSet.containsOnlyOIDCScopes()) {\n scopeSet.removeOIDCScopes();\n } else {\n scopeSet.removeScope(Constants.OFFLINE_ACCESS_SCOPE);\n }\n\n return scopeSet;\n }\n\n /**\n * Used to validate the scopes input parameter requested by the developer.\n * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.\n * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not\n */\n private validateInputScopes(inputScopes: Array<string>): void {\n // Check if scopes are required but not given or is an empty array\n if (!inputScopes || inputScopes.length < 1) {\n throw ClientConfigurationError.createEmptyScopesArrayError();\n }\n }\n\n /**\n * Check if a given scope is present in this set of scopes.\n * @param scope\n */\n containsScope(scope: string): boolean {\n const lowerCaseScopes = this.printScopesLowerCase().split(\" \");\n const lowerCaseScopesSet = new ScopeSet(lowerCaseScopes);\n // compare lowercase scopes\n return !StringUtils.isEmpty(scope) ? lowerCaseScopesSet.scopes.has(scope.toLowerCase()) : false;\n }\n\n /**\n * Check if a set of scopes is present in this set of scopes.\n * @param scopeSet\n */\n containsScopeSet(scopeSet: ScopeSet): boolean {\n if (!scopeSet || scopeSet.scopes.size <= 0) {\n return false;\n }\n\n return (this.scopes.size >= scopeSet.scopes.size && scopeSet.asArray().every(scope => this.containsScope(scope)));\n }\n\n /**\n * Check if set of scopes contains only the defaults\n */\n containsOnlyOIDCScopes(): boolean {\n let defaultScopeCount = 0;\n OIDC_SCOPES.forEach((defaultScope: string) => {\n if (this.containsScope(defaultScope)) {\n defaultScopeCount += 1;\n }\n });\n\n return this.scopes.size === defaultScopeCount;\n }\n\n /**\n * Appends single scope if passed\n * @param newScope\n */\n appendScope(newScope: string): void {\n if (!StringUtils.isEmpty(newScope)) {\n this.scopes.add(newScope.trim());\n }\n }\n\n /**\n * Appends multiple scopes if passed\n * @param newScopes\n */\n appendScopes(newScopes: Array<string>): void {\n try {\n newScopes.forEach(newScope => this.appendScope(newScope));\n } catch (e) {\n throw ClientAuthError.createAppendScopeSetError(e);\n }\n }\n\n /**\n * Removes element from set of scopes.\n * @param scope\n */\n removeScope(scope: string): void {\n if (StringUtils.isEmpty(scope)) {\n throw ClientAuthError.createRemoveEmptyScopeFromSetError(scope);\n }\n this.scopes.delete(scope.trim());\n }\n\n /**\n * Removes default scopes from set of scopes\n * Primarily used to prevent cache misses if the default scopes are not returned from the server\n */\n removeOIDCScopes(): void {\n OIDC_SCOPES.forEach((defaultScope: string) => {\n this.scopes.delete(defaultScope);\n });\n }\n\n /**\n * Combines an array of scopes with the current set of scopes.\n * @param otherScopes\n */\n unionScopeSets(otherScopes: ScopeSet): Set<string> {\n if (!otherScopes) {\n throw ClientAuthError.createEmptyInputScopeSetError();\n }\n const unionScopes = new Set<string>(); // Iterator in constructor not supported in IE11\n otherScopes.scopes.forEach(scope => unionScopes.add(scope.toLowerCase()));\n this.scopes.forEach(scope => unionScopes.add(scope.toLowerCase()));\n return unionScopes;\n }\n\n /**\n * Check if scopes intersect between this set and another.\n * @param otherScopes\n */\n intersectingScopeSets(otherScopes: ScopeSet): boolean {\n if (!otherScopes) {\n throw ClientAuthError.createEmptyInputScopeSetError();\n }\n \n // Do not allow OIDC scopes to be the only intersecting scopes\n if (!otherScopes.containsOnlyOIDCScopes()) {\n otherScopes.removeOIDCScopes();\n }\n const unionScopes = this.unionScopeSets(otherScopes);\n const sizeOtherScopes = otherScopes.getScopeCount();\n const sizeThisScopes = this.getScopeCount();\n const sizeUnionScopes = unionScopes.size;\n return sizeUnionScopes < (sizeThisScopes + sizeOtherScopes);\n }\n\n /**\n * Returns size of set of scopes.\n */\n getScopeCount(): number {\n return this.scopes.size;\n }\n\n /**\n * Returns the scopes as an array of string values\n */\n asArray(): Array<string> {\n const array: Array<string> = [];\n this.scopes.forEach(val => array.push(val));\n return array;\n }\n\n /**\n * Prints scopes into a space-delimited string\n */\n printScopes(): string {\n if (this.scopes) {\n const scopeArr = this.asArray();\n return scopeArr.join(\" \");\n }\n return Constants.EMPTY_STRING;\n }\n\n /**\n * Prints scopes into a space-delimited lower-case string (used for caching)\n */\n printScopesLowerCase(): string {\n return this.printScopes().toLowerCase();\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAOH;;;;AAIG;AACH,IAAA,QAAA,kBAAA,YAAA;AAII,IAAA,SAAA,QAAA,CAAY,WAA0B,EAAA;QAAtC,IAUC,KAAA,GAAA,IAAA,CAAA;;AARG,QAAA,IAAM,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC,gBAAgB,CAAA,cAAA,CAAK,WAAW,CAAE,CAAA,GAAG,EAAE,CAAC;AACnF,QAAA,IAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,CAAC,2BAA2B,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;;AAGxF,QAAA,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAExC,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;AAChC,QAAA,aAAa,CAAC,OAAO,CAAC,UAAA,KAAK,EAAA,EAAI,OAAA,KAAI,CAAC,MAA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CAAC;AACzC,QAAA,OAAO,eAAe,GAAG,cAAc,GAAG,eAAe,CAAC;KAC7D;AAED;;AAEG;IACH,aAAa,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;KAC3B;AAED;;AAEG;IACH,OAAO,GAAA;QACH,MAAM,KAAK,GAAkB,EAAE,CAAC;AAChC,QAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC9C,QAAA,OAAO,KAAK,CAAC;KAChB;AAED;;AAEG;IACH,WAAW,GAAA;QACP,IAAI,IAAI,CAAC,MAAM,EAAE;AACb,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;AAChC,YAAA,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7B,SAAA;QACD,OAAO,SAAS,CAAC,YAAY,CAAC;KACjC;AAED;;AAEG;IACH,oBAAoB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,CAAC;KAC3C;AACJ;;;;"}
@@ -1,40 +1,40 @@
1
- import { AccountInfo } from "../account/AccountInfo";
2
- /**
3
- * Result returned from the authority's token endpoint.
4
- * - uniqueId - `oid` or `sub` claim from ID token
5
- * - tenantId - `tid` claim from ID token
6
- * - scopes - Scopes that are validated for the respective token
7
- * - account - An account object representation of the currently signed-in user
8
- * - idToken - Id token received as part of the response
9
- * - idTokenClaims - MSAL-relevant ID token claims
10
- * - accessToken - Access token or SSH certificate received as part of the response
11
- * - fromCache - Boolean denoting whether token came from cache
12
- * - expiresOn - Javascript Date object representing relative expiration of access token
13
- * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage
14
- * - state - Value passed in by user in request
15
- * - familyId - Family ID identifier, usually only used for refresh tokens
16
- * - requestId - Request ID returned as part of the response
17
- */
18
- export declare type AuthenticationResult = {
19
- authority: string;
20
- uniqueId: string;
21
- tenantId: string;
22
- scopes: Array<string>;
23
- account: AccountInfo | null;
24
- idToken: string;
25
- idTokenClaims: object;
26
- accessToken: string;
27
- fromCache: boolean;
28
- expiresOn: Date | null;
29
- tokenType: string;
30
- correlationId: string;
31
- requestId?: string;
32
- extExpiresOn?: Date;
33
- state?: string;
34
- familyId?: string;
35
- cloudGraphHostName?: string;
36
- msGraphHost?: string;
37
- code?: string;
38
- fromNativeBroker?: boolean;
39
- };
1
+ import { AccountInfo } from "../account/AccountInfo";
2
+ /**
3
+ * Result returned from the authority's token endpoint.
4
+ * - uniqueId - `oid` or `sub` claim from ID token
5
+ * - tenantId - `tid` claim from ID token
6
+ * - scopes - Scopes that are validated for the respective token
7
+ * - account - An account object representation of the currently signed-in user
8
+ * - idToken - Id token received as part of the response
9
+ * - idTokenClaims - MSAL-relevant ID token claims
10
+ * - accessToken - Access token or SSH certificate received as part of the response
11
+ * - fromCache - Boolean denoting whether token came from cache
12
+ * - expiresOn - Javascript Date object representing relative expiration of access token
13
+ * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage
14
+ * - state - Value passed in by user in request
15
+ * - familyId - Family ID identifier, usually only used for refresh tokens
16
+ * - requestId - Request ID returned as part of the response
17
+ */
18
+ export type AuthenticationResult = {
19
+ authority: string;
20
+ uniqueId: string;
21
+ tenantId: string;
22
+ scopes: Array<string>;
23
+ account: AccountInfo | null;
24
+ idToken: string;
25
+ idTokenClaims: object;
26
+ accessToken: string;
27
+ fromCache: boolean;
28
+ expiresOn: Date | null;
29
+ tokenType: string;
30
+ correlationId: string;
31
+ requestId?: string;
32
+ extExpiresOn?: Date;
33
+ state?: string;
34
+ familyId?: string;
35
+ cloudGraphHostName?: string;
36
+ msGraphHost?: string;
37
+ code?: string;
38
+ fromNativeBroker?: boolean;
39
+ };
40
40
  //# sourceMappingURL=AuthenticationResult.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC"}
@@ -1,14 +1,14 @@
1
- /**
2
- * Response returned after processing the code response query string or fragment.
3
- */
4
- export declare type AuthorizationCodePayload = {
5
- code: string;
6
- cloud_instance_name?: string;
7
- cloud_instance_host_name?: string;
8
- cloud_graph_host_name?: string;
9
- msgraph_host?: string;
10
- state?: string;
11
- nonce?: string;
12
- client_info?: string;
13
- };
1
+ /**
2
+ * Response returned after processing the code response query string or fragment.
3
+ */
4
+ export type AuthorizationCodePayload = {
5
+ code: string;
6
+ cloud_instance_name?: string;
7
+ cloud_instance_host_name?: string;
8
+ cloud_graph_host_name?: string;
9
+ msgraph_host?: string;
10
+ state?: string;
11
+ nonce?: string;
12
+ client_info?: string;
13
+ };
14
14
  //# sourceMappingURL=AuthorizationCodePayload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -1,26 +1,26 @@
1
- /**
2
- * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow.
3
- * - userCode: code which user needs to provide when authenticating at the verification URI
4
- * - deviceCode: code which should be included in the request for the access token
5
- * - verificationUri: URI where user can authenticate
6
- * - expiresIn: expiration time of the device code in seconds
7
- * - interval: interval at which the STS should be polled at
8
- * - message: message which should be displayed to the user
9
- */
10
- export declare type DeviceCodeResponse = {
11
- userCode: string;
12
- deviceCode: string;
13
- verificationUri: string;
14
- expiresIn: number;
15
- interval: number;
16
- message: string;
17
- };
18
- export declare type ServerDeviceCodeResponse = {
19
- user_code: string;
20
- device_code: string;
21
- verification_uri: string;
22
- expires_in: number;
23
- interval: number;
24
- message: string;
25
- };
1
+ /**
2
+ * DeviceCode returned by the security token service device code endpoint containing information necessary for device code flow.
3
+ * - userCode: code which user needs to provide when authenticating at the verification URI
4
+ * - deviceCode: code which should be included in the request for the access token
5
+ * - verificationUri: URI where user can authenticate
6
+ * - expiresIn: expiration time of the device code in seconds
7
+ * - interval: interval at which the STS should be polled at
8
+ * - message: message which should be displayed to the user
9
+ */
10
+ export type DeviceCodeResponse = {
11
+ userCode: string;
12
+ deviceCode: string;
13
+ verificationUri: string;
14
+ expiresIn: number;
15
+ interval: number;
16
+ message: string;
17
+ };
18
+ export type ServerDeviceCodeResponse = {
19
+ user_code: string;
20
+ device_code: string;
21
+ verification_uri: string;
22
+ expires_in: number;
23
+ interval: number;
24
+ message: string;
25
+ };
26
26
  //# sourceMappingURL=DeviceCodeResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,oBAAY,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"DeviceCodeResponse.d.ts","sourceRoot":"","sources":["../../src/response/DeviceCodeResponse.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}