@azure/msal-browser 3.0.0-beta.0 → 3.0.0-beta.1
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.d.ts +2 -1
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.d.ts +2 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +2 -1
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/ITokenCache.d.ts +2 -1
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.d.ts +2 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.js +4 -5
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/cache/entities/CacheRecord.d.ts +6 -0
- package/dist/cache/entities/CacheRecord.d.ts.map +1 -0
- package/dist/cache/entities/CacheRecord.js +17 -0
- package/dist/cache/entities/CacheRecord.js.map +1 -0
- package/dist/config/Configuration.d.ts +4 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +3 -2
- package/dist/config/Configuration.js.map +1 -1
- package/dist/controllers/ControllerFactory.js +1 -1
- package/dist/controllers/IController.d.ts +2 -1
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/StandardController.d.ts +2 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.js +2 -1
- package/dist/controllers/StandardController.js.map +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +2 -2
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.d.ts +2 -2
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/interaction_client/BaseInteractionClient.d.ts +2 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +6 -3
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts +2 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +3 -2
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +2 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +2 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +2 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts +2 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts +2 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts +2 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +2 -1
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +4 -1
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +2 -1
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +2 -1
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/internals.d.ts +1 -0
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +2 -1
- package/dist/internals.js.map +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/operatingcontext/BaseOperatingContext.js +1 -1
- package/dist/operatingcontext/StandardOperatingContext.js +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/response/AuthenticationResult.d.ts +5 -0
- package/dist/response/AuthenticationResult.d.ts.map +1 -0
- package/dist/telemetry/BrowserPerformanceClient.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.d.ts +0 -5
- package/dist/utils/BrowserStringUtils.d.ts.map +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -13
- package/dist/utils/BrowserStringUtils.js.map +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/lib/msal-browser.cjs.js +117 -110
- package/lib/msal-browser.cjs.js.map +1 -1
- package/lib/msal-browser.js +117 -110
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +62 -62
- package/package.json +6 -9
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0.0-beta.
|
|
1
|
+
/*! @azure/msal-browser v3.0.0-beta.1 2023-07-06 */
|
|
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.0.0-beta.
|
|
9
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
Pop: "pop",
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
363
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
364
364
|
|
|
365
365
|
/*
|
|
366
366
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
417
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
418
418
|
|
|
419
419
|
/*
|
|
420
420
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
},
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
462
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
463
463
|
|
|
464
464
|
/*
|
|
465
465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
|
|
984
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
984
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
985
985
|
|
|
986
986
|
/*
|
|
987
987
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1111
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1112
1112
|
|
|
1113
1113
|
/*
|
|
1114
1114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1308,12 +1308,12 @@
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1311
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1312
1312
|
/* eslint-disable header/header */
|
|
1313
1313
|
const name$1 = "@azure/msal-common";
|
|
1314
|
-
const version$1 = "14.0.0-beta.
|
|
1314
|
+
const version$1 = "14.0.0-beta.1";
|
|
1315
1315
|
|
|
1316
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1316
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1317
1317
|
/*
|
|
1318
1318
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1319
1319
|
* Licensed under the MIT License.
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1334
1334
|
};
|
|
1335
1335
|
|
|
1336
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1336
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1337
1337
|
|
|
1338
1338
|
/*
|
|
1339
1339
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1598
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1599
1599
|
|
|
1600
1600
|
/*
|
|
1601
1601
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1795,7 +1795,7 @@
|
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1798
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1799
1799
|
|
|
1800
1800
|
/*
|
|
1801
1801
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1835,7 +1835,7 @@
|
|
|
1835
1835
|
};
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
1838
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1838
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1839
1839
|
/*
|
|
1840
1840
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1841
1841
|
* Licensed under the MIT License.
|
|
@@ -1850,7 +1850,7 @@
|
|
|
1850
1850
|
Ciam: 3
|
|
1851
1851
|
};
|
|
1852
1852
|
|
|
1853
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
1853
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
1854
1854
|
|
|
1855
1855
|
/*
|
|
1856
1856
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2101,7 +2101,7 @@
|
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
2104
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
2105
2105
|
|
|
2106
2106
|
/*
|
|
2107
2107
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
2155
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
2156
2156
|
|
|
2157
2157
|
/*
|
|
2158
2158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3166,7 +3166,7 @@
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
|
|
3169
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3169
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3170
3170
|
|
|
3171
3171
|
/*
|
|
3172
3172
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3186,6 +3186,9 @@
|
|
|
3186
3186
|
logLevel: exports.LogLevel.Info,
|
|
3187
3187
|
correlationId: Constants.EMPTY_STRING,
|
|
3188
3188
|
};
|
|
3189
|
+
const DEFAULT_CACHE_OPTIONS = {
|
|
3190
|
+
claimsBasedCachingEnabled: false,
|
|
3191
|
+
};
|
|
3189
3192
|
const DEFAULT_NETWORK_IMPLEMENTATION = {
|
|
3190
3193
|
async sendGetRequestAsync() {
|
|
3191
3194
|
const notImplErr = "Network interface - sendGetRequestAsync() has not been implemented";
|
|
@@ -3223,7 +3226,7 @@
|
|
|
3223
3226
|
*
|
|
3224
3227
|
* @returns Configuration
|
|
3225
3228
|
*/
|
|
3226
|
-
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
3229
|
+
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, cacheOptions: userCacheOptions, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
3227
3230
|
const loggerOptions = {
|
|
3228
3231
|
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
3229
3232
|
...userLoggerOption,
|
|
@@ -3232,6 +3235,7 @@
|
|
|
3232
3235
|
authOptions: buildAuthOptions(userAuthOptions),
|
|
3233
3236
|
systemOptions: { ...DEFAULT_SYSTEM_OPTIONS, ...userSystemOptions },
|
|
3234
3237
|
loggerOptions: loggerOptions,
|
|
3238
|
+
cacheOptions: { ...DEFAULT_CACHE_OPTIONS, ...userCacheOptions },
|
|
3235
3239
|
storageInterface: storageImplementation ||
|
|
3236
3240
|
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
|
|
3237
3241
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
@@ -3257,7 +3261,7 @@
|
|
|
3257
3261
|
};
|
|
3258
3262
|
}
|
|
3259
3263
|
|
|
3260
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3264
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3261
3265
|
|
|
3262
3266
|
/*
|
|
3263
3267
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3274,7 +3278,7 @@
|
|
|
3274
3278
|
}
|
|
3275
3279
|
}
|
|
3276
3280
|
|
|
3277
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3281
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3278
3282
|
|
|
3279
3283
|
/*
|
|
3280
3284
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3371,7 +3375,7 @@
|
|
|
3371
3375
|
}
|
|
3372
3376
|
}
|
|
3373
3377
|
|
|
3374
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3378
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3375
3379
|
|
|
3376
3380
|
/*
|
|
3377
3381
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3407,7 +3411,7 @@
|
|
|
3407
3411
|
}
|
|
3408
3412
|
}
|
|
3409
3413
|
|
|
3410
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3414
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3411
3415
|
/*
|
|
3412
3416
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3413
3417
|
* Licensed under the MIT License.
|
|
@@ -3417,7 +3421,7 @@
|
|
|
3417
3421
|
UPN: "UPN",
|
|
3418
3422
|
};
|
|
3419
3423
|
|
|
3420
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3424
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3421
3425
|
|
|
3422
3426
|
/*
|
|
3423
3427
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3502,7 +3506,7 @@
|
|
|
3502
3506
|
}
|
|
3503
3507
|
}
|
|
3504
3508
|
|
|
3505
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3509
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3506
3510
|
|
|
3507
3511
|
/*
|
|
3508
3512
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3879,7 +3883,7 @@
|
|
|
3879
3883
|
}
|
|
3880
3884
|
}
|
|
3881
3885
|
|
|
3882
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3886
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3883
3887
|
|
|
3884
3888
|
/*
|
|
3885
3889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3974,7 +3978,7 @@
|
|
|
3974
3978
|
}
|
|
3975
3979
|
}
|
|
3976
3980
|
|
|
3977
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
3981
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
3978
3982
|
|
|
3979
3983
|
/*
|
|
3980
3984
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4113,7 +4117,7 @@
|
|
|
4113
4117
|
}
|
|
4114
4118
|
}
|
|
4115
4119
|
|
|
4116
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4120
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4117
4121
|
|
|
4118
4122
|
/*
|
|
4119
4123
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4172,7 +4176,7 @@
|
|
|
4172
4176
|
}
|
|
4173
4177
|
}
|
|
4174
4178
|
|
|
4175
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4179
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4176
4180
|
/*
|
|
4177
4181
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4178
4182
|
* Licensed under the MIT License.
|
|
@@ -4219,7 +4223,7 @@
|
|
|
4219
4223
|
}
|
|
4220
4224
|
}
|
|
4221
4225
|
|
|
4222
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4226
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4223
4227
|
|
|
4224
4228
|
/*
|
|
4225
4229
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4333,7 +4337,7 @@
|
|
|
4333
4337
|
}
|
|
4334
4338
|
}
|
|
4335
4339
|
|
|
4336
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4340
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4337
4341
|
|
|
4338
4342
|
/*
|
|
4339
4343
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4395,7 +4399,7 @@
|
|
|
4395
4399
|
}
|
|
4396
4400
|
}
|
|
4397
4401
|
|
|
4398
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4402
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4399
4403
|
|
|
4400
4404
|
/*
|
|
4401
4405
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4476,12 +4480,12 @@
|
|
|
4476
4480
|
}
|
|
4477
4481
|
}
|
|
4478
4482
|
|
|
4479
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4483
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4480
4484
|
/*
|
|
4481
4485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4482
4486
|
* Licensed under the MIT License.
|
|
4483
4487
|
*/
|
|
4484
|
-
class CacheRecord {
|
|
4488
|
+
let CacheRecord$1 = class CacheRecord {
|
|
4485
4489
|
constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
|
|
4486
4490
|
this.account = accountEntity || null;
|
|
4487
4491
|
this.idToken = idTokenEntity || null;
|
|
@@ -4489,9 +4493,9 @@
|
|
|
4489
4493
|
this.refreshToken = refreshTokenEntity || null;
|
|
4490
4494
|
this.appMetadata = appMetadataEntity || null;
|
|
4491
4495
|
}
|
|
4492
|
-
}
|
|
4496
|
+
};
|
|
4493
4497
|
|
|
4494
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4498
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4495
4499
|
|
|
4496
4500
|
/*
|
|
4497
4501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4565,7 +4569,7 @@
|
|
|
4565
4569
|
}
|
|
4566
4570
|
}
|
|
4567
4571
|
|
|
4568
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4572
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4569
4573
|
|
|
4570
4574
|
/*
|
|
4571
4575
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4810,7 +4814,7 @@
|
|
|
4810
4814
|
}
|
|
4811
4815
|
}
|
|
4812
4816
|
|
|
4813
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
4817
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
4814
4818
|
/*
|
|
4815
4819
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4816
4820
|
* Licensed under the MIT License.
|
|
@@ -5037,7 +5041,7 @@
|
|
|
5037
5041
|
"status",
|
|
5038
5042
|
]);
|
|
5039
5043
|
|
|
5040
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5044
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5041
5045
|
|
|
5042
5046
|
/*
|
|
5043
5047
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5122,7 +5126,7 @@
|
|
|
5122
5126
|
}
|
|
5123
5127
|
}
|
|
5124
5128
|
|
|
5125
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5129
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5126
5130
|
|
|
5127
5131
|
/*
|
|
5128
5132
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5191,7 +5195,7 @@
|
|
|
5191
5195
|
}
|
|
5192
5196
|
}
|
|
5193
5197
|
|
|
5194
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5198
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5195
5199
|
/*
|
|
5196
5200
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5197
5201
|
* Licensed under the MIT License.
|
|
@@ -5218,7 +5222,7 @@
|
|
|
5218
5222
|
}
|
|
5219
5223
|
}
|
|
5220
5224
|
|
|
5221
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5225
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5222
5226
|
|
|
5223
5227
|
/*
|
|
5224
5228
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5414,7 +5418,7 @@
|
|
|
5414
5418
|
if (!StringUtils.isEmpty(serverTokenResponse.foci)) {
|
|
5415
5419
|
cachedAppMetadata = AppMetadataEntity.createAppMetadataEntity(this.clientId, env, serverTokenResponse.foci);
|
|
5416
5420
|
}
|
|
5417
|
-
return new CacheRecord(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);
|
|
5421
|
+
return new CacheRecord$1(cachedAccount, cachedIdToken, cachedAccessToken, cachedRefreshToken, cachedAppMetadata);
|
|
5418
5422
|
}
|
|
5419
5423
|
/**
|
|
5420
5424
|
* Generate Account
|
|
@@ -5521,7 +5525,7 @@
|
|
|
5521
5525
|
}
|
|
5522
5526
|
}
|
|
5523
5527
|
|
|
5524
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5528
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5525
5529
|
|
|
5526
5530
|
/*
|
|
5527
5531
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5957,7 +5961,7 @@
|
|
|
5957
5961
|
}
|
|
5958
5962
|
}
|
|
5959
5963
|
|
|
5960
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
5964
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
5961
5965
|
|
|
5962
5966
|
/*
|
|
5963
5967
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6199,7 +6203,7 @@
|
|
|
6199
6203
|
}
|
|
6200
6204
|
}
|
|
6201
6205
|
|
|
6202
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
6206
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
6203
6207
|
|
|
6204
6208
|
/*
|
|
6205
6209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6244,6 +6248,12 @@
|
|
|
6244
6248
|
this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.");
|
|
6245
6249
|
throw ClientAuthError.createRefreshRequiredError();
|
|
6246
6250
|
}
|
|
6251
|
+
else if (!this.config.cacheOptions.claimsBasedCachingEnabled &&
|
|
6252
|
+
!StringUtils.isEmptyObj(request.claims)) {
|
|
6253
|
+
// Must refresh due to request parameters.
|
|
6254
|
+
this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested.");
|
|
6255
|
+
throw ClientAuthError.createRefreshRequiredError();
|
|
6256
|
+
}
|
|
6247
6257
|
// We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
|
|
6248
6258
|
if (!request.account) {
|
|
6249
6259
|
throw ClientAuthError.createNoAccountInSilentRequestError();
|
|
@@ -6296,7 +6306,7 @@
|
|
|
6296
6306
|
}
|
|
6297
6307
|
}
|
|
6298
6308
|
|
|
6299
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
6309
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
6300
6310
|
/*
|
|
6301
6311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6302
6312
|
* Licensed under the MIT License.
|
|
@@ -6308,7 +6318,7 @@
|
|
|
6308
6318
|
response.hasOwnProperty("jwks_uri"));
|
|
6309
6319
|
}
|
|
6310
6320
|
|
|
6311
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
6321
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
6312
6322
|
/*
|
|
6313
6323
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6314
6324
|
* Licensed under the MIT License.
|
|
@@ -7186,7 +7196,7 @@
|
|
|
7186
7196
|
const EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
7187
7197
|
const InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
7188
7198
|
|
|
7189
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7199
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7190
7200
|
/*
|
|
7191
7201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7192
7202
|
* Licensed under the MIT License.
|
|
@@ -7199,7 +7209,7 @@
|
|
|
7199
7209
|
OIDC: "OIDC",
|
|
7200
7210
|
};
|
|
7201
7211
|
|
|
7202
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7212
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7203
7213
|
|
|
7204
7214
|
/*
|
|
7205
7215
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7279,7 +7289,7 @@
|
|
|
7279
7289
|
}
|
|
7280
7290
|
}
|
|
7281
7291
|
|
|
7282
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7292
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7283
7293
|
/*
|
|
7284
7294
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7285
7295
|
* Licensed under the MIT License.
|
|
@@ -7289,7 +7299,7 @@
|
|
|
7289
7299
|
response.hasOwnProperty("metadata"));
|
|
7290
7300
|
}
|
|
7291
7301
|
|
|
7292
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7302
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7293
7303
|
/*
|
|
7294
7304
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7295
7305
|
* Licensed under the MIT License.
|
|
@@ -7299,7 +7309,7 @@
|
|
|
7299
7309
|
response.hasOwnProperty("error_description"));
|
|
7300
7310
|
}
|
|
7301
7311
|
|
|
7302
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7312
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7303
7313
|
|
|
7304
7314
|
/*
|
|
7305
7315
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7410,7 +7420,7 @@
|
|
|
7410
7420
|
},
|
|
7411
7421
|
};
|
|
7412
7422
|
|
|
7413
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
7423
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
7414
7424
|
|
|
7415
7425
|
/*
|
|
7416
7426
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7782,37 +7792,25 @@
|
|
|
7782
7792
|
}
|
|
7783
7793
|
/**
|
|
7784
7794
|
* Update the retrieved metadata with regional information.
|
|
7795
|
+
* User selected Azure region will be used if configured.
|
|
7785
7796
|
*/
|
|
7786
7797
|
async updateMetadataWithRegionalInformation(metadata) {
|
|
7787
7798
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
|
|
7788
|
-
this.
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
this.
|
|
7797
|
-
? RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL
|
|
7798
|
-
: RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
|
|
7799
|
-
}
|
|
7800
|
-
else {
|
|
7799
|
+
const userConfiguredAzureRegion = this.authorityOptions.azureRegionConfiguration?.azureRegion;
|
|
7800
|
+
if (userConfiguredAzureRegion) {
|
|
7801
|
+
if (userConfiguredAzureRegion !== Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
|
|
7802
|
+
this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
|
|
7803
|
+
this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion;
|
|
7804
|
+
return Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion);
|
|
7805
|
+
}
|
|
7806
|
+
this.performanceClient?.setPreQueueTime(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
|
|
7807
|
+
const autodetectedRegionName = await this.regionDiscovery.detectRegion(this.authorityOptions.azureRegionConfiguration?.environmentRegion, this.regionDiscoveryMetadata);
|
|
7801
7808
|
if (autodetectedRegionName) {
|
|
7802
|
-
this.regionDiscoveryMetadata.region_outcome =
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
? RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED
|
|
7806
|
-
: RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
|
|
7809
|
+
this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL;
|
|
7810
|
+
this.regionDiscoveryMetadata.region_used = autodetectedRegionName;
|
|
7811
|
+
return Authority.replaceWithRegionalInformation(metadata, autodetectedRegionName);
|
|
7807
7812
|
}
|
|
7808
|
-
|
|
7809
|
-
this.regionDiscoveryMetadata.region_outcome =
|
|
7810
|
-
RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
|
|
7811
|
-
}
|
|
7812
|
-
}
|
|
7813
|
-
if (azureRegion) {
|
|
7814
|
-
this.regionDiscoveryMetadata.region_used = azureRegion;
|
|
7815
|
-
return Authority.replaceWithRegionalInformation(metadata, azureRegion);
|
|
7813
|
+
this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
|
|
7816
7814
|
}
|
|
7817
7815
|
return metadata;
|
|
7818
7816
|
}
|
|
@@ -8128,7 +8126,7 @@
|
|
|
8128
8126
|
AADAuthorityConstants.ORGANIZATIONS
|
|
8129
8127
|
]));
|
|
8130
8128
|
|
|
8131
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8129
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8132
8130
|
|
|
8133
8131
|
/*
|
|
8134
8132
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8178,7 +8176,7 @@
|
|
|
8178
8176
|
}
|
|
8179
8177
|
}
|
|
8180
8178
|
|
|
8181
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8179
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8182
8180
|
|
|
8183
8181
|
/*
|
|
8184
8182
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8208,7 +8206,7 @@
|
|
|
8208
8206
|
}
|
|
8209
8207
|
}
|
|
8210
8208
|
|
|
8211
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8209
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8212
8210
|
|
|
8213
8211
|
/*
|
|
8214
8212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8234,7 +8232,7 @@
|
|
|
8234
8232
|
}
|
|
8235
8233
|
}
|
|
8236
8234
|
|
|
8237
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8235
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8238
8236
|
|
|
8239
8237
|
/*
|
|
8240
8238
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8251,7 +8249,7 @@
|
|
|
8251
8249
|
},
|
|
8252
8250
|
};
|
|
8253
8251
|
|
|
8254
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8252
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8255
8253
|
|
|
8256
8254
|
/*
|
|
8257
8255
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8293,7 +8291,7 @@
|
|
|
8293
8291
|
}
|
|
8294
8292
|
}
|
|
8295
8293
|
|
|
8296
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8294
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8297
8295
|
|
|
8298
8296
|
/*
|
|
8299
8297
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8332,7 +8330,7 @@
|
|
|
8332
8330
|
}
|
|
8333
8331
|
}
|
|
8334
8332
|
|
|
8335
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8333
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8336
8334
|
|
|
8337
8335
|
/*
|
|
8338
8336
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8390,7 +8388,7 @@
|
|
|
8390
8388
|
}
|
|
8391
8389
|
}
|
|
8392
8390
|
|
|
8393
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8391
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8394
8392
|
|
|
8395
8393
|
/*
|
|
8396
8394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8589,7 +8587,7 @@
|
|
|
8589
8587
|
}
|
|
8590
8588
|
}
|
|
8591
8589
|
|
|
8592
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8590
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
8593
8591
|
|
|
8594
8592
|
/*
|
|
8595
8593
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8998,7 +8996,7 @@
|
|
|
8998
8996
|
}
|
|
8999
8997
|
}
|
|
9000
8998
|
|
|
9001
|
-
/*! @azure/msal-common v14.0.0-beta.
|
|
8999
|
+
/*! @azure/msal-common v14.0.0-beta.1 2023-07-06 */
|
|
9002
9000
|
|
|
9003
9001
|
/*
|
|
9004
9002
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11185,13 +11183,25 @@
|
|
|
11185
11183
|
storeAuthStateInCookie: false,
|
|
11186
11184
|
secureCookies: false,
|
|
11187
11185
|
cacheMigrationEnabled: false,
|
|
11186
|
+
claimsBasedCachingEnabled: false,
|
|
11188
11187
|
};
|
|
11189
11188
|
return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger);
|
|
11190
11189
|
};
|
|
11191
11190
|
|
|
11191
|
+
/*
|
|
11192
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11193
|
+
* Licensed under the MIT License.
|
|
11194
|
+
*/
|
|
11195
|
+
class CacheRecord extends CacheRecord$1 {
|
|
11196
|
+
constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
|
|
11197
|
+
super(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity);
|
|
11198
|
+
this.account = accountEntity;
|
|
11199
|
+
}
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11192
11202
|
/* eslint-disable header/header */
|
|
11193
11203
|
const name = "@azure/msal-browser";
|
|
11194
|
-
const version = "3.0.0-beta.
|
|
11204
|
+
const version = "3.0.0-beta.1";
|
|
11195
11205
|
|
|
11196
11206
|
/*
|
|
11197
11207
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11631,8 +11641,11 @@
|
|
|
11631
11641
|
}
|
|
11632
11642
|
this.logger.verbose(`Authentication Scheme set to "${validatedRequest.authenticationScheme}" as configured in Auth request`);
|
|
11633
11643
|
}
|
|
11634
|
-
// Set requested claims hash if claims were requested
|
|
11635
|
-
if (
|
|
11644
|
+
// Set requested claims hash if claims-based caching is enabled and claims were requested
|
|
11645
|
+
if (this.config.cache.claimsBasedCachingEnabled &&
|
|
11646
|
+
request.claims &&
|
|
11647
|
+
// Checks for empty stringified object "{}" which doesn't qualify as requested claims
|
|
11648
|
+
!StringUtils.isEmptyObj(request.claims)) {
|
|
11636
11649
|
validatedRequest.requestedClaimsHash =
|
|
11637
11650
|
await this.browserCrypto.hashString(request.claims);
|
|
11638
11651
|
}
|
|
@@ -11852,6 +11865,9 @@
|
|
|
11852
11865
|
logLevel: logger.logLevel,
|
|
11853
11866
|
correlationId: this.correlationId,
|
|
11854
11867
|
},
|
|
11868
|
+
cacheOptions: {
|
|
11869
|
+
claimsBasedCachingEnabled: this.config.cache.claimsBasedCachingEnabled,
|
|
11870
|
+
},
|
|
11855
11871
|
cryptoInterface: this.browserCrypto,
|
|
11856
11872
|
networkInterface: this.networkClient,
|
|
11857
11873
|
storageInterface: this.browserStorage,
|
|
@@ -14038,6 +14054,7 @@
|
|
|
14038
14054
|
userInputCache.cacheLocation === BrowserCacheLocation.LocalStorage
|
|
14039
14055
|
? true
|
|
14040
14056
|
: false,
|
|
14057
|
+
claimsBasedCachingEnabled: false,
|
|
14041
14058
|
};
|
|
14042
14059
|
// Default logger options for browser
|
|
14043
14060
|
const DEFAULT_LOGGER_OPTIONS = {
|
|
@@ -14067,7 +14084,7 @@
|
|
|
14067
14084
|
allowNativeBroker: true,
|
|
14068
14085
|
nativeBrokerHandshakeTimeout: userInputSystem?.nativeBrokerHandshakeTimeout ||
|
|
14069
14086
|
DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS,
|
|
14070
|
-
pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS
|
|
14087
|
+
pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS,
|
|
14071
14088
|
};
|
|
14072
14089
|
const providedSystemOptions = {
|
|
14073
14090
|
...userInputSystem,
|
|
@@ -14403,6 +14420,7 @@
|
|
|
14403
14420
|
this.performanceClient.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
|
|
14404
14421
|
return refreshTokenClient
|
|
14405
14422
|
.acquireTokenByRefreshToken(silentRequest)
|
|
14423
|
+
.then((result) => result)
|
|
14406
14424
|
.then((result) => {
|
|
14407
14425
|
acquireTokenMeasurement.endMeasurement({
|
|
14408
14426
|
success: true,
|
|
@@ -14760,18 +14778,6 @@
|
|
|
14760
14778
|
}
|
|
14761
14779
|
return aBytes;
|
|
14762
14780
|
}
|
|
14763
|
-
/**
|
|
14764
|
-
* Converst string to ArrayBuffer
|
|
14765
|
-
* @param dataString
|
|
14766
|
-
*/
|
|
14767
|
-
static stringToArrayBuffer(dataString) {
|
|
14768
|
-
const data = new ArrayBuffer(dataString.length);
|
|
14769
|
-
const dataView = new Uint8Array(data);
|
|
14770
|
-
for (let i = 0; i < dataString.length; i++) {
|
|
14771
|
-
dataView[i] = dataString.charCodeAt(i);
|
|
14772
|
-
}
|
|
14773
|
-
return data;
|
|
14774
|
-
}
|
|
14775
14781
|
/**
|
|
14776
14782
|
* Converts Uint8Array to a string
|
|
14777
14783
|
* @param aBytes
|
|
@@ -15655,7 +15661,7 @@
|
|
|
15655
15661
|
// Form token string
|
|
15656
15662
|
const tokenString = `${encodedShrHeader}.${encodedPayload}`;
|
|
15657
15663
|
// Sign token
|
|
15658
|
-
const tokenBuffer = BrowserStringUtils.
|
|
15664
|
+
const tokenBuffer = BrowserStringUtils.stringToUtf8Arr(tokenString);
|
|
15659
15665
|
const signatureBuffer = await this.browserCrypto.sign(cachedKeyPair.privateKey, tokenBuffer);
|
|
15660
15666
|
const encodedSignature = this.b64Encode.urlEncodeArr(new Uint8Array(signatureBuffer));
|
|
15661
15667
|
const signedJwt = `${tokenString}.${encodedSignature}`;
|
|
@@ -15908,6 +15914,7 @@
|
|
|
15908
15914
|
BrowserConstants: BrowserConstants,
|
|
15909
15915
|
BrowserPerformanceClient: BrowserPerformanceClient,
|
|
15910
15916
|
BrowserPerformanceMeasurement: BrowserPerformanceMeasurement,
|
|
15917
|
+
CacheRecord: CacheRecord,
|
|
15911
15918
|
CryptoOps: CryptoOps,
|
|
15912
15919
|
EventHandler: EventHandler,
|
|
15913
15920
|
NativeAuthError: NativeAuthError,
|
|
@@ -16296,9 +16303,7 @@
|
|
|
16296
16303
|
uniqueId: uid,
|
|
16297
16304
|
tenantId: tid,
|
|
16298
16305
|
scopes: responseScopes,
|
|
16299
|
-
account: cacheRecord
|
|
16300
|
-
? cacheRecord.account.getAccountInfo()
|
|
16301
|
-
: null,
|
|
16306
|
+
account: cacheRecord.account.getAccountInfo(),
|
|
16302
16307
|
idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,
|
|
16303
16308
|
idTokenClaims: idTokenObj ? idTokenObj.claims : {},
|
|
16304
16309
|
accessToken: accessToken,
|
|
@@ -16457,6 +16462,7 @@
|
|
|
16457
16462
|
storeAuthStateInCookie: false,
|
|
16458
16463
|
secureCookies: false,
|
|
16459
16464
|
cacheMigrationEnabled: false,
|
|
16465
|
+
claimsBasedCachingEnabled: false,
|
|
16460
16466
|
};
|
|
16461
16467
|
this.nativeInternalStorage = new BrowserCacheManager(this.config.auth.clientId, nativeCacheOptions, this.browserCrypto, this.logger);
|
|
16462
16468
|
// Initialize the token cache
|
|
@@ -18218,6 +18224,7 @@
|
|
|
18218
18224
|
exports.NavigationClient = NavigationClient;
|
|
18219
18225
|
exports.OIDC_DEFAULT_SCOPES = OIDC_DEFAULT_SCOPES;
|
|
18220
18226
|
exports.PerformanceEvents = PerformanceEvents;
|
|
18227
|
+
exports.PromptValue = PromptValue;
|
|
18221
18228
|
exports.ProtocolMode = ProtocolMode;
|
|
18222
18229
|
exports.PublicClientApplication = PublicClientApplication;
|
|
18223
18230
|
exports.ServerError = ServerError;
|