@azure/msal-common 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +15 -0
- package/LICENSE +21 -21
- package/README.md +61 -61
- package/changelog.md +398 -390
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/account/AuthToken.js +7 -7
- package/dist/account/AuthToken.js.map +1 -1
- package/dist/account/CcsCredential.js +1 -1
- package/dist/account/CcsCredential.js.map +1 -1
- package/dist/account/ClientInfo.js +10 -10
- package/dist/account/ClientInfo.js.map +1 -1
- package/dist/authority/Authority.js +53 -53
- package/dist/authority/Authority.js.map +1 -1
- package/dist/authority/AuthorityFactory.js +9 -9
- package/dist/authority/AuthorityFactory.js.map +1 -1
- package/dist/authority/AuthorityType.js +1 -1
- package/dist/authority/AuthorityType.js.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -1
- package/dist/authority/OpenIdConfigResponse.js +1 -1
- package/dist/authority/OpenIdConfigResponse.js.map +1 -1
- package/dist/authority/ProtocolMode.js +1 -1
- package/dist/authority/ProtocolMode.js.map +1 -1
- package/dist/authority/RegionDiscovery.js +9 -9
- package/dist/authority/RegionDiscovery.js.map +1 -1
- package/dist/cache/CacheManager.js +47 -47
- package/dist/cache/CacheManager.js.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.js +11 -11
- package/dist/cache/entities/AccessTokenEntity.js.map +1 -1
- package/dist/cache/entities/AccountEntity.js +14 -14
- package/dist/cache/entities/AccountEntity.js.map +1 -1
- package/dist/cache/entities/AppMetadataEntity.js +1 -1
- package/dist/cache/entities/AppMetadataEntity.js.map +1 -1
- package/dist/cache/entities/AuthorityMetadataEntity.js +5 -5
- package/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -1
- package/dist/cache/entities/CacheRecord.js +1 -1
- package/dist/cache/entities/CacheRecord.js.map +1 -1
- package/dist/cache/entities/CredentialEntity.js +5 -5
- package/dist/cache/entities/CredentialEntity.js.map +1 -1
- package/dist/cache/entities/IdTokenEntity.js +3 -3
- package/dist/cache/entities/IdTokenEntity.js.map +1 -1
- package/dist/cache/entities/RefreshTokenEntity.js +3 -3
- package/dist/cache/entities/RefreshTokenEntity.js.map +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.js.map +1 -1
- package/dist/cache/entities/ThrottlingEntity.js +1 -1
- package/dist/cache/entities/ThrottlingEntity.js.map +1 -1
- package/dist/cache/persistence/TokenCacheContext.js +3 -3
- package/dist/cache/persistence/TokenCacheContext.js.map +1 -1
- package/dist/client/AuthorizationCodeClient.js +32 -32
- package/dist/client/AuthorizationCodeClient.js.map +1 -1
- package/dist/client/BaseClient.js +11 -11
- package/dist/client/BaseClient.js.map +1 -1
- package/dist/client/ClientCredentialClient.js +17 -17
- package/dist/client/ClientCredentialClient.js.map +1 -1
- package/dist/client/DeviceCodeClient.js +25 -25
- package/dist/client/DeviceCodeClient.js.map +1 -1
- package/dist/client/OnBehalfOfClient.js +19 -19
- package/dist/client/OnBehalfOfClient.js.map +1 -1
- package/dist/client/RefreshTokenClient.js +25 -25
- package/dist/client/RefreshTokenClient.js.map +1 -1
- package/dist/client/SilentFlowClient.js +27 -27
- package/dist/client/SilentFlowClient.js.map +1 -1
- package/dist/client/UsernamePasswordClient.js +11 -11
- package/dist/client/UsernamePasswordClient.js.map +1 -1
- package/dist/config/ClientConfiguration.js +6 -6
- package/dist/config/ClientConfiguration.js.map +1 -1
- package/dist/crypto/ICrypto.js +8 -8
- package/dist/crypto/ICrypto.js.map +1 -1
- package/dist/crypto/PopTokenGenerator.js +9 -9
- package/dist/crypto/PopTokenGenerator.js.map +1 -1
- package/dist/error/AuthError.js +3 -3
- package/dist/error/AuthError.js.map +1 -1
- package/dist/error/ClientAuthError.js +3 -3
- package/dist/error/ClientAuthError.js.map +1 -1
- package/dist/error/ClientConfigurationError.js +3 -3
- package/dist/error/ClientConfigurationError.js.map +1 -1
- package/dist/error/InteractionRequiredAuthError.js +3 -3
- package/dist/error/InteractionRequiredAuthError.js.map +1 -1
- package/dist/error/ServerError.js +3 -3
- package/dist/error/ServerError.js.map +1 -1
- package/dist/index.cjs.js +70 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +29 -29
- package/dist/logger/Logger.js +7 -7
- package/dist/logger/Logger.js.map +1 -1
- package/dist/network/INetworkModule.js +4 -4
- package/dist/network/INetworkModule.js.map +1 -1
- package/dist/network/NetworkManager.js +8 -8
- package/dist/network/NetworkManager.js.map +1 -1
- package/dist/network/ThrottlingUtils.js +4 -4
- package/dist/network/ThrottlingUtils.js.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/request/RequestParameterBuilder.js +18 -18
- package/dist/request/RequestParameterBuilder.js.map +1 -1
- package/dist/request/RequestValidator.js +10 -10
- package/dist/request/RequestValidator.js.map +1 -1
- package/dist/request/ScopeSet.js +14 -14
- package/dist/request/ScopeSet.js.map +1 -1
- package/dist/response/ResponseHandler.js +61 -61
- package/dist/response/ResponseHandler.js.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.js +13 -13
- package/dist/telemetry/server/ServerTelemetryManager.js.map +1 -1
- package/dist/url/UrlString.js +24 -24
- package/dist/url/UrlString.js.map +1 -1
- package/dist/utils/Constants.js +1 -1
- package/dist/utils/Constants.js.map +1 -1
- package/dist/utils/ProtocolUtils.js +13 -13
- package/dist/utils/ProtocolUtils.js.map +1 -1
- package/dist/utils/StringUtils.js +5 -5
- package/dist/utils/StringUtils.js.map +1 -1
- package/dist/utils/TimeUtils.js +1 -1
- package/dist/utils/TimeUtils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v4.5.
|
|
1
|
+
/*! @azure/msal-common v4.5.1 2021-08-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -154,6 +154,10 @@ var HeaderNames;
|
|
|
154
154
|
HeaderNames["RETRY_AFTER"] = "Retry-After";
|
|
155
155
|
HeaderNames["CCS_HEADER"] = "X-AnchorMailbox";
|
|
156
156
|
})(HeaderNames || (HeaderNames = {}));
|
|
157
|
+
/**
|
|
158
|
+
* Persistent cache keys MSAL which stay while user is logged in.
|
|
159
|
+
*/
|
|
160
|
+
exports.PersistentCacheKeys = void 0;
|
|
157
161
|
(function (PersistentCacheKeys) {
|
|
158
162
|
PersistentCacheKeys["ID_TOKEN"] = "idtoken";
|
|
159
163
|
PersistentCacheKeys["CLIENT_INFO"] = "client.info";
|
|
@@ -258,7 +262,7 @@ var SSOTypes;
|
|
|
258
262
|
/**
|
|
259
263
|
* Disallowed extra query parameters.
|
|
260
264
|
*/
|
|
261
|
-
|
|
265
|
+
[
|
|
262
266
|
SSOTypes.SID,
|
|
263
267
|
SSOTypes.LOGIN_HINT
|
|
264
268
|
];
|
|
@@ -269,6 +273,10 @@ var CodeChallengeMethodValues = {
|
|
|
269
273
|
PLAIN: "plain",
|
|
270
274
|
S256: "S256"
|
|
271
275
|
};
|
|
276
|
+
/**
|
|
277
|
+
* allowed values for response_mode
|
|
278
|
+
*/
|
|
279
|
+
exports.ResponseMode = void 0;
|
|
272
280
|
(function (ResponseMode) {
|
|
273
281
|
ResponseMode["QUERY"] = "query";
|
|
274
282
|
ResponseMode["FRAGMENT"] = "fragment";
|
|
@@ -287,6 +295,10 @@ var GrantType;
|
|
|
287
295
|
GrantType["DEVICE_CODE_GRANT"] = "device_code";
|
|
288
296
|
GrantType["JWT_BEARER"] = "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
289
297
|
})(GrantType || (GrantType = {}));
|
|
298
|
+
/**
|
|
299
|
+
* Account types in Cache
|
|
300
|
+
*/
|
|
301
|
+
exports.CacheAccountType = void 0;
|
|
290
302
|
(function (CacheAccountType) {
|
|
291
303
|
CacheAccountType["MSSTS_ACCOUNT_TYPE"] = "MSSTS";
|
|
292
304
|
CacheAccountType["ADFS_ACCOUNT_TYPE"] = "ADFS";
|
|
@@ -301,12 +313,20 @@ var Separators;
|
|
|
301
313
|
Separators["CACHE_KEY_SEPARATOR"] = "-";
|
|
302
314
|
Separators["CLIENT_INFO_SEPARATOR"] = ".";
|
|
303
315
|
})(Separators || (Separators = {}));
|
|
316
|
+
/**
|
|
317
|
+
* Credential Type stored in the cache
|
|
318
|
+
*/
|
|
319
|
+
exports.CredentialType = void 0;
|
|
304
320
|
(function (CredentialType) {
|
|
305
321
|
CredentialType["ID_TOKEN"] = "IdToken";
|
|
306
322
|
CredentialType["ACCESS_TOKEN"] = "AccessToken";
|
|
307
323
|
CredentialType["ACCESS_TOKEN_WITH_AUTH_SCHEME"] = "AccessToken_With_AuthScheme";
|
|
308
324
|
CredentialType["REFRESH_TOKEN"] = "RefreshToken";
|
|
309
325
|
})(exports.CredentialType || (exports.CredentialType = {}));
|
|
326
|
+
/**
|
|
327
|
+
* Credential Type stored in the cache
|
|
328
|
+
*/
|
|
329
|
+
exports.CacheSchemaType = void 0;
|
|
310
330
|
(function (CacheSchemaType) {
|
|
311
331
|
CacheSchemaType["ACCOUNT"] = "Account";
|
|
312
332
|
CacheSchemaType["CREDENTIAL"] = "Credential";
|
|
@@ -319,6 +339,10 @@ var Separators;
|
|
|
319
339
|
CacheSchemaType["UNDEFINED"] = "Undefined";
|
|
320
340
|
CacheSchemaType["THROTTLING"] = "Throttling";
|
|
321
341
|
})(exports.CacheSchemaType || (exports.CacheSchemaType = {}));
|
|
342
|
+
/**
|
|
343
|
+
* Combine all cache types
|
|
344
|
+
*/
|
|
345
|
+
exports.CacheType = void 0;
|
|
322
346
|
(function (CacheType) {
|
|
323
347
|
CacheType[CacheType["ADFS"] = 1001] = "ADFS";
|
|
324
348
|
CacheType[CacheType["MSA"] = 1002] = "MSA";
|
|
@@ -358,6 +382,10 @@ var SERVER_TELEM_CONSTANTS = {
|
|
|
358
382
|
OVERFLOW_FALSE: "0",
|
|
359
383
|
UNKNOWN_ERROR: "unknown_error"
|
|
360
384
|
};
|
|
385
|
+
/**
|
|
386
|
+
* Type of the authentication request
|
|
387
|
+
*/
|
|
388
|
+
exports.AuthenticationScheme = void 0;
|
|
361
389
|
(function (AuthenticationScheme) {
|
|
362
390
|
AuthenticationScheme["POP"] = "pop";
|
|
363
391
|
AuthenticationScheme["BEARER"] = "Bearer";
|
|
@@ -1027,7 +1055,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1027
1055
|
var match; // Regex for replacing addition symbol with a space
|
|
1028
1056
|
var pl = /\+/g;
|
|
1029
1057
|
var search = /([^&=]+)=([^&]*)/g;
|
|
1030
|
-
var decode = function (s) { return decodeURIComponent(
|
|
1058
|
+
var decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); };
|
|
1031
1059
|
var obj = {};
|
|
1032
1060
|
match = search.exec(query);
|
|
1033
1061
|
while (match) {
|
|
@@ -1085,6 +1113,10 @@ var StringUtils = /** @class */ (function () {
|
|
|
1085
1113
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1086
1114
|
* Licensed under the MIT License.
|
|
1087
1115
|
*/
|
|
1116
|
+
/**
|
|
1117
|
+
* Log message level.
|
|
1118
|
+
*/
|
|
1119
|
+
exports.LogLevel = void 0;
|
|
1088
1120
|
(function (LogLevel) {
|
|
1089
1121
|
LogLevel[LogLevel["Error"] = 0] = "Error";
|
|
1090
1122
|
LogLevel[LogLevel["Warning"] = 1] = "Warning";
|
|
@@ -1255,7 +1287,7 @@ var Logger = /** @class */ (function () {
|
|
|
1255
1287
|
|
|
1256
1288
|
/* eslint-disable header/header */
|
|
1257
1289
|
var name = "@azure/msal-common";
|
|
1258
|
-
var version = "4.5.
|
|
1290
|
+
var version = "4.5.1";
|
|
1259
1291
|
|
|
1260
1292
|
/*
|
|
1261
1293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1817,6 +1849,10 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1817
1849
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1818
1850
|
* Licensed under the MIT License.
|
|
1819
1851
|
*/
|
|
1852
|
+
/**
|
|
1853
|
+
* Authority types supported by MSAL.
|
|
1854
|
+
*/
|
|
1855
|
+
exports.AuthorityType = void 0;
|
|
1820
1856
|
(function (AuthorityType) {
|
|
1821
1857
|
AuthorityType[AuthorityType["Default"] = 0] = "Default";
|
|
1822
1858
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
@@ -3026,6 +3062,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3026
3062
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3027
3063
|
* Licensed under the MIT License.
|
|
3028
3064
|
*/
|
|
3065
|
+
exports.CcsCredentialType = void 0;
|
|
3029
3066
|
(function (CcsCredentialType) {
|
|
3030
3067
|
CcsCredentialType["HOME_ACCOUNT_ID"] = "home_account_id";
|
|
3031
3068
|
CcsCredentialType["UPN"] = "UPN";
|
|
@@ -3915,7 +3952,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
3915
3952
|
}
|
|
3916
3953
|
try {
|
|
3917
3954
|
// Split the state between library state and user passed state and decode them separately
|
|
3918
|
-
var splitState =
|
|
3955
|
+
var splitState = state.split(Constants.RESOURCE_DELIM);
|
|
3919
3956
|
var libraryState = splitState[0];
|
|
3920
3957
|
var userState = splitState.length > 1 ? splitState.slice(1).join(Constants.RESOURCE_DELIM) : "";
|
|
3921
3958
|
var libraryStateString = cryptoObj.base64Decode(libraryState);
|
|
@@ -3954,7 +3991,7 @@ var UrlString = /** @class */ (function () {
|
|
|
3954
3991
|
get: function () {
|
|
3955
3992
|
return this._urlString;
|
|
3956
3993
|
},
|
|
3957
|
-
enumerable:
|
|
3994
|
+
enumerable: false,
|
|
3958
3995
|
configurable: true
|
|
3959
3996
|
});
|
|
3960
3997
|
/**
|
|
@@ -4295,7 +4332,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4295
4332
|
get: function () {
|
|
4296
4333
|
return this.hasChanged;
|
|
4297
4334
|
},
|
|
4298
|
-
enumerable:
|
|
4335
|
+
enumerable: false,
|
|
4299
4336
|
configurable: true
|
|
4300
4337
|
});
|
|
4301
4338
|
Object.defineProperty(TokenCacheContext.prototype, "tokenCache", {
|
|
@@ -4305,7 +4342,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4305
4342
|
get: function () {
|
|
4306
4343
|
return this.cache;
|
|
4307
4344
|
},
|
|
4308
|
-
enumerable:
|
|
4345
|
+
enumerable: false,
|
|
4309
4346
|
configurable: true
|
|
4310
4347
|
});
|
|
4311
4348
|
return TokenCacheContext;
|
|
@@ -5909,6 +5946,10 @@ function isOpenIdConfigResponse(response) {
|
|
|
5909
5946
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5910
5947
|
* Licensed under the MIT License.
|
|
5911
5948
|
*/
|
|
5949
|
+
/**
|
|
5950
|
+
* Protocol modes supported by MSAL.
|
|
5951
|
+
*/
|
|
5952
|
+
exports.ProtocolMode = void 0;
|
|
5912
5953
|
(function (ProtocolMode) {
|
|
5913
5954
|
ProtocolMode["AAD"] = "AAD";
|
|
5914
5955
|
ProtocolMode["OIDC"] = "OIDC";
|
|
@@ -6012,7 +6053,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6012
6053
|
*/
|
|
6013
6054
|
RegionDiscovery.prototype.detectRegion = function (environmentRegion, regionDiscoveryMetadata) {
|
|
6014
6055
|
return __awaiter(this, void 0, void 0, function () {
|
|
6015
|
-
var autodetectedRegionName, localIMDSVersionResponse, currentIMDSVersion, currentIMDSVersionResponse
|
|
6056
|
+
var autodetectedRegionName, localIMDSVersionResponse, currentIMDSVersion, currentIMDSVersionResponse;
|
|
6016
6057
|
return __generator(this, function (_a) {
|
|
6017
6058
|
switch (_a.label) {
|
|
6018
6059
|
case 0:
|
|
@@ -6046,7 +6087,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6046
6087
|
_a.label = 5;
|
|
6047
6088
|
case 5: return [3 /*break*/, 7];
|
|
6048
6089
|
case 6:
|
|
6049
|
-
|
|
6090
|
+
_a.sent();
|
|
6050
6091
|
regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;
|
|
6051
6092
|
return [2 /*return*/, null];
|
|
6052
6093
|
case 7: return [3 /*break*/, 9];
|
|
@@ -6083,7 +6124,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6083
6124
|
*/
|
|
6084
6125
|
RegionDiscovery.prototype.getCurrentVersion = function () {
|
|
6085
6126
|
return __awaiter(this, void 0, void 0, function () {
|
|
6086
|
-
var response
|
|
6127
|
+
var response;
|
|
6087
6128
|
return __generator(this, function (_a) {
|
|
6088
6129
|
switch (_a.label) {
|
|
6089
6130
|
case 0:
|
|
@@ -6097,7 +6138,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6097
6138
|
}
|
|
6098
6139
|
return [2 /*return*/, null];
|
|
6099
6140
|
case 2:
|
|
6100
|
-
|
|
6141
|
+
_a.sent();
|
|
6101
6142
|
return [2 /*return*/, null];
|
|
6102
6143
|
case 3: return [2 /*return*/];
|
|
6103
6144
|
}
|
|
@@ -6136,7 +6177,7 @@ var Authority = /** @class */ (function () {
|
|
|
6136
6177
|
}
|
|
6137
6178
|
return exports.AuthorityType.Default;
|
|
6138
6179
|
},
|
|
6139
|
-
enumerable:
|
|
6180
|
+
enumerable: false,
|
|
6140
6181
|
configurable: true
|
|
6141
6182
|
});
|
|
6142
6183
|
Object.defineProperty(Authority.prototype, "protocolMode", {
|
|
@@ -6146,7 +6187,7 @@ var Authority = /** @class */ (function () {
|
|
|
6146
6187
|
get: function () {
|
|
6147
6188
|
return this.authorityOptions.protocolMode;
|
|
6148
6189
|
},
|
|
6149
|
-
enumerable:
|
|
6190
|
+
enumerable: false,
|
|
6150
6191
|
configurable: true
|
|
6151
6192
|
});
|
|
6152
6193
|
Object.defineProperty(Authority.prototype, "options", {
|
|
@@ -6156,7 +6197,7 @@ var Authority = /** @class */ (function () {
|
|
|
6156
6197
|
get: function () {
|
|
6157
6198
|
return this.authorityOptions;
|
|
6158
6199
|
},
|
|
6159
|
-
enumerable:
|
|
6200
|
+
enumerable: false,
|
|
6160
6201
|
configurable: true
|
|
6161
6202
|
});
|
|
6162
6203
|
Object.defineProperty(Authority.prototype, "canonicalAuthority", {
|
|
@@ -6174,7 +6215,7 @@ var Authority = /** @class */ (function () {
|
|
|
6174
6215
|
this._canonicalAuthority.validateAsUri();
|
|
6175
6216
|
this._canonicalAuthorityUrlComponents = null;
|
|
6176
6217
|
},
|
|
6177
|
-
enumerable:
|
|
6218
|
+
enumerable: false,
|
|
6178
6219
|
configurable: true
|
|
6179
6220
|
});
|
|
6180
6221
|
Object.defineProperty(Authority.prototype, "canonicalAuthorityUrlComponents", {
|
|
@@ -6187,7 +6228,7 @@ var Authority = /** @class */ (function () {
|
|
|
6187
6228
|
}
|
|
6188
6229
|
return this._canonicalAuthorityUrlComponents;
|
|
6189
6230
|
},
|
|
6190
|
-
enumerable:
|
|
6231
|
+
enumerable: false,
|
|
6191
6232
|
configurable: true
|
|
6192
6233
|
});
|
|
6193
6234
|
Object.defineProperty(Authority.prototype, "hostnameAndPort", {
|
|
@@ -6197,7 +6238,7 @@ var Authority = /** @class */ (function () {
|
|
|
6197
6238
|
get: function () {
|
|
6198
6239
|
return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase();
|
|
6199
6240
|
},
|
|
6200
|
-
enumerable:
|
|
6241
|
+
enumerable: false,
|
|
6201
6242
|
configurable: true
|
|
6202
6243
|
});
|
|
6203
6244
|
Object.defineProperty(Authority.prototype, "tenant", {
|
|
@@ -6207,7 +6248,7 @@ var Authority = /** @class */ (function () {
|
|
|
6207
6248
|
get: function () {
|
|
6208
6249
|
return this.canonicalAuthorityUrlComponents.PathSegments[0];
|
|
6209
6250
|
},
|
|
6210
|
-
enumerable:
|
|
6251
|
+
enumerable: false,
|
|
6211
6252
|
configurable: true
|
|
6212
6253
|
});
|
|
6213
6254
|
Object.defineProperty(Authority.prototype, "authorizationEndpoint", {
|
|
@@ -6223,7 +6264,7 @@ var Authority = /** @class */ (function () {
|
|
|
6223
6264
|
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6224
6265
|
}
|
|
6225
6266
|
},
|
|
6226
|
-
enumerable:
|
|
6267
|
+
enumerable: false,
|
|
6227
6268
|
configurable: true
|
|
6228
6269
|
});
|
|
6229
6270
|
Object.defineProperty(Authority.prototype, "tokenEndpoint", {
|
|
@@ -6239,7 +6280,7 @@ var Authority = /** @class */ (function () {
|
|
|
6239
6280
|
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6240
6281
|
}
|
|
6241
6282
|
},
|
|
6242
|
-
enumerable:
|
|
6283
|
+
enumerable: false,
|
|
6243
6284
|
configurable: true
|
|
6244
6285
|
});
|
|
6245
6286
|
Object.defineProperty(Authority.prototype, "deviceCodeEndpoint", {
|
|
@@ -6252,7 +6293,7 @@ var Authority = /** @class */ (function () {
|
|
|
6252
6293
|
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6253
6294
|
}
|
|
6254
6295
|
},
|
|
6255
|
-
enumerable:
|
|
6296
|
+
enumerable: false,
|
|
6256
6297
|
configurable: true
|
|
6257
6298
|
});
|
|
6258
6299
|
Object.defineProperty(Authority.prototype, "endSessionEndpoint", {
|
|
@@ -6268,7 +6309,7 @@ var Authority = /** @class */ (function () {
|
|
|
6268
6309
|
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6269
6310
|
}
|
|
6270
6311
|
},
|
|
6271
|
-
enumerable:
|
|
6312
|
+
enumerable: false,
|
|
6272
6313
|
configurable: true
|
|
6273
6314
|
});
|
|
6274
6315
|
Object.defineProperty(Authority.prototype, "selfSignedJwtAudience", {
|
|
@@ -6284,7 +6325,7 @@ var Authority = /** @class */ (function () {
|
|
|
6284
6325
|
throw ClientAuthError.createEndpointDiscoveryIncompleteError("Discovery incomplete.");
|
|
6285
6326
|
}
|
|
6286
6327
|
},
|
|
6287
|
-
enumerable:
|
|
6328
|
+
enumerable: false,
|
|
6288
6329
|
configurable: true
|
|
6289
6330
|
});
|
|
6290
6331
|
/**
|
|
@@ -6321,7 +6362,7 @@ var Authority = /** @class */ (function () {
|
|
|
6321
6362
|
}
|
|
6322
6363
|
return this.canonicalAuthority + "v2.0/.well-known/openid-configuration";
|
|
6323
6364
|
},
|
|
6324
|
-
enumerable:
|
|
6365
|
+
enumerable: false,
|
|
6325
6366
|
configurable: true
|
|
6326
6367
|
});
|
|
6327
6368
|
/**
|
|
@@ -6453,7 +6494,7 @@ var Authority = /** @class */ (function () {
|
|
|
6453
6494
|
*/
|
|
6454
6495
|
Authority.prototype.getEndpointMetadataFromNetwork = function () {
|
|
6455
6496
|
return __awaiter(this, void 0, void 0, function () {
|
|
6456
|
-
var response
|
|
6497
|
+
var response;
|
|
6457
6498
|
return __generator(this, function (_a) {
|
|
6458
6499
|
switch (_a.label) {
|
|
6459
6500
|
case 0:
|
|
@@ -6463,7 +6504,7 @@ var Authority = /** @class */ (function () {
|
|
|
6463
6504
|
response = _a.sent();
|
|
6464
6505
|
return [2 /*return*/, isOpenIdConfigResponse(response.body) ? response.body : null];
|
|
6465
6506
|
case 2:
|
|
6466
|
-
|
|
6507
|
+
_a.sent();
|
|
6467
6508
|
return [2 /*return*/, null];
|
|
6468
6509
|
case 3: return [2 /*return*/];
|
|
6469
6510
|
}
|
|
@@ -6535,7 +6576,7 @@ var Authority = /** @class */ (function () {
|
|
|
6535
6576
|
*/
|
|
6536
6577
|
Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
|
|
6537
6578
|
return __awaiter(this, void 0, void 0, function () {
|
|
6538
|
-
var instanceDiscoveryEndpoint, match, response, metadata
|
|
6579
|
+
var instanceDiscoveryEndpoint, match, response, metadata;
|
|
6539
6580
|
return __generator(this, function (_a) {
|
|
6540
6581
|
switch (_a.label) {
|
|
6541
6582
|
case 0:
|
|
@@ -6555,7 +6596,7 @@ var Authority = /** @class */ (function () {
|
|
|
6555
6596
|
match = Authority.getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
6556
6597
|
return [3 /*break*/, 4];
|
|
6557
6598
|
case 3:
|
|
6558
|
-
|
|
6599
|
+
_a.sent();
|
|
6559
6600
|
return [2 /*return*/, null];
|
|
6560
6601
|
case 4:
|
|
6561
6602
|
if (!match) {
|