@azure/msal-common 14.4.1-beta.0 → 14.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/account/AccountInfo.d.ts +58 -31
  2. package/dist/account/AccountInfo.d.ts.map +1 -1
  3. package/dist/account/AccountInfo.mjs +64 -0
  4. package/dist/account/AccountInfo.mjs.map +1 -0
  5. package/dist/account/AuthToken.d.ts +17 -17
  6. package/dist/account/AuthToken.mjs +58 -58
  7. package/dist/account/AuthToken.mjs.map +1 -1
  8. package/dist/account/CcsCredential.d.ts +9 -9
  9. package/dist/account/CcsCredential.mjs +8 -8
  10. package/dist/account/CcsCredential.mjs.map +1 -1
  11. package/dist/account/ClientCredentials.d.ts +14 -14
  12. package/dist/account/ClientInfo.d.ts +18 -19
  13. package/dist/account/ClientInfo.d.ts.map +1 -1
  14. package/dist/account/ClientInfo.mjs +37 -37
  15. package/dist/account/ClientInfo.mjs.map +1 -1
  16. package/dist/account/TokenClaims.d.ts +83 -65
  17. package/dist/account/TokenClaims.d.ts.map +1 -1
  18. package/dist/account/TokenClaims.mjs +25 -0
  19. package/dist/account/TokenClaims.mjs.map +1 -0
  20. package/dist/authority/Authority.d.ts +253 -249
  21. package/dist/authority/Authority.d.ts.map +1 -1
  22. package/dist/authority/Authority.mjs +812 -789
  23. package/dist/authority/Authority.mjs.map +1 -1
  24. package/dist/authority/AuthorityFactory.d.ts +31 -31
  25. package/dist/authority/AuthorityFactory.mjs +47 -47
  26. package/dist/authority/AuthorityFactory.mjs.map +1 -1
  27. package/dist/authority/AuthorityMetadata.d.ts +503 -503
  28. package/dist/authority/AuthorityMetadata.mjs +603 -603
  29. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  30. package/dist/authority/AuthorityOptions.d.ts +27 -27
  31. package/dist/authority/AuthorityOptions.mjs +18 -18
  32. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  33. package/dist/authority/AuthorityType.d.ts +10 -10
  34. package/dist/authority/AuthorityType.mjs +13 -13
  35. package/dist/authority/AuthorityType.mjs.map +1 -1
  36. package/dist/authority/AzureRegion.d.ts +1 -1
  37. package/dist/authority/AzureRegionConfiguration.d.ts +5 -5
  38. package/dist/authority/CloudDiscoveryMetadata.d.ts +5 -5
  39. package/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +13 -13
  40. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +8 -8
  41. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs.map +1 -1
  42. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +9 -9
  43. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +8 -8
  44. package/dist/authority/CloudInstanceDiscoveryResponse.mjs.map +1 -1
  45. package/dist/authority/ImdsOptions.d.ts +5 -5
  46. package/dist/authority/OIDCOptions.d.ts +8 -8
  47. package/dist/authority/OpenIdConfigResponse.d.ts +11 -11
  48. package/dist/authority/OpenIdConfigResponse.mjs +10 -10
  49. package/dist/authority/OpenIdConfigResponse.mjs.map +1 -1
  50. package/dist/authority/ProtocolMode.d.ts +8 -8
  51. package/dist/authority/ProtocolMode.mjs +11 -11
  52. package/dist/authority/ProtocolMode.mjs.map +1 -1
  53. package/dist/authority/RegionDiscovery.d.ts +32 -32
  54. package/dist/authority/RegionDiscovery.mjs +106 -106
  55. package/dist/authority/RegionDiscovery.mjs.map +1 -1
  56. package/dist/authority/RegionDiscoveryMetadata.d.ts +6 -6
  57. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +15 -15
  58. package/dist/cache/CacheManager.d.ts +517 -485
  59. package/dist/cache/CacheManager.d.ts.map +1 -1
  60. package/dist/cache/CacheManager.mjs +1264 -1102
  61. package/dist/cache/CacheManager.mjs.map +1 -1
  62. package/dist/cache/entities/AccessTokenEntity.d.ts +25 -25
  63. package/dist/cache/entities/AccountEntity.d.ts +106 -101
  64. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  65. package/dist/cache/entities/AccountEntity.mjs +247 -219
  66. package/dist/cache/entities/AccountEntity.mjs.map +1 -1
  67. package/dist/cache/entities/AppMetadataEntity.d.ts +39 -39
  68. package/dist/cache/entities/AppMetadataEntity.mjs +66 -66
  69. package/dist/cache/entities/AppMetadataEntity.mjs.map +1 -1
  70. package/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -48
  71. package/dist/cache/entities/AuthorityMetadataEntity.mjs +78 -78
  72. package/dist/cache/entities/AuthorityMetadataEntity.mjs.map +1 -1
  73. package/dist/cache/entities/CacheRecord.d.ts +14 -14
  74. package/dist/cache/entities/CacheRecord.mjs +14 -14
  75. package/dist/cache/entities/CacheRecord.mjs.map +1 -1
  76. package/dist/cache/entities/CredentialEntity.d.ts +30 -30
  77. package/dist/cache/entities/IdTokenEntity.d.ts +8 -8
  78. package/dist/cache/entities/RefreshTokenEntity.d.ts +5 -7
  79. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  80. package/dist/cache/entities/ServerTelemetryEntity.d.ts +5 -5
  81. package/dist/cache/entities/ThrottlingEntity.d.ts +13 -13
  82. package/dist/cache/entities/ThrottlingEntity.mjs +23 -23
  83. package/dist/cache/entities/ThrottlingEntity.mjs.map +1 -1
  84. package/dist/cache/interface/ICacheManager.d.ts +166 -166
  85. package/dist/cache/interface/ICachePlugin.d.ts +5 -5
  86. package/dist/cache/interface/ISerializableTokenCache.d.ts +4 -4
  87. package/dist/cache/persistence/TokenCacheContext.d.ts +23 -23
  88. package/dist/cache/persistence/TokenCacheContext.mjs +25 -25
  89. package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
  90. package/dist/cache/utils/CacheHelpers.d.ts +64 -64
  91. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  92. package/dist/cache/utils/CacheHelpers.mjs +231 -234
  93. package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
  94. package/dist/cache/utils/CacheTypes.d.ts +69 -67
  95. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  96. package/dist/client/AuthorizationCodeClient.d.ts +74 -74
  97. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  98. package/dist/client/AuthorizationCodeClient.mjs +404 -403
  99. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  100. package/dist/client/BaseClient.d.ts +51 -51
  101. package/dist/client/BaseClient.mjs +100 -100
  102. package/dist/client/BaseClient.mjs.map +1 -1
  103. package/dist/client/RefreshTokenClient.d.ts +35 -35
  104. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  105. package/dist/client/RefreshTokenClient.mjs +189 -194
  106. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  107. package/dist/client/SilentFlowClient.d.ts +27 -27
  108. package/dist/client/SilentFlowClient.mjs +118 -118
  109. package/dist/client/SilentFlowClient.mjs.map +1 -1
  110. package/dist/config/AppTokenProvider.d.ts +38 -38
  111. package/dist/config/ClientConfiguration.d.ts +150 -150
  112. package/dist/config/ClientConfiguration.mjs +97 -97
  113. package/dist/config/ClientConfiguration.mjs.map +1 -1
  114. package/dist/constants/AADServerParamKeys.d.ts +52 -0
  115. package/dist/constants/AADServerParamKeys.d.ts.map +1 -0
  116. package/dist/constants/AADServerParamKeys.mjs +60 -0
  117. package/dist/constants/AADServerParamKeys.mjs.map +1 -0
  118. package/dist/crypto/ICrypto.d.ts +58 -58
  119. package/dist/crypto/ICrypto.mjs +30 -30
  120. package/dist/crypto/ICrypto.mjs.map +1 -1
  121. package/dist/crypto/IGuidGenerator.d.ts +4 -4
  122. package/dist/crypto/JoseHeader.d.ts +22 -22
  123. package/dist/crypto/JoseHeader.mjs +37 -37
  124. package/dist/crypto/JoseHeader.mjs.map +1 -1
  125. package/dist/crypto/PopTokenGenerator.d.ts +60 -60
  126. package/dist/crypto/PopTokenGenerator.mjs +82 -82
  127. package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
  128. package/dist/crypto/SignedHttpRequest.d.ts +15 -15
  129. package/dist/error/AuthError.d.ts +44 -44
  130. package/dist/error/AuthError.mjs +46 -46
  131. package/dist/error/AuthError.mjs.map +1 -1
  132. package/dist/error/AuthErrorCodes.d.ts +5 -5
  133. package/dist/error/AuthErrorCodes.mjs +9 -9
  134. package/dist/error/AuthErrorCodes.mjs.map +1 -1
  135. package/dist/error/ClientAuthError.d.ts +237 -237
  136. package/dist/error/ClientAuthError.mjs +249 -249
  137. package/dist/error/ClientAuthError.mjs.map +1 -1
  138. package/dist/error/ClientAuthErrorCodes.d.ts +44 -44
  139. package/dist/error/ClientAuthErrorCodes.mjs +48 -48
  140. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  141. package/dist/error/ClientConfigurationError.d.ts +128 -128
  142. package/dist/error/ClientConfigurationError.mjs +135 -135
  143. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  144. package/dist/error/ClientConfigurationErrorCodes.d.ts +22 -22
  145. package/dist/error/ClientConfigurationErrorCodes.mjs +26 -26
  146. package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  147. package/dist/error/InteractionRequiredAuthError.d.ts +57 -57
  148. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  149. package/dist/error/InteractionRequiredAuthError.mjs +77 -78
  150. package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  151. package/dist/error/InteractionRequiredAuthErrorCodes.d.ts +5 -6
  152. package/dist/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -1
  153. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +12 -13
  154. package/dist/error/InteractionRequiredAuthErrorCodes.mjs.map +1 -1
  155. package/dist/error/JoseHeaderError.d.ts +15 -15
  156. package/dist/error/JoseHeaderError.mjs +22 -22
  157. package/dist/error/JoseHeaderError.mjs.map +1 -1
  158. package/dist/error/JoseHeaderErrorCodes.d.ts +2 -2
  159. package/dist/error/JoseHeaderErrorCodes.mjs +6 -6
  160. package/dist/error/JoseHeaderErrorCodes.mjs.map +1 -1
  161. package/dist/error/ServerError.d.ts +7 -7
  162. package/dist/error/ServerError.mjs +14 -14
  163. package/dist/error/ServerError.mjs.map +1 -1
  164. package/dist/index.cjs +8645 -8295
  165. package/dist/index.cjs.map +1 -1
  166. package/dist/index.d.ts +99 -98
  167. package/dist/index.d.ts.map +1 -1
  168. package/dist/index.mjs +7 -3
  169. package/dist/index.mjs.map +1 -1
  170. package/dist/logger/Logger.d.ts +95 -95
  171. package/dist/logger/Logger.mjs +188 -188
  172. package/dist/logger/Logger.mjs.map +1 -1
  173. package/dist/network/INetworkModule.d.ts +29 -29
  174. package/dist/network/INetworkModule.mjs +12 -12
  175. package/dist/network/INetworkModule.mjs.map +1 -1
  176. package/dist/network/NetworkManager.d.ts +33 -33
  177. package/dist/network/NetworkManager.mjs +34 -34
  178. package/dist/network/NetworkManager.mjs.map +1 -1
  179. package/dist/network/RequestThumbprint.d.ts +18 -18
  180. package/dist/network/ThrottlingUtils.d.ts +42 -42
  181. package/dist/network/ThrottlingUtils.mjs +95 -95
  182. package/dist/network/ThrottlingUtils.mjs.map +1 -1
  183. package/dist/packageMetadata.d.ts +2 -2
  184. package/dist/packageMetadata.mjs +4 -4
  185. package/dist/packageMetadata.mjs.map +1 -1
  186. package/dist/request/AuthenticationHeaderParser.d.ts +19 -19
  187. package/dist/request/AuthenticationHeaderParser.mjs +55 -55
  188. package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
  189. package/dist/request/BaseAuthRequest.d.ts +43 -43
  190. package/dist/request/CommonAuthorizationCodeRequest.d.ts +27 -27
  191. package/dist/request/CommonAuthorizationUrlRequest.d.ts +50 -50
  192. package/dist/request/CommonClientCredentialRequest.d.ts +17 -17
  193. package/dist/request/CommonDeviceCodeRequest.d.ts +21 -21
  194. package/dist/request/CommonEndSessionRequest.d.ts +21 -21
  195. package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -13
  196. package/dist/request/CommonRefreshTokenRequest.d.ts +22 -23
  197. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  198. package/dist/request/CommonSilentFlowRequest.d.ts +20 -21
  199. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  200. package/dist/request/CommonUsernamePasswordRequest.d.ts +17 -17
  201. package/dist/request/NativeRequest.d.ts +19 -19
  202. package/dist/request/NativeSignOutRequest.d.ts +5 -5
  203. package/dist/request/RequestParameterBuilder.d.ts +217 -217
  204. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  205. package/dist/request/RequestParameterBuilder.mjs +383 -382
  206. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  207. package/dist/request/RequestValidator.d.ts +33 -33
  208. package/dist/request/RequestValidator.mjs +81 -81
  209. package/dist/request/RequestValidator.mjs.map +1 -1
  210. package/dist/request/ScopeSet.d.ts +88 -88
  211. package/dist/request/ScopeSet.mjs +197 -197
  212. package/dist/request/ScopeSet.mjs.map +1 -1
  213. package/dist/request/StoreInCache.d.ts +8 -8
  214. package/dist/response/AuthenticationResult.d.ts +41 -41
  215. package/dist/response/AuthorizationCodePayload.d.ts +13 -13
  216. package/dist/response/DeviceCodeResponse.d.ts +25 -25
  217. package/dist/response/ExternalTokenResponse.d.ts +15 -15
  218. package/dist/response/IMDSBadResponse.d.ts +4 -4
  219. package/dist/response/ResponseHandler.d.ts +69 -67
  220. package/dist/response/ResponseHandler.d.ts.map +1 -1
  221. package/dist/response/ResponseHandler.mjs +339 -313
  222. package/dist/response/ResponseHandler.mjs.map +1 -1
  223. package/dist/response/ServerAuthorizationCodeResponse.d.ts +25 -25
  224. package/dist/response/ServerAuthorizationTokenResponse.d.ts +46 -46
  225. package/dist/telemetry/performance/IPerformanceClient.d.ts +51 -51
  226. package/dist/telemetry/performance/IPerformanceMeasurement.d.ts +5 -5
  227. package/dist/telemetry/performance/PerformanceClient.d.ts +191 -191
  228. package/dist/telemetry/performance/PerformanceClient.mjs +409 -409
  229. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  230. package/dist/telemetry/performance/PerformanceEvent.d.ts +464 -464
  231. package/dist/telemetry/performance/PerformanceEvent.mjs +253 -253
  232. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  233. package/dist/telemetry/performance/StubPerformanceClient.d.ts +24 -24
  234. package/dist/telemetry/performance/StubPerformanceClient.mjs +76 -76
  235. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  236. package/dist/telemetry/server/ServerTelemetryManager.d.ts +66 -66
  237. package/dist/telemetry/server/ServerTelemetryManager.mjs +201 -201
  238. package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  239. package/dist/telemetry/server/ServerTelemetryRequest.d.ts +8 -8
  240. package/dist/url/IUri.d.ts +12 -12
  241. package/dist/url/UrlString.d.ts +48 -48
  242. package/dist/url/UrlString.mjs +161 -161
  243. package/dist/url/UrlString.mjs.map +1 -1
  244. package/dist/utils/Constants.d.ts +296 -365
  245. package/dist/utils/Constants.d.ts.map +1 -1
  246. package/dist/utils/Constants.mjs +309 -376
  247. package/dist/utils/Constants.mjs.map +1 -1
  248. package/dist/utils/FunctionWrappers.d.ts +27 -27
  249. package/dist/utils/FunctionWrappers.mjs +84 -84
  250. package/dist/utils/FunctionWrappers.mjs.map +1 -1
  251. package/dist/utils/MsalTypes.d.ts +6 -6
  252. package/dist/utils/ProtocolUtils.d.ts +42 -42
  253. package/dist/utils/ProtocolUtils.mjs +69 -69
  254. package/dist/utils/ProtocolUtils.mjs.map +1 -1
  255. package/dist/utils/StringUtils.d.ts +40 -40
  256. package/dist/utils/StringUtils.mjs +95 -95
  257. package/dist/utils/StringUtils.mjs.map +1 -1
  258. package/dist/utils/TimeUtils.d.ts +27 -27
  259. package/dist/utils/TimeUtils.mjs +45 -45
  260. package/dist/utils/TimeUtils.mjs.map +1 -1
  261. package/dist/utils/UrlUtils.d.ts +10 -10
  262. package/dist/utils/UrlUtils.mjs +44 -44
  263. package/dist/utils/UrlUtils.mjs.map +1 -1
  264. package/package.json +93 -92
  265. package/src/account/AccountInfo.ts +96 -0
  266. package/src/account/ClientInfo.ts +2 -3
  267. package/src/account/TokenClaims.ts +28 -0
  268. package/src/authority/Authority.ts +29 -2
  269. package/src/cache/CacheManager.ts +416 -114
  270. package/src/cache/entities/AccountEntity.ts +84 -33
  271. package/src/cache/entities/RefreshTokenEntity.ts +1 -3
  272. package/src/cache/utils/CacheHelpers.ts +1 -6
  273. package/src/cache/utils/CacheTypes.ts +11 -0
  274. package/src/client/AuthorizationCodeClient.ts +4 -5
  275. package/src/client/RefreshTokenClient.ts +3 -15
  276. package/src/client/SilentFlowClient.ts +1 -1
  277. package/src/constants/AADServerParamKeys.ts +56 -0
  278. package/src/crypto/PopTokenGenerator.ts +1 -1
  279. package/src/error/InteractionRequiredAuthError.ts +0 -2
  280. package/src/error/InteractionRequiredAuthErrorCodes.ts +0 -1
  281. package/src/index.ts +17 -5
  282. package/src/packageMetadata.ts +1 -1
  283. package/src/request/CommonRefreshTokenRequest.ts +0 -1
  284. package/src/request/CommonSilentFlowRequest.ts +0 -1
  285. package/src/request/RequestParameterBuilder.ts +7 -5
  286. package/src/response/ResponseHandler.ts +95 -27
  287. package/src/utils/Constants.ts +0 -72
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParameterBuilder.mjs","sources":["../../src/request/RequestParameterBuilder.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAKA;AAkBA;AAEA;AAIA;;AAWI,MAAA,uBAAA,CAAA;;AAEG,QAAA,IAAA,CAAA,UAAA,GAAA,IAAA,GAAA,EAAA,CAAA;AACH,KAAA;AAOA;;AAEG;AACH,IAAA,mBAAA,GAAA;AASA,QAAA,IAAA,CAAA,UAAA,CAAA,GAAA,CAAA,kBAAA,CAAA,aAAA,EAAA,kBAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,CAAA,CAAA;;;AAGG;AACH;AAOA,IAAA,iCAAA,GAAA;;AAEG,KAAA;AACH;AAOA;;;;AAIG,QAAA,IAAA,CAAA,UAAA,CAAA,GAAA,CAAA,kBAAA,CAAA,aAAA,EAAA,kBAAA,CAAA,YAAA,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RequestParameterBuilder.mjs","sources":["../../src/request/RequestParameterBuilder.ts"],"sourcesContent":[null],"names":["AADServerParamKeys.RESPONSE_TYPE","AADServerParamKeys.RESPONSE_MODE","AADServerParamKeys.NATIVE_BROKER","AADServerParamKeys.SCOPE","AADServerParamKeys.CLIENT_ID","AADServerParamKeys.REDIRECT_URI","AADServerParamKeys.POST_LOGOUT_URI","AADServerParamKeys.ID_TOKEN_HINT","AADServerParamKeys.DOMAIN_HINT","AADServerParamKeys.LOGIN_HINT","AADServerParamKeys.SID","AADServerParamKeys.CLAIMS","AADServerParamKeys.CLIENT_REQUEST_ID","AADServerParamKeys.X_CLIENT_SKU","AADServerParamKeys.X_CLIENT_VER","AADServerParamKeys.X_CLIENT_OS","AADServerParamKeys.X_CLIENT_CPU","AADServerParamKeys.X_APP_NAME","AADServerParamKeys.X_APP_VER","AADServerParamKeys.PROMPT","AADServerParamKeys.STATE","AADServerParamKeys.NONCE","AADServerParamKeys.CODE_CHALLENGE","AADServerParamKeys.CODE_CHALLENGE_METHOD","ClientConfigurationErrorCodes.pkceParamsMissing","AADServerParamKeys.CODE","AADServerParamKeys.DEVICE_CODE","AADServerParamKeys.REFRESH_TOKEN","AADServerParamKeys.CODE_VERIFIER","AADServerParamKeys.CLIENT_SECRET","AADServerParamKeys.CLIENT_ASSERTION","AADServerParamKeys.CLIENT_ASSERTION_TYPE","AADServerParamKeys.OBO_ASSERTION","AADServerParamKeys.REQUESTED_TOKEN_USE","AADServerParamKeys.GRANT_TYPE","ClientConfigurationErrorCodes.invalidClaims","AADServerParamKeys.TOKEN_TYPE","AADServerParamKeys.REQ_CNF","AADServerParamKeys.X_CLIENT_CURR_TELEM","AADServerParamKeys.X_CLIENT_LAST_TELEM","AADServ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,CAAC,UAAU,CAAC,CACjC,CAAC;KACL;AAED;;AAEG;IACH,iBAAiB,GAAA;AACb,QAAA,MAAM,mBAAmB,GAAkB,IAAI,KAAK,EAAU,CAAC;QAE/D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,KAAI;YACnC,mBAAmB,CAAC,IAAI,CAAC,CAAA,EAAG,GAAG,CAAI,CAAA,EAAA,KAAK,CAAE,CAAA,CAAC,CAAC;AAChD,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACxC;AACJ;;;;"}
@@ -1,34 +1,34 @@
1
- import { StringDict } from "../utils/MsalTypes";
2
- /**
3
- * Validates server consumable params from the "request" objects
4
- */
5
- export declare class RequestValidator {
6
- /**
7
- * Utility to check if the `redirectUri` in the request is a non-null value
8
- * @param redirectUri
9
- */
10
- static validateRedirectUri(redirectUri: string): void;
11
- /**
12
- * Utility to validate prompt sent by the user in the request
13
- * @param prompt
14
- */
15
- static validatePrompt(prompt: string): void;
16
- static validateClaims(claims: string): void;
17
- /**
18
- * Utility to validate code_challenge and code_challenge_method
19
- * @param codeChallenge
20
- * @param codeChallengeMethod
21
- */
22
- static validateCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
23
- /**
24
- * Utility to validate code_challenge_method
25
- * @param codeChallengeMethod
26
- */
27
- static validateCodeChallengeMethod(codeChallengeMethod: string): void;
28
- /**
29
- * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
30
- * @param request
31
- */
32
- static sanitizeEQParams(eQParams: StringDict, queryParams: Map<string, string>): StringDict;
33
- }
1
+ import { StringDict } from "../utils/MsalTypes";
2
+ /**
3
+ * Validates server consumable params from the "request" objects
4
+ */
5
+ export declare class RequestValidator {
6
+ /**
7
+ * Utility to check if the `redirectUri` in the request is a non-null value
8
+ * @param redirectUri
9
+ */
10
+ static validateRedirectUri(redirectUri: string): void;
11
+ /**
12
+ * Utility to validate prompt sent by the user in the request
13
+ * @param prompt
14
+ */
15
+ static validatePrompt(prompt: string): void;
16
+ static validateClaims(claims: string): void;
17
+ /**
18
+ * Utility to validate code_challenge and code_challenge_method
19
+ * @param codeChallenge
20
+ * @param codeChallengeMethod
21
+ */
22
+ static validateCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
23
+ /**
24
+ * Utility to validate code_challenge_method
25
+ * @param codeChallengeMethod
26
+ */
27
+ static validateCodeChallengeMethod(codeChallengeMethod: string): void;
28
+ /**
29
+ * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
30
+ * @param request
31
+ */
32
+ static sanitizeEQParams(eQParams: StringDict, queryParams: Map<string, string>): StringDict;
33
+ }
34
34
  //# sourceMappingURL=RequestValidator.d.ts.map
@@ -1,89 +1,89 @@
1
- /*! @azure/msal-common v14.4.1-beta.0 2023-11-14 */
1
+ /*! @azure/msal-common v14.5.0 2023-12-01 */
2
2
  'use strict';
3
3
  import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
4
4
  import { CodeChallengeMethodValues, PromptValue } from '../utils/Constants.mjs';
5
5
  import { redirectUriEmpty, invalidPromptValue, invalidClaims, pkceParamsMissing, invalidCodeChallengeMethod } from '../error/ClientConfigurationErrorCodes.mjs';
6
6
 
7
- /*
8
- * Copyright (c) Microsoft Corporation. All rights reserved.
9
- * Licensed under the MIT License.
10
- */
11
- /**
12
- * Validates server consumable params from the "request" objects
13
- */
14
- class RequestValidator {
15
- /**
16
- * Utility to check if the `redirectUri` in the request is a non-null value
17
- * @param redirectUri
18
- */
19
- static validateRedirectUri(redirectUri) {
20
- if (!redirectUri) {
21
- throw createClientConfigurationError(redirectUriEmpty);
22
- }
23
- }
24
- /**
25
- * Utility to validate prompt sent by the user in the request
26
- * @param prompt
27
- */
28
- static validatePrompt(prompt) {
29
- const promptValues = [];
30
- for (const value in PromptValue) {
31
- promptValues.push(PromptValue[value]);
32
- }
33
- if (promptValues.indexOf(prompt) < 0) {
34
- throw createClientConfigurationError(invalidPromptValue);
35
- }
36
- }
37
- static validateClaims(claims) {
38
- try {
39
- JSON.parse(claims);
40
- }
41
- catch (e) {
42
- throw createClientConfigurationError(invalidClaims);
43
- }
44
- }
45
- /**
46
- * Utility to validate code_challenge and code_challenge_method
47
- * @param codeChallenge
48
- * @param codeChallengeMethod
49
- */
50
- static validateCodeChallengeParams(codeChallenge, codeChallengeMethod) {
51
- if (!codeChallenge || !codeChallengeMethod) {
52
- throw createClientConfigurationError(pkceParamsMissing);
53
- }
54
- else {
55
- this.validateCodeChallengeMethod(codeChallengeMethod);
56
- }
57
- }
58
- /**
59
- * Utility to validate code_challenge_method
60
- * @param codeChallengeMethod
61
- */
62
- static validateCodeChallengeMethod(codeChallengeMethod) {
63
- if ([
64
- CodeChallengeMethodValues.PLAIN,
65
- CodeChallengeMethodValues.S256,
66
- ].indexOf(codeChallengeMethod) < 0) {
67
- throw createClientConfigurationError(invalidCodeChallengeMethod);
68
- }
69
- }
70
- /**
71
- * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
72
- * @param request
73
- */
74
- static sanitizeEQParams(eQParams, queryParams) {
75
- if (!eQParams) {
76
- return {};
77
- }
78
- // Remove any query parameters already included in SSO params
79
- queryParams.forEach((_value, key) => {
80
- if (eQParams[key]) {
81
- delete eQParams[key];
82
- }
83
- });
84
- // remove empty string parameters
85
- return Object.fromEntries(Object.entries(eQParams).filter((kv) => kv[1] !== ""));
86
- }
7
+ /*
8
+ * Copyright (c) Microsoft Corporation. All rights reserved.
9
+ * Licensed under the MIT License.
10
+ */
11
+ /**
12
+ * Validates server consumable params from the "request" objects
13
+ */
14
+ class RequestValidator {
15
+ /**
16
+ * Utility to check if the `redirectUri` in the request is a non-null value
17
+ * @param redirectUri
18
+ */
19
+ static validateRedirectUri(redirectUri) {
20
+ if (!redirectUri) {
21
+ throw createClientConfigurationError(redirectUriEmpty);
22
+ }
23
+ }
24
+ /**
25
+ * Utility to validate prompt sent by the user in the request
26
+ * @param prompt
27
+ */
28
+ static validatePrompt(prompt) {
29
+ const promptValues = [];
30
+ for (const value in PromptValue) {
31
+ promptValues.push(PromptValue[value]);
32
+ }
33
+ if (promptValues.indexOf(prompt) < 0) {
34
+ throw createClientConfigurationError(invalidPromptValue);
35
+ }
36
+ }
37
+ static validateClaims(claims) {
38
+ try {
39
+ JSON.parse(claims);
40
+ }
41
+ catch (e) {
42
+ throw createClientConfigurationError(invalidClaims);
43
+ }
44
+ }
45
+ /**
46
+ * Utility to validate code_challenge and code_challenge_method
47
+ * @param codeChallenge
48
+ * @param codeChallengeMethod
49
+ */
50
+ static validateCodeChallengeParams(codeChallenge, codeChallengeMethod) {
51
+ if (!codeChallenge || !codeChallengeMethod) {
52
+ throw createClientConfigurationError(pkceParamsMissing);
53
+ }
54
+ else {
55
+ this.validateCodeChallengeMethod(codeChallengeMethod);
56
+ }
57
+ }
58
+ /**
59
+ * Utility to validate code_challenge_method
60
+ * @param codeChallengeMethod
61
+ */
62
+ static validateCodeChallengeMethod(codeChallengeMethod) {
63
+ if ([
64
+ CodeChallengeMethodValues.PLAIN,
65
+ CodeChallengeMethodValues.S256,
66
+ ].indexOf(codeChallengeMethod) < 0) {
67
+ throw createClientConfigurationError(invalidCodeChallengeMethod);
68
+ }
69
+ }
70
+ /**
71
+ * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
72
+ * @param request
73
+ */
74
+ static sanitizeEQParams(eQParams, queryParams) {
75
+ if (!eQParams) {
76
+ return {};
77
+ }
78
+ // Remove any query parameters already included in SSO params
79
+ queryParams.forEach((_value, key) => {
80
+ if (eQParams[key]) {
81
+ delete eQParams[key];
82
+ }
83
+ });
84
+ // remove empty string parameters
85
+ return Object.fromEntries(Object.entries(eQParams).filter((kv) => kv[1] !== ""));
86
+ }
87
87
  }
88
88
 
89
89
  export { RequestValidator };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestValidator.mjs","sources":["../../src/request/RequestValidator.ts"],"sourcesContent":[null],"names":["ClientConfigurationErrorCodes.redirectUriEmpty"],"mappings":";;;;;;AAUA;AAEA;;AAEG;;;AAKI;AACH,MAA0B,gBAAA,CAAA;AAQ1B;;;AAGG;AACH,IAAA,OAAO,iCAAoC;AAc3C,QAAA,IAAqB,CAAA,WAAA,EAAC;AAUtB,YAAA,MAAA,8BAAA,CAAAA,gBAAA,CAAA,CAAA;;;;AAIG;;AAcH;;;AAGG,QAAA,KAAA,MAAA,KAAA,IAAA,WAAA,EAAA;AACH,YAAkC,YAAA,CAAA,IAAA,CAAA;AAalC,SAAA;;;AAGG,SAAA;AACH,KAAA;AAoBH,IAAA,OAAA,cAAA,CAAA,MAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RequestValidator.mjs","sources":["../../src/request/RequestValidator.ts"],"sourcesContent":[null],"names":["ClientConfigurationErrorCodes.redirectUriEmpty","ClientConfigurationErrorCodes.invalidPromptValue","ClientConfigurationErrorCodes.invalidClaims","ClientConfigurationErrorCodes.pkceParamsMissing","ClientConfigurationErrorCodes.invalidCodeChallengeMethod"],"mappings":";;;;;;AAAA;;;AAGG;AASH;;AAEG;MACU,gBAAgB,CAAA;AACzB;;;AAGG;IACH,OAAO,mBAAmB,CAAC,WAAmB,EAAA;QAC1C,IAAI,CAAC,WAAW,EAAE;AACd,YAAA,MAAM,8BAA8B,CAChCA,gBAA8C,CACjD,CAAC;AACL,SAAA;KACJ;AAED;;;AAGG;IACH,OAAO,cAAc,CAAC,MAAc,EAAA;QAChC,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,QAAA,KAAK,MAAM,KAAK,IAAI,WAAW,EAAE;YAC7B,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACzC,SAAA;QAED,IAAI,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;AAClC,YAAA,MAAM,8BAA8B,CAChCC,k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,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CACxD,CAAC;KACL;AACJ;;;;"}
@@ -1,89 +1,89 @@
1
- /**
2
- * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
3
- * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
4
- * to ensure uniqueness of strings.
5
- */
6
- export declare class ScopeSet {
7
- private scopes;
8
- constructor(inputScopes: Array<string>);
9
- /**
10
- * Factory method to create ScopeSet from space-delimited string
11
- * @param inputScopeString
12
- * @param appClientId
13
- * @param scopesRequired
14
- */
15
- static fromString(inputScopeString: string): ScopeSet;
16
- /**
17
- * Creates the set of scopes to search for in cache lookups
18
- * @param inputScopeString
19
- * @returns
20
- */
21
- static createSearchScopes(inputScopeString: Array<string>): ScopeSet;
22
- /**
23
- * Used to validate the scopes input parameter requested by the developer.
24
- * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.
25
- * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
26
- */
27
- private validateInputScopes;
28
- /**
29
- * Check if a given scope is present in this set of scopes.
30
- * @param scope
31
- */
32
- containsScope(scope: string): boolean;
33
- /**
34
- * Check if a set of scopes is present in this set of scopes.
35
- * @param scopeSet
36
- */
37
- containsScopeSet(scopeSet: ScopeSet): boolean;
38
- /**
39
- * Check if set of scopes contains only the defaults
40
- */
41
- containsOnlyOIDCScopes(): boolean;
42
- /**
43
- * Appends single scope if passed
44
- * @param newScope
45
- */
46
- appendScope(newScope: string): void;
47
- /**
48
- * Appends multiple scopes if passed
49
- * @param newScopes
50
- */
51
- appendScopes(newScopes: Array<string>): void;
52
- /**
53
- * Removes element from set of scopes.
54
- * @param scope
55
- */
56
- removeScope(scope: string): void;
57
- /**
58
- * Removes default scopes from set of scopes
59
- * Primarily used to prevent cache misses if the default scopes are not returned from the server
60
- */
61
- removeOIDCScopes(): void;
62
- /**
63
- * Combines an array of scopes with the current set of scopes.
64
- * @param otherScopes
65
- */
66
- unionScopeSets(otherScopes: ScopeSet): Set<string>;
67
- /**
68
- * Check if scopes intersect between this set and another.
69
- * @param otherScopes
70
- */
71
- intersectingScopeSets(otherScopes: ScopeSet): boolean;
72
- /**
73
- * Returns size of set of scopes.
74
- */
75
- getScopeCount(): number;
76
- /**
77
- * Returns the scopes as an array of string values
78
- */
79
- asArray(): Array<string>;
80
- /**
81
- * Prints scopes into a space-delimited string
82
- */
83
- printScopes(): string;
84
- /**
85
- * Prints scopes into a space-delimited lower-case string (used for caching)
86
- */
87
- printScopesLowerCase(): string;
88
- }
1
+ /**
2
+ * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
3
+ * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
4
+ * to ensure uniqueness of strings.
5
+ */
6
+ export declare class ScopeSet {
7
+ private scopes;
8
+ constructor(inputScopes: Array<string>);
9
+ /**
10
+ * Factory method to create ScopeSet from space-delimited string
11
+ * @param inputScopeString
12
+ * @param appClientId
13
+ * @param scopesRequired
14
+ */
15
+ static fromString(inputScopeString: string): ScopeSet;
16
+ /**
17
+ * Creates the set of scopes to search for in cache lookups
18
+ * @param inputScopeString
19
+ * @returns
20
+ */
21
+ static createSearchScopes(inputScopeString: Array<string>): ScopeSet;
22
+ /**
23
+ * Used to validate the scopes input parameter requested by the developer.
24
+ * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.
25
+ * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
26
+ */
27
+ private validateInputScopes;
28
+ /**
29
+ * Check if a given scope is present in this set of scopes.
30
+ * @param scope
31
+ */
32
+ containsScope(scope: string): boolean;
33
+ /**
34
+ * Check if a set of scopes is present in this set of scopes.
35
+ * @param scopeSet
36
+ */
37
+ containsScopeSet(scopeSet: ScopeSet): boolean;
38
+ /**
39
+ * Check if set of scopes contains only the defaults
40
+ */
41
+ containsOnlyOIDCScopes(): boolean;
42
+ /**
43
+ * Appends single scope if passed
44
+ * @param newScope
45
+ */
46
+ appendScope(newScope: string): void;
47
+ /**
48
+ * Appends multiple scopes if passed
49
+ * @param newScopes
50
+ */
51
+ appendScopes(newScopes: Array<string>): void;
52
+ /**
53
+ * Removes element from set of scopes.
54
+ * @param scope
55
+ */
56
+ removeScope(scope: string): void;
57
+ /**
58
+ * Removes default scopes from set of scopes
59
+ * Primarily used to prevent cache misses if the default scopes are not returned from the server
60
+ */
61
+ removeOIDCScopes(): void;
62
+ /**
63
+ * Combines an array of scopes with the current set of scopes.
64
+ * @param otherScopes
65
+ */
66
+ unionScopeSets(otherScopes: ScopeSet): Set<string>;
67
+ /**
68
+ * Check if scopes intersect between this set and another.
69
+ * @param otherScopes
70
+ */
71
+ intersectingScopeSets(otherScopes: ScopeSet): boolean;
72
+ /**
73
+ * Returns size of set of scopes.
74
+ */
75
+ getScopeCount(): number;
76
+ /**
77
+ * Returns the scopes as an array of string values
78
+ */
79
+ asArray(): Array<string>;
80
+ /**
81
+ * Prints scopes into a space-delimited string
82
+ */
83
+ printScopes(): string;
84
+ /**
85
+ * Prints scopes into a space-delimited lower-case string (used for caching)
86
+ */
87
+ printScopesLowerCase(): string;
88
+ }
89
89
  //# sourceMappingURL=ScopeSet.d.ts.map