@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,20 +1,20 @@
1
- import { BaseAuthRequest } from "./BaseAuthRequest";
2
- import { CcsCredential } from "../account/CcsCredential";
3
- /**
4
- * CommonRefreshTokenRequest
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
- * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - refreshToken - A refresh token returned from a previous request to the Identity provider.
10
- * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
11
- * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
12
- * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
13
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
- */
15
- export declare type CommonRefreshTokenRequest = BaseAuthRequest & {
16
- refreshToken: string;
17
- ccsCredential?: CcsCredential;
18
- forceCache?: boolean;
19
- };
1
+ import { BaseAuthRequest } from "./BaseAuthRequest";
2
+ import { CcsCredential } from "../account/CcsCredential";
3
+ /**
4
+ * CommonRefreshTokenRequest
5
+ * - scopes - Array of scopes the application is requesting access to.
6
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
8
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
+ * - refreshToken - A refresh token returned from a previous request to the Identity provider.
10
+ * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
11
+ * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
12
+ * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
13
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
+ */
15
+ export type CommonRefreshTokenRequest = BaseAuthRequest & {
16
+ refreshToken: string;
17
+ ccsCredential?: CcsCredential;
18
+ forceCache?: boolean;
19
+ };
20
20
  //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map
@@ -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"}
@@ -1,19 +1,19 @@
1
- import { AccountInfo } from "../account/AccountInfo";
2
- import { BaseAuthRequest } from "./BaseAuthRequest";
3
- /**
4
- * SilentFlow parameters passed by the user to retrieve credentials silently
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
7
- * - authority - Url of the authority which the application acquires tokens from.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - account - Account entity to lookup the credentials.
10
- * - forceRefresh - Forces silent requests to make network calls if true.
11
- * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
12
- * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
13
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
- */
15
- export declare type CommonSilentFlowRequest = BaseAuthRequest & {
16
- account: AccountInfo;
17
- forceRefresh: boolean;
18
- };
1
+ import { AccountInfo } from "../account/AccountInfo";
2
+ import { BaseAuthRequest } from "./BaseAuthRequest";
3
+ /**
4
+ * SilentFlow parameters passed by the user to retrieve credentials silently
5
+ * - scopes - Array of scopes the application is requesting access to.
6
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
7
+ * - authority - Url of the authority which the application acquires tokens from.
8
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
+ * - account - Account entity to lookup the credentials.
10
+ * - forceRefresh - Forces silent requests to make network calls if true.
11
+ * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
12
+ * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
13
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
14
+ */
15
+ export type CommonSilentFlowRequest = BaseAuthRequest & {
16
+ account: AccountInfo;
17
+ forceRefresh: boolean;
18
+ };
19
19
  //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map
@@ -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"}
@@ -1,18 +1,18 @@
1
- import { BaseAuthRequest } from "./BaseAuthRequest";
2
- /**
3
- * CommonUsernamePassword parameters passed by the user to retrieve credentials
4
- * Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
5
- *
6
- * - scopes - Array of scopes the application is requesting access to.
7
- * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
8
- * - authority - Url of the authority which the application acquires tokens from.
9
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
- * - username - username of the client
11
- * - password - credentials
12
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
- */
14
- export declare type CommonUsernamePasswordRequest = BaseAuthRequest & {
15
- username: string;
16
- password: string;
17
- };
1
+ import { BaseAuthRequest } from "./BaseAuthRequest";
2
+ /**
3
+ * CommonUsernamePassword parameters passed by the user to retrieve credentials
4
+ * Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
5
+ *
6
+ * - scopes - Array of scopes the application is requesting access to.
7
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
8
+ * - authority - Url of the authority which the application acquires tokens from.
9
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
+ * - username - username of the client
11
+ * - password - credentials
12
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
+ */
14
+ export type CommonUsernamePasswordRequest = BaseAuthRequest & {
15
+ username: string;
16
+ password: string;
17
+ };
18
18
  //# sourceMappingURL=CommonUsernamePasswordRequest.d.ts.map
@@ -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,20 +1,20 @@
1
- import { StringDict } from "../utils/MsalTypes";
2
- export declare type NativeRequest = {
3
- clientId: string;
4
- authority: string;
5
- correlationId: string;
6
- redirectUri: string;
7
- scopes: Array<string>;
8
- claims?: string;
9
- authenticationScheme?: string;
10
- resourceRequestMethod?: string;
11
- resourceRequestUri?: string;
12
- shrNonce?: string;
13
- accountId?: string;
14
- forceRefresh?: boolean;
15
- extraParameters?: StringDict;
16
- extraScopesToConsent?: Array<string>;
17
- loginHint?: string;
18
- prompt?: string;
19
- };
1
+ import { StringDict } from "../utils/MsalTypes";
2
+ export type NativeRequest = {
3
+ clientId: string;
4
+ authority: string;
5
+ correlationId: string;
6
+ redirectUri: string;
7
+ scopes: Array<string>;
8
+ claims?: string;
9
+ authenticationScheme?: string;
10
+ resourceRequestMethod?: string;
11
+ resourceRequestUri?: string;
12
+ shrNonce?: string;
13
+ accountId?: string;
14
+ forceRefresh?: boolean;
15
+ extraParameters?: StringDict;
16
+ extraScopesToConsent?: Array<string>;
17
+ loginHint?: string;
18
+ prompt?: string;
19
+ };
20
20
  //# sourceMappingURL=NativeRequest.d.ts.map
@@ -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,6 +1,6 @@
1
- export declare type NativeSignOutRequest = {
2
- clientId: string;
3
- accountId: string;
4
- correlationId: string;
5
- };
1
+ export type NativeSignOutRequest = {
2
+ clientId: string;
3
+ accountId: string;
4
+ correlationId: string;
5
+ };
6
6
  //# sourceMappingURL=NativeSignOutRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,oBAAY,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -1,217 +1,217 @@
1
- import { ResponseMode } from "../utils/Constants";
2
- import { StringDict } from "../utils/MsalTypes";
3
- import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration";
4
- import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
5
- import { ClientInfo } from "../account/ClientInfo";
6
- export declare class RequestParameterBuilder {
7
- private parameters;
8
- constructor();
9
- /**
10
- * add response_type = code
11
- */
12
- addResponseTypeCode(): void;
13
- /**
14
- * add response_type = token id_token
15
- */
16
- addResponseTypeForTokenAndIdToken(): void;
17
- /**
18
- * add response_mode. defaults to query.
19
- * @param responseMode
20
- */
21
- addResponseMode(responseMode?: ResponseMode): void;
22
- /**
23
- * Add flag to indicate STS should attempt to use WAM if available
24
- */
25
- addNativeBroker(): void;
26
- /**
27
- * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
28
- * @param scopeSet
29
- * @param addOidcScopes
30
- */
31
- addScopes(scopes: string[], addOidcScopes?: boolean): void;
32
- /**
33
- * add clientId
34
- * @param clientId
35
- */
36
- addClientId(clientId: string): void;
37
- /**
38
- * add redirect_uri
39
- * @param redirectUri
40
- */
41
- addRedirectUri(redirectUri: string): void;
42
- /**
43
- * add post logout redirectUri
44
- * @param redirectUri
45
- */
46
- addPostLogoutRedirectUri(redirectUri: string): void;
47
- /**
48
- * add id_token_hint to logout request
49
- * @param idTokenHint
50
- */
51
- addIdTokenHint(idTokenHint: string): void;
52
- /**
53
- * add domain_hint
54
- * @param domainHint
55
- */
56
- addDomainHint(domainHint: string): void;
57
- /**
58
- * add login_hint
59
- * @param loginHint
60
- */
61
- addLoginHint(loginHint: string): void;
62
- /**
63
- * Adds the CCS (Cache Credential Service) query parameter for login_hint
64
- * @param loginHint
65
- */
66
- addCcsUpn(loginHint: string): void;
67
- /**
68
- * Adds the CCS (Cache Credential Service) query parameter for account object
69
- * @param loginHint
70
- */
71
- addCcsOid(clientInfo: ClientInfo): void;
72
- /**
73
- * add sid
74
- * @param sid
75
- */
76
- addSid(sid: string): void;
77
- /**
78
- * add claims
79
- * @param claims
80
- */
81
- addClaims(claims?: string, clientCapabilities?: Array<string>): void;
82
- /**
83
- * add correlationId
84
- * @param correlationId
85
- */
86
- addCorrelationId(correlationId: string): void;
87
- /**
88
- * add library info query params
89
- * @param libraryInfo
90
- */
91
- addLibraryInfo(libraryInfo: LibraryInfo): void;
92
- /**
93
- * Add client telemetry parameters
94
- * @param appTelemetry
95
- */
96
- addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
97
- /**
98
- * add prompt
99
- * @param prompt
100
- */
101
- addPrompt(prompt: string): void;
102
- /**
103
- * add state
104
- * @param state
105
- */
106
- addState(state: string): void;
107
- /**
108
- * add nonce
109
- * @param nonce
110
- */
111
- addNonce(nonce: string): void;
112
- /**
113
- * add code_challenge and code_challenge_method
114
- * - throw if either of them are not passed
115
- * @param codeChallenge
116
- * @param codeChallengeMethod
117
- */
118
- addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
119
- /**
120
- * add the `authorization_code` passed by the user to exchange for a token
121
- * @param code
122
- */
123
- addAuthorizationCode(code: string): void;
124
- /**
125
- * add the `authorization_code` passed by the user to exchange for a token
126
- * @param code
127
- */
128
- addDeviceCode(code: string): void;
129
- /**
130
- * add the `refreshToken` passed by the user
131
- * @param refreshToken
132
- */
133
- addRefreshToken(refreshToken: string): void;
134
- /**
135
- * add the `code_verifier` passed by the user to exchange for a token
136
- * @param codeVerifier
137
- */
138
- addCodeVerifier(codeVerifier: string): void;
139
- /**
140
- * add client_secret
141
- * @param clientSecret
142
- */
143
- addClientSecret(clientSecret: string): void;
144
- /**
145
- * add clientAssertion for confidential client flows
146
- * @param clientAssertion
147
- */
148
- addClientAssertion(clientAssertion: string): void;
149
- /**
150
- * add clientAssertionType for confidential client flows
151
- * @param clientAssertionType
152
- */
153
- addClientAssertionType(clientAssertionType: string): void;
154
- /**
155
- * add OBO assertion for confidential client flows
156
- * @param clientAssertion
157
- */
158
- addOboAssertion(oboAssertion: string): void;
159
- /**
160
- * add grant type
161
- * @param grantType
162
- */
163
- addRequestTokenUse(tokenUse: string): void;
164
- /**
165
- * add grant type
166
- * @param grantType
167
- */
168
- addGrantType(grantType: string): void;
169
- /**
170
- * add client info
171
- *
172
- */
173
- addClientInfo(): void;
174
- /**
175
- * add extraQueryParams
176
- * @param eQParams
177
- */
178
- addExtraQueryParameters(eQParams: StringDict): void;
179
- addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
180
- /**
181
- * adds `username` for Password Grant flow
182
- * @param username
183
- */
184
- addUsername(username: string): void;
185
- /**
186
- * adds `password` for Password Grant flow
187
- * @param password
188
- */
189
- addPassword(password: string): void;
190
- /**
191
- * add pop_jwk to query params
192
- * @param cnfString
193
- */
194
- addPopToken(cnfString: string): void;
195
- /**
196
- * add SSH JWK and key ID to query params
197
- */
198
- addSshJwk(sshJwkString: string): void;
199
- /**
200
- * add server telemetry fields
201
- * @param serverTelemetryManager
202
- */
203
- addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
204
- /**
205
- * Adds parameter that indicates to the server that throttling is supported
206
- */
207
- addThrottling(): void;
208
- /**
209
- * Adds logout_hint parameter for "silent" logout which prevent server account picker
210
- */
211
- addLogoutHint(logoutHint: string): void;
212
- /**
213
- * Utility to create a URL from the params map
214
- */
215
- createQueryString(): string;
216
- }
1
+ import { ResponseMode } from "../utils/Constants";
2
+ import { StringDict } from "../utils/MsalTypes";
3
+ import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration";
4
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
5
+ import { ClientInfo } from "../account/ClientInfo";
6
+ export declare class RequestParameterBuilder {
7
+ private parameters;
8
+ constructor();
9
+ /**
10
+ * add response_type = code
11
+ */
12
+ addResponseTypeCode(): void;
13
+ /**
14
+ * add response_type = token id_token
15
+ */
16
+ addResponseTypeForTokenAndIdToken(): void;
17
+ /**
18
+ * add response_mode. defaults to query.
19
+ * @param responseMode
20
+ */
21
+ addResponseMode(responseMode?: ResponseMode): void;
22
+ /**
23
+ * Add flag to indicate STS should attempt to use WAM if available
24
+ */
25
+ addNativeBroker(): void;
26
+ /**
27
+ * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
28
+ * @param scopeSet
29
+ * @param addOidcScopes
30
+ */
31
+ addScopes(scopes: string[], addOidcScopes?: boolean): void;
32
+ /**
33
+ * add clientId
34
+ * @param clientId
35
+ */
36
+ addClientId(clientId: string): void;
37
+ /**
38
+ * add redirect_uri
39
+ * @param redirectUri
40
+ */
41
+ addRedirectUri(redirectUri: string): void;
42
+ /**
43
+ * add post logout redirectUri
44
+ * @param redirectUri
45
+ */
46
+ addPostLogoutRedirectUri(redirectUri: string): void;
47
+ /**
48
+ * add id_token_hint to logout request
49
+ * @param idTokenHint
50
+ */
51
+ addIdTokenHint(idTokenHint: string): void;
52
+ /**
53
+ * add domain_hint
54
+ * @param domainHint
55
+ */
56
+ addDomainHint(domainHint: string): void;
57
+ /**
58
+ * add login_hint
59
+ * @param loginHint
60
+ */
61
+ addLoginHint(loginHint: string): void;
62
+ /**
63
+ * Adds the CCS (Cache Credential Service) query parameter for login_hint
64
+ * @param loginHint
65
+ */
66
+ addCcsUpn(loginHint: string): void;
67
+ /**
68
+ * Adds the CCS (Cache Credential Service) query parameter for account object
69
+ * @param loginHint
70
+ */
71
+ addCcsOid(clientInfo: ClientInfo): void;
72
+ /**
73
+ * add sid
74
+ * @param sid
75
+ */
76
+ addSid(sid: string): void;
77
+ /**
78
+ * add claims
79
+ * @param claims
80
+ */
81
+ addClaims(claims?: string, clientCapabilities?: Array<string>): void;
82
+ /**
83
+ * add correlationId
84
+ * @param correlationId
85
+ */
86
+ addCorrelationId(correlationId: string): void;
87
+ /**
88
+ * add library info query params
89
+ * @param libraryInfo
90
+ */
91
+ addLibraryInfo(libraryInfo: LibraryInfo): void;
92
+ /**
93
+ * Add client telemetry parameters
94
+ * @param appTelemetry
95
+ */
96
+ addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
97
+ /**
98
+ * add prompt
99
+ * @param prompt
100
+ */
101
+ addPrompt(prompt: string): void;
102
+ /**
103
+ * add state
104
+ * @param state
105
+ */
106
+ addState(state: string): void;
107
+ /**
108
+ * add nonce
109
+ * @param nonce
110
+ */
111
+ addNonce(nonce: string): void;
112
+ /**
113
+ * add code_challenge and code_challenge_method
114
+ * - throw if either of them are not passed
115
+ * @param codeChallenge
116
+ * @param codeChallengeMethod
117
+ */
118
+ addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
119
+ /**
120
+ * add the `authorization_code` passed by the user to exchange for a token
121
+ * @param code
122
+ */
123
+ addAuthorizationCode(code: string): void;
124
+ /**
125
+ * add the `authorization_code` passed by the user to exchange for a token
126
+ * @param code
127
+ */
128
+ addDeviceCode(code: string): void;
129
+ /**
130
+ * add the `refreshToken` passed by the user
131
+ * @param refreshToken
132
+ */
133
+ addRefreshToken(refreshToken: string): void;
134
+ /**
135
+ * add the `code_verifier` passed by the user to exchange for a token
136
+ * @param codeVerifier
137
+ */
138
+ addCodeVerifier(codeVerifier: string): void;
139
+ /**
140
+ * add client_secret
141
+ * @param clientSecret
142
+ */
143
+ addClientSecret(clientSecret: string): void;
144
+ /**
145
+ * add clientAssertion for confidential client flows
146
+ * @param clientAssertion
147
+ */
148
+ addClientAssertion(clientAssertion: string): void;
149
+ /**
150
+ * add clientAssertionType for confidential client flows
151
+ * @param clientAssertionType
152
+ */
153
+ addClientAssertionType(clientAssertionType: string): void;
154
+ /**
155
+ * add OBO assertion for confidential client flows
156
+ * @param clientAssertion
157
+ */
158
+ addOboAssertion(oboAssertion: string): void;
159
+ /**
160
+ * add grant type
161
+ * @param grantType
162
+ */
163
+ addRequestTokenUse(tokenUse: string): void;
164
+ /**
165
+ * add grant type
166
+ * @param grantType
167
+ */
168
+ addGrantType(grantType: string): void;
169
+ /**
170
+ * add client info
171
+ *
172
+ */
173
+ addClientInfo(): void;
174
+ /**
175
+ * add extraQueryParams
176
+ * @param eQParams
177
+ */
178
+ addExtraQueryParameters(eQParams: StringDict): void;
179
+ addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
180
+ /**
181
+ * adds `username` for Password Grant flow
182
+ * @param username
183
+ */
184
+ addUsername(username: string): void;
185
+ /**
186
+ * adds `password` for Password Grant flow
187
+ * @param password
188
+ */
189
+ addPassword(password: string): void;
190
+ /**
191
+ * add pop_jwk to query params
192
+ * @param cnfString
193
+ */
194
+ addPopToken(cnfString: string): void;
195
+ /**
196
+ * add SSH JWK and key ID to query params
197
+ */
198
+ addSshJwk(sshJwkString: string): void;
199
+ /**
200
+ * add server telemetry fields
201
+ * @param serverTelemetryManager
202
+ */
203
+ addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
204
+ /**
205
+ * Adds parameter that indicates to the server that throttling is supported
206
+ */
207
+ addThrottling(): void;
208
+ /**
209
+ * Adds logout_hint parameter for "silent" logout which prevent server account picker
210
+ */
211
+ addLogoutHint(logoutHint: string): void;
212
+ /**
213
+ * Utility to create a URL from the params map
214
+ */
215
+ createQueryString(): string;
216
+ }
217
217
  //# sourceMappingURL=RequestParameterBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiC,YAAY,EAAgJ,MAAM,oBAAoB,CAAC;AAG/N,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,UAAU,CAAsB;;IAMxC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAM3B;;OAEG;IACH,iCAAiC,IAAI,IAAI;IAMzC;;;OAGG;IACH,eAAe,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI;IAOlD;;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