@equinor/fusion-framework-vite-plugin-spa 3.1.9 → 3.1.11
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/CHANGELOG.md +22 -0
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +341 -244
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/index.html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/version.ts +1 -1
package/dist/html/bootstrap.js
CHANGED
|
@@ -5294,7 +5294,7 @@ class BaseModuleProvider {
|
|
|
5294
5294
|
}
|
|
5295
5295
|
|
|
5296
5296
|
// Generated by genversion.
|
|
5297
|
-
const version$8 = '5.0.
|
|
5297
|
+
const version$8 = '5.0.6';
|
|
5298
5298
|
|
|
5299
5299
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5300
5300
|
/**
|
|
@@ -20714,7 +20714,7 @@ class HttpClientConfigurator {
|
|
|
20714
20714
|
}
|
|
20715
20715
|
|
|
20716
20716
|
// Generated by genversion.
|
|
20717
|
-
const version$6 = '7.0.
|
|
20717
|
+
const version$6 = '7.0.8';
|
|
20718
20718
|
|
|
20719
20719
|
/**
|
|
20720
20720
|
* Exception thrown when a client cannot be found.
|
|
@@ -23158,7 +23158,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
|
|
|
23158
23158
|
}
|
|
23159
23159
|
|
|
23160
23160
|
// Generated by genversion.
|
|
23161
|
-
const version$5 = '4.6.
|
|
23161
|
+
const version$5 = '4.6.4';
|
|
23162
23162
|
|
|
23163
23163
|
/**
|
|
23164
23164
|
* Enum representing the severity levels of telemetry items.
|
|
@@ -24060,7 +24060,7 @@ configurator, options) => {
|
|
|
24060
24060
|
});
|
|
24061
24061
|
};
|
|
24062
24062
|
|
|
24063
|
-
/*! @azure/msal-common v16.0
|
|
24063
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24064
24064
|
/*
|
|
24065
24065
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24066
24066
|
* Licensed under the MIT License.
|
|
@@ -24287,7 +24287,7 @@ const JsonWebTokenTypes = {
|
|
|
24287
24287
|
// Token renewal offset default in seconds
|
|
24288
24288
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
24289
24289
|
|
|
24290
|
-
/*! @azure/msal-common v16.0
|
|
24290
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24291
24291
|
/*
|
|
24292
24292
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24293
24293
|
* Licensed under the MIT License.
|
|
@@ -24337,7 +24337,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
24337
24337
|
const EAR_JWK = "ear_jwk";
|
|
24338
24338
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
24339
24339
|
|
|
24340
|
-
/*! @azure/msal-common v16.0
|
|
24340
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24341
24341
|
/*
|
|
24342
24342
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24343
24343
|
* Licensed under the MIT License.
|
|
@@ -24368,7 +24368,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
24368
24368
|
return new AuthError(code, additionalMessage || getDefaultErrorMessage$1(code));
|
|
24369
24369
|
}
|
|
24370
24370
|
|
|
24371
|
-
/*! @azure/msal-common v16.0
|
|
24371
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24372
24372
|
|
|
24373
24373
|
/*
|
|
24374
24374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -24388,7 +24388,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
24388
24388
|
return new ClientConfigurationError(errorCode);
|
|
24389
24389
|
}
|
|
24390
24390
|
|
|
24391
|
-
/*! @azure/msal-common v16.0
|
|
24391
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24392
24392
|
/*
|
|
24393
24393
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24394
24394
|
* Licensed under the MIT License.
|
|
@@ -24466,26 +24466,9 @@ class StringUtils {
|
|
|
24466
24466
|
return null;
|
|
24467
24467
|
}
|
|
24468
24468
|
}
|
|
24469
|
-
/**
|
|
24470
|
-
* Tests if a given string matches a given pattern, with support for wildcards and queries.
|
|
24471
|
-
* @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
|
|
24472
|
-
* @param input String to match against
|
|
24473
|
-
*/
|
|
24474
|
-
static matchPattern(pattern, input) {
|
|
24475
|
-
/**
|
|
24476
|
-
* Wildcard support: https://stackoverflow.com/a/3117248/4888559
|
|
24477
|
-
* Queries: replaces "?" in string with escaped "\?" for regex test
|
|
24478
|
-
*/
|
|
24479
|
-
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
24480
|
-
const regex = new RegExp(pattern
|
|
24481
|
-
.replace(/\\/g, "\\\\")
|
|
24482
|
-
.replace(/\*/g, "[^ ]*")
|
|
24483
|
-
.replace(/\?/g, "\\?"));
|
|
24484
|
-
return regex.test(input);
|
|
24485
|
-
}
|
|
24486
24469
|
}
|
|
24487
24470
|
|
|
24488
|
-
/*! @azure/msal-common v16.0
|
|
24471
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24489
24472
|
|
|
24490
24473
|
/*
|
|
24491
24474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -24508,7 +24491,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
24508
24491
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
24509
24492
|
}
|
|
24510
24493
|
|
|
24511
|
-
/*! @azure/msal-common v16.0
|
|
24494
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24512
24495
|
/*
|
|
24513
24496
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24514
24497
|
* Licensed under the MIT License.
|
|
@@ -24532,7 +24515,7 @@ const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
|
|
|
24532
24515
|
const authorityMismatch = "authority_mismatch";
|
|
24533
24516
|
const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
24534
24517
|
|
|
24535
|
-
/*! @azure/msal-common v16.0
|
|
24518
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24536
24519
|
/*
|
|
24537
24520
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
24538
24521
|
* Licensed under the MIT License.
|
|
@@ -24569,7 +24552,7 @@ const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
|
|
24569
24552
|
const keyIdMissing = "key_id_missing";
|
|
24570
24553
|
const methodNotImplemented = "method_not_implemented";
|
|
24571
24554
|
|
|
24572
|
-
/*! @azure/msal-common v16.0
|
|
24555
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24573
24556
|
|
|
24574
24557
|
/*
|
|
24575
24558
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -24764,7 +24747,7 @@ class ScopeSet {
|
|
|
24764
24747
|
}
|
|
24765
24748
|
}
|
|
24766
24749
|
|
|
24767
|
-
/*! @azure/msal-common v16.0
|
|
24750
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
24768
24751
|
|
|
24769
24752
|
/*
|
|
24770
24753
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25131,7 +25114,7 @@ function addEARParameters(parameters, jwk) {
|
|
|
25131
25114
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
25132
25115
|
}
|
|
25133
25116
|
|
|
25134
|
-
/*! @azure/msal-common v16.0
|
|
25117
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25135
25118
|
|
|
25136
25119
|
/*
|
|
25137
25120
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25240,7 +25223,7 @@ function normalizeUrlForComparison(url) {
|
|
|
25240
25223
|
}
|
|
25241
25224
|
}
|
|
25242
25225
|
|
|
25243
|
-
/*! @azure/msal-common v16.0
|
|
25226
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25244
25227
|
|
|
25245
25228
|
/*
|
|
25246
25229
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25279,7 +25262,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
25279
25262
|
},
|
|
25280
25263
|
};
|
|
25281
25264
|
|
|
25282
|
-
/*! @azure/msal-common v16.0
|
|
25265
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25283
25266
|
/*
|
|
25284
25267
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25285
25268
|
* Licensed under the MIT License.
|
|
@@ -25540,12 +25523,12 @@ class Logger {
|
|
|
25540
25523
|
}
|
|
25541
25524
|
}
|
|
25542
25525
|
|
|
25543
|
-
/*! @azure/msal-common v16.0
|
|
25526
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25544
25527
|
/* eslint-disable header/header */
|
|
25545
25528
|
const name$1 = "@azure/msal-common";
|
|
25546
|
-
const version$4 = "16.0
|
|
25529
|
+
const version$4 = "16.2.0";
|
|
25547
25530
|
|
|
25548
|
-
/*! @azure/msal-common v16.0
|
|
25531
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25549
25532
|
/*
|
|
25550
25533
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25551
25534
|
* Licensed under the MIT License.
|
|
@@ -25554,7 +25537,7 @@ const AzureCloudInstance = {
|
|
|
25554
25537
|
// AzureCloudInstance is not specified.
|
|
25555
25538
|
None: "none"};
|
|
25556
25539
|
|
|
25557
|
-
/*! @azure/msal-common v16.0
|
|
25540
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25558
25541
|
/*
|
|
25559
25542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25560
25543
|
* Licensed under the MIT License.
|
|
@@ -25636,7 +25619,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
25636
25619
|
return updatedAccountInfo;
|
|
25637
25620
|
}
|
|
25638
25621
|
|
|
25639
|
-
/*! @azure/msal-common v16.0
|
|
25622
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25640
25623
|
|
|
25641
25624
|
/*
|
|
25642
25625
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25716,7 +25699,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
25716
25699
|
}
|
|
25717
25700
|
}
|
|
25718
25701
|
|
|
25719
|
-
/*! @azure/msal-common v16.0
|
|
25702
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25720
25703
|
|
|
25721
25704
|
/*
|
|
25722
25705
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25873,7 +25856,7 @@ class UrlString {
|
|
|
25873
25856
|
}
|
|
25874
25857
|
}
|
|
25875
25858
|
|
|
25876
|
-
/*! @azure/msal-common v16.0
|
|
25859
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
25877
25860
|
|
|
25878
25861
|
/*
|
|
25879
25862
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -25944,6 +25927,21 @@ const rawMetdataJSON = {
|
|
|
25944
25927
|
preferred_cache: "login-us.microsoftonline.com",
|
|
25945
25928
|
aliases: ["login-us.microsoftonline.com"],
|
|
25946
25929
|
},
|
|
25930
|
+
{
|
|
25931
|
+
preferred_network: "login.sovcloud-identity.fr",
|
|
25932
|
+
preferred_cache: "login.sovcloud-identity.fr",
|
|
25933
|
+
aliases: ["login.sovcloud-identity.fr"],
|
|
25934
|
+
},
|
|
25935
|
+
{
|
|
25936
|
+
preferred_network: "login.sovcloud-identity.de",
|
|
25937
|
+
preferred_cache: "login.sovcloud-identity.de",
|
|
25938
|
+
aliases: ["login.sovcloud-identity.de"],
|
|
25939
|
+
},
|
|
25940
|
+
{
|
|
25941
|
+
preferred_network: "login.sovcloud-identity.sg",
|
|
25942
|
+
preferred_cache: "login.sovcloud-identity.sg",
|
|
25943
|
+
aliases: ["login.sovcloud-identity.sg"],
|
|
25944
|
+
},
|
|
25947
25945
|
],
|
|
25948
25946
|
},
|
|
25949
25947
|
};
|
|
@@ -26015,7 +26013,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
26015
26013
|
return null;
|
|
26016
26014
|
}
|
|
26017
26015
|
|
|
26018
|
-
/*! @azure/msal-common v16.0
|
|
26016
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26019
26017
|
/*
|
|
26020
26018
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
26021
26019
|
* Licensed under the MIT License.
|
|
@@ -26023,7 +26021,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
26023
26021
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
26024
26022
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
26025
26023
|
|
|
26026
|
-
/*! @azure/msal-common v16.0
|
|
26024
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26027
26025
|
|
|
26028
26026
|
/*
|
|
26029
26027
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -26061,7 +26059,7 @@ function createCacheError(e) {
|
|
|
26061
26059
|
}
|
|
26062
26060
|
}
|
|
26063
26061
|
|
|
26064
|
-
/*! @azure/msal-common v16.0
|
|
26062
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26065
26063
|
|
|
26066
26064
|
/*
|
|
26067
26065
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -26099,7 +26097,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
26099
26097
|
};
|
|
26100
26098
|
}
|
|
26101
26099
|
|
|
26102
|
-
/*! @azure/msal-common v16.0
|
|
26100
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26103
26101
|
/*
|
|
26104
26102
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
26105
26103
|
* Licensed under the MIT License.
|
|
@@ -26114,7 +26112,7 @@ const AuthorityType = {
|
|
|
26114
26112
|
Ciam: 3,
|
|
26115
26113
|
};
|
|
26116
26114
|
|
|
26117
|
-
/*! @azure/msal-common v16.0
|
|
26115
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26118
26116
|
/*
|
|
26119
26117
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
26120
26118
|
* Licensed under the MIT License.
|
|
@@ -26136,7 +26134,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
26136
26134
|
return null;
|
|
26137
26135
|
}
|
|
26138
26136
|
|
|
26139
|
-
/*! @azure/msal-common v16.0
|
|
26137
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26140
26138
|
/*
|
|
26141
26139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
26142
26140
|
* Licensed under the MIT License.
|
|
@@ -26160,11 +26158,18 @@ const ProtocolMode = {
|
|
|
26160
26158
|
EAR: "EAR",
|
|
26161
26159
|
};
|
|
26162
26160
|
|
|
26163
|
-
/*! @azure/msal-common v16.0
|
|
26161
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26164
26162
|
/**
|
|
26165
26163
|
* Returns the AccountInfo interface for this account.
|
|
26166
26164
|
*/
|
|
26167
26165
|
function getAccountInfo(accountEntity) {
|
|
26166
|
+
const tenantProfiles = accountEntity.tenantProfiles || [];
|
|
26167
|
+
// Ensure at least the home tenant profile exists
|
|
26168
|
+
if (tenantProfiles.length === 0 &&
|
|
26169
|
+
accountEntity.realm &&
|
|
26170
|
+
accountEntity.localAccountId) {
|
|
26171
|
+
tenantProfiles.push(buildTenantProfile(accountEntity.homeAccountId, accountEntity.localAccountId, accountEntity.realm));
|
|
26172
|
+
}
|
|
26168
26173
|
return {
|
|
26169
26174
|
homeAccountId: accountEntity.homeAccountId,
|
|
26170
26175
|
environment: accountEntity.environment,
|
|
@@ -26176,7 +26181,7 @@ function getAccountInfo(accountEntity) {
|
|
|
26176
26181
|
nativeAccountId: accountEntity.nativeAccountId,
|
|
26177
26182
|
authorityType: accountEntity.authorityType,
|
|
26178
26183
|
// Deserialize tenant profiles array into a Map
|
|
26179
|
-
tenantProfiles: new Map(
|
|
26184
|
+
tenantProfiles: new Map(tenantProfiles.map((tenantProfile) => {
|
|
26180
26185
|
return [tenantProfile.tenantId, tenantProfile];
|
|
26181
26186
|
})),
|
|
26182
26187
|
dataBoundary: accountEntity.dataBoundary,
|
|
@@ -26265,6 +26270,14 @@ function createAccountEntity(accountDetails, authority, base64Decode) {
|
|
|
26265
26270
|
* @returns
|
|
26266
26271
|
*/
|
|
26267
26272
|
function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
|
|
26273
|
+
// Serialize tenant profiles map into an array
|
|
26274
|
+
const tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
|
|
26275
|
+
// Ensure at least the home tenant profile exists
|
|
26276
|
+
if (tenantProfiles.length === 0 &&
|
|
26277
|
+
accountInfo.tenantId &&
|
|
26278
|
+
accountInfo.localAccountId) {
|
|
26279
|
+
tenantProfiles.push(buildTenantProfile(accountInfo.homeAccountId, accountInfo.localAccountId, accountInfo.tenantId, accountInfo.idTokenClaims));
|
|
26280
|
+
}
|
|
26268
26281
|
return {
|
|
26269
26282
|
authorityType: accountInfo.authorityType || CACHE_ACCOUNT_TYPE_GENERIC,
|
|
26270
26283
|
homeAccountId: accountInfo.homeAccountId,
|
|
@@ -26277,7 +26290,7 @@ function createAccountEntityFromAccountInfo(accountInfo, cloudGraphHostName, msG
|
|
|
26277
26290
|
name: accountInfo.name,
|
|
26278
26291
|
cloudGraphHostName: cloudGraphHostName,
|
|
26279
26292
|
msGraphHost: msGraphHost,
|
|
26280
|
-
tenantProfiles:
|
|
26293
|
+
tenantProfiles: tenantProfiles,
|
|
26281
26294
|
dataBoundary: accountInfo.dataBoundary,
|
|
26282
26295
|
};
|
|
26283
26296
|
}
|
|
@@ -26320,7 +26333,7 @@ function isAccountEntity(entity) {
|
|
|
26320
26333
|
entity.hasOwnProperty("authorityType"));
|
|
26321
26334
|
}
|
|
26322
26335
|
|
|
26323
|
-
/*! @azure/msal-common v16.0
|
|
26336
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
26324
26337
|
|
|
26325
26338
|
/*
|
|
26326
26339
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -26486,13 +26499,13 @@ class CacheManager {
|
|
|
26486
26499
|
* @param storeInCache {?StoreInCache}
|
|
26487
26500
|
* @param correlationId {?string} correlation id
|
|
26488
26501
|
*/
|
|
26489
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
26502
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
26490
26503
|
if (!cacheRecord) {
|
|
26491
26504
|
throw createClientAuthError(invalidCacheRecord);
|
|
26492
26505
|
}
|
|
26493
26506
|
try {
|
|
26494
26507
|
if (!!cacheRecord.account) {
|
|
26495
|
-
await this.setAccount(cacheRecord.account, correlationId, kmsi);
|
|
26508
|
+
await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
|
|
26496
26509
|
}
|
|
26497
26510
|
if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
|
|
26498
26511
|
await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
|
|
@@ -27416,7 +27429,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
27416
27429
|
}
|
|
27417
27430
|
}
|
|
27418
27431
|
|
|
27419
|
-
/*! @azure/msal-common v16.0
|
|
27432
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27420
27433
|
/*
|
|
27421
27434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27422
27435
|
* Licensed under the MIT License.
|
|
@@ -27430,7 +27443,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
27430
27443
|
const PerformanceEventStatus = {
|
|
27431
27444
|
InProgress: 1};
|
|
27432
27445
|
|
|
27433
|
-
/*! @azure/msal-common v16.0
|
|
27446
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27434
27447
|
|
|
27435
27448
|
/*
|
|
27436
27449
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -27485,7 +27498,7 @@ class StubPerformanceClient {
|
|
|
27485
27498
|
}
|
|
27486
27499
|
}
|
|
27487
27500
|
|
|
27488
|
-
/*! @azure/msal-common v16.0
|
|
27501
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27489
27502
|
|
|
27490
27503
|
/*
|
|
27491
27504
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -27579,7 +27592,7 @@ function isOidcProtocolMode(config) {
|
|
|
27579
27592
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
27580
27593
|
}
|
|
27581
27594
|
|
|
27582
|
-
/*! @azure/msal-common v16.0
|
|
27595
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27583
27596
|
|
|
27584
27597
|
/*
|
|
27585
27598
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -27598,23 +27611,58 @@ class ServerError extends AuthError {
|
|
|
27598
27611
|
}
|
|
27599
27612
|
}
|
|
27600
27613
|
|
|
27601
|
-
/*! @azure/msal-common v16.0
|
|
27614
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27602
27615
|
/*
|
|
27603
27616
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27604
27617
|
* Licensed under the MIT License.
|
|
27605
27618
|
*/
|
|
27606
|
-
|
|
27619
|
+
/**
|
|
27620
|
+
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
27621
|
+
* @public
|
|
27622
|
+
*/
|
|
27607
27623
|
const noTokensFound = "no_tokens_found";
|
|
27624
|
+
/**
|
|
27625
|
+
* MSAL-defined error code indicating a native account is unavailable on the platform.
|
|
27626
|
+
* @public
|
|
27627
|
+
*/
|
|
27608
27628
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
27629
|
+
/**
|
|
27630
|
+
* MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
|
|
27631
|
+
* @public
|
|
27632
|
+
*/
|
|
27609
27633
|
const refreshTokenExpired = "refresh_token_expired";
|
|
27634
|
+
/**
|
|
27635
|
+
* MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
|
|
27636
|
+
* @public
|
|
27637
|
+
*/
|
|
27610
27638
|
const uxNotAllowed = "ux_not_allowed";
|
|
27611
|
-
|
|
27639
|
+
/**
|
|
27640
|
+
* Server-originated error code indicating interaction is required to complete the request.
|
|
27641
|
+
* @public
|
|
27642
|
+
*/
|
|
27612
27643
|
const interactionRequired = "interaction_required";
|
|
27644
|
+
/**
|
|
27645
|
+
* Server-originated error code indicating user consent is required.
|
|
27646
|
+
* @public
|
|
27647
|
+
*/
|
|
27613
27648
|
const consentRequired = "consent_required";
|
|
27649
|
+
/**
|
|
27650
|
+
* Server-originated error code indicating user login is required.
|
|
27651
|
+
* @public
|
|
27652
|
+
*/
|
|
27614
27653
|
const loginRequired = "login_required";
|
|
27615
|
-
|
|
27654
|
+
/**
|
|
27655
|
+
* Server-originated error code indicating the token is invalid or corrupted.
|
|
27656
|
+
* @public
|
|
27657
|
+
*/
|
|
27658
|
+
const badToken = "bad_token";
|
|
27659
|
+
/**
|
|
27660
|
+
* Server-originated error code indicating the user is in an interrupted state and interaction is required.
|
|
27661
|
+
* @public
|
|
27662
|
+
*/
|
|
27663
|
+
const interruptedUser = "interrupted_user";
|
|
27616
27664
|
|
|
27617
|
-
/*! @azure/msal-common v16.0
|
|
27665
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27618
27666
|
|
|
27619
27667
|
/*
|
|
27620
27668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -27629,6 +27677,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
27629
27677
|
loginRequired,
|
|
27630
27678
|
badToken,
|
|
27631
27679
|
uxNotAllowed,
|
|
27680
|
+
interruptedUser,
|
|
27632
27681
|
];
|
|
27633
27682
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
27634
27683
|
"message_only",
|
|
@@ -27638,6 +27687,7 @@ const InteractionRequiredAuthSubErrorMessage = [
|
|
|
27638
27687
|
"consent_required",
|
|
27639
27688
|
"bad_token",
|
|
27640
27689
|
"ux_not_allowed",
|
|
27690
|
+
"interrupted_user",
|
|
27641
27691
|
];
|
|
27642
27692
|
/**
|
|
27643
27693
|
* Error thrown when user interaction is required.
|
|
@@ -27680,7 +27730,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
27680
27730
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
27681
27731
|
}
|
|
27682
27732
|
|
|
27683
|
-
/*! @azure/msal-common v16.0
|
|
27733
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27684
27734
|
|
|
27685
27735
|
/*
|
|
27686
27736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -27748,7 +27798,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
27748
27798
|
}
|
|
27749
27799
|
}
|
|
27750
27800
|
|
|
27751
|
-
/*! @azure/msal-common v16.0
|
|
27801
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27752
27802
|
/*
|
|
27753
27803
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27754
27804
|
* Licensed under the MIT License.
|
|
@@ -27813,7 +27863,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
27813
27863
|
return cachedAtSec > nowSeconds();
|
|
27814
27864
|
}
|
|
27815
27865
|
|
|
27816
|
-
/*! @azure/msal-common v16.0
|
|
27866
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27817
27867
|
/*
|
|
27818
27868
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27819
27869
|
* Licensed under the MIT License.
|
|
@@ -27884,7 +27934,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
27884
27934
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
27885
27935
|
const SetUserData = "setUserData";
|
|
27886
27936
|
|
|
27887
|
-
/*! @azure/msal-common v16.0
|
|
27937
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27888
27938
|
/*
|
|
27889
27939
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
27890
27940
|
* Licensed under the MIT License.
|
|
@@ -27907,8 +27957,7 @@ const invoke = (callback, eventName, logger, telemetryClient, correlationId) =>
|
|
|
27907
27957
|
const inProgressEvent = telemetryClient.startMeasurement(eventName, correlationId);
|
|
27908
27958
|
if (correlationId) {
|
|
27909
27959
|
// Track number of times this API is called in a single request
|
|
27910
|
-
|
|
27911
|
-
telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
|
|
27960
|
+
telemetryClient.incrementFields({ [`ext.${eventName}CallCount`]: 1 }, correlationId);
|
|
27912
27961
|
}
|
|
27913
27962
|
try {
|
|
27914
27963
|
const result = callback(...args);
|
|
@@ -27952,8 +28001,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
27952
28001
|
const inProgressEvent = telemetryClient.startMeasurement(eventName, correlationId);
|
|
27953
28002
|
if (correlationId) {
|
|
27954
28003
|
// Track number of times this API is called in a single request
|
|
27955
|
-
|
|
27956
|
-
telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
|
|
28004
|
+
telemetryClient.incrementFields({ [`ext.${eventName}CallCount`]: 1 }, correlationId);
|
|
27957
28005
|
}
|
|
27958
28006
|
return callback(...args)
|
|
27959
28007
|
.then((response) => {
|
|
@@ -27979,7 +28027,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
27979
28027
|
};
|
|
27980
28028
|
};
|
|
27981
28029
|
|
|
27982
|
-
/*! @azure/msal-common v16.0
|
|
28030
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
27983
28031
|
|
|
27984
28032
|
/*
|
|
27985
28033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28059,7 +28107,7 @@ class PopTokenGenerator {
|
|
|
28059
28107
|
}
|
|
28060
28108
|
}
|
|
28061
28109
|
|
|
28062
|
-
/*! @azure/msal-common v16.0
|
|
28110
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28063
28111
|
/*
|
|
28064
28112
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28065
28113
|
* Licensed under the MIT License.
|
|
@@ -28086,7 +28134,7 @@ class PopTokenGenerator {
|
|
|
28086
28134
|
}
|
|
28087
28135
|
}
|
|
28088
28136
|
|
|
28089
|
-
/*! @azure/msal-common v16.0
|
|
28137
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28090
28138
|
|
|
28091
28139
|
/*
|
|
28092
28140
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28345,7 +28393,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
28345
28393
|
return metadata.expiresAt <= nowSeconds();
|
|
28346
28394
|
}
|
|
28347
28395
|
|
|
28348
|
-
/*! @azure/msal-common v16.0
|
|
28396
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28349
28397
|
|
|
28350
28398
|
/*
|
|
28351
28399
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28412,7 +28460,7 @@ class ResponseHandler {
|
|
|
28412
28460
|
* @param serverTokenResponse
|
|
28413
28461
|
* @param authority
|
|
28414
28462
|
*/
|
|
28415
|
-
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
28463
|
+
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
|
|
28416
28464
|
// create an idToken object (not entity)
|
|
28417
28465
|
let idTokenClaims;
|
|
28418
28466
|
if (serverTokenResponse.id_token) {
|
|
@@ -28459,14 +28507,19 @@ class ResponseHandler {
|
|
|
28459
28507
|
if (handlingRefreshTokenResponse &&
|
|
28460
28508
|
!forceCacheRefreshTokenResponse &&
|
|
28461
28509
|
cacheRecord.account) {
|
|
28462
|
-
const
|
|
28463
|
-
|
|
28464
|
-
|
|
28510
|
+
const cachedAccounts = this.cacheStorage.getAllAccounts({
|
|
28511
|
+
homeAccountId: cacheRecord.account.homeAccountId,
|
|
28512
|
+
environment: cacheRecord.account.environment,
|
|
28513
|
+
}, request.correlationId);
|
|
28514
|
+
if (cachedAccounts.length < 1) {
|
|
28465
28515
|
this.logger.warning("1gmt66", request.correlationId);
|
|
28516
|
+
this.performanceClient?.addFields({
|
|
28517
|
+
acntLoggedOut: true,
|
|
28518
|
+
}, request.correlationId);
|
|
28466
28519
|
return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, this.performanceClient, idTokenClaims, requestStateObj, undefined, serverRequestId);
|
|
28467
28520
|
}
|
|
28468
28521
|
}
|
|
28469
|
-
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
|
|
28522
|
+
await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
|
|
28470
28523
|
}
|
|
28471
28524
|
finally {
|
|
28472
28525
|
if (this.persistencePlugin &&
|
|
@@ -28676,7 +28729,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
28676
28729
|
return baseAccount;
|
|
28677
28730
|
}
|
|
28678
28731
|
|
|
28679
|
-
/*! @azure/msal-common v16.0
|
|
28732
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28680
28733
|
/*
|
|
28681
28734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28682
28735
|
* Licensed under the MIT License.
|
|
@@ -28686,7 +28739,7 @@ const CcsCredentialType = {
|
|
|
28686
28739
|
UPN: "UPN",
|
|
28687
28740
|
};
|
|
28688
28741
|
|
|
28689
|
-
/*! @azure/msal-common v16.0
|
|
28742
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28690
28743
|
/*
|
|
28691
28744
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28692
28745
|
* Licensed under the MIT License.
|
|
@@ -28704,7 +28757,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
28704
28757
|
}
|
|
28705
28758
|
}
|
|
28706
28759
|
|
|
28707
|
-
/*! @azure/msal-common v16.0
|
|
28760
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28708
28761
|
/*
|
|
28709
28762
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28710
28763
|
* Licensed under the MIT License.
|
|
@@ -28725,7 +28778,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
28725
28778
|
};
|
|
28726
28779
|
}
|
|
28727
28780
|
|
|
28728
|
-
/*! @azure/msal-common v16.0
|
|
28781
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28729
28782
|
|
|
28730
28783
|
/*
|
|
28731
28784
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28811,7 +28864,7 @@ class ThrottlingUtils {
|
|
|
28811
28864
|
}
|
|
28812
28865
|
}
|
|
28813
28866
|
|
|
28814
|
-
/*! @azure/msal-common v16.0
|
|
28867
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28815
28868
|
|
|
28816
28869
|
/*
|
|
28817
28870
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28842,7 +28895,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
28842
28895
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
28843
28896
|
}
|
|
28844
28897
|
|
|
28845
|
-
/*! @azure/msal-common v16.0
|
|
28898
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28846
28899
|
|
|
28847
28900
|
/*
|
|
28848
28901
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -28956,7 +29009,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
28956
29009
|
return response;
|
|
28957
29010
|
}
|
|
28958
29011
|
|
|
28959
|
-
/*! @azure/msal-common v16.0
|
|
29012
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28960
29013
|
/*
|
|
28961
29014
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28962
29015
|
* Licensed under the MIT License.
|
|
@@ -28968,7 +29021,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
28968
29021
|
response.hasOwnProperty("jwks_uri"));
|
|
28969
29022
|
}
|
|
28970
29023
|
|
|
28971
|
-
/*! @azure/msal-common v16.0
|
|
29024
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28972
29025
|
/*
|
|
28973
29026
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28974
29027
|
* Licensed under the MIT License.
|
|
@@ -28978,7 +29031,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
28978
29031
|
response.hasOwnProperty("metadata"));
|
|
28979
29032
|
}
|
|
28980
29033
|
|
|
28981
|
-
/*! @azure/msal-common v16.0
|
|
29034
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28982
29035
|
/*
|
|
28983
29036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28984
29037
|
* Licensed under the MIT License.
|
|
@@ -28988,7 +29041,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
28988
29041
|
response.hasOwnProperty("error_description"));
|
|
28989
29042
|
}
|
|
28990
29043
|
|
|
28991
|
-
/*! @azure/msal-common v16.0
|
|
29044
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
28992
29045
|
|
|
28993
29046
|
/*
|
|
28994
29047
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -29093,7 +29146,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
29093
29146
|
},
|
|
29094
29147
|
};
|
|
29095
29148
|
|
|
29096
|
-
/*! @azure/msal-common v16.0
|
|
29149
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
29097
29150
|
|
|
29098
29151
|
/*
|
|
29099
29152
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -29913,7 +29966,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
29913
29966
|
};
|
|
29914
29967
|
}
|
|
29915
29968
|
|
|
29916
|
-
/*! @azure/msal-common v16.0
|
|
29969
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
29917
29970
|
|
|
29918
29971
|
/*
|
|
29919
29972
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -29947,7 +30000,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
29947
30000
|
}
|
|
29948
30001
|
}
|
|
29949
30002
|
|
|
29950
|
-
/*! @azure/msal-common v16.0
|
|
30003
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
29951
30004
|
|
|
29952
30005
|
/*
|
|
29953
30006
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -29985,7 +30038,7 @@ class AuthorizationCodeClient {
|
|
|
29985
30038
|
* authorization_code_grant
|
|
29986
30039
|
* @param request
|
|
29987
30040
|
*/
|
|
29988
|
-
async acquireToken(request, authCodePayload) {
|
|
30041
|
+
async acquireToken(request, apiId, authCodePayload) {
|
|
29989
30042
|
if (!request.code) {
|
|
29990
30043
|
throw createClientAuthError(requestCannotBeMade);
|
|
29991
30044
|
}
|
|
@@ -30000,7 +30053,7 @@ class AuthorizationCodeClient {
|
|
|
30000
30053
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
30001
30054
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
30002
30055
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
30003
|
-
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
|
|
30056
|
+
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
|
|
30004
30057
|
}
|
|
30005
30058
|
/**
|
|
30006
30059
|
* Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
@@ -30207,7 +30260,7 @@ class AuthorizationCodeClient {
|
|
|
30207
30260
|
}
|
|
30208
30261
|
}
|
|
30209
30262
|
|
|
30210
|
-
/*! @azure/msal-common v16.0
|
|
30263
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30211
30264
|
|
|
30212
30265
|
/*
|
|
30213
30266
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -30237,20 +30290,20 @@ class RefreshTokenClient {
|
|
|
30237
30290
|
// set performance telemetry client
|
|
30238
30291
|
this.performanceClient = performanceClient;
|
|
30239
30292
|
}
|
|
30240
|
-
async acquireToken(request) {
|
|
30293
|
+
async acquireToken(request, apiId) {
|
|
30241
30294
|
const reqTimestamp = nowSeconds();
|
|
30242
30295
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
|
|
30243
30296
|
// Retrieve requestId from response headers
|
|
30244
30297
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
30245
30298
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
30246
30299
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
30247
|
-
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId);
|
|
30300
|
+
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
|
|
30248
30301
|
}
|
|
30249
30302
|
/**
|
|
30250
30303
|
* Gets cached refresh token and attaches to request, then calls acquireToken API
|
|
30251
30304
|
* @param request
|
|
30252
30305
|
*/
|
|
30253
|
-
async acquireTokenByRefreshToken(request) {
|
|
30306
|
+
async acquireTokenByRefreshToken(request, apiId) {
|
|
30254
30307
|
// Cannot renew token if no request object is given.
|
|
30255
30308
|
if (!request) {
|
|
30256
30309
|
throw createClientConfigurationError(tokenRequestEmpty);
|
|
@@ -30264,7 +30317,7 @@ class RefreshTokenClient {
|
|
|
30264
30317
|
// if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
|
|
30265
30318
|
if (isFOCI) {
|
|
30266
30319
|
try {
|
|
30267
|
-
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
|
|
30320
|
+
return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
|
|
30268
30321
|
}
|
|
30269
30322
|
catch (e) {
|
|
30270
30323
|
const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
|
|
@@ -30275,7 +30328,7 @@ class RefreshTokenClient {
|
|
|
30275
30328
|
e.subError === CLIENT_MISMATCH_ERROR;
|
|
30276
30329
|
// if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
|
|
30277
30330
|
if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
|
|
30278
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
30331
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
30279
30332
|
// throw in all other cases
|
|
30280
30333
|
}
|
|
30281
30334
|
else {
|
|
@@ -30284,13 +30337,13 @@ class RefreshTokenClient {
|
|
|
30284
30337
|
}
|
|
30285
30338
|
}
|
|
30286
30339
|
// fall back to application refresh token acquisition
|
|
30287
|
-
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
|
|
30340
|
+
return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
|
|
30288
30341
|
}
|
|
30289
30342
|
/**
|
|
30290
30343
|
* makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
|
|
30291
30344
|
* @param request
|
|
30292
30345
|
*/
|
|
30293
|
-
async acquireTokenWithCachedRefreshToken(request, foci) {
|
|
30346
|
+
async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
|
|
30294
30347
|
// fetches family RT or application RT based on FOCI value
|
|
30295
30348
|
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined);
|
|
30296
30349
|
if (!refreshToken) {
|
|
@@ -30319,7 +30372,7 @@ class RefreshTokenClient {
|
|
|
30319
30372
|
},
|
|
30320
30373
|
};
|
|
30321
30374
|
try {
|
|
30322
|
-
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
|
|
30375
|
+
return await invokeAsync(this.acquireToken.bind(this), RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
|
|
30323
30376
|
}
|
|
30324
30377
|
catch (e) {
|
|
30325
30378
|
if (e instanceof InteractionRequiredAuthError) {
|
|
@@ -30432,7 +30485,7 @@ class RefreshTokenClient {
|
|
|
30432
30485
|
}
|
|
30433
30486
|
}
|
|
30434
30487
|
|
|
30435
|
-
/*! @azure/msal-common v16.0
|
|
30488
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30436
30489
|
|
|
30437
30490
|
/*
|
|
30438
30491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -30541,7 +30594,7 @@ class SilentFlowClient {
|
|
|
30541
30594
|
}
|
|
30542
30595
|
}
|
|
30543
30596
|
|
|
30544
|
-
/*! @azure/msal-common v16.0
|
|
30597
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30545
30598
|
|
|
30546
30599
|
/*
|
|
30547
30600
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -30556,7 +30609,7 @@ const StubbedNetworkModule = {
|
|
|
30556
30609
|
},
|
|
30557
30610
|
};
|
|
30558
30611
|
|
|
30559
|
-
/*! @azure/msal-common v16.0
|
|
30612
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30560
30613
|
|
|
30561
30614
|
/*
|
|
30562
30615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -30780,7 +30833,7 @@ function extractLoginHint(account) {
|
|
|
30780
30833
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
30781
30834
|
}
|
|
30782
30835
|
|
|
30783
|
-
/*! @azure/msal-common v16.0
|
|
30836
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30784
30837
|
/*
|
|
30785
30838
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
30786
30839
|
* Licensed under the MIT License.
|
|
@@ -30790,7 +30843,7 @@ function extractLoginHint(account) {
|
|
|
30790
30843
|
*/
|
|
30791
30844
|
const unexpectedError = "unexpected_error";
|
|
30792
30845
|
|
|
30793
|
-
/*! @azure/msal-common v16.0
|
|
30846
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
30794
30847
|
|
|
30795
30848
|
/*
|
|
30796
30849
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31051,7 +31104,7 @@ class ServerTelemetryManager {
|
|
|
31051
31104
|
}
|
|
31052
31105
|
}
|
|
31053
31106
|
|
|
31054
|
-
/*! @azure/msal-common v16.0
|
|
31107
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
31055
31108
|
|
|
31056
31109
|
/*
|
|
31057
31110
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31072,7 +31125,7 @@ function createJoseHeaderError(code) {
|
|
|
31072
31125
|
return new JoseHeaderError(code);
|
|
31073
31126
|
}
|
|
31074
31127
|
|
|
31075
|
-
/*! @azure/msal-common v16.0
|
|
31128
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
31076
31129
|
/*
|
|
31077
31130
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31078
31131
|
* Licensed under the MIT License.
|
|
@@ -31080,7 +31133,7 @@ function createJoseHeaderError(code) {
|
|
|
31080
31133
|
const missingKidError = "missing_kid_error";
|
|
31081
31134
|
const missingAlgError = "missing_alg_error";
|
|
31082
31135
|
|
|
31083
|
-
/*! @azure/msal-common v16.0
|
|
31136
|
+
/*! @azure/msal-common v16.2.0 2026-03-02 */
|
|
31084
31137
|
|
|
31085
31138
|
/*
|
|
31086
31139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31120,7 +31173,7 @@ class JoseHeader {
|
|
|
31120
31173
|
}
|
|
31121
31174
|
}
|
|
31122
31175
|
|
|
31123
|
-
/*! @azure/msal-browser v5.0
|
|
31176
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31124
31177
|
|
|
31125
31178
|
/*
|
|
31126
31179
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31143,7 +31196,7 @@ function createBrowserAuthError(errorCode, subError) {
|
|
|
31143
31196
|
return new BrowserAuthError(errorCode, subError);
|
|
31144
31197
|
}
|
|
31145
31198
|
|
|
31146
|
-
/*! @azure/msal-browser v5.0
|
|
31199
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31147
31200
|
|
|
31148
31201
|
/*
|
|
31149
31202
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31229,6 +31282,7 @@ const InMemoryCacheKeys = {
|
|
|
31229
31282
|
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
|
|
31230
31283
|
* 0-99 Silent Flow
|
|
31231
31284
|
* 800-899 Auth Code Flow
|
|
31285
|
+
* 900-999 Misc
|
|
31232
31286
|
*/
|
|
31233
31287
|
const ApiId = {
|
|
31234
31288
|
acquireTokenRedirect: 861,
|
|
@@ -31240,6 +31294,30 @@ const ApiId = {
|
|
|
31240
31294
|
acquireTokenSilent_silentFlow: 61,
|
|
31241
31295
|
logout: 961,
|
|
31242
31296
|
logoutPopup: 962,
|
|
31297
|
+
hydrateCache: 963,
|
|
31298
|
+
loadExternalTokens: 964,
|
|
31299
|
+
};
|
|
31300
|
+
/**
|
|
31301
|
+
* API Names for Telemetry purposes.
|
|
31302
|
+
*/
|
|
31303
|
+
const ApiName = {
|
|
31304
|
+
861: "acquireTokenRedirect",
|
|
31305
|
+
862: "acquireTokenPopup",
|
|
31306
|
+
863: "ssoSilent",
|
|
31307
|
+
864: "acquireTokenSilent_authCode",
|
|
31308
|
+
865: "handleRedirectPromise",
|
|
31309
|
+
866: "acquireTokenByCode",
|
|
31310
|
+
61: "acquireTokenSilent_silentFlow",
|
|
31311
|
+
961: "logout",
|
|
31312
|
+
962: "logoutPopup",
|
|
31313
|
+
963: "hydrateCache",
|
|
31314
|
+
964: "loadExternalTokens",
|
|
31315
|
+
};
|
|
31316
|
+
const apiIdToName = (id) => {
|
|
31317
|
+
if (typeof id === "number" && id in ApiName) {
|
|
31318
|
+
return ApiName[id];
|
|
31319
|
+
}
|
|
31320
|
+
return "unknown";
|
|
31243
31321
|
};
|
|
31244
31322
|
/*
|
|
31245
31323
|
* Interaction type of the API - used for state and telemetry
|
|
@@ -31304,7 +31382,7 @@ const iFrameRenewalPolicies = [
|
|
|
31304
31382
|
CacheLookupPolicy.RefreshTokenAndNetwork,
|
|
31305
31383
|
];
|
|
31306
31384
|
|
|
31307
|
-
/*! @azure/msal-browser v5.0
|
|
31385
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31308
31386
|
/*
|
|
31309
31387
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31310
31388
|
* Licensed under the MIT License.
|
|
@@ -31349,7 +31427,7 @@ function base64EncArr(aBytes) {
|
|
|
31349
31427
|
return btoa(binString);
|
|
31350
31428
|
}
|
|
31351
31429
|
|
|
31352
|
-
/*! @azure/msal-browser v5.0
|
|
31430
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31353
31431
|
/*
|
|
31354
31432
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31355
31433
|
* Licensed under the MIT License.
|
|
@@ -31402,7 +31480,7 @@ const failedToDecryptEarResponse = "failed_to_decrypt_ear_response";
|
|
|
31402
31480
|
const timedOut = "timed_out";
|
|
31403
31481
|
const emptyResponse = "empty_response";
|
|
31404
31482
|
|
|
31405
|
-
/*! @azure/msal-browser v5.0
|
|
31483
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31406
31484
|
|
|
31407
31485
|
/*
|
|
31408
31486
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31441,7 +31519,7 @@ function base64DecToArr(base64String) {
|
|
|
31441
31519
|
return Uint8Array.from(binString, (m) => m.codePointAt(0) || 0);
|
|
31442
31520
|
}
|
|
31443
31521
|
|
|
31444
|
-
/*! @azure/msal-browser v5.0
|
|
31522
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31445
31523
|
|
|
31446
31524
|
/*
|
|
31447
31525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31739,7 +31817,7 @@ async function hashString(plainText) {
|
|
|
31739
31817
|
return urlEncodeArr(hashBytes);
|
|
31740
31818
|
}
|
|
31741
31819
|
|
|
31742
|
-
/*! @azure/msal-browser v5.0
|
|
31820
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31743
31821
|
|
|
31744
31822
|
/*
|
|
31745
31823
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -31759,7 +31837,7 @@ function createBrowserConfigurationAuthError(errorCode) {
|
|
|
31759
31837
|
return new BrowserConfigurationAuthError(errorCode, getDefaultErrorMessage(errorCode));
|
|
31760
31838
|
}
|
|
31761
31839
|
|
|
31762
|
-
/*! @azure/msal-browser v5.0
|
|
31840
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31763
31841
|
/*
|
|
31764
31842
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
31765
31843
|
* Licensed under the MIT License.
|
|
@@ -31767,7 +31845,7 @@ function createBrowserConfigurationAuthError(errorCode) {
|
|
|
31767
31845
|
const storageNotSupported = "storage_not_supported";
|
|
31768
31846
|
const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
|
|
31769
31847
|
|
|
31770
|
-
/*! @azure/msal-browser v5.0
|
|
31848
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
31771
31849
|
|
|
31772
31850
|
/*
|
|
31773
31851
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32069,7 +32147,7 @@ function createGuid() {
|
|
|
32069
32147
|
return createNewGuid();
|
|
32070
32148
|
}
|
|
32071
32149
|
|
|
32072
|
-
/*! @azure/msal-browser v5.0
|
|
32150
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32073
32151
|
/*
|
|
32074
32152
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32075
32153
|
* Licensed under the MIT License.
|
|
@@ -32190,7 +32268,7 @@ const Decrypt = "decrypt";
|
|
|
32190
32268
|
const GenerateEarKey = "generateEarKey";
|
|
32191
32269
|
const DecryptEarResponse = "decryptEarResponse";
|
|
32192
32270
|
|
|
32193
|
-
/*! @azure/msal-browser v5.0
|
|
32271
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32194
32272
|
|
|
32195
32273
|
/*
|
|
32196
32274
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32393,7 +32471,7 @@ class DatabaseStorage {
|
|
|
32393
32471
|
}
|
|
32394
32472
|
}
|
|
32395
32473
|
|
|
32396
|
-
/*! @azure/msal-browser v5.0
|
|
32474
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32397
32475
|
/*
|
|
32398
32476
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32399
32477
|
* Licensed under the MIT License.
|
|
@@ -32439,7 +32517,7 @@ class MemoryStorage {
|
|
|
32439
32517
|
}
|
|
32440
32518
|
}
|
|
32441
32519
|
|
|
32442
|
-
/*! @azure/msal-browser v5.0
|
|
32520
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32443
32521
|
|
|
32444
32522
|
/*
|
|
32445
32523
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32580,7 +32658,7 @@ class AsyncMemoryStorage {
|
|
|
32580
32658
|
}
|
|
32581
32659
|
}
|
|
32582
32660
|
|
|
32583
|
-
/*! @azure/msal-browser v5.0
|
|
32661
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32584
32662
|
|
|
32585
32663
|
/*
|
|
32586
32664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32763,7 +32841,7 @@ function getSortedObjectString(obj) {
|
|
|
32763
32841
|
return JSON.stringify(obj, Object.keys(obj).sort());
|
|
32764
32842
|
}
|
|
32765
32843
|
|
|
32766
|
-
/*! @azure/msal-browser v5.0
|
|
32844
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32767
32845
|
/*
|
|
32768
32846
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32769
32847
|
* Licensed under the MIT License.
|
|
@@ -32805,7 +32883,7 @@ const InitializeClientApplication = "initializeClientApplication";
|
|
|
32805
32883
|
// Update cache storage
|
|
32806
32884
|
const LocalStorageUpdated = "localStorageUpdated";
|
|
32807
32885
|
|
|
32808
|
-
/*! @azure/msal-browser v5.0
|
|
32886
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32809
32887
|
/*
|
|
32810
32888
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32811
32889
|
* Licensed under the MIT License.
|
|
@@ -32834,7 +32912,7 @@ function getTokenKeysCacheKey(clientId, schema = CREDENTIAL_SCHEMA_VERSION) {
|
|
|
32834
32912
|
return `${PREFIX}.${schema}.${TOKEN_KEYS}.${clientId}`;
|
|
32835
32913
|
}
|
|
32836
32914
|
|
|
32837
|
-
/*! @azure/msal-browser v5.0
|
|
32915
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32838
32916
|
|
|
32839
32917
|
/*
|
|
32840
32918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32912,7 +32990,7 @@ function getCookieExpirationTime(cookieLifeDays) {
|
|
|
32912
32990
|
return expr.toUTCString();
|
|
32913
32991
|
}
|
|
32914
32992
|
|
|
32915
|
-
/*! @azure/msal-browser v5.0
|
|
32993
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32916
32994
|
|
|
32917
32995
|
/*
|
|
32918
32996
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -32954,7 +33032,7 @@ function getTokenKeys(clientId, storage, schemaVersion) {
|
|
|
32954
33032
|
};
|
|
32955
33033
|
}
|
|
32956
33034
|
|
|
32957
|
-
/*! @azure/msal-browser v5.0
|
|
33035
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32958
33036
|
/*
|
|
32959
33037
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
32960
33038
|
* Licensed under the MIT License.
|
|
@@ -32965,7 +33043,7 @@ function isEncrypted(data) {
|
|
|
32965
33043
|
data.hasOwnProperty("data"));
|
|
32966
33044
|
}
|
|
32967
33045
|
|
|
32968
|
-
/*! @azure/msal-browser v5.0
|
|
33046
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
32969
33047
|
|
|
32970
33048
|
/*
|
|
32971
33049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -33257,7 +33335,7 @@ class LocalStorage {
|
|
|
33257
33335
|
}
|
|
33258
33336
|
}
|
|
33259
33337
|
|
|
33260
|
-
/*! @azure/msal-browser v5.0
|
|
33338
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
33261
33339
|
|
|
33262
33340
|
/*
|
|
33263
33341
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -33299,7 +33377,7 @@ class SessionStorage {
|
|
|
33299
33377
|
}
|
|
33300
33378
|
}
|
|
33301
33379
|
|
|
33302
|
-
/*! @azure/msal-browser v5.0
|
|
33380
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
33303
33381
|
/*
|
|
33304
33382
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
33305
33383
|
* Licensed under the MIT License.
|
|
@@ -33327,12 +33405,12 @@ const EventType = {
|
|
|
33327
33405
|
BROKER_CONNECTION_ESTABLISHED: "msal:brokerConnectionEstablished",
|
|
33328
33406
|
};
|
|
33329
33407
|
|
|
33330
|
-
/*! @azure/msal-browser v5.0
|
|
33408
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
33331
33409
|
/* eslint-disable header/header */
|
|
33332
33410
|
const name = "@azure/msal-browser";
|
|
33333
|
-
const version$3 = "5.0
|
|
33411
|
+
const version$3 = "5.4.0";
|
|
33334
33412
|
|
|
33335
|
-
/*! @azure/msal-browser v5.0
|
|
33413
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
33336
33414
|
/*
|
|
33337
33415
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
33338
33416
|
* Licensed under the MIT License.
|
|
@@ -33349,7 +33427,7 @@ function removeElementFromArray(array, element) {
|
|
|
33349
33427
|
}
|
|
33350
33428
|
}
|
|
33351
33429
|
|
|
33352
|
-
/*! @azure/msal-browser v5.0
|
|
33430
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
33353
33431
|
|
|
33354
33432
|
/*
|
|
33355
33433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -33905,17 +33983,22 @@ class BrowserCacheManager extends CacheManager {
|
|
|
33905
33983
|
!isAccountEntity(parsedAccount)) {
|
|
33906
33984
|
return null;
|
|
33907
33985
|
}
|
|
33908
|
-
|
|
33986
|
+
const account = CacheManager.toObject({}, parsedAccount);
|
|
33987
|
+
this.performanceClient.addFields({
|
|
33988
|
+
accountCachedBy: apiIdToName(account.cachedByApiId),
|
|
33989
|
+
}, correlationId);
|
|
33990
|
+
return account;
|
|
33909
33991
|
}
|
|
33910
33992
|
/**
|
|
33911
33993
|
* set account entity in the platform cache
|
|
33912
33994
|
* @param account
|
|
33913
33995
|
*/
|
|
33914
|
-
async setAccount(account, correlationId, kmsi) {
|
|
33996
|
+
async setAccount(account, correlationId, kmsi, apiId) {
|
|
33915
33997
|
this.logger.trace("1bz3wr", correlationId);
|
|
33916
33998
|
const key = this.generateAccountKey(getAccountInfo(account));
|
|
33917
33999
|
const timestamp = Date.now().toString();
|
|
33918
34000
|
account.lastUpdatedAt = timestamp;
|
|
34001
|
+
account.cachedByApiId = apiId;
|
|
33919
34002
|
await this.setUserData(key, JSON.stringify(account), correlationId, timestamp, kmsi);
|
|
33920
34003
|
this.addAccountKeyToMap(key, correlationId);
|
|
33921
34004
|
this.performanceClient.addFields({ kmsi: kmsi }, correlationId);
|
|
@@ -34341,7 +34424,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34341
34424
|
this.logger.verbose("1bp5z5", correlationId);
|
|
34342
34425
|
this.browserStorage.removeItem(activeAccountKey);
|
|
34343
34426
|
}
|
|
34344
|
-
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
|
|
34427
|
+
this.eventHandler.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED, correlationId);
|
|
34345
34428
|
}
|
|
34346
34429
|
/**
|
|
34347
34430
|
* fetch throttling entity from the platform cache
|
|
@@ -34626,7 +34709,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34626
34709
|
* @param request
|
|
34627
34710
|
*/
|
|
34628
34711
|
async hydrateCache(result, request) {
|
|
34629
|
-
const idTokenEntity = createIdTokenEntity(result.account
|
|
34712
|
+
const idTokenEntity = createIdTokenEntity(result.account.homeAccountId, result.account.environment, result.idToken, this.clientId, result.tenantId);
|
|
34630
34713
|
/**
|
|
34631
34714
|
* meta data for cache stores time in seconds from epoch
|
|
34632
34715
|
* AuthenticationResult returns expiresOn and extExpiresOn in milliseconds (as a Date object which is in ms)
|
|
@@ -34634,7 +34717,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34634
34717
|
*
|
|
34635
34718
|
* The next MSAL VFuture should map these both to same value if possible
|
|
34636
34719
|
*/
|
|
34637
|
-
const accessTokenEntity = createAccessTokenEntity(result.account
|
|
34720
|
+
const accessTokenEntity = createAccessTokenEntity(result.account.homeAccountId, result.account.environment, result.accessToken, this.clientId, result.tenantId, result.scopes.join(" "),
|
|
34638
34721
|
// Access token expiresOn stored in seconds, converting from AuthenticationResult expiresOn stored as Date
|
|
34639
34722
|
result.expiresOn
|
|
34640
34723
|
? toSecondsFromDate(result.expiresOn)
|
|
@@ -34647,7 +34730,7 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34647
34730
|
idToken: idTokenEntity,
|
|
34648
34731
|
accessToken: accessTokenEntity,
|
|
34649
34732
|
};
|
|
34650
|
-
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)));
|
|
34733
|
+
return this.saveCacheRecord(cacheRecord, result.correlationId, isKmsi(extractTokenClaims(result.idToken, base64Decode)), ApiId.hydrateCache);
|
|
34651
34734
|
}
|
|
34652
34735
|
/**
|
|
34653
34736
|
* saves a cache record
|
|
@@ -34655,9 +34738,9 @@ class BrowserCacheManager extends CacheManager {
|
|
|
34655
34738
|
* @param storeInCache {?StoreInCache}
|
|
34656
34739
|
* @param correlationId {?string} correlation id
|
|
34657
34740
|
*/
|
|
34658
|
-
async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
|
|
34741
|
+
async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
|
|
34659
34742
|
try {
|
|
34660
|
-
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache);
|
|
34743
|
+
await super.saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache);
|
|
34661
34744
|
}
|
|
34662
34745
|
catch (e) {
|
|
34663
34746
|
if (e instanceof CacheError &&
|
|
@@ -34706,7 +34789,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger, performanceClient, even
|
|
|
34706
34789
|
return new BrowserCacheManager(clientId, cacheOptions, DEFAULT_CRYPTO_IMPLEMENTATION, logger, performanceClient, eventHandler);
|
|
34707
34790
|
};
|
|
34708
34791
|
|
|
34709
|
-
/*! @azure/msal-browser v5.0
|
|
34792
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
34710
34793
|
/*
|
|
34711
34794
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
34712
34795
|
* Licensed under the MIT License.
|
|
@@ -34757,7 +34840,7 @@ function getActiveAccount(browserStorage, correlationId) {
|
|
|
34757
34840
|
return browserStorage.getActiveAccount(correlationId);
|
|
34758
34841
|
}
|
|
34759
34842
|
|
|
34760
|
-
/*! @azure/msal-browser v5.0
|
|
34843
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
34761
34844
|
|
|
34762
34845
|
/*
|
|
34763
34846
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -34807,12 +34890,13 @@ class EventHandler {
|
|
|
34807
34890
|
* @param payload
|
|
34808
34891
|
* @param error
|
|
34809
34892
|
*/
|
|
34810
|
-
emitEvent(eventType, interactionType, payload, error) {
|
|
34893
|
+
emitEvent(eventType, correlationId, interactionType, payload, error) {
|
|
34811
34894
|
const message = {
|
|
34812
34895
|
eventType: eventType,
|
|
34813
34896
|
interactionType: interactionType || null,
|
|
34814
34897
|
payload: payload || null,
|
|
34815
34898
|
error: error || null,
|
|
34899
|
+
correlationId: correlationId,
|
|
34816
34900
|
timestamp: Date.now(),
|
|
34817
34901
|
};
|
|
34818
34902
|
switch (eventType) {
|
|
@@ -34860,7 +34944,7 @@ class EventHandler {
|
|
|
34860
34944
|
}
|
|
34861
34945
|
}
|
|
34862
34946
|
|
|
34863
|
-
/*! @azure/msal-browser v5.0
|
|
34947
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
34864
34948
|
|
|
34865
34949
|
/*
|
|
34866
34950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -34995,7 +35079,7 @@ async function clearCacheOnLogout(browserStorage, browserCrypto, logger, correla
|
|
|
34995
35079
|
}
|
|
34996
35080
|
}
|
|
34997
35081
|
|
|
34998
|
-
/*! @azure/msal-browser v5.0
|
|
35082
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
34999
35083
|
|
|
35000
35084
|
/*
|
|
35001
35085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35073,7 +35157,7 @@ function validateRequestMethod(interactionRequest, protocolMode) {
|
|
|
35073
35157
|
return httpMethod;
|
|
35074
35158
|
}
|
|
35075
35159
|
|
|
35076
|
-
/*! @azure/msal-browser v5.0
|
|
35160
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35077
35161
|
|
|
35078
35162
|
/*
|
|
35079
35163
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35272,7 +35356,7 @@ async function initializeAuthorizationRequest(request, interactionType, config,
|
|
|
35272
35356
|
return validatedRequest;
|
|
35273
35357
|
}
|
|
35274
35358
|
|
|
35275
|
-
/*! @azure/msal-browser v5.0
|
|
35359
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35276
35360
|
|
|
35277
35361
|
/*
|
|
35278
35362
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35296,7 +35380,7 @@ function extractBrowserRequestState(browserCrypto, state) {
|
|
|
35296
35380
|
}
|
|
35297
35381
|
}
|
|
35298
35382
|
|
|
35299
|
-
/*! @azure/msal-browser v5.0
|
|
35383
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35300
35384
|
|
|
35301
35385
|
/*
|
|
35302
35386
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35335,7 +35419,7 @@ function validateInteractionType(response, browserCrypto, interactionType) {
|
|
|
35335
35419
|
}
|
|
35336
35420
|
}
|
|
35337
35421
|
|
|
35338
|
-
/*! @azure/msal-browser v5.0
|
|
35422
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35339
35423
|
|
|
35340
35424
|
/*
|
|
35341
35425
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35356,7 +35440,7 @@ class InteractionHandler {
|
|
|
35356
35440
|
* Function to handle response parameters from hash.
|
|
35357
35441
|
* @param locationHash
|
|
35358
35442
|
*/
|
|
35359
|
-
async handleCodeResponse(response, request) {
|
|
35443
|
+
async handleCodeResponse(response, request, apiId) {
|
|
35360
35444
|
let authCodeResponse;
|
|
35361
35445
|
try {
|
|
35362
35446
|
authCodeResponse = getAuthorizationCodePayload(response, request.state);
|
|
@@ -35371,7 +35455,7 @@ class InteractionHandler {
|
|
|
35371
35455
|
throw e;
|
|
35372
35456
|
}
|
|
35373
35457
|
}
|
|
35374
|
-
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request);
|
|
35458
|
+
return invokeAsync(this.handleCodeResponseFromServer.bind(this), HandleCodeResponseFromServer, this.logger, this.performanceClient, request.correlationId)(authCodeResponse, request, apiId);
|
|
35375
35459
|
}
|
|
35376
35460
|
/**
|
|
35377
35461
|
* Process auth code response from AAD
|
|
@@ -35380,7 +35464,7 @@ class InteractionHandler {
|
|
|
35380
35464
|
* @param validateNonce
|
|
35381
35465
|
* @returns
|
|
35382
35466
|
*/
|
|
35383
|
-
async handleCodeResponseFromServer(authCodeResponse, request, validateNonce = true) {
|
|
35467
|
+
async handleCodeResponseFromServer(authCodeResponse, request, apiId, validateNonce = true) {
|
|
35384
35468
|
this.logger.trace("0mf2hb", request.correlationId);
|
|
35385
35469
|
// Assign code to request
|
|
35386
35470
|
this.authCodeRequest.code = authCodeResponse.code;
|
|
@@ -35401,7 +35485,7 @@ class InteractionHandler {
|
|
|
35401
35485
|
}
|
|
35402
35486
|
}
|
|
35403
35487
|
// Acquire token with retrieved code.
|
|
35404
|
-
const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, authCodeResponse));
|
|
35488
|
+
const tokenResponse = (await invokeAsync(this.authModule.acquireToken.bind(this.authModule), AuthClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(this.authCodeRequest, apiId, authCodeResponse));
|
|
35405
35489
|
return tokenResponse;
|
|
35406
35490
|
}
|
|
35407
35491
|
/**
|
|
@@ -35424,7 +35508,7 @@ class InteractionHandler {
|
|
|
35424
35508
|
}
|
|
35425
35509
|
}
|
|
35426
35510
|
|
|
35427
|
-
/*! @azure/msal-browser v5.0
|
|
35511
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35428
35512
|
/*
|
|
35429
35513
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
35430
35514
|
* Licensed under the MIT License.
|
|
@@ -35433,7 +35517,7 @@ const contentError = "ContentError";
|
|
|
35433
35517
|
const pageException = "PageException";
|
|
35434
35518
|
const userSwitch = "user_switch";
|
|
35435
35519
|
|
|
35436
|
-
/*! @azure/msal-browser v5.0
|
|
35520
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35437
35521
|
/*
|
|
35438
35522
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
35439
35523
|
* Licensed under the MIT License.
|
|
@@ -35447,7 +35531,7 @@ const DISABLED = "DISABLED";
|
|
|
35447
35531
|
const ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE";
|
|
35448
35532
|
const UX_NOT_ALLOWED = "UX_NOT_ALLOWED";
|
|
35449
35533
|
|
|
35450
|
-
/*! @azure/msal-browser v5.0
|
|
35534
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35451
35535
|
|
|
35452
35536
|
/*
|
|
35453
35537
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35510,7 +35594,7 @@ function createNativeAuthError(code, description, ext) {
|
|
|
35510
35594
|
return new NativeAuthError(code, description, ext);
|
|
35511
35595
|
}
|
|
35512
35596
|
|
|
35513
|
-
/*! @azure/msal-browser v5.0
|
|
35597
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35514
35598
|
|
|
35515
35599
|
/*
|
|
35516
35600
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35559,7 +35643,7 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
35559
35643
|
}
|
|
35560
35644
|
}
|
|
35561
35645
|
|
|
35562
|
-
/*! @azure/msal-browser v5.0
|
|
35646
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
35563
35647
|
|
|
35564
35648
|
/*
|
|
35565
35649
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -35942,7 +36026,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
35942
36026
|
*/
|
|
35943
36027
|
async cacheAccount(accountEntity, kmsi) {
|
|
35944
36028
|
// Store the account info and hence `nativeAccountId` in browser cache
|
|
35945
|
-
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi);
|
|
36029
|
+
await this.browserStorage.setAccount(accountEntity, this.correlationId, kmsi, this.apiId);
|
|
35946
36030
|
// Remove any existing cached tokens for this account in browser storage
|
|
35947
36031
|
this.browserStorage.removeAccountContext(getAccountInfo(accountEntity), this.correlationId);
|
|
35948
36032
|
}
|
|
@@ -35971,7 +36055,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
35971
36055
|
idToken: cachedIdToken,
|
|
35972
36056
|
accessToken: cachedAccessToken,
|
|
35973
36057
|
};
|
|
35974
|
-
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), request.storeInCache);
|
|
36058
|
+
return this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, this.correlationId, isKmsi(idTokenClaims), this.apiId, request.storeInCache);
|
|
35975
36059
|
}
|
|
35976
36060
|
getExpiresInValue(tokenType, expiresIn) {
|
|
35977
36061
|
return tokenType === AuthenticationScheme.POP
|
|
@@ -36170,7 +36254,7 @@ class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
36170
36254
|
}
|
|
36171
36255
|
}
|
|
36172
36256
|
|
|
36173
|
-
/*! @azure/msal-browser v5.0
|
|
36257
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36174
36258
|
|
|
36175
36259
|
/*
|
|
36176
36260
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36258,6 +36342,8 @@ async function getEARForm(frame, config, authority, request, logger, performance
|
|
|
36258
36342
|
});
|
|
36259
36343
|
const queryParams = new Map();
|
|
36260
36344
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
36345
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
36346
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
36261
36347
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
36262
36348
|
return createForm(frame, url, parameters);
|
|
36263
36349
|
}
|
|
@@ -36275,6 +36361,8 @@ async function getCodeForm(frame, config, authority, request, logger, performanc
|
|
|
36275
36361
|
// Add extraQueryParameters to be appended to request URL
|
|
36276
36362
|
const queryParams = new Map();
|
|
36277
36363
|
addExtraParameters(queryParams, request.extraQueryParameters || {});
|
|
36364
|
+
// Add correlationId to query params so gateway can propagate it to IDPs
|
|
36365
|
+
addCorrelationId(queryParams, request.correlationId);
|
|
36278
36366
|
const url = getAuthorizeUrl(authority, queryParams);
|
|
36279
36367
|
return createForm(frame, url, parameters);
|
|
36280
36368
|
}
|
|
@@ -36352,7 +36440,7 @@ async function handleResponseCode(request, response, codeVerifier, apiId, config
|
|
|
36352
36440
|
// Create popup interaction handler.
|
|
36353
36441
|
const interactionHandler = new InteractionHandler(authClient, browserStorage, authCodeRequest, logger, performanceClient);
|
|
36354
36442
|
// Handle response from hash string.
|
|
36355
|
-
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request);
|
|
36443
|
+
const result = await invokeAsync(interactionHandler.handleCodeResponse.bind(interactionHandler), HandleCodeResponse, logger, performanceClient, request.correlationId)(response, request, apiId);
|
|
36356
36444
|
return result;
|
|
36357
36445
|
}
|
|
36358
36446
|
/**
|
|
@@ -36399,10 +36487,10 @@ async function handleResponseEAR(request, response, apiId, config, authority, br
|
|
|
36399
36487
|
cloud_instance_name: decryptedData.cloud_instance_name,
|
|
36400
36488
|
msgraph_host: decryptedData.msgraph_host,
|
|
36401
36489
|
};
|
|
36402
|
-
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, additionalData, undefined, undefined, undefined, undefined));
|
|
36490
|
+
return (await invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, logger, performanceClient, request.correlationId)(decryptedData, authority, nowSeconds(), request, apiId, additionalData, undefined, undefined, undefined, undefined));
|
|
36403
36491
|
}
|
|
36404
36492
|
|
|
36405
|
-
/*! @azure/msal-browser v5.0
|
|
36493
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36406
36494
|
|
|
36407
36495
|
/*
|
|
36408
36496
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36457,7 +36545,7 @@ async function generateCodeChallengeFromVerifier(pkceCodeVerifier, performanceCl
|
|
|
36457
36545
|
}
|
|
36458
36546
|
}
|
|
36459
36547
|
|
|
36460
|
-
/*! @azure/msal-browser v5.0
|
|
36548
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36461
36549
|
|
|
36462
36550
|
/*
|
|
36463
36551
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36500,7 +36588,7 @@ class NavigationClient {
|
|
|
36500
36588
|
}
|
|
36501
36589
|
}
|
|
36502
36590
|
|
|
36503
|
-
/*! @azure/msal-browser v5.0
|
|
36591
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36504
36592
|
|
|
36505
36593
|
/*
|
|
36506
36594
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36621,7 +36709,7 @@ function getHeaderDict(headers) {
|
|
|
36621
36709
|
}
|
|
36622
36710
|
}
|
|
36623
36711
|
|
|
36624
|
-
/*! @azure/msal-browser v5.0
|
|
36712
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36625
36713
|
|
|
36626
36714
|
/*
|
|
36627
36715
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -36740,7 +36828,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
36740
36828
|
return overlayedConfig;
|
|
36741
36829
|
}
|
|
36742
36830
|
|
|
36743
|
-
/*! @azure/msal-browser v5.0
|
|
36831
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
36744
36832
|
|
|
36745
36833
|
/*
|
|
36746
36834
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -37001,7 +37089,7 @@ class PlatformAuthExtensionHandler {
|
|
|
37001
37089
|
}
|
|
37002
37090
|
}
|
|
37003
37091
|
|
|
37004
|
-
/*! @azure/msal-browser v5.0
|
|
37092
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
37005
37093
|
|
|
37006
37094
|
/*
|
|
37007
37095
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -37136,7 +37224,7 @@ class PlatformAuthDOMHandler {
|
|
|
37136
37224
|
}
|
|
37137
37225
|
}
|
|
37138
37226
|
|
|
37139
|
-
/*! @azure/msal-browser v5.0
|
|
37227
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
37140
37228
|
async function getPlatformAuthProvider(logger, performanceClient, correlationId, nativeBrokerHandshakeTimeout) {
|
|
37141
37229
|
logger.trace("134j0v", correlationId);
|
|
37142
37230
|
const enablePlatformBrokerDOMSupport = isDomEnabledForPlatformAuth();
|
|
@@ -37213,7 +37301,7 @@ function isPlatformAuthAllowed(config, logger, correlationId, platformAuthProvid
|
|
|
37213
37301
|
return true;
|
|
37214
37302
|
}
|
|
37215
37303
|
|
|
37216
|
-
/*! @azure/msal-browser v5.0
|
|
37304
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
37217
37305
|
|
|
37218
37306
|
/*
|
|
37219
37307
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -37355,7 +37443,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37355
37443
|
const navigateUrl = await invokeAsync(getAuthCodeRequestUrl, GetAuthCodeUrl, this.logger, this.performanceClient, correlationId)(this.config, authClient.authority, popupRequest, this.logger, this.performanceClient);
|
|
37356
37444
|
// Show the UI once the url has been created. Get the window handle for the popup.
|
|
37357
37445
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParams);
|
|
37358
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
37446
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, correlationId, InteractionType.Popup, { popupWindow }, null);
|
|
37359
37447
|
// Wait for the redirect bridge response
|
|
37360
37448
|
const responseString = await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, request);
|
|
37361
37449
|
const serverParams = invoke(deserializeResponse, DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.responseMode, this.logger, this.correlationId);
|
|
@@ -37432,7 +37520,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37432
37520
|
*/
|
|
37433
37521
|
async logoutPopupAsync(validRequest, popupParams, requestAuthority, mainWindowRedirectUri) {
|
|
37434
37522
|
this.logger.verbose("0b7yrk", this.correlationId);
|
|
37435
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Popup, validRequest);
|
|
37523
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, InteractionType.Popup, validRequest);
|
|
37436
37524
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logoutPopup, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
37437
37525
|
try {
|
|
37438
37526
|
// Clear cache on logout
|
|
@@ -37450,7 +37538,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37450
37538
|
if (validRequest.account?.homeAccountId &&
|
|
37451
37539
|
validRequest.postLogoutRedirectUri &&
|
|
37452
37540
|
authClient.authority.protocolMode === ProtocolMode.OIDC) {
|
|
37453
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Popup, validRequest);
|
|
37541
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, InteractionType.Popup, validRequest);
|
|
37454
37542
|
if (mainWindowRedirectUri) {
|
|
37455
37543
|
const navigationOptions = {
|
|
37456
37544
|
apiId: ApiId.logoutPopup,
|
|
@@ -37466,10 +37554,10 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37466
37554
|
}
|
|
37467
37555
|
// Create logout string and navigate user window to logout.
|
|
37468
37556
|
const logoutUri = authClient.getLogoutUri(validRequest);
|
|
37469
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Popup, validRequest);
|
|
37557
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, validRequest.correlationId, InteractionType.Popup, validRequest);
|
|
37470
37558
|
// Open the popup window to requestUrl.
|
|
37471
37559
|
const popupWindow = this.openPopup(logoutUri, popupParams);
|
|
37472
|
-
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
37560
|
+
this.eventHandler.emitEvent(EventType.POPUP_OPENED, validRequest.correlationId, InteractionType.Popup, { popupWindow }, null);
|
|
37473
37561
|
await waitForBridgeResponse(this.config.system.popupBridgeTimeout, this.logger, this.browserCrypto, validRequest).catch(() => {
|
|
37474
37562
|
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
37475
37563
|
});
|
|
@@ -37495,11 +37583,11 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37495
37583
|
e.setCorrelationId(this.correlationId);
|
|
37496
37584
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
37497
37585
|
}
|
|
37498
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Popup, null, e);
|
|
37499
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);
|
|
37586
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, InteractionType.Popup, null, e);
|
|
37587
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Popup);
|
|
37500
37588
|
throw e;
|
|
37501
37589
|
}
|
|
37502
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Popup);
|
|
37590
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Popup);
|
|
37503
37591
|
}
|
|
37504
37592
|
/**
|
|
37505
37593
|
* Opens a popup window with given request Url.
|
|
@@ -37629,7 +37717,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
37629
37717
|
}
|
|
37630
37718
|
}
|
|
37631
37719
|
|
|
37632
|
-
/*! @azure/msal-browser v5.0
|
|
37720
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
37633
37721
|
|
|
37634
37722
|
/*
|
|
37635
37723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -37664,7 +37752,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
37664
37752
|
if (event.persisted) {
|
|
37665
37753
|
this.logger.verbose("0udvtt", this.correlationId);
|
|
37666
37754
|
this.browserStorage.resetRequestCache(this.correlationId);
|
|
37667
|
-
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, InteractionType.Redirect);
|
|
37755
|
+
this.eventHandler.emitEvent(EventType.RESTORE_FROM_BFCACHE, this.correlationId, InteractionType.Redirect);
|
|
37668
37756
|
}
|
|
37669
37757
|
};
|
|
37670
37758
|
const redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
|
|
@@ -37981,7 +38069,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
37981
38069
|
const validLogoutRequest = this.initializeLogoutRequest(logoutRequest);
|
|
37982
38070
|
const serverTelemetryManager = initializeServerTelemetryManager(ApiId.logout, this.config.auth.clientId, this.correlationId, this.browserStorage, this.logger);
|
|
37983
38071
|
try {
|
|
37984
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_START, InteractionType.Redirect, logoutRequest);
|
|
38072
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_START, this.correlationId, InteractionType.Redirect, logoutRequest);
|
|
37985
38073
|
// Clear cache on logout
|
|
37986
38074
|
await clearCacheOnLogout(this.browserStorage, this.browserCrypto, this.logger, this.correlationId, validLogoutRequest.account);
|
|
37987
38075
|
const navigationOptions = {
|
|
@@ -38001,7 +38089,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
38001
38089
|
}
|
|
38002
38090
|
catch {
|
|
38003
38091
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
38004
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Redirect, validLogoutRequest);
|
|
38092
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, InteractionType.Redirect, validLogoutRequest);
|
|
38005
38093
|
return;
|
|
38006
38094
|
}
|
|
38007
38095
|
}
|
|
@@ -38009,7 +38097,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
38009
38097
|
// Create logout string and navigate user window to logout.
|
|
38010
38098
|
const logoutUri = authClient.getLogoutUri(validLogoutRequest);
|
|
38011
38099
|
if (validLogoutRequest.account?.homeAccountId) {
|
|
38012
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, InteractionType.Redirect, validLogoutRequest);
|
|
38100
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_SUCCESS, this.correlationId, InteractionType.Redirect, validLogoutRequest);
|
|
38013
38101
|
}
|
|
38014
38102
|
// Check if onRedirectNavigate is implemented, and invoke it if so
|
|
38015
38103
|
const onRedirectNavigate = this.config.auth.onRedirectNavigate;
|
|
@@ -38044,11 +38132,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
38044
38132
|
e.setCorrelationId(this.correlationId);
|
|
38045
38133
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
38046
38134
|
}
|
|
38047
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, InteractionType.Redirect, null, e);
|
|
38048
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);
|
|
38135
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_FAILURE, this.correlationId, InteractionType.Redirect, null, e);
|
|
38136
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Redirect);
|
|
38049
38137
|
throw e;
|
|
38050
38138
|
}
|
|
38051
|
-
this.eventHandler.emitEvent(EventType.LOGOUT_END, InteractionType.Redirect);
|
|
38139
|
+
this.eventHandler.emitEvent(EventType.LOGOUT_END, this.correlationId, InteractionType.Redirect);
|
|
38052
38140
|
}
|
|
38053
38141
|
/**
|
|
38054
38142
|
* Use to get the redirectStartPage either from request or use current window
|
|
@@ -38060,7 +38148,7 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
38060
38148
|
}
|
|
38061
38149
|
}
|
|
38062
38150
|
|
|
38063
|
-
/*! @azure/msal-browser v5.0
|
|
38151
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38064
38152
|
|
|
38065
38153
|
/*
|
|
38066
38154
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38127,7 +38215,7 @@ function createHiddenIframe() {
|
|
|
38127
38215
|
return authFrame;
|
|
38128
38216
|
}
|
|
38129
38217
|
|
|
38130
|
-
/*! @azure/msal-browser v5.0
|
|
38218
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38131
38219
|
|
|
38132
38220
|
/*
|
|
38133
38221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38279,7 +38367,7 @@ class SilentIframeClient extends StandardInteractionClient {
|
|
|
38279
38367
|
}
|
|
38280
38368
|
}
|
|
38281
38369
|
|
|
38282
|
-
/*! @azure/msal-browser v5.0
|
|
38370
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38283
38371
|
|
|
38284
38372
|
/*
|
|
38285
38373
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38308,7 +38396,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
38308
38396
|
account: silentRequest.account,
|
|
38309
38397
|
});
|
|
38310
38398
|
// Send request to renew token. Auth module will throw errors if token cannot be renewed.
|
|
38311
|
-
return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest).catch((e) => {
|
|
38399
|
+
return invokeAsync(refreshTokenClient.acquireTokenByRefreshToken.bind(refreshTokenClient), RefreshTokenClientAcquireTokenByRefreshToken, this.logger, this.performanceClient, request.correlationId)(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch((e) => {
|
|
38312
38400
|
e.setCorrelationId(this.correlationId);
|
|
38313
38401
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
38314
38402
|
throw e;
|
|
@@ -38344,7 +38432,7 @@ class SilentRefreshClient extends StandardInteractionClient {
|
|
|
38344
38432
|
}
|
|
38345
38433
|
}
|
|
38346
38434
|
|
|
38347
|
-
/*! @azure/msal-browser v5.0
|
|
38435
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38348
38436
|
|
|
38349
38437
|
/*
|
|
38350
38438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38357,7 +38445,7 @@ class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
|
|
|
38357
38445
|
}
|
|
38358
38446
|
}
|
|
38359
38447
|
|
|
38360
|
-
/*! @azure/msal-browser v5.0
|
|
38448
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38361
38449
|
|
|
38362
38450
|
/*
|
|
38363
38451
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38409,7 +38497,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
38409
38497
|
msgraph_host: request.msGraphHost,
|
|
38410
38498
|
cloud_graph_host_name: request.cloudGraphHostName,
|
|
38411
38499
|
cloud_instance_host_name: request.cloudInstanceHostName,
|
|
38412
|
-
}, silentRequest, false);
|
|
38500
|
+
}, silentRequest, this.apiId, false);
|
|
38413
38501
|
}
|
|
38414
38502
|
catch (e) {
|
|
38415
38503
|
if (e instanceof AuthError) {
|
|
@@ -38428,7 +38516,7 @@ class SilentAuthCodeClient extends StandardInteractionClient {
|
|
|
38428
38516
|
}
|
|
38429
38517
|
}
|
|
38430
38518
|
|
|
38431
|
-
/*! @azure/msal-browser v5.0
|
|
38519
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38432
38520
|
/*
|
|
38433
38521
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
38434
38522
|
* Licensed under the MIT License.
|
|
@@ -38448,7 +38536,7 @@ function collectInstanceStats(currentClientId, performanceEvent, logger, correla
|
|
|
38448
38536
|
});
|
|
38449
38537
|
}
|
|
38450
38538
|
|
|
38451
|
-
/*! @azure/msal-browser v5.0
|
|
38539
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
38452
38540
|
|
|
38453
38541
|
/*
|
|
38454
38542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -38552,23 +38640,22 @@ class StandardController {
|
|
|
38552
38640
|
if (!this.isBrowserEnvironment) {
|
|
38553
38641
|
this.logger.info("19fvpi", correlationId);
|
|
38554
38642
|
this.initialized = true;
|
|
38555
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
38643
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
38556
38644
|
return;
|
|
38557
38645
|
}
|
|
38558
|
-
const initCorrelationId = request?.correlationId || this.getRequestCorrelationId();
|
|
38559
38646
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
38560
|
-
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication,
|
|
38561
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
38647
|
+
const initMeasurement = this.performanceClient.startMeasurement(InitializeClientApplication, correlationId);
|
|
38648
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_START, correlationId);
|
|
38562
38649
|
// Broker applications are initialized twice, so we avoid double-counting it
|
|
38563
|
-
this.logMultipleInstances(initMeasurement,
|
|
38564
|
-
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient,
|
|
38650
|
+
this.logMultipleInstances(initMeasurement, correlationId);
|
|
38651
|
+
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), InitializeCache, this.logger, this.performanceClient, correlationId)(correlationId);
|
|
38565
38652
|
if (allowPlatformBroker) {
|
|
38566
38653
|
try {
|
|
38567
38654
|
// check if platform authentication is available via DOM or browser extension and create relevant handlers
|
|
38568
|
-
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient,
|
|
38655
|
+
this.platformAuthProvider = await getPlatformAuthProvider(this.logger, this.performanceClient, correlationId, this.config.system.nativeBrokerHandshakeTimeout);
|
|
38569
38656
|
}
|
|
38570
38657
|
catch (e) {
|
|
38571
|
-
this.logger.verbose(e,
|
|
38658
|
+
this.logger.verbose(e, correlationId);
|
|
38572
38659
|
}
|
|
38573
38660
|
}
|
|
38574
38661
|
if (this.config.cache.cacheLocation ===
|
|
@@ -38576,9 +38663,9 @@ class StandardController {
|
|
|
38576
38663
|
this.eventHandler.subscribeCrossTab();
|
|
38577
38664
|
}
|
|
38578
38665
|
!this.config.system.navigatePopups &&
|
|
38579
|
-
(await this.preGeneratePkceCodes(
|
|
38666
|
+
(await this.preGeneratePkceCodes(correlationId));
|
|
38580
38667
|
this.initialized = true;
|
|
38581
|
-
this.eventHandler.emitEvent(EventType.INITIALIZE_END);
|
|
38668
|
+
this.eventHandler.emitEvent(EventType.INITIALIZE_END, correlationId);
|
|
38582
38669
|
initMeasurement.end({
|
|
38583
38670
|
allowPlatformBroker: allowPlatformBroker,
|
|
38584
38671
|
success: true,
|
|
@@ -38640,11 +38727,11 @@ class StandardController {
|
|
|
38640
38727
|
this.platformAuthProvider &&
|
|
38641
38728
|
!options?.hash;
|
|
38642
38729
|
let rootMeasurement;
|
|
38643
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, InteractionType.Redirect);
|
|
38644
38730
|
let redirectResponse;
|
|
38645
38731
|
try {
|
|
38646
38732
|
if (useNative && this.platformAuthProvider) {
|
|
38647
38733
|
const correlationId = platformBrokerRequest?.correlationId || "";
|
|
38734
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
38648
38735
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
38649
38736
|
this.logger.trace("12v7is", correlationId);
|
|
38650
38737
|
const nativeClient = new PlatformAuthInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.platformAuthProvider, platformBrokerRequest.accountId, this.nativeInternalStorage, platformBrokerRequest.correlationId);
|
|
@@ -38653,6 +38740,7 @@ class StandardController {
|
|
|
38653
38740
|
else {
|
|
38654
38741
|
const [standardRequest, codeVerifier] = this.browserStorage.getCachedRequest("");
|
|
38655
38742
|
const correlationId = standardRequest.correlationId;
|
|
38743
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, correlationId, InteractionType.Redirect);
|
|
38656
38744
|
// Reset rootMeasurement now that we have correlationId
|
|
38657
38745
|
rootMeasurement = this.performanceClient.startMeasurement(AcquireTokenRedirect, correlationId);
|
|
38658
38746
|
this.logger.trace("0znzs5", correlationId);
|
|
@@ -38668,12 +38756,12 @@ class StandardController {
|
|
|
38668
38756
|
.then((result) => {
|
|
38669
38757
|
if (result) {
|
|
38670
38758
|
this.browserStorage.resetRequestCache(result.correlationId);
|
|
38671
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Redirect, result);
|
|
38759
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, result.correlationId, InteractionType.Redirect, result);
|
|
38672
38760
|
this.logger.verbose("0ui8f5", result.correlationId);
|
|
38673
38761
|
// Emit login event if number of accounts change
|
|
38674
38762
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
38675
38763
|
if (isLoggingIn) {
|
|
38676
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Redirect, result.account);
|
|
38764
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, result.correlationId, InteractionType.Redirect, result.account);
|
|
38677
38765
|
this.logger.verbose("16im3l", result.correlationId);
|
|
38678
38766
|
}
|
|
38679
38767
|
rootMeasurement.end({
|
|
@@ -38692,14 +38780,14 @@ class StandardController {
|
|
|
38692
38780
|
rootMeasurement.discard();
|
|
38693
38781
|
}
|
|
38694
38782
|
}
|
|
38695
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);
|
|
38783
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, InteractionType.Redirect);
|
|
38696
38784
|
return result;
|
|
38697
38785
|
})
|
|
38698
38786
|
.catch((e) => {
|
|
38699
38787
|
this.browserStorage.resetRequestCache(rootMeasurement.event.correlationId);
|
|
38700
38788
|
const eventError = e;
|
|
38701
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, eventError);
|
|
38702
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, InteractionType.Redirect);
|
|
38789
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, rootMeasurement.event.correlationId, InteractionType.Redirect, null, eventError);
|
|
38790
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, rootMeasurement.event.correlationId, InteractionType.Redirect);
|
|
38703
38791
|
rootMeasurement.end({
|
|
38704
38792
|
success: false,
|
|
38705
38793
|
}, eventError);
|
|
@@ -38738,7 +38826,7 @@ class StandardController {
|
|
|
38738
38826
|
try {
|
|
38739
38827
|
redirectPreflightCheck(this.initialized, this.config);
|
|
38740
38828
|
this.browserStorage.setInteractionInProgress(true, INTERACTION_TYPE.SIGNIN);
|
|
38741
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Redirect, request);
|
|
38829
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Redirect, request);
|
|
38742
38830
|
let result;
|
|
38743
38831
|
if (this.platformAuthProvider &&
|
|
38744
38832
|
this.canUsePlatformBroker(request)) {
|
|
@@ -38780,7 +38868,7 @@ class StandardController {
|
|
|
38780
38868
|
else {
|
|
38781
38869
|
atrMeasurement.end({ success: false }, e, request.account);
|
|
38782
38870
|
}
|
|
38783
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Redirect, null, e);
|
|
38871
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Redirect, null, e);
|
|
38784
38872
|
throw e;
|
|
38785
38873
|
}
|
|
38786
38874
|
}
|
|
@@ -38810,7 +38898,7 @@ class StandardController {
|
|
|
38810
38898
|
}
|
|
38811
38899
|
// If logged in, emit acquire token events
|
|
38812
38900
|
const loggedInAccounts = this.getAllAccounts();
|
|
38813
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, request);
|
|
38901
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Popup, request);
|
|
38814
38902
|
let result;
|
|
38815
38903
|
const pkce = this.getPreGeneratedPkceCodes(correlationId);
|
|
38816
38904
|
if (this.canUsePlatformBroker(request)) {
|
|
@@ -38850,9 +38938,9 @@ class StandardController {
|
|
|
38850
38938
|
* If logged in, emit acquire token events
|
|
38851
38939
|
*/
|
|
38852
38940
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
38853
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);
|
|
38941
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Popup, result);
|
|
38854
38942
|
if (isLoggingIn) {
|
|
38855
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Popup, result.account);
|
|
38943
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, InteractionType.Popup, result.account);
|
|
38856
38944
|
}
|
|
38857
38945
|
atPopupMeasurement.end({
|
|
38858
38946
|
success: true,
|
|
@@ -38862,7 +38950,7 @@ class StandardController {
|
|
|
38862
38950
|
return result;
|
|
38863
38951
|
})
|
|
38864
38952
|
.catch((e) => {
|
|
38865
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);
|
|
38953
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Popup, null, e);
|
|
38866
38954
|
atPopupMeasurement.end({
|
|
38867
38955
|
success: false,
|
|
38868
38956
|
}, e, request.account);
|
|
@@ -38922,7 +39010,7 @@ class StandardController {
|
|
|
38922
39010
|
document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement);
|
|
38923
39011
|
const loggedInAccounts = this.getAllAccounts();
|
|
38924
39012
|
this.logger.verbose("0w1b45", correlationId);
|
|
38925
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, validRequest);
|
|
39013
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, validRequest);
|
|
38926
39014
|
let result;
|
|
38927
39015
|
if (this.canUsePlatformBroker(validRequest)) {
|
|
38928
39016
|
result = this.acquireTokenNative(validRequest, ApiId.ssoSilent).catch((e) => {
|
|
@@ -38942,9 +39030,9 @@ class StandardController {
|
|
|
38942
39030
|
return result
|
|
38943
39031
|
.then((response) => {
|
|
38944
39032
|
const isLoggingIn = loggedInAccounts.length < this.getAllAccounts().length;
|
|
38945
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
39033
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Silent, response);
|
|
38946
39034
|
if (isLoggingIn) {
|
|
38947
|
-
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, InteractionType.Silent, response.account);
|
|
39035
|
+
this.eventHandler.emitEvent(EventType.LOGIN_SUCCESS, correlationId, InteractionType.Silent, response.account);
|
|
38948
39036
|
}
|
|
38949
39037
|
this.ssoSilentMeasurement?.end({
|
|
38950
39038
|
success: true,
|
|
@@ -38955,7 +39043,7 @@ class StandardController {
|
|
|
38955
39043
|
return response;
|
|
38956
39044
|
})
|
|
38957
39045
|
.catch((e) => {
|
|
38958
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
39046
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, e);
|
|
38959
39047
|
this.ssoSilentMeasurement?.end({
|
|
38960
39048
|
success: false,
|
|
38961
39049
|
}, e, request.account);
|
|
@@ -38980,7 +39068,7 @@ class StandardController {
|
|
|
38980
39068
|
this.logger.trace("0ch6ga", correlationId);
|
|
38981
39069
|
const atbcMeasurement = this.performanceClient.startMeasurement(AcquireTokenByCode, correlationId);
|
|
38982
39070
|
preflightCheck(this.initialized, atbcMeasurement);
|
|
38983
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
39071
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, correlationId, InteractionType.Silent, request);
|
|
38984
39072
|
atbcMeasurement.add({ scenarioId: request.scenarioId });
|
|
38985
39073
|
try {
|
|
38986
39074
|
if (request.code && request.nativeAccountId) {
|
|
@@ -38997,7 +39085,7 @@ class StandardController {
|
|
|
38997
39085
|
correlationId,
|
|
38998
39086
|
})
|
|
38999
39087
|
.then((result) => {
|
|
39000
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, result);
|
|
39088
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, correlationId, InteractionType.Silent, result);
|
|
39001
39089
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
39002
39090
|
atbcMeasurement.end({
|
|
39003
39091
|
success: true,
|
|
@@ -39009,7 +39097,7 @@ class StandardController {
|
|
|
39009
39097
|
})
|
|
39010
39098
|
.catch((error) => {
|
|
39011
39099
|
this.hybridAuthCodeResponses.delete(hybridAuthCode);
|
|
39012
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, error);
|
|
39100
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, error);
|
|
39013
39101
|
atbcMeasurement.end({
|
|
39014
39102
|
success: false,
|
|
39015
39103
|
}, error);
|
|
@@ -39050,7 +39138,7 @@ class StandardController {
|
|
|
39050
39138
|
}
|
|
39051
39139
|
}
|
|
39052
39140
|
catch (e) {
|
|
39053
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);
|
|
39141
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, correlationId, InteractionType.Silent, null, e);
|
|
39054
39142
|
atbcMeasurement.end({
|
|
39055
39143
|
success: false,
|
|
39056
39144
|
}, e);
|
|
@@ -39225,7 +39313,7 @@ class StandardController {
|
|
|
39225
39313
|
this.logger.verbose("16jycr", result.correlationId);
|
|
39226
39314
|
// Account gets saved to browser storage regardless of native or not
|
|
39227
39315
|
const accountEntity = createAccountEntityFromAccountInfo(result.account, result.cloudGraphHostName, result.msGraphHost);
|
|
39228
|
-
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims));
|
|
39316
|
+
await this.browserStorage.setAccount(accountEntity, result.correlationId, isKmsi(result.idTokenClaims), ApiId.hydrateCache);
|
|
39229
39317
|
if (result.fromPlatformBroker) {
|
|
39230
39318
|
this.logger.verbose("1fxyu8", result.correlationId);
|
|
39231
39319
|
// Tokens from native broker are stored in-memory
|
|
@@ -39552,7 +39640,7 @@ class StandardController {
|
|
|
39552
39640
|
*/
|
|
39553
39641
|
async acquireTokenSilentAsync(request, account) {
|
|
39554
39642
|
const trackPageVisibility = () => this.trackPageVisibility(request.correlationId);
|
|
39555
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, request);
|
|
39643
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, request.correlationId, InteractionType.Silent, request);
|
|
39556
39644
|
if (request.correlationId) {
|
|
39557
39645
|
this.performanceClient.incrementFields({ visibilityChangeCount: 0 }, request.correlationId);
|
|
39558
39646
|
}
|
|
@@ -39562,6 +39650,10 @@ class StandardController {
|
|
|
39562
39650
|
const result = this.acquireTokenSilentNoIframe(silentRequest, cacheLookupPolicy).catch(async (refreshTokenError) => {
|
|
39563
39651
|
const shouldTryToResolveSilently = checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheLookupPolicy);
|
|
39564
39652
|
if (shouldTryToResolveSilently) {
|
|
39653
|
+
const silentRefreshReason = `${refreshTokenError.errorCode}${refreshTokenError.subError
|
|
39654
|
+
? `|${refreshTokenError.subError}`
|
|
39655
|
+
: ""}`;
|
|
39656
|
+
this.performanceClient.addFields({ silentRefreshReason }, request.correlationId);
|
|
39565
39657
|
if (!this.activeIframeRequest) {
|
|
39566
39658
|
let _resolve;
|
|
39567
39659
|
// Always set the active request tracker immediately after checking it to prevent races
|
|
@@ -39620,7 +39712,7 @@ class StandardController {
|
|
|
39620
39712
|
});
|
|
39621
39713
|
return result
|
|
39622
39714
|
.then((response) => {
|
|
39623
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, response);
|
|
39715
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, request.correlationId, InteractionType.Silent, response);
|
|
39624
39716
|
if (request.correlationId) {
|
|
39625
39717
|
this.performanceClient.addFields({
|
|
39626
39718
|
fromCache: response.fromCache,
|
|
@@ -39630,7 +39722,7 @@ class StandardController {
|
|
|
39630
39722
|
return response;
|
|
39631
39723
|
})
|
|
39632
39724
|
.catch((tokenRenewalError) => {
|
|
39633
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, tokenRenewalError);
|
|
39725
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, request.correlationId, InteractionType.Silent, null, tokenRenewalError);
|
|
39634
39726
|
throw tokenRenewalError;
|
|
39635
39727
|
})
|
|
39636
39728
|
.finally(() => {
|
|
@@ -39669,7 +39761,7 @@ class StandardController {
|
|
|
39669
39761
|
if (cacheLookupPolicy === CacheLookupPolicy.AccessToken) {
|
|
39670
39762
|
throw cacheError;
|
|
39671
39763
|
}
|
|
39672
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, InteractionType.Silent, silentRequest);
|
|
39764
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_NETWORK_START, silentRequest.correlationId, InteractionType.Silent, silentRequest);
|
|
39673
39765
|
return invokeAsync(this.acquireTokenByRefreshToken.bind(this), AcquireTokenByRefreshToken, this.logger, this.performanceClient, silentRequest.correlationId)(silentRequest, cacheLookupPolicy);
|
|
39674
39766
|
});
|
|
39675
39767
|
}
|
|
@@ -39744,7 +39836,7 @@ function checkIfRefreshTokenErrorCanBeResolvedSilently(refreshTokenError, cacheL
|
|
|
39744
39836
|
return isSilentlyResolvable && tryIframeRenewal;
|
|
39745
39837
|
}
|
|
39746
39838
|
|
|
39747
|
-
/*! @azure/msal-browser v5.0
|
|
39839
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
39748
39840
|
|
|
39749
39841
|
/*
|
|
39750
39842
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -39841,7 +39933,7 @@ class BaseOperatingContext {
|
|
|
39841
39933
|
}
|
|
39842
39934
|
}
|
|
39843
39935
|
|
|
39844
|
-
/*! @azure/msal-browser v5.0
|
|
39936
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
39845
39937
|
|
|
39846
39938
|
/*
|
|
39847
39939
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -39888,7 +39980,7 @@ StandardOperatingContext.MODULE_NAME = "";
|
|
|
39888
39980
|
*/
|
|
39889
39981
|
StandardOperatingContext.ID = "StandardOperatingContext";
|
|
39890
39982
|
|
|
39891
|
-
/*! @azure/msal-browser v5.0
|
|
39983
|
+
/*! @azure/msal-browser v5.4.0 2026-03-02 */
|
|
39892
39984
|
|
|
39893
39985
|
/*
|
|
39894
39986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -40463,7 +40555,7 @@ const createClientLogCallback = (provider, metadata, scope) => {
|
|
|
40463
40555
|
};
|
|
40464
40556
|
|
|
40465
40557
|
// Generated by genversion.
|
|
40466
|
-
const version$2 = '7.
|
|
40558
|
+
const version$2 = '7.3.1';
|
|
40467
40559
|
|
|
40468
40560
|
/**
|
|
40469
40561
|
* Zod schema for telemetry configuration validation.
|
|
@@ -40568,7 +40660,7 @@ class MsalConfigurator extends BaseConfigBuilder {
|
|
|
40568
40660
|
* This follows Microsoft's standard SPA Auth Code Flow pattern and is compatible with
|
|
40569
40661
|
* MSAL Browser's acquireTokenByCode() method.
|
|
40570
40662
|
*
|
|
40571
|
-
* @param authCode - The authorization code issued by the backend
|
|
40663
|
+
* @param authCode - The authorization code issued by the backend, or undefined to clear/reset it
|
|
40572
40664
|
* @returns The configurator instance for method chaining
|
|
40573
40665
|
*
|
|
40574
40666
|
* @example
|
|
@@ -40576,16 +40668,21 @@ class MsalConfigurator extends BaseConfigBuilder {
|
|
|
40576
40668
|
* // Backend provides auth code in HTML/config
|
|
40577
40669
|
* const config = { auth: { code: getAuthCodeFromBackend() } };
|
|
40578
40670
|
* configurator.setAuthCode(config.auth.code);
|
|
40671
|
+
*
|
|
40672
|
+
* // Clear previously configured auth code
|
|
40673
|
+
* configurator.setAuthCode(undefined);
|
|
40579
40674
|
* ```
|
|
40580
40675
|
*
|
|
40581
40676
|
* @remarks
|
|
40582
40677
|
* - Auth codes are single-use and short-lived (typically 5-10 minutes)
|
|
40583
40678
|
* - The exchange happens during module initialization before requiresAuth check
|
|
40584
40679
|
* - If exchange fails, the provider falls back to standard MSAL authentication flows
|
|
40680
|
+
* - Passing undefined, empty, or whitespace-only values clears the configured auth code
|
|
40585
40681
|
* - Requires backend to be configured with SPA Auth Code support
|
|
40586
40682
|
*/
|
|
40587
40683
|
setAuthCode(authCode) {
|
|
40588
|
-
|
|
40684
|
+
const normalizedAuthCode = authCode?.trim() || undefined;
|
|
40685
|
+
this._set('authCode', async () => normalizedAuthCode);
|
|
40589
40686
|
return this;
|
|
40590
40687
|
}
|
|
40591
40688
|
/**
|
|
@@ -41563,7 +41660,7 @@ class MsalProvider extends BaseModuleProvider {
|
|
|
41563
41660
|
this.#loginHint = config.loginHint;
|
|
41564
41661
|
// Extract auth code from config if present
|
|
41565
41662
|
// This will be used during initialize to exchange for tokens
|
|
41566
|
-
this.#authCode = config.authCode;
|
|
41663
|
+
this.#authCode = config.authCode?.trim() || undefined;
|
|
41567
41664
|
// Validate required client configuration
|
|
41568
41665
|
if (!config.client) {
|
|
41569
41666
|
const error = new Error('Client is required, please provide a valid client in the configuration');
|
|
@@ -44437,7 +44534,7 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
|
|
|
44437
44534
|
}
|
|
44438
44535
|
|
|
44439
44536
|
// Generated by genversion.
|
|
44440
|
-
const version$1 = '9.1.
|
|
44537
|
+
const version$1 = '9.1.1';
|
|
44441
44538
|
|
|
44442
44539
|
class ServiceDiscoveryProvider extends BaseModuleProvider {
|
|
44443
44540
|
config;
|
|
@@ -44956,7 +45053,7 @@ async function registerServiceWorker(framework) {
|
|
|
44956
45053
|
}
|
|
44957
45054
|
|
|
44958
45055
|
// Generated by genversion.
|
|
44959
|
-
const version = '3.1.
|
|
45056
|
+
const version = '3.1.11';
|
|
44960
45057
|
|
|
44961
45058
|
// Allow dynamic import without vite
|
|
44962
45059
|
const importWithoutVite = (path) => import(/* @vite-ignore */ path);
|