@azure/msal-common 14.0.0-alpha.2 → 14.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/AuthToken.js +1 -1
- package/dist/account/CcsCredential.d.ts +5 -4
- package/dist/account/CcsCredential.d.ts.map +1 -1
- package/dist/account/CcsCredential.js +5 -6
- package/dist/account/CcsCredential.js.map +1 -1
- package/dist/account/ClientInfo.js +1 -1
- package/dist/authority/Authority.js +1 -1
- package/dist/authority/AuthorityFactory.js +1 -1
- package/dist/authority/AuthorityMetadata.js +1 -1
- package/dist/authority/AuthorityOptions.d.ts +9 -8
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.js +9 -10
- package/dist/authority/AuthorityOptions.js.map +1 -1
- package/dist/authority/AuthorityType.d.ts +7 -6
- package/dist/authority/AuthorityType.d.ts.map +1 -1
- package/dist/authority/AuthorityType.js +7 -8
- package/dist/authority/AuthorityType.js.map +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.js +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
- package/dist/authority/OpenIdConfigResponse.js +1 -1
- package/dist/authority/ProtocolMode.d.ts +5 -4
- package/dist/authority/ProtocolMode.d.ts.map +1 -1
- package/dist/authority/ProtocolMode.js +5 -6
- package/dist/authority/ProtocolMode.js.map +1 -1
- package/dist/authority/RegionDiscovery.js +1 -1
- package/dist/cache/CacheManager.js +1 -1
- package/dist/cache/entities/AccessTokenEntity.js +1 -1
- package/dist/cache/entities/AccountEntity.js +1 -1
- package/dist/cache/entities/AppMetadataEntity.js +1 -1
- package/dist/cache/entities/AuthorityMetadataEntity.js +1 -1
- package/dist/cache/entities/CacheRecord.js +1 -1
- package/dist/cache/entities/CredentialEntity.js +1 -1
- package/dist/cache/entities/IdTokenEntity.js +1 -1
- package/dist/cache/entities/RefreshTokenEntity.js +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
- package/dist/cache/entities/ThrottlingEntity.js +1 -1
- package/dist/cache/persistence/TokenCacheContext.js +1 -1
- package/dist/client/AuthorizationCodeClient.js +1 -1
- package/dist/client/BaseClient.js +1 -1
- package/dist/client/RefreshTokenClient.js +1 -1
- package/dist/client/SilentFlowClient.js +1 -1
- package/dist/config/ClientConfiguration.js +1 -1
- package/dist/crypto/ICrypto.js +1 -1
- package/dist/crypto/JoseHeader.js +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts +5 -4
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.js +5 -6
- package/dist/crypto/PopTokenGenerator.js.map +1 -1
- package/dist/error/AuthError.js +1 -1
- package/dist/error/ClientAuthError.js +1 -1
- package/dist/error/ClientConfigurationError.d.ts +8 -0
- package/dist/error/ClientConfigurationError.d.ts.map +1 -1
- package/dist/error/ClientConfigurationError.js +12 -2
- package/dist/error/ClientConfigurationError.js.map +1 -1
- package/dist/error/InteractionRequiredAuthError.js +1 -1
- package/dist/error/JoseHeaderError.js +1 -1
- package/dist/error/ServerError.js +1 -1
- package/dist/index.cjs.js +524 -545
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/logger/Logger.js +1 -1
- package/dist/network/INetworkModule.js +1 -1
- package/dist/network/NetworkManager.js +1 -1
- package/dist/network/ThrottlingUtils.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/request/AuthenticationHeaderParser.js +1 -1
- package/dist/request/RequestParameterBuilder.js +1 -1
- package/dist/request/RequestValidator.js +2 -3
- package/dist/request/RequestValidator.js.map +1 -1
- package/dist/request/ScopeSet.js +1 -1
- package/dist/response/ResponseHandler.js +1 -1
- package/dist/telemetry/performance/PerformanceClient.js +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +73 -71
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.js +72 -74
- package/dist/telemetry/performance/PerformanceEvent.js.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -7
- package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.js +7 -21
- package/dist/telemetry/performance/StubPerformanceClient.js.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.js +1 -1
- package/dist/url/UrlString.js +1 -1
- package/dist/utils/Constants.d.ts +193 -179
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.js +174 -194
- package/dist/utils/Constants.js.map +1 -1
- package/dist/utils/ProtocolUtils.js +1 -1
- package/dist/utils/StringUtils.js +1 -1
- package/dist/utils/TimeUtils.js +1 -1
- package/package.json +8 -1
|
@@ -2,8 +2,9 @@ export type CcsCredential = {
|
|
|
2
2
|
credential: string;
|
|
3
3
|
type: CcsCredentialType;
|
|
4
4
|
};
|
|
5
|
-
export declare
|
|
6
|
-
HOME_ACCOUNT_ID
|
|
7
|
-
UPN
|
|
8
|
-
}
|
|
5
|
+
export declare const CcsCredentialType: {
|
|
6
|
+
readonly HOME_ACCOUNT_ID: "home_account_id";
|
|
7
|
+
readonly UPN: "UPN";
|
|
8
|
+
};
|
|
9
|
+
export type CcsCredentialType = typeof CcsCredentialType[keyof typeof CcsCredentialType];
|
|
9
10
|
//# sourceMappingURL=CcsCredential.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"CcsCredential.d.ts","sourceRoot":"","sources":["../../src/account/CcsCredential.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
5
|
* Licensed under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
7
|
+
const CcsCredentialType = {
|
|
8
|
+
HOME_ACCOUNT_ID: "home_account_id",
|
|
9
|
+
UPN: "UPN",
|
|
10
|
+
};
|
|
12
11
|
|
|
13
12
|
export { CcsCredentialType };
|
|
14
13
|
//# sourceMappingURL=CcsCredential.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CcsCredential.js","sources":["../../src/account/CcsCredential.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"CcsCredential.js","sources":["../../src/account/CcsCredential.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAOU,MAAA,iBAAiB,GAAG;AAC7B,IAAA,eAAe,EAAE,iBAAiB;AAClC,IAAA,GAAG,EAAE,KAAK;;;;;"}
|
|
@@ -8,12 +8,13 @@ export type AuthorityOptions = {
|
|
|
8
8
|
skipAuthorityMetadataCache?: boolean;
|
|
9
9
|
azureRegionConfiguration?: AzureRegionConfiguration;
|
|
10
10
|
};
|
|
11
|
-
export declare
|
|
12
|
-
None
|
|
13
|
-
AzurePublic
|
|
14
|
-
AzurePpe
|
|
15
|
-
AzureChina
|
|
16
|
-
AzureGermany
|
|
17
|
-
AzureUsGovernment
|
|
18
|
-
}
|
|
11
|
+
export declare const AzureCloudInstance: {
|
|
12
|
+
readonly None: "none";
|
|
13
|
+
readonly AzurePublic: "https://login.microsoftonline.com";
|
|
14
|
+
readonly AzurePpe: "https://login.windows-ppe.net";
|
|
15
|
+
readonly AzureChina: "https://login.chinacloudapi.cn";
|
|
16
|
+
readonly AzureGermany: "https://login.microsoftonline.de";
|
|
17
|
+
readonly AzureUsGovernment: "https://login.microsoftonline.us";
|
|
18
|
+
};
|
|
19
|
+
export type AzureCloudInstance = typeof AzureCloudInstance[keyof typeof AzureCloudInstance];
|
|
19
20
|
//# sourceMappingURL=AuthorityOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACvD,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"AuthorityOptions.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityOptions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
5
|
* Licensed under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
(function (AzureCloudInstance) {
|
|
7
|
+
const AzureCloudInstance = {
|
|
9
8
|
// AzureCloudInstance is not specified.
|
|
10
|
-
|
|
9
|
+
None: "none",
|
|
11
10
|
// Microsoft Azure public cloud
|
|
12
|
-
|
|
11
|
+
AzurePublic: "https://login.microsoftonline.com",
|
|
13
12
|
// Microsoft PPE
|
|
14
|
-
|
|
13
|
+
AzurePpe: "https://login.windows-ppe.net",
|
|
15
14
|
// Microsoft Chinese national cloud
|
|
16
|
-
|
|
15
|
+
AzureChina: "https://login.chinacloudapi.cn",
|
|
17
16
|
// Microsoft German national cloud ("Black Forest")
|
|
18
|
-
|
|
17
|
+
AzureGermany: "https://login.microsoftonline.de",
|
|
19
18
|
// US Government cloud
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
20
|
+
};
|
|
22
21
|
|
|
23
22
|
export { AzureCloudInstance };
|
|
24
23
|
//# sourceMappingURL=AuthorityOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityOptions.js","sources":["../../src/authority/AuthorityOptions.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"AuthorityOptions.js","sources":["../../src/authority/AuthorityOptions.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAcU,MAAA,kBAAkB,GAAG;;AAE9B,IAAA,IAAI,EAAE,MAAM;;AAGZ,IAAA,WAAW,EAAE,mCAAmC;;AAGhD,IAAA,QAAQ,EAAE,+BAA+B;;AAGzC,IAAA,UAAU,EAAE,gCAAgC;;AAG5C,IAAA,YAAY,EAAE,kCAAkC;;AAGhD,IAAA,iBAAiB,EAAE,kCAAkC;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Authority types supported by MSAL.
|
|
3
3
|
*/
|
|
4
|
-
export declare
|
|
5
|
-
Default
|
|
6
|
-
Adfs
|
|
7
|
-
Dsts
|
|
8
|
-
Ciam
|
|
9
|
-
}
|
|
4
|
+
export declare const AuthorityType: {
|
|
5
|
+
readonly Default: 0;
|
|
6
|
+
readonly Adfs: 1;
|
|
7
|
+
readonly Dsts: 2;
|
|
8
|
+
readonly Ciam: 3;
|
|
9
|
+
};
|
|
10
|
+
export type AuthorityType = typeof AuthorityType[keyof typeof AuthorityType];
|
|
10
11
|
//# sourceMappingURL=AuthorityType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"AuthorityType.d.ts","sourceRoot":"","sources":["../../src/authority/AuthorityType.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Authority types supported by MSAL.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(AuthorityType || (AuthorityType = {}));
|
|
10
|
+
const AuthorityType = {
|
|
11
|
+
Default: 0,
|
|
12
|
+
Adfs: 1,
|
|
13
|
+
Dsts: 2,
|
|
14
|
+
Ciam: 3
|
|
15
|
+
};
|
|
17
16
|
|
|
18
17
|
export { AuthorityType };
|
|
19
18
|
//# sourceMappingURL=AuthorityType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorityType.js","sources":["../../src/authority/AuthorityType.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;
|
|
1
|
+
{"version":3,"file":"AuthorityType.js","sources":["../../src/authority/AuthorityType.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;AACU,MAAA,aAAa,GAAG;AACzB,IAAA,OAAO,EAAE,CAAC;AACV,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,IAAI,EAAE,CAAC;;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Protocol modes supported by MSAL.
|
|
3
3
|
*/
|
|
4
|
-
export declare
|
|
5
|
-
AAD
|
|
6
|
-
OIDC
|
|
7
|
-
}
|
|
4
|
+
export declare const ProtocolMode: {
|
|
5
|
+
readonly AAD: "AAD";
|
|
6
|
+
readonly OIDC: "OIDC";
|
|
7
|
+
};
|
|
8
|
+
export type ProtocolMode = typeof ProtocolMode[keyof typeof ProtocolMode];
|
|
8
9
|
//# sourceMappingURL=ProtocolMode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"ProtocolMode.d.ts","sourceRoot":"","sources":["../../src/authority/ProtocolMode.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Protocol modes supported by MSAL.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})(ProtocolMode || (ProtocolMode = {}));
|
|
10
|
+
const ProtocolMode = {
|
|
11
|
+
AAD: "AAD",
|
|
12
|
+
OIDC: "OIDC",
|
|
13
|
+
};
|
|
15
14
|
|
|
16
15
|
export { ProtocolMode };
|
|
17
16
|
//# sourceMappingURL=ProtocolMode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolMode.js","sources":["../../src/authority/ProtocolMode.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;
|
|
1
|
+
{"version":3,"file":"ProtocolMode.js","sources":["../../src/authority/ProtocolMode.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;AACU,MAAA,YAAY,GAAG;AACxB,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,IAAI,EAAE,MAAM;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Constants, ResponseCodes, RegionDiscoverySources } from '../utils/Constants.js';
|
|
4
4
|
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Separators, CredentialType, AuthenticationScheme, THE_FAMILY_ID, APP_METADATA, AUTHORITY_METADATA_CONSTANTS } from '../utils/Constants.js';
|
|
4
4
|
import { ScopeSet } from '../request/ScopeSet.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Separators, CacheAccountType, CacheType, Constants } from '../../utils/Constants.js';
|
|
4
4
|
import { buildClientInfo } from '../../account/ClientInfo.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { CredentialType, CacheType, Separators, Constants, AuthenticationScheme } from '../../utils/Constants.js';
|
|
4
4
|
import { ClientAuthError } from '../../error/ClientAuthError.js';
|
package/dist/crypto/ICrypto.js
CHANGED
|
@@ -16,10 +16,11 @@ export type ReqCnfData = {
|
|
|
16
16
|
reqCnfString: string;
|
|
17
17
|
reqCnfHash: string;
|
|
18
18
|
};
|
|
19
|
-
declare
|
|
20
|
-
SW
|
|
21
|
-
UHW
|
|
22
|
-
}
|
|
19
|
+
declare const KeyLocation: {
|
|
20
|
+
readonly SW: "sw";
|
|
21
|
+
readonly UHW: "uhw";
|
|
22
|
+
};
|
|
23
|
+
export type KeyLocation = typeof KeyLocation[keyof typeof KeyLocation];
|
|
23
24
|
export declare class PopTokenGenerator {
|
|
24
25
|
private cryptoUtils;
|
|
25
26
|
private performanceClient?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAGjF;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAGjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAGjF;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAC,CAAqB;gBAEnC,WAAW,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,kBAAkB;IAKxE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,UAAU,CAAC;IAsBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CA+BrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { TimeUtils } from '../utils/TimeUtils.js';
|
|
4
4
|
import { UrlString } from '../url/UrlString.js';
|
|
@@ -8,11 +8,10 @@ import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js'
|
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Licensed under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(KeyLocation || (KeyLocation = {}));
|
|
11
|
+
const KeyLocation = {
|
|
12
|
+
SW: "sw",
|
|
13
|
+
UHW: "uhw",
|
|
14
|
+
};
|
|
16
15
|
class PopTokenGenerator {
|
|
17
16
|
constructor(cryptoUtils, performanceClient) {
|
|
18
17
|
this.cryptoUtils = cryptoUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopTokenGenerator.js","sources":["../../src/crypto/PopTokenGenerator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AA0BH,
|
|
1
|
+
{"version":3,"file":"PopTokenGenerator.js","sources":["../../src/crypto/PopTokenGenerator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AA0BH,MAAM,WAAW,GAAG;AAChB,IAAA,EAAE,EAAE,IAAI;AACR,IAAA,GAAG,EAAE,KAAK;CACJ,CAAC;MAGE,iBAAiB,CAAA;IAI1B,WAAY,CAAA,WAAoB,EAAE,iBAAsC,EAAA;AACpE,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;KAC9C;AAED;;;;;AAKG;IACH,MAAM,WAAW,CACb,OAAoC,EAAA;AAEpC,QAAA,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CACvC,iBAAiB,CAAC,mBAAmB,EACrC,OAAO,CAAC,aAAa,CACxB,CAAC;AAEF,QAAA,IAAI,CAAC,iBAAiB,EAAE,eAAe,CACnC,iBAAiB,CAAC,mBAAmB,EACrC,OAAO,CAAC,aAAa,CACxB,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC/C,QAAA,MAAM,YAAY,GAAW,IAAI,CAAC,WAAW,CAAC,YAAY,CACtD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CACzB,CAAC;QAEF,OAAO;YACH,GAAG,EAA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AI,CAAC,WAAW,CAAC,aAAa,EAAE;YACnD,CAAC,EAAE,qBAAqB,EAAE,YAAY;YACtC,CAAC,EAAE,qBAAqB,EAAE,WAAW;AACjC,kBAAE,CAAC,EAAE,EAAE,qBAAqB,CAAC,WAAW,CAAC;AACzC,kBAAE,SAAS;YACf,aAAa,EAAE,SAAS,IAAI,SAAS;AACrC,YAAA,GAAG,MAAM;AACZ,SAAA,EACD,KAAK,EACL,OAAO,CAAC,aAAa,CACxB,CAAC;KACL;AACJ;;;;"}
|
package/dist/error/AuthError.js
CHANGED
|
@@ -95,6 +95,10 @@ export declare const ClientConfigurationErrorMessage: {
|
|
|
95
95
|
code: string;
|
|
96
96
|
desc: string;
|
|
97
97
|
};
|
|
98
|
+
authorityMismatch: {
|
|
99
|
+
code: string;
|
|
100
|
+
desc: string;
|
|
101
|
+
};
|
|
98
102
|
};
|
|
99
103
|
/**
|
|
100
104
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
@@ -195,5 +199,9 @@ export declare class ClientConfigurationError extends ClientAuthError {
|
|
|
195
199
|
* Throws error when a provided header is invalid in any way
|
|
196
200
|
*/
|
|
197
201
|
static createInvalidAuthenticationHeaderError(invalidHeaderName: string, details: string): ClientConfigurationError;
|
|
202
|
+
/**
|
|
203
|
+
* Create an error when the authority provided in request does not match authority provided in account or MSAL.js configuration.
|
|
204
|
+
*/
|
|
205
|
+
static createAuthorityMismatchError(): ClientConfigurationError;
|
|
198
206
|
}
|
|
199
207
|
//# sourceMappingURL=ClientConfigurationError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../src/error/ClientConfigurationError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"ClientConfigurationError.d.ts","sourceRoot":"","sources":["../../src/error/ClientCon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C,qCAAqC,IAAI,wBAAwB;IAOxE;;OAEG;IACH,MAAM,CAAC,wCAAwC,IAAI,wBAAwB;IAO3E;;OAEG;IACH,MAAM,CAAC,mCAAmC,IAAI,wBAAwB;IAOtE;;OAEG;IACH,MAAM,CAAC,6BAA6B,IAAI,wBAAwB;IAOhE;;OAEG;IACH,MAAM,CAAC,oCAAoC,IAAI,wBAAwB;IAOvE;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,wBAAwB;IAO3D;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,wBAAwB;IAO3D;;OAEG;IACH,MAAM,CAAC,4CAA4C,IAAI,wBAAwB;IAO/E;;OAEG;IACH,MAAM,CAAC,sCAAsC,CACzC,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,GAChB,wBAAwB;IAO3B;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,wBAAwB;CAGlE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0-
|
|
1
|
+
/*! @azure/msal-common v14.0.0-beta.0 2023-06-19 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ClientAuthError } from './ClientAuthError.js';
|
|
4
4
|
|
|
@@ -100,8 +100,12 @@ const ClientConfigurationErrorMessage = {
|
|
|
100
100
|
},
|
|
101
101
|
invalidAuthenticationHeader: {
|
|
102
102
|
code: "invalid_authentication_header",
|
|
103
|
-
desc: "Invalid authentication header provided"
|
|
103
|
+
desc: "Invalid authentication header provided"
|
|
104
104
|
},
|
|
105
|
+
authorityMismatch: {
|
|
106
|
+
code: "authority_mismatch",
|
|
107
|
+
desc: "Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."
|
|
108
|
+
}
|
|
105
109
|
};
|
|
106
110
|
/**
|
|
107
111
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
@@ -250,6 +254,12 @@ class ClientConfigurationError extends ClientAuthError {
|
|
|
250
254
|
static createInvalidAuthenticationHeaderError(invalidHeaderName, details) {
|
|
251
255
|
return new ClientConfigurationError(ClientConfigurationErrorMessage.invalidAuthenticationHeader.code, `${ClientConfigurationErrorMessage.invalidAuthenticationHeader.desc}. Invalid header: ${invalidHeaderName}. Details: ${details}`);
|
|
252
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Create an error when the authority provided in request does not match authority provided in account or MSAL.js configuration.
|
|
259
|
+
*/
|
|
260
|
+
static createAuthorityMismatchError() {
|
|
261
|
+
return new ClientConfigurationError(ClientConfigurationErrorMessage.authorityMismatch.code, ClientConfigurationErrorMessage.authorityMismatch.desc);
|
|
262
|
+
}
|
|
253
263
|
}
|
|
254
264
|
|
|
255
265
|
export { ClientConfigurationError, ClientConfigurationErrorMessage };
|