@azure/msal-browser 2.26.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts +1 -1
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +16 -3
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.js +2 -2
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.js +2 -1
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.d.ts +4 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +2 -1
- package/dist/config/Configuration.js.map +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/NativeAuthError.d.ts +2 -1
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.js +4 -1
- package/dist/error/NativeAuthError.js.map +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.cjs.js +239 -112
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +3 -2
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +26 -15
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +2 -1
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/lib/msal-browser.js +239 -112
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +42 -40
- package/package.json +2 -2
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.
|
|
1
|
+
/*! @azure/msal-browser v2.27.0 2022-07-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
return ar;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/*! @azure/msal-common v7.
|
|
110
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
111
111
|
/*! *****************************************************************************
|
|
112
112
|
Copyright (c) Microsoft Corporation.
|
|
113
113
|
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
return r;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
/*! @azure/msal-common v7.
|
|
197
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
198
198
|
|
|
199
199
|
/*
|
|
200
200
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -478,6 +478,7 @@
|
|
|
478
478
|
AuthorityMetadataSource["CONFIG"] = "config";
|
|
479
479
|
AuthorityMetadataSource["CACHE"] = "cache";
|
|
480
480
|
AuthorityMetadataSource["NETWORK"] = "network";
|
|
481
|
+
AuthorityMetadataSource["HARDCODED_VALUES"] = "hardcoded_values";
|
|
481
482
|
})(AuthorityMetadataSource || (AuthorityMetadataSource = {}));
|
|
482
483
|
var SERVER_TELEM_CONSTANTS = {
|
|
483
484
|
SCHEMA_VERSION: 5,
|
|
@@ -568,7 +569,7 @@
|
|
|
568
569
|
JsonTypes["Jwk"] = "JWK";
|
|
569
570
|
})(JsonTypes || (JsonTypes = {}));
|
|
570
571
|
|
|
571
|
-
/*! @azure/msal-common v7.
|
|
572
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
572
573
|
|
|
573
574
|
/*
|
|
574
575
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -612,7 +613,7 @@
|
|
|
612
613
|
return AuthError;
|
|
613
614
|
}(Error));
|
|
614
615
|
|
|
615
|
-
/*! @azure/msal-common v7.
|
|
616
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
616
617
|
|
|
617
618
|
/*
|
|
618
619
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -687,7 +688,7 @@
|
|
|
687
688
|
}
|
|
688
689
|
};
|
|
689
690
|
|
|
690
|
-
/*! @azure/msal-common v7.
|
|
691
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
691
692
|
|
|
692
693
|
/*
|
|
693
694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1159,7 +1160,7 @@
|
|
|
1159
1160
|
return ClientAuthError;
|
|
1160
1161
|
}(AuthError));
|
|
1161
1162
|
|
|
1162
|
-
/*! @azure/msal-common v7.
|
|
1163
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1163
1164
|
|
|
1164
1165
|
/*
|
|
1165
1166
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1284,7 +1285,7 @@
|
|
|
1284
1285
|
return StringUtils;
|
|
1285
1286
|
}());
|
|
1286
1287
|
|
|
1287
|
-
/*! @azure/msal-common v7.
|
|
1288
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1288
1289
|
|
|
1289
1290
|
/*
|
|
1290
1291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1464,12 +1465,12 @@
|
|
|
1464
1465
|
return Logger;
|
|
1465
1466
|
}());
|
|
1466
1467
|
|
|
1467
|
-
/*! @azure/msal-common v7.
|
|
1468
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1468
1469
|
/* eslint-disable header/header */
|
|
1469
1470
|
var name$1 = "@azure/msal-common";
|
|
1470
|
-
var version$1 = "7.
|
|
1471
|
+
var version$1 = "7.1.0";
|
|
1471
1472
|
|
|
1472
|
-
/*! @azure/msal-common v7.
|
|
1473
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1473
1474
|
/*
|
|
1474
1475
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1475
1476
|
* Licensed under the MIT License.
|
|
@@ -1490,7 +1491,7 @@
|
|
|
1490
1491
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1491
1492
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1492
1493
|
|
|
1493
|
-
/*! @azure/msal-common v7.
|
|
1494
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1494
1495
|
|
|
1495
1496
|
/*
|
|
1496
1497
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1649,7 +1650,7 @@
|
|
|
1649
1650
|
return CredentialEntity;
|
|
1650
1651
|
}());
|
|
1651
1652
|
|
|
1652
|
-
/*! @azure/msal-common v7.
|
|
1653
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1653
1654
|
|
|
1654
1655
|
/*
|
|
1655
1656
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1904,7 +1905,7 @@
|
|
|
1904
1905
|
return ClientConfigurationError;
|
|
1905
1906
|
}(ClientAuthError));
|
|
1906
1907
|
|
|
1907
|
-
/*! @azure/msal-common v7.
|
|
1908
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
1908
1909
|
|
|
1909
1910
|
/*
|
|
1910
1911
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2088,7 +2089,7 @@
|
|
|
2088
2089
|
return ScopeSet;
|
|
2089
2090
|
}());
|
|
2090
2091
|
|
|
2091
|
-
/*! @azure/msal-common v7.
|
|
2092
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
2092
2093
|
|
|
2093
2094
|
/*
|
|
2094
2095
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2126,7 +2127,7 @@
|
|
|
2126
2127
|
};
|
|
2127
2128
|
}
|
|
2128
2129
|
|
|
2129
|
-
/*! @azure/msal-common v7.
|
|
2130
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
2130
2131
|
/*
|
|
2131
2132
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2132
2133
|
* Licensed under the MIT License.
|
|
@@ -2140,7 +2141,7 @@
|
|
|
2140
2141
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2141
2142
|
})(AuthorityType || (AuthorityType = {}));
|
|
2142
2143
|
|
|
2143
|
-
/*! @azure/msal-common v7.
|
|
2144
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
2144
2145
|
|
|
2145
2146
|
/*
|
|
2146
2147
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2375,7 +2376,7 @@
|
|
|
2375
2376
|
return AccountEntity;
|
|
2376
2377
|
}());
|
|
2377
2378
|
|
|
2378
|
-
/*! @azure/msal-common v7.
|
|
2379
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
2379
2380
|
|
|
2380
2381
|
/*
|
|
2381
2382
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2413,7 +2414,7 @@
|
|
|
2413
2414
|
return AuthToken;
|
|
2414
2415
|
}());
|
|
2415
2416
|
|
|
2416
|
-
/*! @azure/msal-common v7.
|
|
2417
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
2417
2418
|
|
|
2418
2419
|
/*
|
|
2419
2420
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3255,7 +3256,7 @@
|
|
|
3255
3256
|
return DefaultStorageClass;
|
|
3256
3257
|
}(CacheManager));
|
|
3257
3258
|
|
|
3258
|
-
/*! @azure/msal-common v7.
|
|
3259
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3259
3260
|
|
|
3260
3261
|
/*
|
|
3261
3262
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3346,10 +3347,10 @@
|
|
|
3346
3347
|
* @param authOptions
|
|
3347
3348
|
*/
|
|
3348
3349
|
function buildAuthOptions(authOptions) {
|
|
3349
|
-
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS }, authOptions);
|
|
3350
|
+
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3350
3351
|
}
|
|
3351
3352
|
|
|
3352
|
-
/*! @azure/msal-common v7.
|
|
3353
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3353
3354
|
|
|
3354
3355
|
/*
|
|
3355
3356
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3369,7 +3370,7 @@
|
|
|
3369
3370
|
return ServerError;
|
|
3370
3371
|
}(AuthError));
|
|
3371
3372
|
|
|
3372
|
-
/*! @azure/msal-common v7.
|
|
3373
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3373
3374
|
|
|
3374
3375
|
/*
|
|
3375
3376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3465,7 +3466,7 @@
|
|
|
3465
3466
|
return ThrottlingUtils;
|
|
3466
3467
|
}());
|
|
3467
3468
|
|
|
3468
|
-
/*! @azure/msal-common v7.
|
|
3469
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3469
3470
|
|
|
3470
3471
|
/*
|
|
3471
3472
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3514,7 +3515,7 @@
|
|
|
3514
3515
|
return NetworkManager;
|
|
3515
3516
|
}());
|
|
3516
3517
|
|
|
3517
|
-
/*! @azure/msal-common v7.
|
|
3518
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3518
3519
|
/*
|
|
3519
3520
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3520
3521
|
* Licensed under the MIT License.
|
|
@@ -3525,7 +3526,7 @@
|
|
|
3525
3526
|
CcsCredentialType["UPN"] = "UPN";
|
|
3526
3527
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3527
3528
|
|
|
3528
|
-
/*! @azure/msal-common v7.
|
|
3529
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3529
3530
|
|
|
3530
3531
|
/*
|
|
3531
3532
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3614,7 +3615,7 @@
|
|
|
3614
3615
|
return BaseClient;
|
|
3615
3616
|
}());
|
|
3616
3617
|
|
|
3617
|
-
/*! @azure/msal-common v7.
|
|
3618
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3618
3619
|
|
|
3619
3620
|
/*
|
|
3620
3621
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3700,7 +3701,7 @@
|
|
|
3700
3701
|
return RequestValidator;
|
|
3701
3702
|
}());
|
|
3702
3703
|
|
|
3703
|
-
/*! @azure/msal-common v7.
|
|
3704
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
3704
3705
|
|
|
3705
3706
|
/*
|
|
3706
3707
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4078,7 +4079,7 @@
|
|
|
4078
4079
|
return RequestParameterBuilder;
|
|
4079
4080
|
}());
|
|
4080
4081
|
|
|
4081
|
-
/*! @azure/msal-common v7.
|
|
4082
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4082
4083
|
|
|
4083
4084
|
/*
|
|
4084
4085
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4142,7 +4143,7 @@
|
|
|
4142
4143
|
return IdTokenEntity;
|
|
4143
4144
|
}(CredentialEntity));
|
|
4144
4145
|
|
|
4145
|
-
/*! @azure/msal-common v7.
|
|
4146
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4146
4147
|
/*
|
|
4147
4148
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4148
4149
|
* Licensed under the MIT License.
|
|
@@ -4192,7 +4193,7 @@
|
|
|
4192
4193
|
return TimeUtils;
|
|
4193
4194
|
}());
|
|
4194
4195
|
|
|
4195
|
-
/*! @azure/msal-common v7.
|
|
4196
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4196
4197
|
|
|
4197
4198
|
/*
|
|
4198
4199
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4306,7 +4307,7 @@
|
|
|
4306
4307
|
return AccessTokenEntity;
|
|
4307
4308
|
}(CredentialEntity));
|
|
4308
4309
|
|
|
4309
|
-
/*! @azure/msal-common v7.
|
|
4310
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4310
4311
|
|
|
4311
4312
|
/*
|
|
4312
4313
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4373,7 +4374,7 @@
|
|
|
4373
4374
|
return RefreshTokenEntity;
|
|
4374
4375
|
}(CredentialEntity));
|
|
4375
4376
|
|
|
4376
|
-
/*! @azure/msal-common v7.
|
|
4377
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4377
4378
|
|
|
4378
4379
|
/*
|
|
4379
4380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4401,6 +4402,10 @@
|
|
|
4401
4402
|
noTokensFoundError: {
|
|
4402
4403
|
code: "no_tokens_found",
|
|
4403
4404
|
desc: "No refresh token found in the cache. Please sign-in."
|
|
4405
|
+
},
|
|
4406
|
+
native_account_unavailable: {
|
|
4407
|
+
code: "native_account_unavailable",
|
|
4408
|
+
desc: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."
|
|
4404
4409
|
}
|
|
4405
4410
|
};
|
|
4406
4411
|
/**
|
|
@@ -4434,10 +4439,17 @@
|
|
|
4434
4439
|
InteractionRequiredAuthError.createNoTokensFoundError = function () {
|
|
4435
4440
|
return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.noTokensFoundError.code, InteractionRequiredAuthErrorMessage.noTokensFoundError.desc);
|
|
4436
4441
|
};
|
|
4442
|
+
/**
|
|
4443
|
+
* Creates an error thrown when the native broker returns ACCOUNT_UNAVAILABLE status, indicating that the account was removed and interactive sign-in is required
|
|
4444
|
+
* @returns
|
|
4445
|
+
*/
|
|
4446
|
+
InteractionRequiredAuthError.createNativeAccountUnavailableError = function () {
|
|
4447
|
+
return new InteractionRequiredAuthError(InteractionRequiredAuthErrorMessage.native_account_unavailable.code, InteractionRequiredAuthErrorMessage.native_account_unavailable.desc);
|
|
4448
|
+
};
|
|
4437
4449
|
return InteractionRequiredAuthError;
|
|
4438
4450
|
}(AuthError));
|
|
4439
4451
|
|
|
4440
|
-
/*! @azure/msal-common v7.
|
|
4452
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4441
4453
|
/*
|
|
4442
4454
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4443
4455
|
* Licensed under the MIT License.
|
|
@@ -4453,7 +4465,7 @@
|
|
|
4453
4465
|
return CacheRecord;
|
|
4454
4466
|
}());
|
|
4455
4467
|
|
|
4456
|
-
/*! @azure/msal-common v7.
|
|
4468
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4457
4469
|
|
|
4458
4470
|
/*
|
|
4459
4471
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4524,7 +4536,7 @@
|
|
|
4524
4536
|
return ProtocolUtils;
|
|
4525
4537
|
}());
|
|
4526
4538
|
|
|
4527
|
-
/*! @azure/msal-common v7.
|
|
4539
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4528
4540
|
|
|
4529
4541
|
/*
|
|
4530
4542
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4725,7 +4737,7 @@
|
|
|
4725
4737
|
return UrlString;
|
|
4726
4738
|
}());
|
|
4727
4739
|
|
|
4728
|
-
/*! @azure/msal-common v7.
|
|
4740
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4729
4741
|
|
|
4730
4742
|
/*
|
|
4731
4743
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4826,7 +4838,7 @@
|
|
|
4826
4838
|
return PopTokenGenerator;
|
|
4827
4839
|
}());
|
|
4828
4840
|
|
|
4829
|
-
/*! @azure/msal-common v7.
|
|
4841
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4830
4842
|
|
|
4831
4843
|
/*
|
|
4832
4844
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4896,7 +4908,7 @@
|
|
|
4896
4908
|
return AppMetadataEntity;
|
|
4897
4909
|
}());
|
|
4898
4910
|
|
|
4899
|
-
/*! @azure/msal-common v7.
|
|
4911
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4900
4912
|
/*
|
|
4901
4913
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4902
4914
|
* Licensed under the MIT License.
|
|
@@ -4932,7 +4944,7 @@
|
|
|
4932
4944
|
return TokenCacheContext;
|
|
4933
4945
|
}());
|
|
4934
4946
|
|
|
4935
|
-
/*! @azure/msal-common v7.
|
|
4947
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
4936
4948
|
|
|
4937
4949
|
/*
|
|
4938
4950
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5202,7 +5214,7 @@
|
|
|
5202
5214
|
return ResponseHandler;
|
|
5203
5215
|
}());
|
|
5204
5216
|
|
|
5205
|
-
/*! @azure/msal-common v7.
|
|
5217
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5206
5218
|
|
|
5207
5219
|
/*
|
|
5208
5220
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5637,7 +5649,7 @@
|
|
|
5637
5649
|
return AuthorizationCodeClient;
|
|
5638
5650
|
}(BaseClient));
|
|
5639
5651
|
|
|
5640
|
-
/*! @azure/msal-common v7.
|
|
5652
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5641
5653
|
|
|
5642
5654
|
/*
|
|
5643
5655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5850,7 +5862,7 @@
|
|
|
5850
5862
|
return RefreshTokenClient;
|
|
5851
5863
|
}(BaseClient));
|
|
5852
5864
|
|
|
5853
|
-
/*! @azure/msal-common v7.
|
|
5865
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5854
5866
|
|
|
5855
5867
|
/*
|
|
5856
5868
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5966,7 +5978,7 @@
|
|
|
5966
5978
|
return SilentFlowClient;
|
|
5967
5979
|
}(BaseClient));
|
|
5968
5980
|
|
|
5969
|
-
/*! @azure/msal-common v7.
|
|
5981
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5970
5982
|
/*
|
|
5971
5983
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5972
5984
|
* Licensed under the MIT License.
|
|
@@ -5974,10 +5986,20 @@
|
|
|
5974
5986
|
function isOpenIdConfigResponse(response) {
|
|
5975
5987
|
return (response.hasOwnProperty("authorization_endpoint") &&
|
|
5976
5988
|
response.hasOwnProperty("token_endpoint") &&
|
|
5977
|
-
response.hasOwnProperty("issuer")
|
|
5989
|
+
response.hasOwnProperty("issuer") &&
|
|
5990
|
+
response.hasOwnProperty("jwks_uri"));
|
|
5978
5991
|
}
|
|
5979
5992
|
|
|
5980
|
-
/*! @azure/msal-common v7.
|
|
5993
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5994
|
+
/*
|
|
5995
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5996
|
+
* Licensed under the MIT License.
|
|
5997
|
+
*/
|
|
5998
|
+
var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/common/": { "token_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/common/": { "token_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/common/": { "token_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/common/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/common/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/common/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/consumers/": { "token_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/consumers/": { "token_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/consumers/": { "token_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/consumers/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/consumers/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/consumers/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" }, "https://login.microsoftonline.com/organizations/": { "token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.com/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.com/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.com", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pas.windows.net" }, "https://login.chinacloudapi.cn/organizations/": { "token_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.partner.microsoftonline.cn/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo", "authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.chinacloudapi.cn/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "partner.microsoftonline.cn", "cloud_graph_host_name": "graph.chinacloudapi.cn", "msgraph_host": "microsoftgraph.chinacloudapi.cn", "rbac_url": "https://pas.chinacloudapi.cn" }, "https://login.microsoftonline.us/organizations/": { "token_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": ["client_secret_post", "private_key_jwt", "client_secret_basic"], "jwks_uri": "https://login.microsoftonline.us/organizations/discovery/v2.0/keys", "response_modes_supported": ["query", "fragment", "form_post"], "subject_types_supported": ["pairwise"], "id_token_signing_alg_values_supported": ["RS256"], "response_types_supported": ["code", "id_token", "code id_token", "id_token token"], "scopes_supported": ["openid", "profile", "email", "offline_access"], "issuer": "https://login.microsoftonline.us/{tenantid}/v2.0", "request_uri_parameter_supported": false, "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", "authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize", "device_authorization_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, "end_session_endpoint": "https://login.microsoftonline.us/organizations/oauth2/v2.0/logout", "claims_supported": ["sub", "iss", "cloud_instance_name", "cloud_instance_host_name", "cloud_graph_host_name", "msgraph_host", "aud", "exp", "iat", "auth_time", "acr", "nonce", "preferred_username", "name", "tid", "ver", "at_hash", "c_hash", "email"], "kerberos_endpoint": "https://login.microsoftonline.us/organizations/kerberos", "tenant_region_scope": null, "cloud_instance_name": "microsoftonline.us", "cloud_graph_host_name": "graph.windows.net", "msgraph_host": "graph.microsoft.com", "rbac_url": "https://pasff.usgovcloudapi.net" } }, "instanceDiscoveryMetadata": { "https://login.microsoftonline.com/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/common/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/common/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/consumers/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/consumers/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.com/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.chinacloudapi.cn/organizations/": { "tenant_discovery_endpoint": "https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] }, "https://login.microsoftonline.us/organizations/": { "tenant_discovery_endpoint": "https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration", "api-version": "1.1", "metadata": [{ "preferred_network": "login.microsoftonline.com", "preferred_cache": "login.windows.net", "aliases": ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }, { "preferred_network": "login.partner.microsoftonline.cn", "preferred_cache": "login.partner.microsoftonline.cn", "aliases": ["login.partner.microsoftonline.cn", "login.chinacloudapi.cn"] }, { "preferred_network": "login.microsoftonline.de", "preferred_cache": "login.microsoftonline.de", "aliases": ["login.microsoftonline.de"] }, { "preferred_network": "login.microsoftonline.us", "preferred_cache": "login.microsoftonline.us", "aliases": ["login.microsoftonline.us", "login.usgovcloudapi.net"] }, { "preferred_network": "login-us.microsoftonline.com", "preferred_cache": "login-us.microsoftonline.com", "aliases": ["login-us.microsoftonline.com"] }] } } };
|
|
5999
|
+
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6000
|
+
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6001
|
+
|
|
6002
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5981
6003
|
/*
|
|
5982
6004
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5983
6005
|
* Licensed under the MIT License.
|
|
@@ -5991,7 +6013,7 @@
|
|
|
5991
6013
|
ProtocolMode["OIDC"] = "OIDC";
|
|
5992
6014
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
5993
6015
|
|
|
5994
|
-
/*! @azure/msal-common v7.
|
|
6016
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
5995
6017
|
|
|
5996
6018
|
/*
|
|
5997
6019
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6023,6 +6045,7 @@
|
|
|
6023
6045
|
this.end_session_endpoint = metadata.end_session_endpoint;
|
|
6024
6046
|
this.issuer = metadata.issuer;
|
|
6025
6047
|
this.endpointsFromNetwork = fromNetwork;
|
|
6048
|
+
this.jwks_uri = metadata.jwks_uri;
|
|
6026
6049
|
};
|
|
6027
6050
|
/**
|
|
6028
6051
|
* Save the authority that was used to create this cache entry
|
|
@@ -6061,12 +6084,13 @@
|
|
|
6061
6084
|
entity.hasOwnProperty("issuer") &&
|
|
6062
6085
|
entity.hasOwnProperty("aliasesFromNetwork") &&
|
|
6063
6086
|
entity.hasOwnProperty("endpointsFromNetwork") &&
|
|
6064
|
-
entity.hasOwnProperty("expiresAt")
|
|
6087
|
+
entity.hasOwnProperty("expiresAt") &&
|
|
6088
|
+
entity.hasOwnProperty("jwks_uri"));
|
|
6065
6089
|
};
|
|
6066
6090
|
return AuthorityMetadataEntity;
|
|
6067
6091
|
}());
|
|
6068
6092
|
|
|
6069
|
-
/*! @azure/msal-common v7.
|
|
6093
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6070
6094
|
/*
|
|
6071
6095
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6072
6096
|
* Licensed under the MIT License.
|
|
@@ -6076,7 +6100,7 @@
|
|
|
6076
6100
|
response.hasOwnProperty("metadata"));
|
|
6077
6101
|
}
|
|
6078
6102
|
|
|
6079
|
-
/*! @azure/msal-common v7.
|
|
6103
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6080
6104
|
|
|
6081
6105
|
/*
|
|
6082
6106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6198,7 +6222,7 @@
|
|
|
6198
6222
|
return RegionDiscovery;
|
|
6199
6223
|
}());
|
|
6200
6224
|
|
|
6201
|
-
/*! @azure/msal-common v7.
|
|
6225
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6202
6226
|
|
|
6203
6227
|
/*
|
|
6204
6228
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6383,6 +6407,22 @@
|
|
|
6383
6407
|
enumerable: false,
|
|
6384
6408
|
configurable: true
|
|
6385
6409
|
});
|
|
6410
|
+
Object.defineProperty(Authority.prototype, "jwksUri", {
|
|
6411
|
+
/**
|
|
6412
|
+
* Jwks_uri for token signing keys
|
|
6413
|
+
*/
|
|
6414
|
+
get: function () {
|
|
6415
|
+
if (this.discoveryComplete()) {
|
|
6416
|
+
var endpoint = this.replacePath(this.metadata.jwks_uri);
|
|
6417
|
+
return this.replaceTenant(endpoint);
|
|
6418
|
+
}
|
|
6419
|
+
else {
|
|
6420
|
+
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6421
|
+
}
|
|
6422
|
+
},
|
|
6423
|
+
enumerable: false,
|
|
6424
|
+
configurable: true
|
|
6425
|
+
});
|
|
6386
6426
|
/**
|
|
6387
6427
|
* Replaces tenant in url path with current tenant. Defaults to common.
|
|
6388
6428
|
* @param urlString
|
|
@@ -6466,11 +6506,11 @@
|
|
|
6466
6506
|
* @param metadataEntity
|
|
6467
6507
|
*/
|
|
6468
6508
|
Authority.prototype.updateEndpointMetadata = function (metadataEntity) {
|
|
6469
|
-
var _a;
|
|
6509
|
+
var _a, _b;
|
|
6470
6510
|
return __awaiter(this, void 0, void 0, function () {
|
|
6471
|
-
var metadata,
|
|
6472
|
-
return __generator(this, function (
|
|
6473
|
-
switch (
|
|
6511
|
+
var metadata, harcodedMetadata;
|
|
6512
|
+
return __generator(this, function (_c) {
|
|
6513
|
+
switch (_c.label) {
|
|
6474
6514
|
case 0:
|
|
6475
6515
|
metadata = this.getEndpointMetadataFromConfig();
|
|
6476
6516
|
if (metadata) {
|
|
@@ -6481,41 +6521,30 @@
|
|
|
6481
6521
|
// No need to update
|
|
6482
6522
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
6483
6523
|
}
|
|
6524
|
+
harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
|
|
6484
6525
|
return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];
|
|
6485
6526
|
case 1:
|
|
6486
|
-
metadata =
|
|
6527
|
+
metadata = _c.sent();
|
|
6487
6528
|
if (!metadata) return [3 /*break*/, 4];
|
|
6488
6529
|
if (!((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.azureRegion)) return [3 /*break*/, 3];
|
|
6489
|
-
return [4 /*yield*/, this.
|
|
6530
|
+
return [4 /*yield*/, this.updateMetadataWithRegionalInformation(metadata)];
|
|
6490
6531
|
case 2:
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
? autodetectedRegionName
|
|
6494
|
-
: this.authorityOptions.azureRegionConfiguration.azureRegion;
|
|
6495
|
-
if (this.authorityOptions.azureRegionConfiguration.azureRegion === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
|
|
6496
|
-
this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?
|
|
6497
|
-
RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :
|
|
6498
|
-
RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
|
|
6499
|
-
}
|
|
6500
|
-
else {
|
|
6501
|
-
if (autodetectedRegionName) {
|
|
6502
|
-
this.regionDiscoveryMetadata.region_outcome = (this.authorityOptions.azureRegionConfiguration.azureRegion === autodetectedRegionName) ?
|
|
6503
|
-
RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :
|
|
6504
|
-
RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
|
|
6505
|
-
}
|
|
6506
|
-
else {
|
|
6507
|
-
this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
|
|
6508
|
-
}
|
|
6509
|
-
}
|
|
6510
|
-
if (azureRegion) {
|
|
6511
|
-
this.regionDiscoveryMetadata.region_used = azureRegion;
|
|
6512
|
-
metadata = Authority.replaceWithRegionalInformation(metadata, azureRegion);
|
|
6513
|
-
}
|
|
6514
|
-
_b.label = 3;
|
|
6532
|
+
metadata = _c.sent();
|
|
6533
|
+
_c.label = 3;
|
|
6515
6534
|
case 3:
|
|
6516
6535
|
metadataEntity.updateEndpointMetadata(metadata, true);
|
|
6517
6536
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
6518
|
-
case 4:
|
|
6537
|
+
case 4:
|
|
6538
|
+
if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];
|
|
6539
|
+
if (!((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion)) return [3 /*break*/, 6];
|
|
6540
|
+
return [4 /*yield*/, this.updateMetadataWithRegionalInformation(harcodedMetadata)];
|
|
6541
|
+
case 5:
|
|
6542
|
+
harcodedMetadata = _c.sent();
|
|
6543
|
+
_c.label = 6;
|
|
6544
|
+
case 6:
|
|
6545
|
+
metadataEntity.updateEndpointMetadata(harcodedMetadata, false);
|
|
6546
|
+
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
6547
|
+
case 7: throw ClientAuthError.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);
|
|
6519
6548
|
}
|
|
6520
6549
|
});
|
|
6521
6550
|
});
|
|
@@ -6546,6 +6575,8 @@
|
|
|
6546
6575
|
};
|
|
6547
6576
|
/**
|
|
6548
6577
|
* Gets OAuth endpoints from the given OpenID configuration endpoint.
|
|
6578
|
+
*
|
|
6579
|
+
* @param hasHardcodedMetadata boolean
|
|
6549
6580
|
*/
|
|
6550
6581
|
Authority.prototype.getEndpointMetadataFromNetwork = function () {
|
|
6551
6582
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -6572,6 +6603,54 @@
|
|
|
6572
6603
|
});
|
|
6573
6604
|
});
|
|
6574
6605
|
};
|
|
6606
|
+
/**
|
|
6607
|
+
* Get OAuth endpoints for common authorities.
|
|
6608
|
+
*/
|
|
6609
|
+
Authority.prototype.getEndpointMetadataFromHardcodedValues = function () {
|
|
6610
|
+
if (this.canonicalAuthority in EndpointMetadata) {
|
|
6611
|
+
return EndpointMetadata[this.canonicalAuthority];
|
|
6612
|
+
}
|
|
6613
|
+
return null;
|
|
6614
|
+
};
|
|
6615
|
+
/**
|
|
6616
|
+
* Update the retrieved metadata with regional information.
|
|
6617
|
+
*/
|
|
6618
|
+
Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) {
|
|
6619
|
+
var _a, _b, _c, _d, _e;
|
|
6620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6621
|
+
var autodetectedRegionName, azureRegion;
|
|
6622
|
+
return __generator(this, function (_f) {
|
|
6623
|
+
switch (_f.label) {
|
|
6624
|
+
case 0: return [4 /*yield*/, this.regionDiscovery.detectRegion((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.environmentRegion, this.regionDiscoveryMetadata, this.proxyUrl)];
|
|
6625
|
+
case 1:
|
|
6626
|
+
autodetectedRegionName = _f.sent();
|
|
6627
|
+
azureRegion = ((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
|
|
6628
|
+
? autodetectedRegionName
|
|
6629
|
+
: (_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion;
|
|
6630
|
+
if (((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
|
|
6631
|
+
this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?
|
|
6632
|
+
RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :
|
|
6633
|
+
RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_FAILED;
|
|
6634
|
+
}
|
|
6635
|
+
else {
|
|
6636
|
+
if (autodetectedRegionName) {
|
|
6637
|
+
this.regionDiscoveryMetadata.region_outcome = (((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion) === autodetectedRegionName) ?
|
|
6638
|
+
RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :
|
|
6639
|
+
RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;
|
|
6640
|
+
}
|
|
6641
|
+
else {
|
|
6642
|
+
this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
|
|
6643
|
+
}
|
|
6644
|
+
}
|
|
6645
|
+
if (azureRegion) {
|
|
6646
|
+
this.regionDiscoveryMetadata.region_used = azureRegion;
|
|
6647
|
+
return [2 /*return*/, Authority.replaceWithRegionalInformation(metadata, azureRegion)];
|
|
6648
|
+
}
|
|
6649
|
+
return [2 /*return*/, metadata];
|
|
6650
|
+
}
|
|
6651
|
+
});
|
|
6652
|
+
});
|
|
6653
|
+
};
|
|
6575
6654
|
/**
|
|
6576
6655
|
* Updates the AuthorityMetadataEntity with new aliases, preferred_network and preferred_cache and returns where the information was retrived from
|
|
6577
6656
|
* @param cachedMetadata
|
|
@@ -6579,7 +6658,7 @@
|
|
|
6579
6658
|
*/
|
|
6580
6659
|
Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
|
|
6581
6660
|
return __awaiter(this, void 0, void 0, function () {
|
|
6582
|
-
var metadata;
|
|
6661
|
+
var metadata, harcodedMetadata;
|
|
6583
6662
|
return __generator(this, function (_a) {
|
|
6584
6663
|
switch (_a.label) {
|
|
6585
6664
|
case 0:
|
|
@@ -6593,6 +6672,7 @@
|
|
|
6593
6672
|
// No need to update
|
|
6594
6673
|
return [2 /*return*/, AuthorityMetadataSource.CACHE];
|
|
6595
6674
|
}
|
|
6675
|
+
harcodedMetadata = this.getCloudDiscoveryMetadataFromHarcodedValues();
|
|
6596
6676
|
return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
|
|
6597
6677
|
case 1:
|
|
6598
6678
|
metadata = _a.sent();
|
|
@@ -6600,6 +6680,10 @@
|
|
|
6600
6680
|
metadataEntity.updateCloudDiscoveryMetadata(metadata, true);
|
|
6601
6681
|
return [2 /*return*/, AuthorityMetadataSource.NETWORK];
|
|
6602
6682
|
}
|
|
6683
|
+
if (harcodedMetadata && !this.options.skipAuthorityMetadataCache) {
|
|
6684
|
+
metadataEntity.updateCloudDiscoveryMetadata(harcodedMetadata, false);
|
|
6685
|
+
return [2 /*return*/, AuthorityMetadataSource.HARDCODED_VALUES];
|
|
6686
|
+
}
|
|
6603
6687
|
else {
|
|
6604
6688
|
// Metadata could not be obtained from config, cache or network
|
|
6605
6689
|
throw ClientConfigurationError.createUntrustedAuthorityError();
|
|
@@ -6633,7 +6717,8 @@
|
|
|
6633
6717
|
};
|
|
6634
6718
|
/**
|
|
6635
6719
|
* Called to get metadata from network if CloudDiscoveryMetadata was not populated by config
|
|
6636
|
-
*
|
|
6720
|
+
*
|
|
6721
|
+
* @param hasHardcodedMetadata boolean
|
|
6637
6722
|
*/
|
|
6638
6723
|
Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
|
|
6639
6724
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -6653,7 +6738,9 @@
|
|
|
6653
6738
|
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
|
|
6654
6739
|
case 2:
|
|
6655
6740
|
response = _a.sent();
|
|
6656
|
-
metadata = isCloudInstanceDiscoveryResponse(response.body)
|
|
6741
|
+
metadata = isCloudInstanceDiscoveryResponse(response.body)
|
|
6742
|
+
? response.body.metadata
|
|
6743
|
+
: [];
|
|
6657
6744
|
if (metadata.length === 0) {
|
|
6658
6745
|
// If no metadata is returned, authority is untrusted
|
|
6659
6746
|
return [2 /*return*/, null];
|
|
@@ -6673,6 +6760,15 @@
|
|
|
6673
6760
|
});
|
|
6674
6761
|
});
|
|
6675
6762
|
};
|
|
6763
|
+
/**
|
|
6764
|
+
* Get cloud discovery metadata for common authorities
|
|
6765
|
+
*/
|
|
6766
|
+
Authority.prototype.getCloudDiscoveryMetadataFromHarcodedValues = function () {
|
|
6767
|
+
if (this.canonicalAuthority in InstanceDiscoveryMetadata) {
|
|
6768
|
+
return InstanceDiscoveryMetadata[this.canonicalAuthority];
|
|
6769
|
+
}
|
|
6770
|
+
return null;
|
|
6771
|
+
};
|
|
6676
6772
|
/**
|
|
6677
6773
|
* Helper function to determine if this host is included in the knownAuthorities config option
|
|
6678
6774
|
*/
|
|
@@ -6788,7 +6884,7 @@
|
|
|
6788
6884
|
return Authority;
|
|
6789
6885
|
}());
|
|
6790
6886
|
|
|
6791
|
-
/*! @azure/msal-common v7.
|
|
6887
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6792
6888
|
|
|
6793
6889
|
/*
|
|
6794
6890
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6849,7 +6945,7 @@
|
|
|
6849
6945
|
return AuthorityFactory;
|
|
6850
6946
|
}());
|
|
6851
6947
|
|
|
6852
|
-
/*! @azure/msal-common v7.
|
|
6948
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6853
6949
|
|
|
6854
6950
|
/*
|
|
6855
6951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6880,7 +6976,7 @@
|
|
|
6880
6976
|
return ServerTelemetryEntity;
|
|
6881
6977
|
}());
|
|
6882
6978
|
|
|
6883
|
-
/*! @azure/msal-common v7.
|
|
6979
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6884
6980
|
|
|
6885
6981
|
/*
|
|
6886
6982
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6908,7 +7004,7 @@
|
|
|
6908
7004
|
return ThrottlingEntity;
|
|
6909
7005
|
}());
|
|
6910
7006
|
|
|
6911
|
-
/*! @azure/msal-common v7.
|
|
7007
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6912
7008
|
|
|
6913
7009
|
/*
|
|
6914
7010
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6925,7 +7021,7 @@
|
|
|
6925
7021
|
}
|
|
6926
7022
|
};
|
|
6927
7023
|
|
|
6928
|
-
/*! @azure/msal-common v7.
|
|
7024
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6929
7025
|
|
|
6930
7026
|
/*
|
|
6931
7027
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6970,7 +7066,7 @@
|
|
|
6970
7066
|
return JoseHeaderError;
|
|
6971
7067
|
}(AuthError));
|
|
6972
7068
|
|
|
6973
|
-
/*! @azure/msal-common v7.
|
|
7069
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
6974
7070
|
|
|
6975
7071
|
/*
|
|
6976
7072
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7010,7 +7106,7 @@
|
|
|
7010
7106
|
return JoseHeader;
|
|
7011
7107
|
}());
|
|
7012
7108
|
|
|
7013
|
-
/*! @azure/msal-common v7.
|
|
7109
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
7014
7110
|
|
|
7015
7111
|
/*
|
|
7016
7112
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7069,7 +7165,7 @@
|
|
|
7069
7165
|
return AuthenticationHeaderParser;
|
|
7070
7166
|
}());
|
|
7071
7167
|
|
|
7072
|
-
/*! @azure/msal-common v7.
|
|
7168
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
7073
7169
|
|
|
7074
7170
|
/*
|
|
7075
7171
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7231,7 +7327,7 @@
|
|
|
7231
7327
|
return ServerTelemetryManager;
|
|
7232
7328
|
}());
|
|
7233
7329
|
|
|
7234
|
-
/*! @azure/msal-common v7.
|
|
7330
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
7235
7331
|
/*
|
|
7236
7332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7237
7333
|
* Licensed under the MIT License.
|
|
@@ -7328,7 +7424,7 @@
|
|
|
7328
7424
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
7329
7425
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
7330
7426
|
|
|
7331
|
-
/*! @azure/msal-common v7.
|
|
7427
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
7332
7428
|
|
|
7333
7429
|
/*
|
|
7334
7430
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7598,7 +7694,7 @@
|
|
|
7598
7694
|
return PerformanceClient;
|
|
7599
7695
|
}());
|
|
7600
7696
|
|
|
7601
|
-
/*! @azure/msal-common v7.
|
|
7697
|
+
/*! @azure/msal-common v7.1.0 2022-07-05 */
|
|
7602
7698
|
|
|
7603
7699
|
/*
|
|
7604
7700
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9023,7 +9119,7 @@
|
|
|
9023
9119
|
* @param expires
|
|
9024
9120
|
*/
|
|
9025
9121
|
BrowserCacheManager.prototype.setItemCookie = function (cookieName, cookieValue, expires) {
|
|
9026
|
-
var cookieStr = encodeURIComponent(cookieName) + "=" + encodeURIComponent(cookieValue) + ";path=/;";
|
|
9122
|
+
var cookieStr = encodeURIComponent(cookieName) + "=" + encodeURIComponent(cookieValue) + ";path=/;SameSite=Lax;";
|
|
9027
9123
|
if (expires) {
|
|
9028
9124
|
var expireTime = this.getCookieExpirationTime(expires);
|
|
9029
9125
|
cookieStr += "expires=" + expireTime + ";";
|
|
@@ -9395,7 +9491,7 @@
|
|
|
9395
9491
|
|
|
9396
9492
|
/* eslint-disable header/header */
|
|
9397
9493
|
var name = "@azure/msal-browser";
|
|
9398
|
-
var version = "2.
|
|
9494
|
+
var version = "2.27.0";
|
|
9399
9495
|
|
|
9400
9496
|
/*
|
|
9401
9497
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9944,7 +10040,8 @@
|
|
|
9944
10040
|
protocolMode: this.config.auth.protocolMode,
|
|
9945
10041
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
9946
10042
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
9947
|
-
authorityMetadata: this.config.auth.authorityMetadata
|
|
10043
|
+
authorityMetadata: this.config.auth.authorityMetadata,
|
|
10044
|
+
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
9948
10045
|
};
|
|
9949
10046
|
if (!requestAuthority) return [3 /*break*/, 2];
|
|
9950
10047
|
this.logger.verbose("Creating discovered authority with request authority");
|
|
@@ -10176,6 +10273,7 @@
|
|
|
10176
10273
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
10177
10274
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
10178
10275
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
10276
|
+
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache
|
|
10179
10277
|
};
|
|
10180
10278
|
userAuthority = requestAuthority ? requestAuthority : this.config.auth.authority;
|
|
10181
10279
|
builtAuthority = Authority.generateAuthority(userAuthority, requestAzureCloudOptions || this.config.auth.azureCloudOptions);
|
|
@@ -10566,6 +10664,7 @@
|
|
|
10566
10664
|
NativeStatusCode["TRANSIENT_ERROR"] = "TRANSIENT_ERROR";
|
|
10567
10665
|
NativeStatusCode["PERSISTENT_ERROR"] = "PERSISTENT_ERROR";
|
|
10568
10666
|
NativeStatusCode["DISABLED"] = "DISABLED";
|
|
10667
|
+
NativeStatusCode["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
|
|
10569
10668
|
})(NativeStatusCode || (NativeStatusCode = {}));
|
|
10570
10669
|
var NativeAuthErrorMessage = {
|
|
10571
10670
|
extensionError: {
|
|
@@ -10609,6 +10708,8 @@
|
|
|
10609
10708
|
NativeAuthError.createError = function (code, description, ext) {
|
|
10610
10709
|
if (ext && ext.status) {
|
|
10611
10710
|
switch (ext.status) {
|
|
10711
|
+
case NativeStatusCode.ACCOUNT_UNAVAILABLE:
|
|
10712
|
+
return InteractionRequiredAuthError.createNativeAccountUnavailableError();
|
|
10612
10713
|
case NativeStatusCode.USER_INTERACTION_REQUIRED:
|
|
10613
10714
|
return new InteractionRequiredAuthError(code, description);
|
|
10614
10715
|
case NativeStatusCode.USER_CANCEL:
|
|
@@ -10935,7 +11036,8 @@
|
|
|
10935
11036
|
*/
|
|
10936
11037
|
NativeInteractionClient.prototype.initializeNativeRequest = function (request) {
|
|
10937
11038
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
10938
|
-
var authority, canonicalAuthority, scopes, scopeSet, validatedRequest, shrParameters, popTokenGenerator, reqCnfData;
|
|
11039
|
+
var authority, canonicalAuthority, scopes, scopeSet, getPrompt, validatedRequest, shrParameters, popTokenGenerator, reqCnfData;
|
|
11040
|
+
var _this = this;
|
|
10939
11041
|
return __generator$1(this, function (_a) {
|
|
10940
11042
|
switch (_a.label) {
|
|
10941
11043
|
case 0:
|
|
@@ -10946,18 +11048,32 @@
|
|
|
10946
11048
|
scopes = request && request.scopes || [];
|
|
10947
11049
|
scopeSet = new ScopeSet(scopes);
|
|
10948
11050
|
scopeSet.appendScopes(OIDC_DEFAULT_SCOPES);
|
|
10949
|
-
|
|
11051
|
+
getPrompt = function () {
|
|
11052
|
+
// If request is silent, prompt is always none
|
|
11053
|
+
switch (_this.apiId) {
|
|
11054
|
+
case exports.ApiId.ssoSilent:
|
|
11055
|
+
case exports.ApiId.acquireTokenSilent_silentFlow:
|
|
11056
|
+
_this.logger.trace("initializeNativeRequest: silent request sets prompt to none");
|
|
11057
|
+
return PromptValue.NONE;
|
|
11058
|
+
}
|
|
11059
|
+
// Prompt not provided, request may proceed and native broker decides if it needs to prompt
|
|
11060
|
+
if (!request.prompt) {
|
|
11061
|
+
_this.logger.trace("initializeNativeRequest: prompt was not provided");
|
|
11062
|
+
return undefined;
|
|
11063
|
+
}
|
|
11064
|
+
// If request is interactive, check if prompt provided is allowed to go directly to native broker
|
|
10950
11065
|
switch (request.prompt) {
|
|
10951
11066
|
case PromptValue.NONE:
|
|
10952
11067
|
case PromptValue.CONSENT:
|
|
10953
|
-
|
|
10954
|
-
|
|
11068
|
+
case PromptValue.LOGIN:
|
|
11069
|
+
_this.logger.trace("initializeNativeRequest: prompt is compatible with native flow");
|
|
11070
|
+
return request.prompt;
|
|
10955
11071
|
default:
|
|
10956
|
-
|
|
11072
|
+
_this.logger.trace("initializeNativeRequest: prompt = " + request.prompt + " is not compatible with native flow");
|
|
10957
11073
|
throw BrowserAuthError.createNativePromptParameterNotSupportedError();
|
|
10958
11074
|
}
|
|
10959
|
-
}
|
|
10960
|
-
validatedRequest = __assign$1(__assign$1({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$1(__assign$1(__assign$1({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
|
|
11075
|
+
};
|
|
11076
|
+
validatedRequest = __assign$1(__assign$1({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$1(__assign$1(__assign$1({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
|
|
10961
11077
|
});
|
|
10962
11078
|
if (!(request.authenticationScheme === exports.AuthenticationScheme.POP)) return [3 /*break*/, 2];
|
|
10963
11079
|
shrParameters = {
|
|
@@ -10974,11 +11090,7 @@
|
|
|
10974
11090
|
validatedRequest.reqCnf = reqCnfData.reqCnfHash;
|
|
10975
11091
|
validatedRequest.keyId = reqCnfData.kid;
|
|
10976
11092
|
_a.label = 2;
|
|
10977
|
-
case 2:
|
|
10978
|
-
if (this.apiId === exports.ApiId.ssoSilent || this.apiId === exports.ApiId.acquireTokenSilent_silentFlow) {
|
|
10979
|
-
validatedRequest.prompt = PromptValue.NONE;
|
|
10980
|
-
}
|
|
10981
|
-
return [2 /*return*/, validatedRequest];
|
|
11093
|
+
case 2: return [2 /*return*/, validatedRequest];
|
|
10982
11094
|
}
|
|
10983
11095
|
});
|
|
10984
11096
|
});
|
|
@@ -12120,6 +12232,7 @@
|
|
|
12120
12232
|
azureCloudInstance: exports.AzureCloudInstance.None,
|
|
12121
12233
|
tenant: Constants.EMPTY_STRING
|
|
12122
12234
|
},
|
|
12235
|
+
skipAuthorityMetadataCache: false,
|
|
12123
12236
|
};
|
|
12124
12237
|
// Default cache options for browser
|
|
12125
12238
|
var DEFAULT_CACHE_OPTIONS = {
|
|
@@ -14214,6 +14327,7 @@
|
|
|
14214
14327
|
knownAuthorities: this.config.auth.knownAuthorities,
|
|
14215
14328
|
cloudDiscoveryMetadata: this.config.auth.cloudDiscoveryMetadata,
|
|
14216
14329
|
authorityMetadata: this.config.auth.authorityMetadata,
|
|
14330
|
+
skipAuthorityMetadataCache: this.config.auth.skipAuthorityMetadataCache,
|
|
14217
14331
|
};
|
|
14218
14332
|
var authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
|
|
14219
14333
|
// "clientInfo" from options takes precedence over "clientInfo" in response
|
|
@@ -14685,6 +14799,12 @@
|
|
|
14685
14799
|
var redirectClient = _this.createRedirectClient(request.correlationId);
|
|
14686
14800
|
return redirectClient.acquireToken(request);
|
|
14687
14801
|
}
|
|
14802
|
+
else if (e instanceof InteractionRequiredAuthError) {
|
|
14803
|
+
_this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
14804
|
+
var redirectClient = _this.createRedirectClient(request.correlationId);
|
|
14805
|
+
return redirectClient.acquireToken(request);
|
|
14806
|
+
}
|
|
14807
|
+
_this.browserStorage.setInteractionInProgress(false);
|
|
14688
14808
|
throw e;
|
|
14689
14809
|
});
|
|
14690
14810
|
}
|
|
@@ -14750,6 +14870,12 @@
|
|
|
14750
14870
|
var popupClient = _this.createPopupClient(request.correlationId);
|
|
14751
14871
|
return popupClient.acquireToken(request);
|
|
14752
14872
|
}
|
|
14873
|
+
else if (e instanceof InteractionRequiredAuthError) {
|
|
14874
|
+
_this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
14875
|
+
var popupClient = _this.createPopupClient(request.correlationId);
|
|
14876
|
+
return popupClient.acquireToken(request);
|
|
14877
|
+
}
|
|
14878
|
+
_this.browserStorage.setInteractionInProgress(false);
|
|
14753
14879
|
throw e;
|
|
14754
14880
|
});
|
|
14755
14881
|
}
|
|
@@ -15234,6 +15360,7 @@
|
|
|
15234
15360
|
switch (request.prompt) {
|
|
15235
15361
|
case PromptValue.NONE:
|
|
15236
15362
|
case PromptValue.CONSENT:
|
|
15363
|
+
case PromptValue.LOGIN:
|
|
15237
15364
|
this.logger.trace("canUseNative: prompt is compatible with native flow");
|
|
15238
15365
|
break;
|
|
15239
15366
|
default:
|
|
@@ -15264,7 +15391,7 @@
|
|
|
15264
15391
|
return new PopupClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.nativeExtensionProvider, correlationId);
|
|
15265
15392
|
};
|
|
15266
15393
|
/**
|
|
15267
|
-
* Returns new instance of the
|
|
15394
|
+
* Returns new instance of the Redirect Interaction Client
|
|
15268
15395
|
* @param correlationId
|
|
15269
15396
|
*/
|
|
15270
15397
|
ClientApplication.prototype.createRedirectClient = function (correlationId) {
|