@azure/msal-browser 3.19.1 → 3.20.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.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/BrowserStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts +9 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +83 -43
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +206 -107
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +206 -107
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +64 -64
- package/package.json +2 -2
- package/src/interaction_client/NativeInteractionClient.ts +105 -54
- package/src/packageMetadata.ts +1 -1
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.20.0 2024-07-23 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v14.
|
|
9
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
// Token renewal offset default in seconds
|
|
316
316
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
317
317
|
|
|
318
|
-
/*! @azure/msal-common v14.
|
|
318
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
319
319
|
/*
|
|
320
320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
321
321
|
* Licensed under the MIT License.
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
unexpectedError: unexpectedError
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
/*! @azure/msal-common v14.
|
|
335
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
336
336
|
|
|
337
337
|
/*
|
|
338
338
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
: AuthErrorMessages[code]);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
/*! @azure/msal-common v14.
|
|
384
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
385
385
|
/*
|
|
386
386
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
387
387
|
* Licensed under the MIT License.
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
userTimeoutReached: userTimeoutReached
|
|
480
480
|
});
|
|
481
481
|
|
|
482
|
-
/*! @azure/msal-common v14.
|
|
482
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
483
483
|
|
|
484
484
|
/*
|
|
485
485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
-
/*! @azure/msal-common v14.
|
|
734
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
735
735
|
|
|
736
736
|
/*
|
|
737
737
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
/*! @azure/msal-common v14.
|
|
795
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
796
796
|
/*
|
|
797
797
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
798
798
|
* Licensed under the MIT License.
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
Ciam: 3,
|
|
808
808
|
};
|
|
809
809
|
|
|
810
|
-
/*! @azure/msal-common v14.
|
|
810
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
811
811
|
/*
|
|
812
812
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
813
813
|
* Licensed under the MIT License.
|
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
response.hasOwnProperty("jwks_uri"));
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
/*! @azure/msal-common v14.
|
|
822
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
823
823
|
/*
|
|
824
824
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
825
825
|
* Licensed under the MIT License.
|
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
urlParseError: urlParseError
|
|
874
874
|
});
|
|
875
875
|
|
|
876
|
-
/*! @azure/msal-common v14.
|
|
876
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
877
877
|
|
|
878
878
|
/*
|
|
879
879
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
return new ClientConfigurationError(errorCode);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
-
/*! @azure/msal-common v14.
|
|
1014
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1015
1015
|
/*
|
|
1016
1016
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1017
1017
|
* Licensed under the MIT License.
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
/*! @azure/msal-common v14.
|
|
1111
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1112
1112
|
|
|
1113
1113
|
/*
|
|
1114
1114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1155,7 +1155,7 @@
|
|
|
1155
1155
|
return null;
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
-
/*! @azure/msal-common v14.
|
|
1158
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1159
1159
|
|
|
1160
1160
|
/*
|
|
1161
1161
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
|
-
/*! @azure/msal-common v14.
|
|
1322
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1323
1323
|
|
|
1324
1324
|
/*
|
|
1325
1325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1459,7 +1459,7 @@
|
|
|
1459
1459
|
return null;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
/*! @azure/msal-common v14.
|
|
1462
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1463
1463
|
/*
|
|
1464
1464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1465
1465
|
* Licensed under the MIT License.
|
|
@@ -1472,7 +1472,7 @@
|
|
|
1472
1472
|
OIDC: "OIDC",
|
|
1473
1473
|
};
|
|
1474
1474
|
|
|
1475
|
-
/*! @azure/msal-common v14.
|
|
1475
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1476
1476
|
/*
|
|
1477
1477
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1478
1478
|
* Licensed under the MIT License.
|
|
@@ -1492,7 +1492,7 @@
|
|
|
1492
1492
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1493
1493
|
};
|
|
1494
1494
|
|
|
1495
|
-
/*! @azure/msal-common v14.
|
|
1495
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1496
1496
|
/*
|
|
1497
1497
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1498
1498
|
* Licensed under the MIT License.
|
|
@@ -1502,7 +1502,7 @@
|
|
|
1502
1502
|
response.hasOwnProperty("metadata"));
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
|
-
/*! @azure/msal-common v14.
|
|
1505
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1506
1506
|
/*
|
|
1507
1507
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1508
1508
|
* Licensed under the MIT License.
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
response.hasOwnProperty("error_description"));
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
|
-
/*! @azure/msal-common v14.
|
|
1515
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1516
1516
|
/*
|
|
1517
1517
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1518
1518
|
* Licensed under the MIT License.
|
|
@@ -1994,7 +1994,7 @@
|
|
|
1994
1994
|
"multiMatchedRT",
|
|
1995
1995
|
]);
|
|
1996
1996
|
|
|
1997
|
-
/*! @azure/msal-common v14.
|
|
1997
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
1998
1998
|
/*
|
|
1999
1999
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2000
2000
|
* Licensed under the MIT License.
|
|
@@ -2090,7 +2090,7 @@
|
|
|
2090
2090
|
};
|
|
2091
2091
|
};
|
|
2092
2092
|
|
|
2093
|
-
/*! @azure/msal-common v14.
|
|
2093
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
2094
2094
|
|
|
2095
2095
|
/*
|
|
2096
2096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2199,7 +2199,7 @@
|
|
|
2199
2199
|
},
|
|
2200
2200
|
};
|
|
2201
2201
|
|
|
2202
|
-
/*! @azure/msal-common v14.
|
|
2202
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
2203
2203
|
/*
|
|
2204
2204
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2205
2205
|
* Licensed under the MIT License.
|
|
@@ -2236,7 +2236,7 @@
|
|
|
2236
2236
|
return cachedAtSec > nowSeconds();
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
|
-
/*! @azure/msal-common v14.
|
|
2239
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
2240
2240
|
|
|
2241
2241
|
/*
|
|
2242
2242
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2563,7 +2563,7 @@
|
|
|
2563
2563
|
return metadata.expiresAt <= nowSeconds();
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
|
-
/*! @azure/msal-common v14.
|
|
2566
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
2567
2567
|
|
|
2568
2568
|
/*
|
|
2569
2569
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3402,7 +3402,7 @@
|
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
3404
|
|
|
3405
|
-
/*! @azure/msal-common v14.
|
|
3405
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3406
3406
|
|
|
3407
3407
|
/*
|
|
3408
3408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3433,7 +3433,7 @@
|
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
3435
|
|
|
3436
|
-
/*! @azure/msal-common v14.
|
|
3436
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3437
3437
|
/*
|
|
3438
3438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3439
3439
|
* Licensed under the MIT License.
|
|
@@ -3451,7 +3451,7 @@
|
|
|
3451
3451
|
}
|
|
3452
3452
|
}
|
|
3453
3453
|
|
|
3454
|
-
/*! @azure/msal-common v14.
|
|
3454
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3455
3455
|
/*
|
|
3456
3456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3457
3457
|
* Licensed under the MIT License.
|
|
@@ -3497,8 +3497,9 @@
|
|
|
3497
3497
|
const SID = "sid";
|
|
3498
3498
|
const LOGIN_HINT = "login_hint";
|
|
3499
3499
|
const DOMAIN_HINT = "domain_hint";
|
|
3500
|
+
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
3500
3501
|
|
|
3501
|
-
/*! @azure/msal-common v14.
|
|
3502
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3502
3503
|
|
|
3503
3504
|
/*
|
|
3504
3505
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3537,7 +3538,7 @@
|
|
|
3537
3538
|
},
|
|
3538
3539
|
};
|
|
3539
3540
|
|
|
3540
|
-
/*! @azure/msal-common v14.
|
|
3541
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3541
3542
|
|
|
3542
3543
|
/*
|
|
3543
3544
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3728,12 +3729,12 @@
|
|
|
3728
3729
|
}
|
|
3729
3730
|
}
|
|
3730
3731
|
|
|
3731
|
-
/*! @azure/msal-common v14.
|
|
3732
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3732
3733
|
/* eslint-disable header/header */
|
|
3733
3734
|
const name$1 = "@azure/msal-common";
|
|
3734
|
-
const version$1 = "14.
|
|
3735
|
+
const version$1 = "14.14.0";
|
|
3735
3736
|
|
|
3736
|
-
/*! @azure/msal-common v14.
|
|
3737
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3737
3738
|
|
|
3738
3739
|
/*
|
|
3739
3740
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3933,7 +3934,7 @@
|
|
|
3933
3934
|
}
|
|
3934
3935
|
}
|
|
3935
3936
|
|
|
3936
|
-
/*! @azure/msal-common v14.
|
|
3937
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3937
3938
|
|
|
3938
3939
|
/*
|
|
3939
3940
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3973,7 +3974,7 @@
|
|
|
3973
3974
|
};
|
|
3974
3975
|
}
|
|
3975
3976
|
|
|
3976
|
-
/*! @azure/msal-common v14.
|
|
3977
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
3977
3978
|
/*
|
|
3978
3979
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3979
3980
|
* Licensed under the MIT License.
|
|
@@ -4052,7 +4053,7 @@
|
|
|
4052
4053
|
return updatedAccountInfo;
|
|
4053
4054
|
}
|
|
4054
4055
|
|
|
4055
|
-
/*! @azure/msal-common v14.
|
|
4056
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
4056
4057
|
/*
|
|
4057
4058
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4058
4059
|
* Licensed under the MIT License.
|
|
@@ -4074,7 +4075,7 @@
|
|
|
4074
4075
|
return null;
|
|
4075
4076
|
}
|
|
4076
4077
|
|
|
4077
|
-
/*! @azure/msal-common v14.
|
|
4078
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
4078
4079
|
|
|
4079
4080
|
/*
|
|
4080
4081
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4317,7 +4318,7 @@
|
|
|
4317
4318
|
}
|
|
4318
4319
|
}
|
|
4319
4320
|
|
|
4320
|
-
/*! @azure/msal-common v14.
|
|
4321
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
4321
4322
|
/*
|
|
4322
4323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4323
4324
|
* Licensed under the MIT License.
|
|
@@ -4325,7 +4326,7 @@
|
|
|
4325
4326
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
4326
4327
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
4327
4328
|
|
|
4328
|
-
/*! @azure/msal-common v14.
|
|
4329
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
4329
4330
|
|
|
4330
4331
|
/*
|
|
4331
4332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4352,7 +4353,7 @@
|
|
|
4352
4353
|
}
|
|
4353
4354
|
}
|
|
4354
4355
|
|
|
4355
|
-
/*! @azure/msal-common v14.
|
|
4356
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
4356
4357
|
|
|
4357
4358
|
/*
|
|
4358
4359
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5604,7 +5605,7 @@
|
|
|
5604
5605
|
}
|
|
5605
5606
|
}
|
|
5606
5607
|
|
|
5607
|
-
/*! @azure/msal-common v14.
|
|
5608
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5608
5609
|
|
|
5609
5610
|
/*
|
|
5610
5611
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5702,7 +5703,7 @@
|
|
|
5702
5703
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5703
5704
|
}
|
|
5704
5705
|
|
|
5705
|
-
/*! @azure/msal-common v14.
|
|
5706
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5706
5707
|
|
|
5707
5708
|
/*
|
|
5708
5709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5721,7 +5722,7 @@
|
|
|
5721
5722
|
}
|
|
5722
5723
|
}
|
|
5723
5724
|
|
|
5724
|
-
/*! @azure/msal-common v14.
|
|
5725
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5725
5726
|
|
|
5726
5727
|
/*
|
|
5727
5728
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5819,7 +5820,7 @@
|
|
|
5819
5820
|
}
|
|
5820
5821
|
}
|
|
5821
5822
|
|
|
5822
|
-
/*! @azure/msal-common v14.
|
|
5823
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5823
5824
|
|
|
5824
5825
|
/*
|
|
5825
5826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5856,7 +5857,7 @@
|
|
|
5856
5857
|
}
|
|
5857
5858
|
}
|
|
5858
5859
|
|
|
5859
|
-
/*! @azure/msal-common v14.
|
|
5860
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5860
5861
|
/*
|
|
5861
5862
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5862
5863
|
* Licensed under the MIT License.
|
|
@@ -5866,7 +5867,7 @@
|
|
|
5866
5867
|
UPN: "UPN",
|
|
5867
5868
|
};
|
|
5868
5869
|
|
|
5869
|
-
/*! @azure/msal-common v14.
|
|
5870
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5870
5871
|
|
|
5871
5872
|
/*
|
|
5872
5873
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5933,7 +5934,7 @@
|
|
|
5933
5934
|
}
|
|
5934
5935
|
}
|
|
5935
5936
|
|
|
5936
|
-
/*! @azure/msal-common v14.
|
|
5937
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
5937
5938
|
|
|
5938
5939
|
/*
|
|
5939
5940
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6318,7 +6319,7 @@
|
|
|
6318
6319
|
}
|
|
6319
6320
|
}
|
|
6320
6321
|
|
|
6321
|
-
/*! @azure/msal-common v14.
|
|
6322
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6322
6323
|
|
|
6323
6324
|
/*
|
|
6324
6325
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6421,7 +6422,7 @@
|
|
|
6421
6422
|
}
|
|
6422
6423
|
}
|
|
6423
6424
|
|
|
6424
|
-
/*! @azure/msal-common v14.
|
|
6425
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6425
6426
|
/*
|
|
6426
6427
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6427
6428
|
* Licensed under the MIT License.
|
|
@@ -6447,7 +6448,7 @@
|
|
|
6447
6448
|
refreshTokenExpired: refreshTokenExpired
|
|
6448
6449
|
});
|
|
6449
6450
|
|
|
6450
|
-
/*! @azure/msal-common v14.
|
|
6451
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6451
6452
|
|
|
6452
6453
|
/*
|
|
6453
6454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6535,7 +6536,7 @@
|
|
|
6535
6536
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6536
6537
|
}
|
|
6537
6538
|
|
|
6538
|
-
/*! @azure/msal-common v14.
|
|
6539
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6539
6540
|
|
|
6540
6541
|
/*
|
|
6541
6542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6607,7 +6608,7 @@
|
|
|
6607
6608
|
}
|
|
6608
6609
|
}
|
|
6609
6610
|
|
|
6610
|
-
/*! @azure/msal-common v14.
|
|
6611
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6611
6612
|
|
|
6612
6613
|
/*
|
|
6613
6614
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6691,7 +6692,7 @@
|
|
|
6691
6692
|
}
|
|
6692
6693
|
}
|
|
6693
6694
|
|
|
6694
|
-
/*! @azure/msal-common v14.
|
|
6695
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6695
6696
|
/*
|
|
6696
6697
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6697
6698
|
* Licensed under the MIT License.
|
|
@@ -6718,7 +6719,7 @@
|
|
|
6718
6719
|
}
|
|
6719
6720
|
}
|
|
6720
6721
|
|
|
6721
|
-
/*! @azure/msal-common v14.
|
|
6722
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
6722
6723
|
|
|
6723
6724
|
/*
|
|
6724
6725
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7095,7 +7096,7 @@
|
|
|
7095
7096
|
return baseAccount;
|
|
7096
7097
|
}
|
|
7097
7098
|
|
|
7098
|
-
/*! @azure/msal-common v14.
|
|
7099
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7099
7100
|
|
|
7100
7101
|
/*
|
|
7101
7102
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7518,7 +7519,7 @@
|
|
|
7518
7519
|
}
|
|
7519
7520
|
}
|
|
7520
7521
|
|
|
7521
|
-
/*! @azure/msal-common v14.
|
|
7522
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7522
7523
|
|
|
7523
7524
|
/*
|
|
7524
7525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7732,7 +7733,7 @@
|
|
|
7732
7733
|
}
|
|
7733
7734
|
}
|
|
7734
7735
|
|
|
7735
|
-
/*! @azure/msal-common v14.
|
|
7736
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7736
7737
|
|
|
7737
7738
|
/*
|
|
7738
7739
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7868,7 +7869,7 @@
|
|
|
7868
7869
|
}
|
|
7869
7870
|
}
|
|
7870
7871
|
|
|
7871
|
-
/*! @azure/msal-common v14.
|
|
7872
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7872
7873
|
|
|
7873
7874
|
/*
|
|
7874
7875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7883,7 +7884,7 @@
|
|
|
7883
7884
|
},
|
|
7884
7885
|
};
|
|
7885
7886
|
|
|
7886
|
-
/*! @azure/msal-common v14.
|
|
7887
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7887
7888
|
/*
|
|
7888
7889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7889
7890
|
* Licensed under the MIT License.
|
|
@@ -7891,7 +7892,7 @@
|
|
|
7891
7892
|
const missingKidError = "missing_kid_error";
|
|
7892
7893
|
const missingAlgError = "missing_alg_error";
|
|
7893
7894
|
|
|
7894
|
-
/*! @azure/msal-common v14.
|
|
7895
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7895
7896
|
|
|
7896
7897
|
/*
|
|
7897
7898
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7916,7 +7917,7 @@
|
|
|
7916
7917
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7917
7918
|
}
|
|
7918
7919
|
|
|
7919
|
-
/*! @azure/msal-common v14.
|
|
7920
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7920
7921
|
|
|
7921
7922
|
/*
|
|
7922
7923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7956,7 +7957,7 @@
|
|
|
7956
7957
|
}
|
|
7957
7958
|
}
|
|
7958
7959
|
|
|
7959
|
-
/*! @azure/msal-common v14.
|
|
7960
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
7960
7961
|
|
|
7961
7962
|
/*
|
|
7962
7963
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8014,12 +8015,50 @@
|
|
|
8014
8015
|
}
|
|
8015
8016
|
}
|
|
8016
8017
|
|
|
8017
|
-
/*! @azure/msal-common v14.
|
|
8018
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
8018
8019
|
|
|
8019
8020
|
/*
|
|
8020
8021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8021
8022
|
* Licensed under the MIT License.
|
|
8022
8023
|
*/
|
|
8024
|
+
const skuGroupSeparator = ",";
|
|
8025
|
+
const skuValueSeparator = "|";
|
|
8026
|
+
function makeExtraSkuString(params) {
|
|
8027
|
+
const { skus, libraryName, libraryVersion, extensionName, extensionVersion, } = params;
|
|
8028
|
+
const skuMap = new Map([
|
|
8029
|
+
[0, [libraryName, libraryVersion]],
|
|
8030
|
+
[2, [extensionName, extensionVersion]],
|
|
8031
|
+
]);
|
|
8032
|
+
let skuArr = [];
|
|
8033
|
+
if (skus?.length) {
|
|
8034
|
+
skuArr = skus.split(skuGroupSeparator);
|
|
8035
|
+
// Ignore invalid input sku param
|
|
8036
|
+
if (skuArr.length < 4) {
|
|
8037
|
+
return skus;
|
|
8038
|
+
}
|
|
8039
|
+
}
|
|
8040
|
+
else {
|
|
8041
|
+
skuArr = Array.from({ length: 4 }, () => skuValueSeparator);
|
|
8042
|
+
}
|
|
8043
|
+
skuMap.forEach((value, key) => {
|
|
8044
|
+
if (value.length === 2 && value[0]?.length && value[1]?.length) {
|
|
8045
|
+
setSku({
|
|
8046
|
+
skuArr,
|
|
8047
|
+
index: key,
|
|
8048
|
+
skuName: value[0],
|
|
8049
|
+
skuVersion: value[1],
|
|
8050
|
+
});
|
|
8051
|
+
}
|
|
8052
|
+
});
|
|
8053
|
+
return skuArr.join(skuGroupSeparator);
|
|
8054
|
+
}
|
|
8055
|
+
function setSku(params) {
|
|
8056
|
+
const { skuArr, index, skuName, skuVersion } = params;
|
|
8057
|
+
if (index >= skuArr.length) {
|
|
8058
|
+
return;
|
|
8059
|
+
}
|
|
8060
|
+
skuArr[index] = [skuName, skuVersion].join(skuValueSeparator);
|
|
8061
|
+
}
|
|
8023
8062
|
/** @internal */
|
|
8024
8063
|
class ServerTelemetryManager {
|
|
8025
8064
|
constructor(telemetryRequest, cacheManager) {
|
|
@@ -8039,7 +8078,12 @@
|
|
|
8039
8078
|
*/
|
|
8040
8079
|
generateCurrentRequestHeaderValue() {
|
|
8041
8080
|
const request = `${this.apiId}${SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR}${this.cacheOutcome}`;
|
|
8042
|
-
const
|
|
8081
|
+
const platformFieldsArr = [this.wrapperSKU, this.wrapperVer];
|
|
8082
|
+
const nativeBrokerErrorCode = this.getNativeBrokerErrorCode();
|
|
8083
|
+
if (nativeBrokerErrorCode?.length) {
|
|
8084
|
+
platformFieldsArr.push(`broker_error=${nativeBrokerErrorCode}`);
|
|
8085
|
+
}
|
|
8086
|
+
const platformFields = platformFieldsArr.join(SERVER_TELEM_CONSTANTS.VALUE_SEPARATOR);
|
|
8043
8087
|
const regionDiscoveryFields = this.getRegionDiscoveryFields();
|
|
8044
8088
|
const requestWithRegionDiscoveryFields = [
|
|
8045
8089
|
request,
|
|
@@ -8216,9 +8260,25 @@
|
|
|
8216
8260
|
setCacheOutcome(cacheOutcome) {
|
|
8217
8261
|
this.cacheOutcome = cacheOutcome;
|
|
8218
8262
|
}
|
|
8263
|
+
setNativeBrokerErrorCode(errorCode) {
|
|
8264
|
+
const lastRequests = this.getLastRequests();
|
|
8265
|
+
lastRequests.nativeBrokerErrorCode = errorCode;
|
|
8266
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8267
|
+
}
|
|
8268
|
+
getNativeBrokerErrorCode() {
|
|
8269
|
+
return this.getLastRequests().nativeBrokerErrorCode;
|
|
8270
|
+
}
|
|
8271
|
+
clearNativeBrokerErrorCode() {
|
|
8272
|
+
const lastRequests = this.getLastRequests();
|
|
8273
|
+
delete lastRequests.nativeBrokerErrorCode;
|
|
8274
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests);
|
|
8275
|
+
}
|
|
8276
|
+
static makeExtraSkuString(params) {
|
|
8277
|
+
return makeExtraSkuString(params);
|
|
8278
|
+
}
|
|
8219
8279
|
}
|
|
8220
8280
|
|
|
8221
|
-
/*! @azure/msal-common v14.
|
|
8281
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
8222
8282
|
|
|
8223
8283
|
/*
|
|
8224
8284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8297,7 +8357,7 @@
|
|
|
8297
8357
|
}
|
|
8298
8358
|
}
|
|
8299
8359
|
|
|
8300
|
-
/*! @azure/msal-common v14.
|
|
8360
|
+
/*! @azure/msal-common v14.14.0 2024-07-23 */
|
|
8301
8361
|
|
|
8302
8362
|
/*
|
|
8303
8363
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10168,7 +10228,7 @@
|
|
|
10168
10228
|
|
|
10169
10229
|
/* eslint-disable header/header */
|
|
10170
10230
|
const name = "@azure/msal-browser";
|
|
10171
|
-
const version = "3.
|
|
10231
|
+
const version = "3.20.0";
|
|
10172
10232
|
|
|
10173
10233
|
/*
|
|
10174
10234
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13316,6 +13376,30 @@
|
|
|
13316
13376
|
this.nativeMessageHandler = provider;
|
|
13317
13377
|
this.nativeStorageManager = nativeStorageImpl;
|
|
13318
13378
|
this.silentCacheClient = new SilentCacheClient(config, this.nativeStorageManager, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);
|
|
13379
|
+
this.serverTelemetryManager = this.initializeServerTelemetryManager(this.apiId);
|
|
13380
|
+
const extensionName = this.nativeMessageHandler.getExtensionId() ===
|
|
13381
|
+
NativeConstants.PREFERRED_EXTENSION_ID
|
|
13382
|
+
? "chrome"
|
|
13383
|
+
: this.nativeMessageHandler.getExtensionId()?.length
|
|
13384
|
+
? "unknown"
|
|
13385
|
+
: undefined;
|
|
13386
|
+
this.skus = ServerTelemetryManager.makeExtraSkuString({
|
|
13387
|
+
libraryName: BrowserConstants.MSAL_SKU,
|
|
13388
|
+
libraryVersion: version,
|
|
13389
|
+
extensionName: extensionName,
|
|
13390
|
+
extensionVersion: this.nativeMessageHandler.getExtensionVersion(),
|
|
13391
|
+
});
|
|
13392
|
+
}
|
|
13393
|
+
/**
|
|
13394
|
+
* Adds SKUs to request extra query parameters
|
|
13395
|
+
* @param request {NativeTokenRequest}
|
|
13396
|
+
* @private
|
|
13397
|
+
*/
|
|
13398
|
+
addRequestSKUs(request) {
|
|
13399
|
+
request.extraParameters = {
|
|
13400
|
+
...request.extraParameters,
|
|
13401
|
+
[X_CLIENT_EXTRA_SKU]: this.skus,
|
|
13402
|
+
};
|
|
13319
13403
|
}
|
|
13320
13404
|
/**
|
|
13321
13405
|
* Acquire token from native platform via browser extension
|
|
@@ -13327,48 +13411,57 @@
|
|
|
13327
13411
|
// start the perf measurement
|
|
13328
13412
|
const nativeATMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.NativeInteractionClientAcquireToken, request.correlationId);
|
|
13329
13413
|
const reqTimestamp = nowSeconds();
|
|
13330
|
-
// initialize native request
|
|
13331
|
-
const nativeRequest = await this.initializeNativeRequest(request);
|
|
13332
|
-
// check if the tokens can be retrieved from internal cache
|
|
13333
13414
|
try {
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13415
|
+
// initialize native request
|
|
13416
|
+
const nativeRequest = await this.initializeNativeRequest(request);
|
|
13417
|
+
// check if the tokens can be retrieved from internal cache
|
|
13418
|
+
try {
|
|
13419
|
+
const result = await this.acquireTokensFromCache(this.accountId, nativeRequest);
|
|
13420
|
+
nativeATMeasurement.end({
|
|
13421
|
+
success: true,
|
|
13422
|
+
isNativeBroker: false,
|
|
13423
|
+
fromCache: true,
|
|
13424
|
+
});
|
|
13425
|
+
return result;
|
|
13426
|
+
}
|
|
13427
|
+
catch (e) {
|
|
13428
|
+
// continue with a native call for any and all errors
|
|
13429
|
+
this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call");
|
|
13430
|
+
}
|
|
13431
|
+
const { ...nativeTokenRequest } = nativeRequest;
|
|
13432
|
+
// fall back to native calls
|
|
13433
|
+
const messageBody = {
|
|
13434
|
+
method: NativeExtensionMethod.GetToken,
|
|
13435
|
+
request: nativeTokenRequest,
|
|
13436
|
+
};
|
|
13437
|
+
const response = await this.nativeMessageHandler.sendMessage(messageBody);
|
|
13438
|
+
const validatedResponse = this.validateNativeResponse(response);
|
|
13439
|
+
return await this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
13440
|
+
.then((result) => {
|
|
13441
|
+
nativeATMeasurement.end({
|
|
13442
|
+
success: true,
|
|
13443
|
+
isNativeBroker: true,
|
|
13444
|
+
requestId: result.requestId,
|
|
13445
|
+
});
|
|
13446
|
+
this.serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13447
|
+
return result;
|
|
13448
|
+
})
|
|
13449
|
+
.catch((error) => {
|
|
13450
|
+
nativeATMeasurement.end({
|
|
13451
|
+
success: false,
|
|
13452
|
+
errorCode: error.errorCode,
|
|
13453
|
+
subErrorCode: error.subError,
|
|
13454
|
+
isNativeBroker: true,
|
|
13455
|
+
});
|
|
13456
|
+
throw error;
|
|
13339
13457
|
});
|
|
13340
|
-
return result;
|
|
13341
13458
|
}
|
|
13342
13459
|
catch (e) {
|
|
13343
|
-
|
|
13344
|
-
|
|
13460
|
+
if (e instanceof NativeAuthError) {
|
|
13461
|
+
this.serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
13462
|
+
}
|
|
13463
|
+
throw e;
|
|
13345
13464
|
}
|
|
13346
|
-
const { ...nativeTokenRequest } = nativeRequest;
|
|
13347
|
-
// fall back to native calls
|
|
13348
|
-
const messageBody = {
|
|
13349
|
-
method: NativeExtensionMethod.GetToken,
|
|
13350
|
-
request: nativeTokenRequest,
|
|
13351
|
-
};
|
|
13352
|
-
const response = await this.nativeMessageHandler.sendMessage(messageBody);
|
|
13353
|
-
const validatedResponse = this.validateNativeResponse(response);
|
|
13354
|
-
return this.handleNativeResponse(validatedResponse, nativeRequest, reqTimestamp)
|
|
13355
|
-
.then((result) => {
|
|
13356
|
-
nativeATMeasurement.end({
|
|
13357
|
-
success: true,
|
|
13358
|
-
isNativeBroker: true,
|
|
13359
|
-
requestId: result.requestId,
|
|
13360
|
-
});
|
|
13361
|
-
return result;
|
|
13362
|
-
})
|
|
13363
|
-
.catch((error) => {
|
|
13364
|
-
nativeATMeasurement.end({
|
|
13365
|
-
success: false,
|
|
13366
|
-
errorCode: error.errorCode,
|
|
13367
|
-
subErrorCode: error.subError,
|
|
13368
|
-
isNativeBroker: true,
|
|
13369
|
-
});
|
|
13370
|
-
throw error;
|
|
13371
|
-
});
|
|
13372
13465
|
}
|
|
13373
13466
|
/**
|
|
13374
13467
|
* Creates silent flow request
|
|
@@ -13441,8 +13534,11 @@
|
|
|
13441
13534
|
}
|
|
13442
13535
|
catch (e) {
|
|
13443
13536
|
// Only throw fatal errors here to allow application to fallback to regular redirect. Otherwise proceed and the error will be thrown in handleRedirectPromise
|
|
13444
|
-
if (e instanceof NativeAuthError
|
|
13445
|
-
|
|
13537
|
+
if (e instanceof NativeAuthError) {
|
|
13538
|
+
this.serverTelemetryManager.setNativeBrokerErrorCode(e.errorCode);
|
|
13539
|
+
if (isFatalNativeAuthError(e)) {
|
|
13540
|
+
throw e;
|
|
13541
|
+
}
|
|
13446
13542
|
}
|
|
13447
13543
|
}
|
|
13448
13544
|
this.browserStorage.setTemporaryCache(TemporaryCacheKeys.NATIVE_REQUEST, JSON.stringify(nativeRequest), true);
|
|
@@ -13493,7 +13589,9 @@
|
|
|
13493
13589
|
this.validateNativeResponse(response);
|
|
13494
13590
|
const result = this.handleNativeResponse(response, request, reqTimestamp);
|
|
13495
13591
|
this.browserStorage.setInteractionInProgress(false);
|
|
13496
|
-
|
|
13592
|
+
const res = await result;
|
|
13593
|
+
this.serverTelemetryManager.clearNativeBrokerErrorCode();
|
|
13594
|
+
return res;
|
|
13497
13595
|
}
|
|
13498
13596
|
catch (e) {
|
|
13499
13597
|
this.browserStorage.setInteractionInProgress(false);
|
|
@@ -13857,6 +13955,7 @@
|
|
|
13857
13955
|
// SPAs require whole string to be passed to broker
|
|
13858
13956
|
validatedRequest.reqCnf = reqCnfData;
|
|
13859
13957
|
}
|
|
13958
|
+
this.addRequestSKUs(validatedRequest);
|
|
13860
13959
|
return validatedRequest;
|
|
13861
13960
|
}
|
|
13862
13961
|
/**
|