@azure/msal-browser 3.15.0 → 3.16.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.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +58 -37
- package/dist/controllers/StandardController.mjs.map +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 +4 -3
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +5 -3
- 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 +136 -106
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +136 -106
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +61 -61
- package/package.json +2 -2
- package/src/controllers/StandardController.ts +89 -63
- package/src/interaction_client/NativeInteractionClient.ts +8 -2
- 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.16.0 2024-06-04 */
|
|
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.11.0 2024-06-04 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
// Token renewal offset default in seconds
|
|
315
315
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
316
316
|
|
|
317
|
-
/*! @azure/msal-common v14.
|
|
317
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
318
318
|
/*
|
|
319
319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
320
320
|
* Licensed under the MIT License.
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
unexpectedError: unexpectedError
|
|
332
332
|
});
|
|
333
333
|
|
|
334
|
-
/*! @azure/msal-common v14.
|
|
334
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
335
335
|
|
|
336
336
|
/*
|
|
337
337
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
: AuthErrorMessages[code]);
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
/*! @azure/msal-common v14.
|
|
383
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
384
384
|
/*
|
|
385
385
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
386
386
|
* Licensed under the MIT License.
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
userTimeoutReached: userTimeoutReached
|
|
479
479
|
});
|
|
480
480
|
|
|
481
|
-
/*! @azure/msal-common v14.
|
|
481
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
482
482
|
|
|
483
483
|
/*
|
|
484
484
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
-
/*! @azure/msal-common v14.
|
|
733
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
734
734
|
|
|
735
735
|
/*
|
|
736
736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
/*! @azure/msal-common v14.
|
|
794
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
795
795
|
/*
|
|
796
796
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
797
797
|
* Licensed under the MIT License.
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
Ciam: 3,
|
|
807
807
|
};
|
|
808
808
|
|
|
809
|
-
/*! @azure/msal-common v14.
|
|
809
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
810
810
|
/*
|
|
811
811
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
812
812
|
* Licensed under the MIT License.
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
response.hasOwnProperty("jwks_uri"));
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
/*! @azure/msal-common v14.
|
|
821
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
822
822
|
/*
|
|
823
823
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
824
824
|
* Licensed under the MIT License.
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
urlParseError: urlParseError
|
|
873
873
|
});
|
|
874
874
|
|
|
875
|
-
/*! @azure/msal-common v14.
|
|
875
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
876
876
|
|
|
877
877
|
/*
|
|
878
878
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1010,7 +1010,7 @@
|
|
|
1010
1010
|
return new ClientConfigurationError(errorCode);
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
-
/*! @azure/msal-common v14.
|
|
1013
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1014
1014
|
/*
|
|
1015
1015
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1016
1016
|
* Licensed under the MIT License.
|
|
@@ -1107,7 +1107,7 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
|
-
/*! @azure/msal-common v14.
|
|
1110
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1111
1111
|
|
|
1112
1112
|
/*
|
|
1113
1113
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
return null;
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
-
/*! @azure/msal-common v14.
|
|
1157
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1158
1158
|
|
|
1159
1159
|
/*
|
|
1160
1160
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
|
-
/*! @azure/msal-common v14.
|
|
1321
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1322
1322
|
|
|
1323
1323
|
/*
|
|
1324
1324
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1458,7 +1458,7 @@
|
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
|
-
/*! @azure/msal-common v14.
|
|
1461
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1462
1462
|
/*
|
|
1463
1463
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1464
1464
|
* Licensed under the MIT License.
|
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
OIDC: "OIDC",
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
|
-
/*! @azure/msal-common v14.
|
|
1474
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1475
1475
|
/*
|
|
1476
1476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1477
1477
|
* Licensed under the MIT License.
|
|
@@ -1491,7 +1491,7 @@
|
|
|
1491
1491
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1492
1492
|
};
|
|
1493
1493
|
|
|
1494
|
-
/*! @azure/msal-common v14.
|
|
1494
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1495
1495
|
/*
|
|
1496
1496
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1497
1497
|
* Licensed under the MIT License.
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
response.hasOwnProperty("metadata"));
|
|
1502
1502
|
}
|
|
1503
1503
|
|
|
1504
|
-
/*! @azure/msal-common v14.
|
|
1504
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1505
1505
|
/*
|
|
1506
1506
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1507
1507
|
* Licensed under the MIT License.
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
response.hasOwnProperty("error_description"));
|
|
1512
1512
|
}
|
|
1513
1513
|
|
|
1514
|
-
/*! @azure/msal-common v14.
|
|
1514
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1515
1515
|
/*
|
|
1516
1516
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1517
1517
|
* Licensed under the MIT License.
|
|
@@ -1548,9 +1548,16 @@
|
|
|
1548
1548
|
* Used to acquire a new access token interactively through pop ups
|
|
1549
1549
|
*/
|
|
1550
1550
|
AcquireTokenPopup: "acquireTokenPopup",
|
|
1551
|
+
/**
|
|
1552
|
+
* acquireTokenPreRedirect (msal-browser).
|
|
1553
|
+
* First part of the redirect flow.
|
|
1554
|
+
* Used to acquire a new access token interactively through redirects.
|
|
1555
|
+
*/
|
|
1556
|
+
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
1551
1557
|
/**
|
|
1552
1558
|
* acquireTokenRedirect (msal-browser).
|
|
1553
|
-
*
|
|
1559
|
+
* Second part of the redirect flow.
|
|
1560
|
+
* Used to acquire a new access token interactively through redirects.
|
|
1554
1561
|
*/
|
|
1555
1562
|
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
1556
1563
|
/**
|
|
@@ -1986,7 +1993,7 @@
|
|
|
1986
1993
|
"multiMatchedRT",
|
|
1987
1994
|
]);
|
|
1988
1995
|
|
|
1989
|
-
/*! @azure/msal-common v14.
|
|
1996
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
1990
1997
|
/*
|
|
1991
1998
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1992
1999
|
* Licensed under the MIT License.
|
|
@@ -2082,7 +2089,7 @@
|
|
|
2082
2089
|
};
|
|
2083
2090
|
};
|
|
2084
2091
|
|
|
2085
|
-
/*! @azure/msal-common v14.
|
|
2092
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
2086
2093
|
|
|
2087
2094
|
/*
|
|
2088
2095
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2191,7 +2198,7 @@
|
|
|
2191
2198
|
},
|
|
2192
2199
|
};
|
|
2193
2200
|
|
|
2194
|
-
/*! @azure/msal-common v14.
|
|
2201
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
2195
2202
|
/*
|
|
2196
2203
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2197
2204
|
* Licensed under the MIT License.
|
|
@@ -2228,7 +2235,7 @@
|
|
|
2228
2235
|
return cachedAtSec > nowSeconds();
|
|
2229
2236
|
}
|
|
2230
2237
|
|
|
2231
|
-
/*! @azure/msal-common v14.
|
|
2238
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
2232
2239
|
|
|
2233
2240
|
/*
|
|
2234
2241
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2555,7 +2562,7 @@
|
|
|
2555
2562
|
return metadata.expiresAt <= nowSeconds();
|
|
2556
2563
|
}
|
|
2557
2564
|
|
|
2558
|
-
/*! @azure/msal-common v14.
|
|
2565
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
2559
2566
|
|
|
2560
2567
|
/*
|
|
2561
2568
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3394,7 +3401,7 @@
|
|
|
3394
3401
|
};
|
|
3395
3402
|
}
|
|
3396
3403
|
|
|
3397
|
-
/*! @azure/msal-common v14.
|
|
3404
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3398
3405
|
|
|
3399
3406
|
/*
|
|
3400
3407
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3425,7 +3432,7 @@
|
|
|
3425
3432
|
}
|
|
3426
3433
|
}
|
|
3427
3434
|
|
|
3428
|
-
/*! @azure/msal-common v14.
|
|
3435
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3429
3436
|
/*
|
|
3430
3437
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3431
3438
|
* Licensed under the MIT License.
|
|
@@ -3443,7 +3450,7 @@
|
|
|
3443
3450
|
}
|
|
3444
3451
|
}
|
|
3445
3452
|
|
|
3446
|
-
/*! @azure/msal-common v14.
|
|
3453
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3447
3454
|
/*
|
|
3448
3455
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3449
3456
|
* Licensed under the MIT License.
|
|
@@ -3490,7 +3497,7 @@
|
|
|
3490
3497
|
const LOGIN_HINT = "login_hint";
|
|
3491
3498
|
const DOMAIN_HINT = "domain_hint";
|
|
3492
3499
|
|
|
3493
|
-
/*! @azure/msal-common v14.
|
|
3500
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3494
3501
|
|
|
3495
3502
|
/*
|
|
3496
3503
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3523,7 +3530,7 @@
|
|
|
3523
3530
|
},
|
|
3524
3531
|
};
|
|
3525
3532
|
|
|
3526
|
-
/*! @azure/msal-common v14.
|
|
3533
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3527
3534
|
|
|
3528
3535
|
/*
|
|
3529
3536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3714,12 +3721,12 @@
|
|
|
3714
3721
|
}
|
|
3715
3722
|
}
|
|
3716
3723
|
|
|
3717
|
-
/*! @azure/msal-common v14.
|
|
3724
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3718
3725
|
/* eslint-disable header/header */
|
|
3719
3726
|
const name$1 = "@azure/msal-common";
|
|
3720
|
-
const version$1 = "14.
|
|
3727
|
+
const version$1 = "14.11.0";
|
|
3721
3728
|
|
|
3722
|
-
/*! @azure/msal-common v14.
|
|
3729
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3723
3730
|
|
|
3724
3731
|
/*
|
|
3725
3732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3919,7 +3926,7 @@
|
|
|
3919
3926
|
}
|
|
3920
3927
|
}
|
|
3921
3928
|
|
|
3922
|
-
/*! @azure/msal-common v14.
|
|
3929
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3923
3930
|
|
|
3924
3931
|
/*
|
|
3925
3932
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3959,7 +3966,7 @@
|
|
|
3959
3966
|
};
|
|
3960
3967
|
}
|
|
3961
3968
|
|
|
3962
|
-
/*! @azure/msal-common v14.
|
|
3969
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
3963
3970
|
/*
|
|
3964
3971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3965
3972
|
* Licensed under the MIT License.
|
|
@@ -4021,7 +4028,7 @@
|
|
|
4021
4028
|
return updatedAccountInfo;
|
|
4022
4029
|
}
|
|
4023
4030
|
|
|
4024
|
-
/*! @azure/msal-common v14.
|
|
4031
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
4025
4032
|
/*
|
|
4026
4033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4027
4034
|
* Licensed under the MIT License.
|
|
@@ -4043,7 +4050,7 @@
|
|
|
4043
4050
|
return null;
|
|
4044
4051
|
}
|
|
4045
4052
|
|
|
4046
|
-
/*! @azure/msal-common v14.
|
|
4053
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
4047
4054
|
|
|
4048
4055
|
/*
|
|
4049
4056
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4290,7 +4297,7 @@
|
|
|
4290
4297
|
}
|
|
4291
4298
|
}
|
|
4292
4299
|
|
|
4293
|
-
/*! @azure/msal-common v14.
|
|
4300
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
4294
4301
|
/*
|
|
4295
4302
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4296
4303
|
* Licensed under the MIT License.
|
|
@@ -4298,7 +4305,7 @@
|
|
|
4298
4305
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
4299
4306
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
4300
4307
|
|
|
4301
|
-
/*! @azure/msal-common v14.
|
|
4308
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
4302
4309
|
|
|
4303
4310
|
/*
|
|
4304
4311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4325,7 +4332,7 @@
|
|
|
4325
4332
|
}
|
|
4326
4333
|
}
|
|
4327
4334
|
|
|
4328
|
-
/*! @azure/msal-common v14.
|
|
4335
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
4329
4336
|
|
|
4330
4337
|
/*
|
|
4331
4338
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5580,7 +5587,7 @@
|
|
|
5580
5587
|
}
|
|
5581
5588
|
}
|
|
5582
5589
|
|
|
5583
|
-
/*! @azure/msal-common v14.
|
|
5590
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5584
5591
|
|
|
5585
5592
|
/*
|
|
5586
5593
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5678,7 +5685,7 @@
|
|
|
5678
5685
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5679
5686
|
}
|
|
5680
5687
|
|
|
5681
|
-
/*! @azure/msal-common v14.
|
|
5688
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5682
5689
|
|
|
5683
5690
|
/*
|
|
5684
5691
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5696,7 +5703,7 @@
|
|
|
5696
5703
|
}
|
|
5697
5704
|
}
|
|
5698
5705
|
|
|
5699
|
-
/*! @azure/msal-common v14.
|
|
5706
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5700
5707
|
|
|
5701
5708
|
/*
|
|
5702
5709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5794,7 +5801,7 @@
|
|
|
5794
5801
|
}
|
|
5795
5802
|
}
|
|
5796
5803
|
|
|
5797
|
-
/*! @azure/msal-common v14.
|
|
5804
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5798
5805
|
|
|
5799
5806
|
/*
|
|
5800
5807
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5831,7 +5838,7 @@
|
|
|
5831
5838
|
}
|
|
5832
5839
|
}
|
|
5833
5840
|
|
|
5834
|
-
/*! @azure/msal-common v14.
|
|
5841
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5835
5842
|
/*
|
|
5836
5843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5837
5844
|
* Licensed under the MIT License.
|
|
@@ -5841,7 +5848,7 @@
|
|
|
5841
5848
|
UPN: "UPN",
|
|
5842
5849
|
};
|
|
5843
5850
|
|
|
5844
|
-
/*! @azure/msal-common v14.
|
|
5851
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5845
5852
|
|
|
5846
5853
|
/*
|
|
5847
5854
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5925,7 +5932,7 @@
|
|
|
5925
5932
|
}
|
|
5926
5933
|
}
|
|
5927
5934
|
|
|
5928
|
-
/*! @azure/msal-common v14.
|
|
5935
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
5929
5936
|
|
|
5930
5937
|
/*
|
|
5931
5938
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6309,7 +6316,7 @@
|
|
|
6309
6316
|
}
|
|
6310
6317
|
}
|
|
6311
6318
|
|
|
6312
|
-
/*! @azure/msal-common v14.
|
|
6319
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6313
6320
|
|
|
6314
6321
|
/*
|
|
6315
6322
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6412,7 +6419,7 @@
|
|
|
6412
6419
|
}
|
|
6413
6420
|
}
|
|
6414
6421
|
|
|
6415
|
-
/*! @azure/msal-common v14.
|
|
6422
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6416
6423
|
/*
|
|
6417
6424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6418
6425
|
* Licensed under the MIT License.
|
|
@@ -6438,7 +6445,7 @@
|
|
|
6438
6445
|
refreshTokenExpired: refreshTokenExpired
|
|
6439
6446
|
});
|
|
6440
6447
|
|
|
6441
|
-
/*! @azure/msal-common v14.
|
|
6448
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6442
6449
|
|
|
6443
6450
|
/*
|
|
6444
6451
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6526,7 +6533,7 @@
|
|
|
6526
6533
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6527
6534
|
}
|
|
6528
6535
|
|
|
6529
|
-
/*! @azure/msal-common v14.
|
|
6536
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6530
6537
|
/*
|
|
6531
6538
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6532
6539
|
* Licensed under the MIT License.
|
|
@@ -6542,7 +6549,7 @@
|
|
|
6542
6549
|
}
|
|
6543
6550
|
}
|
|
6544
6551
|
|
|
6545
|
-
/*! @azure/msal-common v14.
|
|
6552
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6546
6553
|
|
|
6547
6554
|
/*
|
|
6548
6555
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6614,7 +6621,7 @@
|
|
|
6614
6621
|
}
|
|
6615
6622
|
}
|
|
6616
6623
|
|
|
6617
|
-
/*! @azure/msal-common v14.
|
|
6624
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6618
6625
|
|
|
6619
6626
|
/*
|
|
6620
6627
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6699,7 +6706,7 @@
|
|
|
6699
6706
|
}
|
|
6700
6707
|
}
|
|
6701
6708
|
|
|
6702
|
-
/*! @azure/msal-common v14.
|
|
6709
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6703
6710
|
/*
|
|
6704
6711
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6705
6712
|
* Licensed under the MIT License.
|
|
@@ -6726,7 +6733,7 @@
|
|
|
6726
6733
|
}
|
|
6727
6734
|
}
|
|
6728
6735
|
|
|
6729
|
-
/*! @azure/msal-common v14.
|
|
6736
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
6730
6737
|
|
|
6731
6738
|
/*
|
|
6732
6739
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7090,7 +7097,7 @@
|
|
|
7090
7097
|
return baseAccount;
|
|
7091
7098
|
}
|
|
7092
7099
|
|
|
7093
|
-
/*! @azure/msal-common v14.
|
|
7100
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7094
7101
|
|
|
7095
7102
|
/*
|
|
7096
7103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7499,7 +7506,7 @@
|
|
|
7499
7506
|
}
|
|
7500
7507
|
}
|
|
7501
7508
|
|
|
7502
|
-
/*! @azure/msal-common v14.
|
|
7509
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7503
7510
|
|
|
7504
7511
|
/*
|
|
7505
7512
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7706,7 +7713,7 @@
|
|
|
7706
7713
|
}
|
|
7707
7714
|
}
|
|
7708
7715
|
|
|
7709
|
-
/*! @azure/msal-common v14.
|
|
7716
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7710
7717
|
|
|
7711
7718
|
/*
|
|
7712
7719
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7842,7 +7849,7 @@
|
|
|
7842
7849
|
}
|
|
7843
7850
|
}
|
|
7844
7851
|
|
|
7845
|
-
/*! @azure/msal-common v14.
|
|
7852
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7846
7853
|
|
|
7847
7854
|
/*
|
|
7848
7855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7857,7 +7864,7 @@
|
|
|
7857
7864
|
},
|
|
7858
7865
|
};
|
|
7859
7866
|
|
|
7860
|
-
/*! @azure/msal-common v14.
|
|
7867
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7861
7868
|
/*
|
|
7862
7869
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7863
7870
|
* Licensed under the MIT License.
|
|
@@ -7865,7 +7872,7 @@
|
|
|
7865
7872
|
const missingKidError = "missing_kid_error";
|
|
7866
7873
|
const missingAlgError = "missing_alg_error";
|
|
7867
7874
|
|
|
7868
|
-
/*! @azure/msal-common v14.
|
|
7875
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7869
7876
|
|
|
7870
7877
|
/*
|
|
7871
7878
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7890,7 +7897,7 @@
|
|
|
7890
7897
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7891
7898
|
}
|
|
7892
7899
|
|
|
7893
|
-
/*! @azure/msal-common v14.
|
|
7900
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7894
7901
|
|
|
7895
7902
|
/*
|
|
7896
7903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7930,7 +7937,7 @@
|
|
|
7930
7937
|
}
|
|
7931
7938
|
}
|
|
7932
7939
|
|
|
7933
|
-
/*! @azure/msal-common v14.
|
|
7940
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7934
7941
|
|
|
7935
7942
|
/*
|
|
7936
7943
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7988,7 +7995,7 @@
|
|
|
7988
7995
|
}
|
|
7989
7996
|
}
|
|
7990
7997
|
|
|
7991
|
-
/*! @azure/msal-common v14.
|
|
7998
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
7992
7999
|
|
|
7993
8000
|
/*
|
|
7994
8001
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8192,7 +8199,7 @@
|
|
|
8192
8199
|
}
|
|
8193
8200
|
}
|
|
8194
8201
|
|
|
8195
|
-
/*! @azure/msal-common v14.
|
|
8202
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
8196
8203
|
|
|
8197
8204
|
/*
|
|
8198
8205
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8271,7 +8278,7 @@
|
|
|
8271
8278
|
}
|
|
8272
8279
|
}
|
|
8273
8280
|
|
|
8274
|
-
/*! @azure/msal-common v14.
|
|
8281
|
+
/*! @azure/msal-common v14.11.0 2024-06-04 */
|
|
8275
8282
|
|
|
8276
8283
|
/*
|
|
8277
8284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10135,7 +10142,7 @@
|
|
|
10135
10142
|
|
|
10136
10143
|
/* eslint-disable header/header */
|
|
10137
10144
|
const name = "@azure/msal-browser";
|
|
10138
|
-
const version = "3.
|
|
10145
|
+
const version = "3.16.0";
|
|
10139
10146
|
|
|
10140
10147
|
/*
|
|
10141
10148
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13370,9 +13377,10 @@
|
|
|
13370
13377
|
}
|
|
13371
13378
|
/**
|
|
13372
13379
|
* Acquires a token from native platform then redirects to the redirectUri instead of returning the response
|
|
13373
|
-
* @param request
|
|
13380
|
+
* @param {RedirectRequest} request
|
|
13381
|
+
* @param {InProgressPerformanceEvent} rootMeasurement
|
|
13374
13382
|
*/
|
|
13375
|
-
async acquireTokenRedirect(request) {
|
|
13383
|
+
async acquireTokenRedirect(request, rootMeasurement) {
|
|
13376
13384
|
this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");
|
|
13377
13385
|
const nativeRequest = await this.initializeNativeRequest(request);
|
|
13378
13386
|
const messageBody = {
|
|
@@ -13398,6 +13406,7 @@
|
|
|
13398
13406
|
const redirectUri = this.config.auth.navigateToLoginRequestUrl
|
|
13399
13407
|
? window.location.href
|
|
13400
13408
|
: this.getRedirectUri(request.redirectUri);
|
|
13409
|
+
rootMeasurement.end({ success: true });
|
|
13401
13410
|
await this.navigationClient.navigateExternal(redirectUri, navigationOptions); // Need to treat this as external to ensure handleRedirectPromise is run again
|
|
13402
13411
|
}
|
|
13403
13412
|
/**
|
|
@@ -15836,7 +15845,7 @@
|
|
|
15836
15845
|
const correlationId = useNative
|
|
15837
15846
|
? request?.correlationId
|
|
15838
15847
|
: this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || "";
|
|
15839
|
-
const rootMeasurement = this.performanceClient.startMeasurement(
|
|
15848
|
+
const rootMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenRedirect, correlationId);
|
|
15840
15849
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15841
15850
|
let redirectResponse;
|
|
15842
15851
|
if (useNative && this.nativeExtensionProvider) {
|
|
@@ -15911,43 +15920,64 @@
|
|
|
15911
15920
|
// Preflight request
|
|
15912
15921
|
const correlationId = this.getRequestCorrelationId(request);
|
|
15913
15922
|
this.logger.verbose("acquireTokenRedirect called", correlationId);
|
|
15914
|
-
|
|
15915
|
-
|
|
15923
|
+
const atrMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPreRedirect, correlationId);
|
|
15924
|
+
atrMeasurement.add({
|
|
15925
|
+
accountType: getAccountType(request.account),
|
|
15926
|
+
scenarioId: request.scenarioId,
|
|
15927
|
+
});
|
|
15928
|
+
const onRedirectNavigateCb = request.onRedirectNavigate;
|
|
15929
|
+
request.onRedirectNavigate = (url) => {
|
|
15930
|
+
const navigate = typeof onRedirectNavigateCb === "function"
|
|
15931
|
+
? onRedirectNavigateCb(url)
|
|
15932
|
+
: undefined;
|
|
15933
|
+
if (navigate !== false) {
|
|
15934
|
+
atrMeasurement.end({ success: true });
|
|
15935
|
+
}
|
|
15936
|
+
else {
|
|
15937
|
+
atrMeasurement.discard();
|
|
15938
|
+
}
|
|
15939
|
+
return navigate;
|
|
15940
|
+
};
|
|
15916
15941
|
// If logged in, emit acquire token events
|
|
15917
15942
|
const isLoggedIn = this.getAllAccounts().length > 0;
|
|
15918
|
-
|
|
15919
|
-
this.
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
result
|
|
15928
|
-
|
|
15929
|
-
.
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15943
|
+
try {
|
|
15944
|
+
redirectPreflightCheck(this.initialized, this.config);
|
|
15945
|
+
this.browserStorage.setInteractionInProgress(true);
|
|
15946
|
+
if (isLoggedIn) {
|
|
15947
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, exports.InteractionType.Redirect, request);
|
|
15948
|
+
}
|
|
15949
|
+
else {
|
|
15950
|
+
this.eventHandler.emitEvent(EventType.LOGIN_START, exports.InteractionType.Redirect, request);
|
|
15951
|
+
}
|
|
15952
|
+
let result;
|
|
15953
|
+
if (this.nativeExtensionProvider && this.canUseNative(request)) {
|
|
15954
|
+
const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(request), this.nativeInternalStorage, correlationId);
|
|
15955
|
+
result = nativeClient
|
|
15956
|
+
.acquireTokenRedirect(request, atrMeasurement)
|
|
15957
|
+
.catch((e) => {
|
|
15958
|
+
if (e instanceof NativeAuthError &&
|
|
15959
|
+
isFatalNativeAuthError(e)) {
|
|
15960
|
+
this.nativeExtensionProvider = undefined; // If extension gets uninstalled during session prevent future requests from continuing to attempt
|
|
15961
|
+
const redirectClient = this.createRedirectClient(correlationId);
|
|
15962
|
+
return redirectClient.acquireToken(request);
|
|
15963
|
+
}
|
|
15964
|
+
else if (e instanceof InteractionRequiredAuthError) {
|
|
15965
|
+
this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
15966
|
+
const redirectClient = this.createRedirectClient(correlationId);
|
|
15967
|
+
return redirectClient.acquireToken(request);
|
|
15968
|
+
}
|
|
15969
|
+
this.browserStorage.setInteractionInProgress(false);
|
|
15970
|
+
throw e;
|
|
15971
|
+
});
|
|
15972
|
+
}
|
|
15973
|
+
else {
|
|
15974
|
+
const redirectClient = this.createRedirectClient(correlationId);
|
|
15975
|
+
result = redirectClient.acquireToken(request);
|
|
15976
|
+
}
|
|
15977
|
+
return await result;
|
|
15948
15978
|
}
|
|
15949
|
-
|
|
15950
|
-
|
|
15979
|
+
catch (e) {
|
|
15980
|
+
atrMeasurement.end({ success: false }, e);
|
|
15951
15981
|
if (isLoggedIn) {
|
|
15952
15982
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
15953
15983
|
}
|
|
@@ -15955,7 +15985,7 @@
|
|
|
15955
15985
|
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null, e);
|
|
15956
15986
|
}
|
|
15957
15987
|
throw e;
|
|
15958
|
-
}
|
|
15988
|
+
}
|
|
15959
15989
|
}
|
|
15960
15990
|
// #endregion
|
|
15961
15991
|
// #region Popup Flow
|