@azure/msal-browser 3.2.0 → 3.4.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 (224) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  3. package/dist/app/PublicClientApplication.mjs +3 -4
  4. package/dist/app/PublicClientApplication.mjs.map +1 -1
  5. package/dist/app/PublicClientNext.d.ts +274 -0
  6. package/dist/app/PublicClientNext.d.ts.map +1 -0
  7. package/dist/app/PublicClientNext.mjs +360 -0
  8. package/dist/app/PublicClientNext.mjs.map +1 -0
  9. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
  10. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  11. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  12. package/dist/cache/BrowserCacheManager.d.ts +2 -13
  13. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  14. package/dist/cache/BrowserCacheManager.mjs +26 -83
  15. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  16. package/dist/cache/BrowserStorage.mjs +1 -1
  17. package/dist/cache/CryptoKeyStore.mjs +1 -1
  18. package/dist/cache/DatabaseStorage.mjs +1 -1
  19. package/dist/cache/MemoryStorage.mjs +1 -1
  20. package/dist/cache/TokenCache.d.ts.map +1 -1
  21. package/dist/cache/TokenCache.mjs +5 -5
  22. package/dist/cache/TokenCache.mjs.map +1 -1
  23. package/dist/config/Configuration.d.ts +4 -0
  24. package/dist/config/Configuration.d.ts.map +1 -1
  25. package/dist/config/Configuration.mjs +2 -1
  26. package/dist/config/Configuration.mjs.map +1 -1
  27. package/dist/controllers/ControllerFactory.d.ts +2 -7
  28. package/dist/controllers/ControllerFactory.d.ts.map +1 -1
  29. package/dist/controllers/ControllerFactory.mjs +24 -34
  30. package/dist/controllers/ControllerFactory.mjs.map +1 -1
  31. package/dist/controllers/IController.d.ts +1 -2
  32. package/dist/controllers/IController.d.ts.map +1 -1
  33. package/dist/controllers/NestedAppAuthController.d.ts +96 -0
  34. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -0
  35. package/dist/controllers/NestedAppAuthController.mjs +345 -0
  36. package/dist/controllers/NestedAppAuthController.mjs.map +1 -0
  37. package/dist/controllers/StandardController.d.ts +4 -4
  38. package/dist/controllers/StandardController.d.ts.map +1 -1
  39. package/dist/controllers/StandardController.mjs +43 -42
  40. package/dist/controllers/StandardController.mjs.map +1 -1
  41. package/dist/controllers/UnknownOperatingContextController.d.ts +88 -0
  42. package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -0
  43. package/dist/controllers/UnknownOperatingContextController.mjs +275 -0
  44. package/dist/controllers/UnknownOperatingContextController.mjs.map +1 -0
  45. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  46. package/dist/crypto/BrowserCrypto.mjs +3 -3
  47. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  48. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  49. package/dist/crypto/CryptoOps.mjs +8 -5
  50. package/dist/crypto/CryptoOps.mjs.map +1 -1
  51. package/dist/crypto/PkceGenerator.mjs +1 -1
  52. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  53. package/dist/encode/Base64Decode.mjs +1 -1
  54. package/dist/encode/Base64Encode.mjs +1 -1
  55. package/dist/error/BrowserAuthError.mjs +1 -1
  56. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  57. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  58. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  59. package/dist/error/NativeAuthError.mjs +1 -1
  60. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  61. package/dist/error/NestedAppAuthError.d.ts +15 -0
  62. package/dist/error/NestedAppAuthError.d.ts.map +1 -0
  63. package/dist/error/NestedAppAuthError.mjs +30 -0
  64. package/dist/error/NestedAppAuthError.mjs.map +1 -0
  65. package/dist/event/EventHandler.mjs +1 -1
  66. package/dist/event/EventMessage.mjs +1 -1
  67. package/dist/event/EventType.mjs +1 -1
  68. package/dist/index.d.ts +3 -5
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.mjs +4 -2
  71. package/dist/index.mjs.map +1 -1
  72. package/dist/interaction_client/BaseInteractionClient.mjs +4 -4
  73. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  74. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  75. package/dist/interaction_client/NativeInteractionClient.mjs +18 -7
  76. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  77. package/dist/interaction_client/PopupClient.d.ts +1 -2
  78. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  79. package/dist/interaction_client/PopupClient.mjs +13 -25
  80. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  81. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  82. package/dist/interaction_client/RedirectClient.mjs +17 -25
  83. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  84. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  85. package/dist/interaction_client/SilentAuthCodeClient.mjs +6 -8
  86. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  87. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  88. package/dist/interaction_client/SilentCacheClient.mjs +4 -3
  89. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  90. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
  91. package/dist/interaction_client/SilentIframeClient.mjs +28 -19
  92. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  93. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  94. package/dist/interaction_client/SilentRefreshClient.mjs +2 -12
  95. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  96. package/dist/interaction_client/StandardInteractionClient.mjs +5 -5
  97. package/dist/interaction_handler/InteractionHandler.d.ts +6 -13
  98. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  99. package/dist/interaction_handler/InteractionHandler.mjs +29 -56
  100. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  101. package/dist/interaction_handler/RedirectHandler.d.ts +14 -7
  102. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  103. package/dist/interaction_handler/RedirectHandler.mjs +28 -9
  104. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
  105. package/dist/interaction_handler/SilentHandler.d.ts +13 -47
  106. package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
  107. package/dist/interaction_handler/SilentHandler.mjs +120 -155
  108. package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  109. package/dist/naa/AccountInfo.d.ts +13 -0
  110. package/dist/naa/AccountInfo.d.ts.map +1 -0
  111. package/dist/naa/AccountRequests.d.ts +10 -0
  112. package/dist/naa/AccountRequests.d.ts.map +1 -0
  113. package/dist/naa/AuthBridge.d.ts +6 -0
  114. package/dist/naa/AuthBridge.d.ts.map +1 -0
  115. package/dist/naa/BridgeCapabilities.d.ts +4 -0
  116. package/dist/naa/BridgeCapabilities.d.ts.map +1 -0
  117. package/dist/naa/BridgeError.d.ts +10 -0
  118. package/dist/naa/BridgeError.d.ts.map +1 -0
  119. package/dist/naa/BridgeError.mjs +12 -0
  120. package/dist/naa/BridgeError.mjs.map +1 -0
  121. package/dist/naa/BridgeProxy.d.ts +72 -0
  122. package/dist/naa/BridgeProxy.d.ts.map +1 -0
  123. package/dist/naa/BridgeProxy.mjs +154 -0
  124. package/dist/naa/BridgeProxy.mjs.map +1 -0
  125. package/dist/naa/BridgeRequest.d.ts +7 -0
  126. package/dist/naa/BridgeRequest.d.ts.map +1 -0
  127. package/dist/naa/BridgeRequestEnvelope.d.ts +14 -0
  128. package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -0
  129. package/dist/naa/BridgeResponseEnvelope.d.ts +11 -0
  130. package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -0
  131. package/dist/naa/BridgeStatusCode.d.ts +11 -0
  132. package/dist/naa/BridgeStatusCode.d.ts.map +1 -0
  133. package/dist/naa/BridgeStatusCode.mjs +20 -0
  134. package/dist/naa/BridgeStatusCode.mjs.map +1 -0
  135. package/dist/naa/IBridgeProxy.d.ts +11 -0
  136. package/dist/naa/IBridgeProxy.d.ts.map +1 -0
  137. package/dist/naa/InitializeBridgeResponse.d.ts +7 -0
  138. package/dist/naa/InitializeBridgeResponse.d.ts.map +1 -0
  139. package/dist/naa/TokenRequest.d.ts +22 -0
  140. package/dist/naa/TokenRequest.d.ts.map +1 -0
  141. package/dist/naa/TokenResponse.d.ts +17 -0
  142. package/dist/naa/TokenResponse.d.ts.map +1 -0
  143. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +26 -0
  144. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
  145. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +178 -0
  146. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -0
  147. package/dist/navigation/NavigationClient.mjs +1 -1
  148. package/dist/network/FetchClient.mjs +1 -1
  149. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  150. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  151. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +7 -0
  152. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -1
  153. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +45 -4
  154. package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
  155. package/dist/operatingcontext/UnknownOperatingContext.d.ts +26 -0
  156. package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
  157. package/dist/operatingcontext/UnknownOperatingContext.mjs +49 -0
  158. package/dist/operatingcontext/UnknownOperatingContext.mjs.map +1 -0
  159. package/dist/packageMetadata.d.ts +1 -1
  160. package/dist/packageMetadata.mjs +2 -2
  161. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  162. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  163. package/dist/utils/BrowserConstants.mjs +1 -1
  164. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  165. package/dist/utils/BrowserUtils.d.ts +54 -53
  166. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  167. package/dist/utils/BrowserUtils.mjs +114 -102
  168. package/dist/utils/BrowserUtils.mjs.map +1 -1
  169. package/lib/msal-browser.cjs +13221 -12385
  170. package/lib/msal-browser.cjs.map +1 -1
  171. package/lib/msal-browser.js +13221 -12385
  172. package/lib/msal-browser.js.map +1 -1
  173. package/lib/msal-browser.min.js +67 -68
  174. package/package.json +2 -2
  175. package/src/app/PublicClientApplication.ts +4 -3
  176. package/src/app/PublicClientNext.ts +444 -0
  177. package/src/cache/BrowserCacheManager.ts +33 -140
  178. package/src/cache/TokenCache.ts +5 -4
  179. package/src/config/Configuration.ts +5 -0
  180. package/src/controllers/ControllerFactory.ts +35 -43
  181. package/src/controllers/IController.ts +0 -6
  182. package/src/controllers/NestedAppAuthController.ts +525 -0
  183. package/src/controllers/StandardController.ts +50 -52
  184. package/src/controllers/UnknownOperatingContextController.ts +383 -0
  185. package/src/crypto/BrowserCrypto.ts +2 -2
  186. package/src/crypto/CryptoOps.ts +8 -5
  187. package/src/error/NestedAppAuthError.ts +32 -0
  188. package/src/index.ts +3 -10
  189. package/src/interaction_client/BaseInteractionClient.ts +1 -1
  190. package/src/interaction_client/NativeInteractionClient.ts +23 -6
  191. package/src/interaction_client/PopupClient.ts +41 -61
  192. package/src/interaction_client/RedirectClient.ts +42 -47
  193. package/src/interaction_client/SilentAuthCodeClient.ts +6 -16
  194. package/src/interaction_client/SilentCacheClient.ts +11 -3
  195. package/src/interaction_client/SilentIframeClient.ts +54 -34
  196. package/src/interaction_client/SilentRefreshClient.ts +5 -19
  197. package/src/interaction_client/StandardInteractionClient.ts +1 -1
  198. package/src/interaction_handler/InteractionHandler.ts +34 -104
  199. package/src/interaction_handler/RedirectHandler.ts +48 -22
  200. package/src/interaction_handler/SilentHandler.ts +177 -233
  201. package/src/naa/AccountInfo.ts +17 -0
  202. package/src/naa/AccountRequests.ts +16 -0
  203. package/src/naa/AuthBridge.ts +16 -0
  204. package/src/naa/BridgeCapabilities.ts +8 -0
  205. package/src/naa/BridgeError.ts +18 -0
  206. package/src/naa/BridgeProxy.ts +230 -0
  207. package/src/naa/BridgeRequest.ts +12 -0
  208. package/src/naa/BridgeRequestEnvelope.ts +46 -0
  209. package/src/naa/BridgeResponseEnvelope.ts +21 -0
  210. package/src/naa/BridgeStatusCode.ts +15 -0
  211. package/src/naa/IBridgeProxy.ts +25 -0
  212. package/src/naa/InitializeBridgeResponse.ts +12 -0
  213. package/src/naa/TokenRequest.ts +26 -0
  214. package/src/naa/TokenResponse.ts +61 -0
  215. package/src/naa/mapping/NestedAppAuthAdapter.ts +252 -0
  216. package/src/operatingcontext/TeamsAppOperatingContext.ts +43 -3
  217. package/src/operatingcontext/UnknownOperatingContext.ts +48 -0
  218. package/src/packageMetadata.ts +1 -1
  219. package/src/utils/BrowserUtils.ts +133 -125
  220. package/dist/utils/BrowserStringUtils.d.ts +0 -22
  221. package/dist/utils/BrowserStringUtils.d.ts.map +0 -1
  222. package/dist/utils/BrowserStringUtils.mjs +0 -144
  223. package/dist/utils/BrowserStringUtils.mjs.map +0 -1
  224. package/src/utils/BrowserStringUtils.ts +0 -143
@@ -0,0 +1,360 @@
1
+ /*! @azure/msal-browser v3.4.0 2023-10-30 */
2
+ 'use strict';
3
+ import { createController } from '../controllers/ControllerFactory.mjs';
4
+ import { UnknownOperatingContextController } from '../controllers/UnknownOperatingContextController.mjs';
5
+ import { UnknownOperatingContext } from '../operatingcontext/UnknownOperatingContext.mjs';
6
+
7
+ /*
8
+ * Copyright (c) Microsoft Corporation. All rights reserved.
9
+ * Licensed under the MIT License.
10
+ */
11
+ /**
12
+ * PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js.
13
+ * It contains support for multiple API implementations based on the runtime environment that it is running in.
14
+ *
15
+ * The goals of these changes are to provide a clean separation of behavior between different operating contexts (Nested App Auth, Platform Brokers, Plain old Browser, etc.)
16
+ * while still providing a consistent API surface for developers.
17
+ *
18
+ */
19
+ class PublicClientNext {
20
+ static async createPublicClientApplication(configuration) {
21
+ const controller = await createController(configuration);
22
+ let pca;
23
+ if (controller !== null) {
24
+ pca = new PublicClientNext(configuration, controller);
25
+ }
26
+ else {
27
+ pca = new PublicClientNext(configuration);
28
+ }
29
+ return pca;
30
+ }
31
+ /**
32
+ * @constructor
33
+ * Constructor for the PublicClientNext used to instantiate the PublicClientNext object
34
+ *
35
+ * Important attributes in the Configuration object for auth are:
36
+ * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview
37
+ * - authority: the authority URL for your application.
38
+ * - redirect_uri: the uri of your application registered in the portal.
39
+ *
40
+ * In Azure AD, authority is a URL indicating the Azure active directory that MSAL uses to obtain tokens.
41
+ * It is of the form https://login.microsoftonline.com/{Enter_the_Tenant_Info_Here}
42
+ * If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
43
+ * If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
44
+ * If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
45
+ * To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
46
+ *
47
+ * In Azure B2C, authority is of the form https://{instance}/tfp/{tenant}/{policyName}/
48
+ * Full B2C functionality will be available in this library in future versions.
49
+ *
50
+ * @param configuration Object for the MSAL PublicClientApplication instance
51
+ * @param IController Optional parameter to explictly set the controller. (Will be removed when we remove public constructor)
52
+ */
53
+ constructor(configuration, controller) {
54
+ this.configuration = configuration;
55
+ if (controller) {
56
+ this.controller = controller;
57
+ }
58
+ else {
59
+ const operatingContext = new UnknownOperatingContext(configuration);
60
+ this.controller = new UnknownOperatingContextController(operatingContext);
61
+ }
62
+ }
63
+ /**
64
+ * Initializer function to perform async startup tasks such as connecting to WAM extension
65
+ */
66
+ async initialize() {
67
+ if (this.controller instanceof UnknownOperatingContextController) {
68
+ const result = await createController(this.configuration);
69
+ if (result !== null) {
70
+ this.controller = result;
71
+ }
72
+ return this.controller.initialize();
73
+ }
74
+ return Promise.resolve();
75
+ }
76
+ /**
77
+ * Use when you want to obtain an access_token for your API via opening a popup window in the user's browser
78
+ *
79
+ * @param request
80
+ *
81
+ * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
82
+ */
83
+ async acquireTokenPopup(request) {
84
+ return this.controller.acquireTokenPopup(request);
85
+ }
86
+ /**
87
+ * Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects
88
+ * the page, so any code that follows this function will not execute.
89
+ *
90
+ * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current
91
+ * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.
92
+ *
93
+ * @param request
94
+ */
95
+ acquireTokenRedirect(request) {
96
+ return this.controller.acquireTokenRedirect(request);
97
+ }
98
+ /**
99
+ * Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.
100
+ *
101
+ * @param {@link (SilentRequest:type)}
102
+ * @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthenticationResult} object
103
+ */
104
+ acquireTokenSilent(silentRequest) {
105
+ return this.controller.acquireTokenSilent(silentRequest);
106
+ }
107
+ /**
108
+ * This function redeems an authorization code (passed as code) from the eSTS token endpoint.
109
+ * This authorization code should be acquired server-side using a confidential client to acquire a spa_code.
110
+ * This API is not indended for normal authorization code acquisition and redemption.
111
+ *
112
+ * Redemption of this authorization code will not require PKCE, as it was acquired by a confidential client.
113
+ *
114
+ * @param request {@link AuthorizationCodeRequest}
115
+ * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
116
+ */
117
+ acquireTokenByCode(request) {
118
+ return this.controller.acquireTokenByCode(request);
119
+ }
120
+ /**
121
+ * Adds event callbacks to array
122
+ * @param callback
123
+ */
124
+ addEventCallback(callback) {
125
+ return this.controller.addEventCallback(callback);
126
+ }
127
+ /**
128
+ * Removes callback with provided id from callback array
129
+ * @param callbackId
130
+ */
131
+ removeEventCallback(callbackId) {
132
+ return this.controller.removeEventCallback(callbackId);
133
+ }
134
+ /**
135
+ * Registers a callback to receive performance events.
136
+ *
137
+ * @param {PerformanceCallbackFunction} callback
138
+ * @returns {string}
139
+ */
140
+ addPerformanceCallback(callback) {
141
+ return this.controller.addPerformanceCallback(callback);
142
+ }
143
+ /**
144
+ * Removes a callback registered with addPerformanceCallback.
145
+ *
146
+ * @param {string} callbackId
147
+ * @returns {boolean}
148
+ */
149
+ removePerformanceCallback(callbackId) {
150
+ return this.controller.removePerformanceCallback(callbackId);
151
+ }
152
+ /**
153
+ * Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
154
+ */
155
+ enableAccountStorageEvents() {
156
+ this.controller.enableAccountStorageEvents();
157
+ }
158
+ /**
159
+ * Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
160
+ */
161
+ disableAccountStorageEvents() {
162
+ this.controller.disableAccountStorageEvents();
163
+ }
164
+ /**
165
+ * Returns the first account found in the cache that matches the account filter passed in.
166
+ * @param accountFilter
167
+ * @returns The first account found in the cache matching the provided filter or null if no account could be found.
168
+ */
169
+ getAccount(accountFilter) {
170
+ return this.controller.getAccount(accountFilter);
171
+ }
172
+ /**
173
+ * Returns the signed in account matching homeAccountId.
174
+ * (the account object is created at the time of successful login)
175
+ * or null when no matching account is found
176
+ * @param homeAccountId
177
+ * @returns The account object stored in MSAL
178
+ * @deprecated - Use getAccount instead
179
+ */
180
+ getAccountByHomeId(homeAccountId) {
181
+ return this.controller.getAccountByHomeId(homeAccountId);
182
+ }
183
+ /**
184
+ * Returns the signed in account matching localAccountId.
185
+ * (the account object is created at the time of successful login)
186
+ * or null when no matching account is found
187
+ * @param localAccountId
188
+ * @returns The account object stored in MSAL
189
+ * @deprecated - Use getAccount instead
190
+ */
191
+ getAccountByLocalId(localId) {
192
+ return this.controller.getAccountByLocalId(localId);
193
+ }
194
+ /**
195
+ * Returns the signed in account matching username.
196
+ * (the account object is created at the time of successful login)
197
+ * or null when no matching account is found.
198
+ * This API is provided for convenience but getAccountById should be used for best reliability
199
+ * @param userName
200
+ * @returns The account object stored in MSAL
201
+ * @deprecated - Use getAccount instead
202
+ */
203
+ getAccountByUsername(userName) {
204
+ return this.controller.getAccountByUsername(userName);
205
+ }
206
+ /**
207
+ * Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
208
+ * @param accountFilter - (Optional) filter to narrow down the accounts returned
209
+ * @returns Array of AccountInfo objects in cache
210
+ */
211
+ getAllAccounts(accountFilter) {
212
+ return this.controller.getAllAccounts(accountFilter);
213
+ }
214
+ /**
215
+ * Event handler function which allows users to fire events after the PublicClientApplication object
216
+ * has loaded during redirect flows. This should be invoked on all page loads involved in redirect
217
+ * auth flows.
218
+ * @param hash Hash to process. Defaults to the current value of window.location.hash. Only needs to be provided explicitly if the response to be handled is not contained in the current value.
219
+ * @returns Token response or null. If the return value is null, then no auth redirect was detected.
220
+ */
221
+ handleRedirectPromise(hash) {
222
+ return this.controller.handleRedirectPromise(hash);
223
+ }
224
+ /**
225
+ * Use when initiating the login process via opening a popup window in the user's browser
226
+ *
227
+ * @param request
228
+ *
229
+ * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
230
+ */
231
+ loginPopup(request) {
232
+ return this.controller.loginPopup(request);
233
+ }
234
+ /**
235
+ * Use when initiating the login process by redirecting the user's browser to the authorization endpoint. This function redirects the page, so
236
+ * any code that follows this function will not execute.
237
+ *
238
+ * IMPORTANT: It is NOT recommended to have code that is dependent on the resolution of the Promise. This function will navigate away from the current
239
+ * browser window. It currently returns a Promise in order to reflect the asynchronous nature of the code running in this function.
240
+ *
241
+ * @param request
242
+ */
243
+ loginRedirect(request) {
244
+ return this.controller.loginRedirect(request);
245
+ }
246
+ /**
247
+ * Deprecated logout function. Use logoutRedirect or logoutPopup instead
248
+ * @param logoutRequest
249
+ * @deprecated
250
+ */
251
+ logout(logoutRequest) {
252
+ return this.controller.logout(logoutRequest);
253
+ }
254
+ /**
255
+ * Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
256
+ * Default behaviour is to redirect the user to `window.location.href`.
257
+ * @param logoutRequest
258
+ */
259
+ logoutRedirect(logoutRequest) {
260
+ return this.controller.logoutRedirect(logoutRequest);
261
+ }
262
+ /**
263
+ * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server
264
+ * @param logoutRequest
265
+ */
266
+ logoutPopup(logoutRequest) {
267
+ return this.controller.logoutPopup(logoutRequest);
268
+ }
269
+ /**
270
+ * This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:
271
+ * - Any browser using a form of Intelligent Tracking Prevention
272
+ * - If there is not an established session with the service
273
+ *
274
+ * In these cases, the request must be done inside a popup or full frame redirect.
275
+ *
276
+ * For the cases where interaction is required, you cannot send a request with prompt=none.
277
+ *
278
+ * If your refresh token has expired, you can use this function to fetch a new set of tokens silently as long as
279
+ * you session on the server still exists.
280
+ * @param request {@link SsoSilentRequest}
281
+ *
282
+ * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
283
+ */
284
+ ssoSilent(request) {
285
+ return this.controller.ssoSilent(request);
286
+ }
287
+ /**
288
+ * Gets the token cache for the application.
289
+ */
290
+ getTokenCache() {
291
+ return this.controller.getTokenCache();
292
+ }
293
+ /**
294
+ * Returns the logger instance
295
+ */
296
+ getLogger() {
297
+ return this.controller.getLogger();
298
+ }
299
+ /**
300
+ * Replaces the default logger set in configurations with new Logger with new configurations
301
+ * @param logger Logger instance
302
+ */
303
+ setLogger(logger) {
304
+ this.controller.setLogger(logger);
305
+ }
306
+ /**
307
+ * Sets the account to use as the active account. If no account is passed to the acquireToken APIs, then MSAL will use this active account.
308
+ * @param account
309
+ */
310
+ setActiveAccount(account) {
311
+ this.controller.setActiveAccount(account);
312
+ }
313
+ /**
314
+ * Gets the currently active account
315
+ */
316
+ getActiveAccount() {
317
+ return this.controller.getActiveAccount();
318
+ }
319
+ /**
320
+ * Called by wrapper libraries (Angular & React) to set SKU and Version passed down to telemetry, logger, etc.
321
+ * @param sku
322
+ * @param version
323
+ */
324
+ initializeWrapperLibrary(sku, version) {
325
+ return this.controller.initializeWrapperLibrary(sku, version);
326
+ }
327
+ /**
328
+ * Sets navigation client
329
+ * @param navigationClient
330
+ */
331
+ setNavigationClient(navigationClient) {
332
+ this.controller.setNavigationClient(navigationClient);
333
+ }
334
+ /**
335
+ * Returns the configuration object
336
+ * @internal
337
+ */
338
+ getConfiguration() {
339
+ return this.controller.getConfiguration();
340
+ }
341
+ /**
342
+ * Hydrates cache with the tokens and account in the AuthenticationResult object
343
+ * @param result
344
+ * @param request - The request object that was used to obtain the AuthenticationResult
345
+ * @returns
346
+ */
347
+ async hydrateCache(result, request) {
348
+ return this.controller.hydrateCache(result, request);
349
+ }
350
+ /**
351
+ * Clears tokens and account from the browser cache.
352
+ * @param logoutRequest
353
+ */
354
+ clearCache(logoutRequest) {
355
+ return this.controller.clearCache(logoutRequest);
356
+ }
357
+ }
358
+
359
+ export { PublicClientNext };
360
+ //# sourceMappingURL=PublicClientNext.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublicClientNext.mjs","sources":["../../src/app/PublicClientNext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AACA;AACA;AACA;AAIA;AACA;AACA;AAMA;AACA;AAEA;AACA;AACA;AACO,MAAE,gBAAoB,CAAE;AAI/B,IAAA,aAAA,6BAAA,CAAA,aAAA,EAAA;;;;;;;AAOG,YAAA,GAAA,GAAA,IAAA,gBAA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-browser v3.4.0 2023-10-30 */
2
2
  'use strict';
3
3
  import { NativeConstants, NativeExtensionMethod } from '../../utils/BrowserConstants.mjs';
4
4
  import { PerformanceEvents, createAuthError, AuthErrorCodes, AuthenticationScheme } from '@azure/msal-common';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.2.0 2023-10-05 */
1
+ /*! @azure/msal-browser v3.4.0 2023-10-30 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.2.0 2023-10-05 */
1
+ /*! @azure/msal-browser v3.4.0 2023-10-30 */
2
2
  'use strict';
3
3
  import { BrowserAuthError } from '../error/BrowserAuthError.mjs';
4
4
  import { DatabaseStorage } from './DatabaseStorage.mjs';
@@ -1,4 +1,4 @@
1
- import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient } from "@azure/msal-common";
1
+ import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient, StaticAuthorityOptions } from "@azure/msal-common";
2
2
  import { CacheOptions } from "../config/Configuration";
3
3
  import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants";
4
4
  import { MemoryStorage } from "./MemoryStorage";
@@ -21,7 +21,7 @@ export declare class BrowserCacheManager extends CacheManager {
21
21
  protected temporaryCacheStorage: IWindowStorage<string>;
22
22
  protected logger: Logger;
23
23
  protected readonly COOKIE_LIFE_MULTIPLIER: number;
24
- constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger);
24
+ constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger, staticAuthorityOptions?: StaticAuthorityOptions);
25
25
  /**
26
26
  * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation.
27
27
  * @param cacheLocation
@@ -212,17 +212,6 @@ export declare class BrowserCacheManager extends CacheManager {
212
212
  * @param account
213
213
  */
214
214
  setActiveAccount(account: AccountInfo | null): void;
215
- /**
216
- * Gets a list of accounts that match all of the filters provided
217
- * @param account
218
- */
219
- getAccountInfoByFilter(accountFilter: Partial<Omit<AccountInfo, "idTokenClaims" | "name">>): AccountInfo[];
220
- /**
221
- * Checks the cache for accounts matching loginHint or SID
222
- * @param loginHint
223
- * @param sid
224
- */
225
- getAccountInfoByHints(loginHint?: string, sid?: string): AccountInfo | null;
226
215
  /**
227
216
  * fetch throttling entity from the platform cache
228
217
  * @param throttlingCacheKey
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserCacheManager.d.ts","sourceRoot":"","sources":["../../src/cache/BrowserCacheManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,8BAA8B,EAC9B,OAAO,EACP,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAEhB,MAAM,EACN,uBAAuB,EAEvB,WAAW,EAKX,mBAAmB,EACnB,SAAS,EACT,cAAc,EAMd,kBAAkB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAKvD,OAAO,EACH,oBAAoB,EACpB,eAAe,EAIlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,O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