@azure/msal-browser 3.1.0 → 3.2.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 (180) hide show
  1. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  2. package/dist/app/IPublicClientApplication.mjs +20 -19
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.d.ts +14 -6
  5. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.mjs +17 -7
  7. package/dist/app/PublicClientApplication.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -4
  9. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
  10. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +13 -13
  11. package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
  13. package/dist/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
  14. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +16 -0
  15. package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -0
  16. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  17. package/dist/cache/BrowserCacheManager.d.ts +3 -3
  18. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  19. package/dist/cache/BrowserCacheManager.mjs +8 -7
  20. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  21. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  22. package/dist/cache/BrowserStorage.mjs +7 -9
  23. package/dist/cache/BrowserStorage.mjs.map +1 -1
  24. package/dist/cache/CryptoKeyStore.mjs +1 -1
  25. package/dist/cache/DatabaseStorage.mjs +1 -1
  26. package/dist/cache/MemoryStorage.mjs +1 -1
  27. package/dist/cache/TokenCache.mjs +1 -1
  28. package/dist/config/Configuration.d.ts.map +1 -1
  29. package/dist/config/Configuration.mjs +7 -7
  30. package/dist/config/Configuration.mjs.map +1 -1
  31. package/dist/controllers/ControllerFactory.mjs +1 -1
  32. package/dist/controllers/IController.d.ts +3 -2
  33. package/dist/controllers/IController.d.ts.map +1 -1
  34. package/dist/controllers/StandardController.d.ts +11 -6
  35. package/dist/controllers/StandardController.d.ts.map +1 -1
  36. package/dist/controllers/StandardController.mjs +53 -34
  37. package/dist/controllers/StandardController.mjs.map +1 -1
  38. package/dist/crypto/BrowserCrypto.d.ts +44 -49
  39. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  40. package/dist/crypto/BrowserCrypto.mjs +76 -76
  41. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  42. package/dist/crypto/CryptoOps.d.ts +1 -7
  43. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  44. package/dist/crypto/CryptoOps.mjs +11 -19
  45. package/dist/crypto/CryptoOps.mjs.map +1 -1
  46. package/dist/crypto/PkceGenerator.d.ts +6 -21
  47. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  48. package/dist/crypto/PkceGenerator.mjs +45 -46
  49. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  50. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  51. package/dist/encode/Base64Decode.d.ts.map +1 -1
  52. package/dist/encode/Base64Decode.mjs +18 -2
  53. package/dist/encode/Base64Decode.mjs.map +1 -1
  54. package/dist/encode/Base64Encode.mjs +1 -1
  55. package/dist/error/BrowserAuthError.d.ts +10 -1
  56. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  57. package/dist/error/BrowserAuthError.mjs +12 -3
  58. package/dist/error/BrowserAuthError.mjs.map +1 -1
  59. package/dist/error/BrowserAuthErrorCodes.d.ts +1 -0
  60. package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  61. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  62. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  63. package/dist/error/BrowserConfigurationAuthError.d.ts +9 -46
  64. package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
  65. package/dist/error/BrowserConfigurationAuthError.mjs +20 -73
  66. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
  67. package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
  68. package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
  69. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +12 -0
  70. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -0
  71. package/dist/error/NativeAuthError.d.ts +17 -45
  72. package/dist/error/NativeAuthError.d.ts.map +1 -1
  73. package/dist/error/NativeAuthError.mjs +47 -78
  74. package/dist/error/NativeAuthError.mjs.map +1 -1
  75. package/dist/error/NativeAuthErrorCodes.d.ts +3 -0
  76. package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -0
  77. package/dist/error/NativeAuthErrorCodes.mjs +11 -0
  78. package/dist/error/NativeAuthErrorCodes.mjs.map +1 -0
  79. package/dist/event/EventHandler.d.ts.map +1 -1
  80. package/dist/event/EventHandler.mjs +3 -2
  81. package/dist/event/EventHandler.mjs.map +1 -1
  82. package/dist/event/EventMessage.mjs +1 -1
  83. package/dist/event/EventType.mjs +1 -1
  84. package/dist/index.d.ts +2 -2
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.mjs +4 -2
  87. package/dist/index.mjs.map +1 -1
  88. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  89. package/dist/interaction_client/BaseInteractionClient.mjs +7 -8
  90. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  91. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  92. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  93. package/dist/interaction_client/NativeInteractionClient.mjs +12 -10
  94. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  95. package/dist/interaction_client/PopupClient.mjs +1 -1
  96. package/dist/interaction_client/RedirectClient.mjs +1 -1
  97. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  98. package/dist/interaction_client/SilentAuthCodeClient.mjs +5 -8
  99. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  100. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  101. package/dist/interaction_client/SilentCacheClient.mjs +10 -18
  102. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  103. package/dist/interaction_client/SilentIframeClient.mjs +2 -2
  104. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  105. package/dist/interaction_client/SilentRefreshClient.mjs +8 -18
  106. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  107. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  108. package/dist/interaction_client/StandardInteractionClient.mjs +12 -33
  109. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  110. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  111. package/dist/interaction_handler/InteractionHandler.mjs +6 -9
  112. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  113. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  114. package/dist/interaction_handler/RedirectHandler.mjs +3 -3
  115. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
  116. package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
  117. package/dist/interaction_handler/SilentHandler.mjs +3 -4
  118. package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  119. package/dist/navigation/NavigationClient.mjs +1 -1
  120. package/dist/network/FetchClient.mjs +1 -1
  121. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  122. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  123. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +1 -1
  124. package/dist/packageMetadata.d.ts +1 -1
  125. package/dist/packageMetadata.mjs +2 -2
  126. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  127. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  128. package/dist/utils/BrowserConstants.mjs +1 -1
  129. package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
  130. package/dist/utils/BrowserProtocolUtils.mjs +3 -3
  131. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
  132. package/dist/utils/BrowserStringUtils.mjs +1 -1
  133. package/dist/utils/BrowserUtils.mjs +1 -1
  134. package/lib/msal-browser.cjs +1413 -1727
  135. package/lib/msal-browser.cjs.map +1 -1
  136. package/lib/msal-browser.js +1413 -1727
  137. package/lib/msal-browser.js.map +1 -1
  138. package/lib/msal-browser.min.js +68 -65
  139. package/package.json +2 -2
  140. package/src/app/IPublicClientApplication.ts +55 -18
  141. package/src/app/PublicClientApplication.ts +18 -6
  142. package/src/broker/nativeBroker/NativeMessageHandler.ts +12 -15
  143. package/src/broker/nativeBroker/NativeStatusCodes.ts +13 -0
  144. package/src/cache/BrowserCacheManager.ts +21 -6
  145. package/src/cache/BrowserStorage.ts +9 -11
  146. package/src/config/Configuration.ts +16 -8
  147. package/src/controllers/IController.ts +4 -1
  148. package/src/controllers/StandardController.ts +155 -92
  149. package/src/crypto/BrowserCrypto.ts +118 -102
  150. package/src/crypto/CryptoOps.ts +10 -22
  151. package/src/crypto/PkceGenerator.ts +93 -54
  152. package/src/encode/Base64Decode.ts +21 -1
  153. package/src/error/BrowserAuthError.ts +13 -1
  154. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  155. package/src/error/BrowserConfigurationAuthError.ts +33 -102
  156. package/src/error/BrowserConfigurationAuthErrorCodes.ts +9 -0
  157. package/src/error/NativeAuthError.ts +73 -101
  158. package/src/error/NativeAuthErrorCodes.ts +7 -0
  159. package/src/event/EventHandler.ts +2 -1
  160. package/src/index.ts +5 -0
  161. package/src/interaction_client/BaseInteractionClient.ts +13 -7
  162. package/src/interaction_client/NativeInteractionClient.ts +29 -11
  163. package/src/interaction_client/SilentAuthCodeClient.ts +18 -16
  164. package/src/interaction_client/SilentCacheClient.ts +22 -30
  165. package/src/interaction_client/SilentIframeClient.ts +1 -1
  166. package/src/interaction_client/SilentRefreshClient.ts +26 -28
  167. package/src/interaction_client/StandardInteractionClient.ts +36 -67
  168. package/src/interaction_handler/InteractionHandler.ts +20 -15
  169. package/src/interaction_handler/RedirectHandler.ts +6 -2
  170. package/src/interaction_handler/SilentHandler.ts +6 -3
  171. package/src/packageMetadata.ts +1 -1
  172. package/src/utils/BrowserProtocolUtils.ts +3 -2
  173. package/dist/crypto/ISubtleCrypto.d.ts +0 -10
  174. package/dist/crypto/ISubtleCrypto.d.ts.map +0 -1
  175. package/dist/crypto/ModernBrowserCrypto.d.ts +0 -10
  176. package/dist/crypto/ModernBrowserCrypto.d.ts.map +0 -1
  177. package/dist/crypto/ModernBrowserCrypto.mjs +0 -31
  178. package/dist/crypto/ModernBrowserCrypto.mjs.map +0 -1
  179. package/src/crypto/ISubtleCrypto.ts +0 -30
  180. package/src/crypto/ModernBrowserCrypto.ts +0 -69
@@ -49,10 +49,15 @@ export declare const BrowserAuthErrorMessages: {
49
49
  native_connection_not_established: string;
50
50
  uninitialized_public_client_application: string;
51
51
  native_prompt_not_supported: string;
52
+ invalid_base64_string: string;
52
53
  };
53
54
  /**
54
55
  * BrowserAuthErrorMessage class containing string constants used by error codes and messages.
55
- * @deprecated Use BrowserAuthBrowserAuthErrorCodes instead
56
+ * @deprecated Use exported BrowserAuthErrorCodes instead.
57
+ * In your app you can do :
58
+ * ```
59
+ * import { BrowserAuthErrorCodes } from "@azure/msal-browser";
60
+ * ```
56
61
  */
57
62
  export declare const BrowserAuthErrorMessage: {
58
63
  pkceNotGenerated: {
@@ -231,6 +236,10 @@ export declare const BrowserAuthErrorMessage: {
231
236
  code: string;
232
237
  desc: string;
233
238
  };
239
+ invalidBase64StringError: {
240
+ code: string;
241
+ desc: string;
242
+ };
234
243
  };
235
244
  /**
236
245
  * Browser library error class thrown by the MSAL.js library for SPAs
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserAuthError.d.ts","sourceRoot":"","sources":["../../src/error/BrowserAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAIjC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmOnC,CAAC;AAEF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;gBAC/B,SAAS,EAAE,MAAM;CAMhC;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAE1E"}
1
+ {"version":3,"file":"BrowserAuthError.d.ts","sourceRoot":"","sources":["../../src/error/BrowserAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAIjC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EpC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyOnC,CAAC;AAEF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;gBAC/B,SAAS,EAAE,MAAM;CAMhC;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAE1E"}
@@ -1,7 +1,7 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common';
4
- import { pkceNotCreated, cryptoNonExistent, emptyNavigateUri, hashEmptyError, noStateInHash, hashDoesNotContainKnownProperties, unableToParseState, stateInteractionTypeMismatch, interactionInProgress, popupWindowError, emptyWindowError, userCancelled, monitorPopupTimeout, monitorWindowTimeout, redirectInIframe, blockIframeReload, blockNestedPopups, iframeClosedPrematurely, silentLogoutUnsupported, noAccountError, silentPromptValueError, noTokenRequestCacheError, unableToParseTokenRequestCacheError, noCachedAuthorityError, authRequestNotSetError, invalidCacheType, nonBrowserEnvironment, databaseNotOpen, noNetworkConnectivity, postRequestFailed, getRequestFailed, failedToParseResponse, unableToLoadToken, cryptoKeyNotFound, authCodeRequired, authCodeOrNativeAccountIdRequired, spaCodeAndNativeAccountIdPresent, databaseUnavailable, unableToAcquireTokenFromNativePlatform, nativeHandshakeTimeout, nativeExtensionNotInstalled, nativeConnectionNotEstablished, uninitializedPublicClientApplication, nativePromptNotSupported } from './BrowserAuthErrorCodes.mjs';
4
+ import { pkceNotCreated, cryptoNonExistent, emptyNavigateUri, hashEmptyError, noStateInHash, hashDoesNotContainKnownProperties, unableToParseState, stateInteractionTypeMismatch, interactionInProgress, popupWindowError, emptyWindowError, userCancelled, monitorPopupTimeout, monitorWindowTimeout, redirectInIframe, blockIframeReload, blockNestedPopups, iframeClosedPrematurely, silentLogoutUnsupported, noAccountError, silentPromptValueError, noTokenRequestCacheError, unableToParseTokenRequestCacheError, noCachedAuthorityError, authRequestNotSetError, invalidCacheType, nonBrowserEnvironment, databaseNotOpen, noNetworkConnectivity, postRequestFailed, getRequestFailed, failedToParseResponse, unableToLoadToken, cryptoKeyNotFound, authCodeRequired, authCodeOrNativeAccountIdRequired, spaCodeAndNativeAccountIdPresent, databaseUnavailable, unableToAcquireTokenFromNativePlatform, nativeHandshakeTimeout, nativeExtensionNotInstalled, nativeConnectionNotEstablished, uninitializedPublicClientApplication, nativePromptNotSupported, invalidBase64String } from './BrowserAuthErrorCodes.mjs';
5
5
  import * as BrowserAuthErrorCodes from './BrowserAuthErrorCodes.mjs';
6
6
  export { BrowserAuthErrorCodes };
7
7
 
@@ -58,10 +58,15 @@ const BrowserAuthErrorMessages = {
58
58
  [nativeConnectionNotEstablished]: `Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${ErrorLink}`,
59
59
  [uninitializedPublicClientApplication]: `You must call and await the initialize function before attempting to call any other MSAL API. ${ErrorLink}`,
60
60
  [nativePromptNotSupported]: "The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",
61
+ [invalidBase64String]: "Invalid base64 encoded string.",
61
62
  };
62
63
  /**
63
64
  * BrowserAuthErrorMessage class containing string constants used by error codes and messages.
64
- * @deprecated Use BrowserAuthBrowserAuthErrorCodes instead
65
+ * @deprecated Use exported BrowserAuthErrorCodes instead.
66
+ * In your app you can do :
67
+ * ```
68
+ * import { BrowserAuthErrorCodes } from "@azure/msal-browser";
69
+ * ```
65
70
  */
66
71
  const BrowserAuthErrorMessage = {
67
72
  pkceNotGenerated: {
@@ -240,6 +245,10 @@ const BrowserAuthErrorMessage = {
240
245
  code: nativePromptNotSupported,
241
246
  desc: BrowserAuthErrorMessages[nativePromptNotSupported],
242
247
  },
248
+ invalidBase64StringError: {
249
+ code: invalidBase64String,
250
+ desc: BrowserAuthErrorMessages[invalidBase64String],
251
+ },
243
252
  };
244
253
  /**
245
254
  * Browser library error class thrown by the MSAL.js library for SPAs
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserAuthError.mjs","sources":["../../src/error/BrowserAuthError.ts"],"sourcesContent":[null],"names":["BrowserAuthErrorCodes.nativeHandshakeTimeout","BrowserAuthErrorCodes.nativeExtensionNotInstalled","BrowserAuthErrorCodes.nativePromptNotSupported"],"mappings":";;;;;;;AAKA;AACA;AACA;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+EE,CAAAA,sBAAA,GAAA,yEAAA;AAEF,IAAA,CAAAC,2BAAA,GAAA,iGAAA;;;AAGG,IAAA,CAAAC,wBAAA,GAAA,mHAAA;AACH,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmOE;AAEF,IAAA,wBAAA,EAAA;;AAEG,QAAA,IAAA,EAAA,wBAAA,CAAAA,wBAAA,CAAA;AACH,KAAa;AACG,EAAA;AAMf;AAED;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BrowserAuthError.mjs","sources":["../../src/error/BrowserAuthError.ts"],"sourcesContent":[null],"names":["BrowserAuthErrorCodes.nativeExtensionNotInstalled","BrowserAuthErrorCodes.nativeConnectionNotEstablished","BrowserAuthErrorCodes.invalidBase64String"],"mappings":";;;;;;;AAKA;AACA;AACA;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiFE,CAAAA,2BAAA,GAAA,iGAAA;AAEF,IAAA,CAAAC,8BAAA,GAAA,CAAA,6HAAA,EAAA,SAAA,CAAA,CAAA;;;;;;;AAOG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyOE;AAEF,IAAA,wBAAA,EAAA;;AAEG,QAAA,IAAA,EAAA,wBAAA,CAAAC,mBAAA,CAAA;AACH,KAAa;AACG,EAAA;AAMf;AAED;;;;;;;;;;;;;;;"}
@@ -42,4 +42,5 @@ export declare const nativeExtensionNotInstalled = "native_extension_not_install
42
42
  export declare const nativeConnectionNotEstablished = "native_connection_not_established";
43
43
  export declare const uninitializedPublicClientApplication = "uninitialized_public_client_application";
44
44
  export declare const nativePromptNotSupported = "native_prompt_not_supported";
45
+ export declare const invalidBase64String = "invalid_base64_string";
45
46
  //# sourceMappingURL=BrowserAuthErrorCodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/BrowserAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,aAAa,qBAAqB,CAAC;AAChD,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAC1D,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,gBAAgB,uBAAuB,CA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,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AACxD,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AACxD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,iCAAiC,0CACH,CAAC;AAC5C,eAAO,MAAM,gCAAgC,yCACH,CAAC;AAC3C,eAAO,MAAM,mBAAmB,yBAAyB,CAAC;AAC1D,eAAO,MAAM,sCAAsC,iDACD,CAAC;AACnD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAC5E,eAAO,MAAM,8BAA8B,sCACJ,CAAC;AACxC,eAAO,MAAM,oCAAoC,4CACJ,CAAC;AAC9C,eAAO,MAAM,wBAAwB,gCAAgC,CAAC;AACtE,eAAO,MAAM,mBAAmB,0BAA0B,CAAC"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48,6 +48,7 @@ const nativeExtensionNotInstalled = "native_extension_not_installed";
48
48
  const nativeConnectionNotEstablished = "native_connection_not_established";
49
49
  const uninitializedPublicClientApplication = "uninitialized_public_client_application";
50
50
  const nativePromptNotSupported = "native_prompt_not_supported";
51
+ const invalidBase64String = "invalid_base64_string";
51
52
 
52
- export { authCodeOrNativeAccountIdRequired, authCodeRequired, authRequestNotSetError, blockIframeReload, blockNestedPopups, cryptoKeyNotFound, cryptoNonExistent, databaseNotOpen, databaseUnavailable, emptyNavigateUri, emptyWindowError, failedToParseResponse, getRequestFailed, hashDoesNotContainKnownProperties, hashEmptyError, iframeClosedPrematurely, interactionInProgress, invalidCacheType, monitorPopupTimeout, monitorWindowTimeout, nativeConnectionNotEstablished, nativeExtensionNotInstalled, nativeHandshakeTimeout, nativePromptNotSupported, noAccountError, noCachedAuthorityError, noNetworkConnectivity, noStateInHash, noTokenRequestCacheError, nonBrowserEnvironment, pkceNotCreated, popupWindowError, postRequestFailed, redirectInIframe, silentLogoutUnsupported, silentPromptValueError, spaCodeAndNativeAccountIdPresent, stateInteractionTypeMismatch, unableToAcquireTokenFromNativePlatform, unableToLoadToken, unableToParseState, unableToParseTokenRequestCacheError, uninitializedPublicClientApplication, userCancelled };
53
+ export { authCodeOrNativeAccountIdRequired, authCodeRequired, authRequestNotSetError, blockIframeReload, blockNestedPopups, cryptoKeyNotFound, cryptoNonExistent, databaseNotOpen, databaseUnavailable, emptyNavigateUri, emptyWindowError, failedToParseResponse, getRequestFailed, hashDoesNotContainKnownProperties, hashEmptyError, iframeClosedPrematurely, interactionInProgress, invalidBase64String, invalidCacheType, monitorPopupTimeout, monitorWindowTimeout, nativeConnectionNotEstablished, nativeExtensionNotInstalled, nativeHandshakeTimeout, nativePromptNotSupported, noAccountError, noCachedAuthorityError, noNetworkConnectivity, noStateInHash, noTokenRequestCacheError, nonBrowserEnvironment, pkceNotCreated, popupWindowError, postRequestFailed, redirectInIframe, silentLogoutUnsupported, silentPromptValueError, spaCodeAndNativeAccountIdPresent, stateInteractionTypeMismatch, unableToAcquireTokenFromNativePlatform, unableToLoadToken, unableToParseState, unableToParseTokenRequestCacheError, uninitializedPublicClientApplication, userCancelled };
53
54
  //# sourceMappingURL=BrowserAuthErrorCodes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserAuthErrorCodes.mjs","sources":["../../src/error/BrowserAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AACA;AACA;AACO,MAAA,cAAmB,GAAA,mBAAA;AACnB,MAAA,iBAAuC,GAAA,qBAAA;AAEvC,MAAA,gBAAwB,GAAA,qBAAA;AACxB,MAAA,cAAkC,GAAA,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C,GAAA,2BAAA;AAEvC,MAAA,iBAAsC,GAAA,uBAAA;AAEtC,MAAA,iBAAyB,GAAA,uBAAA;AACzB,MAAA,gBAA4C,GAAA,qBAAA;AAE5C,MAAA,iCAA4B,GAAA,wCAA8B;AAC1D,MAAA,gCAAiC,GAAA,uCAAoC;AACrE,MAAA,mBAAoC,GAAA,uBAAA;AAEpC,MAAA,sCAA0C,GAAA,+CACJ;AACtC,MAAA,sBAA8B,GAAA,2BAAA;AAC9B,MAAA,2BAAyB,GAAA,iCAA2B;;;;;;;;"}
@@ -1,28 +1,20 @@
1
1
  import { AuthError } from "@azure/msal-common";
2
+ import * as BrowserConfigurationAuthErrorCodes from "./BrowserConfigurationAuthErrorCodes";
3
+ export { BrowserConfigurationAuthErrorCodes };
4
+ export declare const BrowserConfigurationAuthErrorMessages: {
5
+ storage_not_supported: string;
6
+ stubbed_public_client_application_called: string;
7
+ in_mem_redirect_unavailable: string;
8
+ };
2
9
  /**
3
10
  * BrowserAuthErrorMessage class containing string constants used by error codes and messages.
11
+ * @deprecated Use BrowserAuthErrorCodes instead
4
12
  */
5
13
  export declare const BrowserConfigurationAuthErrorMessage: {
6
- redirectUriNotSet: {
7
- code: string;
8
- desc: string;
9
- };
10
- postLogoutUriNotSet: {
11
- code: string;
12
- desc: string;
13
- };
14
14
  storageNotSupportedError: {
15
15
  code: string;
16
16
  desc: string;
17
17
  };
18
- noRedirectCallbacksSet: {
19
- code: string;
20
- desc: string;
21
- };
22
- invalidCallbackObject: {
23
- code: string;
24
- desc: string;
25
- };
26
18
  stubPcaInstanceCalled: {
27
19
  code: string;
28
20
  desc: string;
@@ -31,41 +23,12 @@ export declare const BrowserConfigurationAuthErrorMessage: {
31
23
  code: string;
32
24
  desc: string;
33
25
  };
34
- entropyNotProvided: {
35
- code: string;
36
- desc: string;
37
- };
38
26
  };
39
27
  /**
40
28
  * Browser library error class thrown by the MSAL.js library for SPAs
41
29
  */
42
30
  export declare class BrowserConfigurationAuthError extends AuthError {
43
31
  constructor(errorCode: string, errorMessage?: string);
44
- /**
45
- * Creates an error thrown when the redirect uri is empty (not set by caller)
46
- */
47
- static createRedirectUriEmptyError(): BrowserConfigurationAuthError;
48
- /**
49
- * Creates an error thrown when the post-logout redirect uri is empty (not set by caller)
50
- */
51
- static createPostLogoutRedirectUriEmptyError(): BrowserConfigurationAuthError;
52
- /**
53
- * Creates error thrown when given storage location is not supported.
54
- * @param givenStorageLocation
55
- */
56
- static createStorageNotSupportedError(givenStorageLocation: string): BrowserConfigurationAuthError;
57
- /**
58
- * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().
59
- */
60
- static createRedirectCallbacksNotSetError(): BrowserConfigurationAuthError;
61
- /**
62
- * Creates error thrown when the stub instance of PublicClientApplication is called.
63
- */
64
- static createStubPcaInstanceCalledError(): BrowserConfigurationAuthError;
65
- static createInMemoryRedirectUnavailableError(): BrowserConfigurationAuthError;
66
- /**
67
- * Creates an error thrown when a crypto interface that requires entropy is initialized without entropy
68
- */
69
- static createEntropyNotProvided(): BrowserConfigurationAuthError;
70
32
  }
33
+ export declare function createBrowserConfigurationAuthError(errorCode: string): BrowserConfigurationAuthError;
71
34
  //# sourceMappingURL=BrowserConfigurationAuthError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserConfigurationAuthError.d.ts","sourceRoot":"","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChD,CAAC;AAEF;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,SAAS;gBAC5C,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAOpD;;OAEG;IACH,MAAM,CAAC,2BAA2B,IAAI,6BAA6B;IAOnE;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,6BAA6B;IAO7E;;;OAGG;IACH,MAAM,CAAC,8BAA8B,CACjC,oBAAoB,EAAE,MAAM,GAC7B,6BAA6B;IAOhC;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,6BAA6B;IAO1E;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,6BAA6B;IAUxE,MAAM,CAAC,sCAAsC,IAAI,6BAA6B;IAO9E;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,6BAA6B;CAMnE"}
1
+ {"version":3,"file":"BrowserConfigurationAuthError.d.ts","sourceRoot":"","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,kCAAkC,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,CAAC;AAE9C,eAAO,MAAM,qCAAqC;;;;CAOjD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;CAoBhD,CAAC;AAEF;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,SAAS;gBAC5C,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAMvD;AAED,wBAAgB,mCAAmC,CAC/C,SAAS,EAAE,MAAM,GAClB,6BAA6B,CAK/B"}
@@ -1,48 +1,35 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common';
4
+ import { storageNotSupported, stubbedPublicClientApplicationCalled, inMemRedirectUnavailable } from './BrowserConfigurationAuthErrorCodes.mjs';
5
+ import * as BrowserConfigurationAuthErrorCodes from './BrowserConfigurationAuthErrorCodes.mjs';
6
+ export { BrowserConfigurationAuthErrorCodes };
4
7
 
5
8
  /*
6
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
10
  * Licensed under the MIT License.
8
11
  */
12
+ const BrowserConfigurationAuthErrorMessages = {
13
+ [storageNotSupported]: "Given storage configuration option was not supported.",
14
+ [stubbedPublicClientApplicationCalled]: "Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",
15
+ [inMemRedirectUnavailable]: "Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",
16
+ };
9
17
  /**
10
18
  * BrowserAuthErrorMessage class containing string constants used by error codes and messages.
19
+ * @deprecated Use BrowserAuthErrorCodes instead
11
20
  */
12
21
  const BrowserConfigurationAuthErrorMessage = {
13
- redirectUriNotSet: {
14
- code: "redirect_uri_empty",
15
- desc: "A redirect URI is required for all calls, and none has been set.",
16
- },
17
- postLogoutUriNotSet: {
18
- code: "post_logout_uri_empty",
19
- desc: "A post logout redirect has not been set.",
20
- },
21
22
  storageNotSupportedError: {
22
- code: "storage_not_supported",
23
- desc: "Given storage configuration option was not supported.",
24
- },
25
- noRedirectCallbacksSet: {
26
- code: "no_redirect_callbacks",
27
- desc: "No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. " +
28
- "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",
29
- },
30
- invalidCallbackObject: {
31
- code: "invalid_callback_object",
32
- desc: "The object passed for the callback was invalid. " +
33
- "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",
23
+ code: storageNotSupported,
24
+ desc: BrowserConfigurationAuthErrorMessages[storageNotSupported],
34
25
  },
35
26
  stubPcaInstanceCalled: {
36
- code: "stubbed_public_client_application_called",
37
- desc: "Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",
27
+ code: stubbedPublicClientApplicationCalled,
28
+ desc: BrowserConfigurationAuthErrorMessages[stubbedPublicClientApplicationCalled],
38
29
  },
39
30
  inMemRedirectUnavailable: {
40
- code: "in_mem_redirect_unavailable",
41
- desc: "Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",
42
- },
43
- entropyNotProvided: {
44
- code: "entropy_not_provided",
45
- desc: "The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option.",
31
+ code: inMemRedirectUnavailable,
32
+ desc: BrowserConfigurationAuthErrorMessages[inMemRedirectUnavailable],
46
33
  },
47
34
  };
48
35
  /**
@@ -54,50 +41,10 @@ class BrowserConfigurationAuthError extends AuthError {
54
41
  this.name = "BrowserConfigurationAuthError";
55
42
  Object.setPrototypeOf(this, BrowserConfigurationAuthError.prototype);
56
43
  }
57
- /**
58
- * Creates an error thrown when the redirect uri is empty (not set by caller)
59
- */
60
- static createRedirectUriEmptyError() {
61
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.redirectUriNotSet.code, BrowserConfigurationAuthErrorMessage.redirectUriNotSet.desc);
62
- }
63
- /**
64
- * Creates an error thrown when the post-logout redirect uri is empty (not set by caller)
65
- */
66
- static createPostLogoutRedirectUriEmptyError() {
67
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.code, BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.desc);
68
- }
69
- /**
70
- * Creates error thrown when given storage location is not supported.
71
- * @param givenStorageLocation
72
- */
73
- static createStorageNotSupportedError(givenStorageLocation) {
74
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.storageNotSupportedError.code, `${BrowserConfigurationAuthErrorMessage.storageNotSupportedError.desc} Given Location: ${givenStorageLocation}`);
75
- }
76
- /**
77
- * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().
78
- */
79
- static createRedirectCallbacksNotSetError() {
80
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.code, BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.desc);
81
- }
82
- /**
83
- * Creates error thrown when the stub instance of PublicClientApplication is called.
84
- */
85
- static createStubPcaInstanceCalledError() {
86
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.code, BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.desc);
87
- }
88
- /*
89
- * Create an error thrown when in-memory storage is used and storeAuthStateInCookie=false.
90
- */
91
- static createInMemoryRedirectUnavailableError() {
92
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.code, BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.desc);
93
- }
94
- /**
95
- * Creates an error thrown when a crypto interface that requires entropy is initialized without entropy
96
- */
97
- static createEntropyNotProvided() {
98
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.entropyNotProvided.code, BrowserConfigurationAuthErrorMessage.entropyNotProvided.desc);
99
- }
44
+ }
45
+ function createBrowserConfigurationAuthError(errorCode) {
46
+ return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
100
47
  }
101
48
 
102
- export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage };
49
+ export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage, BrowserConfigurationAuthErrorMessages, createBrowserConfigurationAuthError };
103
50
  //# sourceMappingURL=BrowserConfigurationAuthError.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserConfigurationAuthError.mjs","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;AAEA;;AAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsCD,IAAA,EAAA,uRAAA;AAEF,KAAA;;AAEG,QAAA,IAAA,EAAA,sBAAA;AACH,QAAa,IAAA,EAAA,oHAA+C;AAC5C,KAAA;AAOZ,EAAA;;AAEG;;AAQH,MAAA,6BAAA,SAAA,SAAA,CAAA;;AAEG,QAAA,KAAA,CAAA,SAAA,EAAA,YAAA,CAAA,CAAA;QACG,IAAsC,CAAA,IAAA,GAAA,+BAAA,CAAI;AAOhD,QAAA,MAAA,CAAA,cAAA,CAAA,IAAA,EAAA,6BAAA,CAAA,SAAA,CAAA,CAAA;;;AAGG;AACH;AASA,IAAA,OAAA,2BAAA,GAAA;;AAEG,KAAA;;AAQH;;AAEG,IAAA,OAAA,qCAAA,GAAA;QACG,OAAiC,IAAA,6BAAiC,CAAA,oCAAA,CAAA,mBAAA,CAAA,IAAA,EAAA,oCAAA,CAAA,mBAAA,CAAA,IAAA,CAAA,CAAA;KAUlE;AAON;;AAEG;;AAON,IAAA,OAAA,8BAAA,CAAA,oBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BrowserConfigurationAuthError.mjs","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"sourcesContent":[null],"names":["BrowserConfigurationAuthErrorCodes.storageNotSupported","BrowserConfigurationAuthErrorCodes.inMemRedirectUnavailable"],"mappings":";;;;;;;AAKA;AACA;AACA;AAEA;AAOE,MAAA,qCAAA,GAAA;AAEF,IAAA,CAAAA,mBAAA,GAAA,uDAAA;;;AAGG,EAAA;AACH;;;;;;;;;;;;KAoBE;AAEF,IAAA,wBAAA,EAAA;;AAEG,QAAA,IAAA,EAAA,qCAAA,CAAAC,wBAAA,CAAA;AACH,KAAa;AACG,EAAA;AAMf;AAED;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const storageNotSupported = "storage_not_supported";
2
+ export declare const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
3
+ export declare const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
4
+ //# sourceMappingURL=BrowserConfigurationAuthErrorCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConfigurationAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/BrowserConfigurationAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,oCAAoC,6CACH,CAAC;AAC/C,eAAO,MAAM,wBAAwB,gCAAgC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const storageNotSupported = "storage_not_supported";
8
+ const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
9
+ const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
10
+
11
+ export { inMemRedirectUnavailable, storageNotSupported, stubbedPublicClientApplicationCalled };
12
+ //# sourceMappingURL=BrowserConfigurationAuthErrorCodes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConfigurationAuthErrorCodes.mjs","sources":["../../src/error/BrowserConfigurationAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AAEA;;;;;;;;"}
@@ -1,4 +1,6 @@
1
1
  import { AuthError } from "@azure/msal-common";
2
+ import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes";
3
+ export { NativeAuthErrorCodes };
2
4
  export type OSError = {
3
5
  error?: number;
4
6
  protocol_error?: string;
@@ -6,53 +8,23 @@ export type OSError = {
6
8
  status?: string;
7
9
  retryable?: boolean;
8
10
  };
9
- export declare const NativeStatusCode: {
10
- readonly USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED";
11
- readonly USER_CANCEL: "USER_CANCEL";
12
- readonly NO_NETWORK: "NO_NETWORK";
13
- readonly TRANSIENT_ERROR: "TRANSIENT_ERROR";
14
- readonly PERSISTENT_ERROR: "PERSISTENT_ERROR";
15
- readonly DISABLED: "DISABLED";
16
- readonly ACCOUNT_UNAVAILABLE: "ACCOUNT_UNAVAILABLE";
17
- };
18
- export type NativeStatusCode = (typeof NativeStatusCode)[keyof typeof NativeStatusCode];
19
- export declare const NativeAuthErrorMessage: {
20
- extensionError: {
21
- code: string;
22
- };
23
- userSwitch: {
24
- code: string;
25
- desc: string;
26
- };
27
- tokensNotFoundInCache: {
28
- code: string;
29
- desc: string;
30
- };
11
+ export declare const NativeAuthErrorMessages: {
12
+ user_switch: string;
31
13
  };
32
14
  export declare class NativeAuthError extends AuthError {
33
15
  ext: OSError | undefined;
34
- constructor(errorCode: string, description: string, ext?: OSError);
35
- /**
36
- * These errors should result in a fallback to the 'standard' browser based auth flow.
37
- */
38
- isFatal(): boolean;
39
- /**
40
- * Create the appropriate error object based on the WAM status code.
41
- * @param code
42
- * @param description
43
- * @param ext
44
- * @returns
45
- */
46
- static createError(code: string, description: string, ext?: OSError): AuthError;
47
- /**
48
- * Creates user switch error when the user chooses a different account in the native broker prompt
49
- * @returns
50
- */
51
- static createUserSwitchError(): NativeAuthError;
52
- /**
53
- * Creates a tokens not found error when the internal cache look up fails
54
- * @returns NativeAuthError: tokensNotFoundInCache
55
- */
56
- static createTokensNotFoundInCacheError(): NativeAuthError;
16
+ constructor(errorCode: string, description?: string, ext?: OSError);
57
17
  }
18
+ /**
19
+ * These errors should result in a fallback to the 'standard' browser based auth flow.
20
+ */
21
+ export declare function isFatalNativeAuthError(error: NativeAuthError): boolean;
22
+ /**
23
+ * Create the appropriate error object based on the WAM status code.
24
+ * @param code
25
+ * @param description
26
+ * @param ext
27
+ * @returns
28
+ */
29
+ export declare function createNativeAuthError(code: string, description?: string, ext?: OSError): AuthError;
58
30
  //# sourceMappingURL=NativeAuthError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NativeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAgC,MAAM,oBAAoB,CAAC;AAM7E,MAAM,MAAM,OAAO,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,C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CACvB,CAAC;AAIF,eAAO,MAAM,uBAAuB;;CAGnC,CAAC;AAEF,qBAAa,eAAgB,SAAQ,SAAS;IAC1C,GAAG,EAAE,OAAO,GAAG,SAAS,CAAC;gBAEb,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO;CAOrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAwBtE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,OAAO,GACd,SAAS,CAyBX"}
@@ -1,7 +1,9 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
2
  'use strict';
3
- import { AuthError, InteractionRequiredAuthError } from '@azure/msal-common';
3
+ import { AuthError, InteractionRequiredAuthError, createInteractionRequiredAuthError, InteractionRequiredAuthErrorCodes } from '@azure/msal-common';
4
4
  import { createBrowserAuthError } from './BrowserAuthError.mjs';
5
+ import { contentError, userSwitch } from './NativeAuthErrorCodes.mjs';
6
+ import { PERSISTENT_ERROR, DISABLED, NO_NETWORK, USER_CANCEL, USER_INTERACTION_REQUIRED, ACCOUNT_UNAVAILABLE } from '../broker/nativeBroker/NativeStatusCodes.mjs';
5
7
  import { noNetworkConnectivity, userCancelled } from './BrowserAuthErrorCodes.mjs';
6
8
 
7
9
  /*
@@ -9,27 +11,8 @@ import { noNetworkConnectivity, userCancelled } from './BrowserAuthErrorCodes.mj
9
11
  * Licensed under the MIT License.
10
12
  */
11
13
  const INVALID_METHOD_ERROR = -2147186943;
12
- const NativeStatusCode = {
13
- USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED",
14
- USER_CANCEL: "USER_CANCEL",
15
- NO_NETWORK: "NO_NETWORK",
16
- TRANSIENT_ERROR: "TRANSIENT_ERROR",
17
- PERSISTENT_ERROR: "PERSISTENT_ERROR",
18
- DISABLED: "DISABLED",
19
- ACCOUNT_UNAVAILABLE: "ACCOUNT_UNAVAILABLE",
20
- };
21
- const NativeAuthErrorMessage = {
22
- extensionError: {
23
- code: "ContentError",
24
- },
25
- userSwitch: {
26
- code: "user_switch",
27
- desc: "User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",
28
- },
29
- tokensNotFoundInCache: {
30
- code: "tokens_not_found_in_internal_memory_cache",
31
- desc: "Tokens not cached in MSAL JS internal memory, please make the WAM request",
32
- },
14
+ const NativeAuthErrorMessages = {
15
+ [userSwitch]: "User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",
33
16
  };
34
17
  class NativeAuthError extends AuthError {
35
18
  constructor(errorCode, description, ext) {
@@ -38,65 +21,51 @@ class NativeAuthError extends AuthError {
38
21
  this.name = "NativeAuthError";
39
22
  this.ext = ext;
40
23
  }
41
- /**
42
- * These errors should result in a fallback to the 'standard' browser based auth flow.
43
- */
44
- isFatal() {
45
- if (this.ext &&
46
- this.ext.status &&
47
- (this.ext.status === NativeStatusCode.PERSISTENT_ERROR ||
48
- this.ext.status === NativeStatusCode.DISABLED)) {
49
- return true;
50
- }
51
- if (this.ext &&
52
- this.ext.error &&
53
- this.ext.error === INVALID_METHOD_ERROR) {
54
- return true;
55
- }
56
- switch (this.errorCode) {
57
- case NativeAuthErrorMessage.extensionError.code:
58
- return true;
59
- default:
60
- return false;
61
- }
24
+ }
25
+ /**
26
+ * These errors should result in a fallback to the 'standard' browser based auth flow.
27
+ */
28
+ function isFatalNativeAuthError(error) {
29
+ if (error.ext &&
30
+ error.ext.status &&
31
+ (error.ext.status === PERSISTENT_ERROR ||
32
+ error.ext.status === DISABLED)) {
33
+ return true;
62
34
  }
63
- /**
64
- * Create the appropriate error object based on the WAM status code.
65
- * @param code
66
- * @param description
67
- * @param ext
68
- * @returns
69
- */
70
- static createError(code, description, ext) {
71
- if (ext && ext.status) {
72
- switch (ext.status) {
73
- case NativeStatusCode.ACCOUNT_UNAVAILABLE:
74
- return InteractionRequiredAuthError.createNativeAccountUnavailableError();
75
- case NativeStatusCode.USER_INTERACTION_REQUIRED:
76
- return new InteractionRequiredAuthError(code, description);
77
- case NativeStatusCode.USER_CANCEL:
78
- return createBrowserAuthError(userCancelled);
79
- case NativeStatusCode.NO_NETWORK:
80
- return createBrowserAuthError(noNetworkConnectivity);
81
- }
82
- }
83
- return new NativeAuthError(code, description, ext);
35
+ if (error.ext &&
36
+ error.ext.error &&
37
+ error.ext.error === INVALID_METHOD_ERROR) {
38
+ return true;
84
39
  }
85
- /**
86
- * Creates user switch error when the user chooses a different account in the native broker prompt
87
- * @returns
88
- */
89
- static createUserSwitchError() {
90
- return new NativeAuthError(NativeAuthErrorMessage.userSwitch.code, NativeAuthErrorMessage.userSwitch.desc);
40
+ switch (error.errorCode) {
41
+ case contentError:
42
+ return true;
43
+ default:
44
+ return false;
91
45
  }
92
- /**
93
- * Creates a tokens not found error when the internal cache look up fails
94
- * @returns NativeAuthError: tokensNotFoundInCache
95
- */
96
- static createTokensNotFoundInCacheError() {
97
- return new NativeAuthError(NativeAuthErrorMessage.tokensNotFoundInCache.code, NativeAuthErrorMessage.tokensNotFoundInCache.desc);
46
+ }
47
+ /**
48
+ * Create the appropriate error object based on the WAM status code.
49
+ * @param code
50
+ * @param description
51
+ * @param ext
52
+ * @returns
53
+ */
54
+ function createNativeAuthError(code, description, ext) {
55
+ if (ext && ext.status) {
56
+ switch (ext.status) {
57
+ case ACCOUNT_UNAVAILABLE:
58
+ return createInteractionRequiredAuthError(InteractionRequiredAuthErrorCodes.nativeAccountUnavailable);
59
+ case USER_INTERACTION_REQUIRED:
60
+ return new InteractionRequiredAuthError(code, description);
61
+ case USER_CANCEL:
62
+ return createBrowserAuthError(userCancelled);
63
+ case NO_NETWORK:
64
+ return createBrowserAuthError(noNetworkConnectivity);
65
+ }
98
66
  }
67
+ return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
99
68
  }
100
69
 
101
- export { NativeAuthError, NativeAuthErrorMessage, NativeStatusCode };
70
+ export { NativeAuthError, NativeAuthErrorMessages, createNativeAuthError, isFatalNativeAuthError };
102
71
  //# sourceMappingURL=NativeAuthError.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAuthError.mjs","sources":["../../src/error/NativeAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AAMA;;;MAKa,oBAAW,GAAA,CAAA,UAAA,CAAA;AACtB,MAAA,gBAAA,GAAA;AAIF,IAAA,yBAA6B,EAAA,2BAAA;;;;;;;;AAQlB,MAAA,sBAAA,GAAA;AACX,IAAA,cAAY,EAAA;AAGZ,QAAA,IAAA,EAAA,cAAmC;;;;;;;;;;;;IAYjC,WAAA,CAAA,SAAA,EAAA,WAAA,EAAA,GAAA,EAAA;AAEF,QAAa,KAAA,CAAA,SAAA,EAAA,WAAgB;AACzB,QAAK,MAAA,CAAA,cAAoB,CAAA,IAAA,EAAA,eAAA,CAAA,SAAA,CAAA,CAAA;iBAEJ,GAAA,iBAAqB,CAAA;AAQ1C,QAAA,IAAA,CAAA,GAAA,GAAA,GAAA,CAAA;;AAEG;AACH;AA0BA;;;;;;AAMG,YAAA,OAAA,IAAA,CAAA;AACH,SAAA;AAyBA,QAAA,IAAA,IAAA,CAAA,GAAA;;;AAGG,YAAA,OAAA,IAAA,CAAA;SACG;AAON,QAAA,QAAA,IAAA,CAAA,SAAA;;;AAGG,YAAA;gBACoC,OAAA,KAAA,CAAA;AAM1C,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NativeAuthError.mjs","sources":["../../src/error/NativeAuthError.ts"],"sourcesContent":[null],"names":["NativeStatusCodes.PERSISTENT_ERROR"],"mappings":";;;;;;;;AAKA;AAWA;AAEA;AAEA;MAME,oBAAA,GAAA,CAAA,UAAA,CAAA;AAIF,MAAA,uBAAoC,GAAA;;EAGlC;AAEW,MAAA,eAAA,kBAAiC,CAAA;AAC1C,IAAA,WAAK,CAAO,SAAG,EAAA,WAAU,EAAA,GAAA,EAAA;uBAEJ,EAAA,WAAqB,CAAA,CAAA;AAO7C,QAAA,MAAA,CAAA,cAAA,CAAA,IAAA,EAAA,eAAA,CAAA,SAAA,CAAA,CAAA;AAED,QAAA,IAAA,CAAA,IAAA,GAAA,iBAAA,CAAA;;AAEG,KAAA;AACH,CAAA;AA0BA;;;;;;AAMG,SAAA,KAAA,CAAA,GAAA,CAAA,MAAA,KAAAA,gBAAA;AACH,YAAA,KAAA,CAAA,GAAA,CAAA,oBAEI,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const contentError = "ContentError";
2
+ export declare const userSwitch = "user_switch";
3
+ //# sourceMappingURL=NativeAuthErrorCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/NativeAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,UAAU,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*! @azure/msal-browser v3.2.0 2023-10-05 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const contentError = "ContentError";
8
+ const userSwitch = "user_switch";
9
+
10
+ export { contentError, userSwitch };
11
+ //# sourceMappingURL=NativeAuthErrorCodes.mjs.map