@azure/msal-node-extensions 1.5.23 → 5.0.0-alpha.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/bin/arm64/dpapi.node +0 -0
- package/bin/ia32/dpapi.node +0 -0
- package/bin/x64/dpapi.node +0 -0
- package/dist/Dpapi.mjs +1 -1
- package/dist/Dpapi.mjs.map +1 -1
- package/dist/broker/NativeBrokerPlugin.mjs +30 -42
- package/dist/broker/NativeBrokerPlugin.mjs.map +1 -1
- package/dist/error/NativeAuthError.d.ts +1 -1
- package/dist/error/NativeAuthError.mjs +2 -3
- package/dist/error/NativeAuthError.mjs.map +1 -1
- package/dist/error/PersistenceError.mjs +1 -1
- package/dist/error/PersistenceError.mjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs +2 -2
- package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/AuthError.mjs +16 -11
- package/dist/lib/msal-common/dist/error/AuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientAuthError.mjs +4 -56
- package/dist/lib/msal-common/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs +4 -49
- package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs +4 -30
- package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +4 -30
- package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs +6 -7
- package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ServerError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ServerError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/logger/Logger.mjs +17 -23
- package/dist/lib/msal-common/dist/logger/Logger.mjs.map +1 -1
- package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +29 -31
- package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/lib/msal-common/dist/utils/Constants.mjs +15 -79
- package/dist/lib/msal-common/dist/utils/Constants.mjs.map +1 -1
- package/dist/lib/msal-common/dist/utils/TimeUtils.mjs +2 -2
- package/dist/lib/msal-common/dist/utils/TimeUtils.mjs.map +1 -1
- package/dist/lock/CrossPlatformLock.mjs +10 -10
- package/dist/lock/CrossPlatformLock.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/persistence/BasePersistence.mjs +1 -1
- package/dist/persistence/BasePersistence.mjs.map +1 -1
- package/dist/persistence/DataProtectionScope.mjs +1 -1
- package/dist/persistence/DataProtectionScope.mjs.map +1 -1
- package/dist/persistence/FilePersistence.mjs +5 -5
- package/dist/persistence/FilePersistence.mjs.map +1 -1
- package/dist/persistence/FilePersistenceWithDataProtection.mjs +2 -2
- package/dist/persistence/FilePersistenceWithDataProtection.mjs.map +1 -1
- package/dist/persistence/KeychainPersistence.mjs +1 -1
- package/dist/persistence/KeychainPersistence.mjs.map +1 -1
- package/dist/persistence/LibSecretPersistence.mjs +1 -1
- package/dist/persistence/LibSecretPersistence.mjs.map +1 -1
- package/dist/persistence/PersistenceCachePlugin.mjs +12 -12
- package/dist/persistence/PersistenceCachePlugin.mjs.map +1 -1
- package/dist/persistence/PersistenceCreator.mjs +1 -1
- package/dist/persistence/PersistenceCreator.mjs.map +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/Environment.mjs +1 -1
- package/dist/utils/Environment.mjs.map +1 -1
- package/dist/utils/TypeGuards.mjs +1 -1
- package/dist/utils/TypeGuards.mjs.map +1 -1
- package/lib/msal-node-extensions.cjs +180 -430
- package/lib/msal-node-extensions.cjs.map +1 -1
- package/lib/types/error/NativeAuthError.d.ts +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +86 -88
- package/dist/utils/StringUtils.d.ts +0 -8
- package/dist/utils/StringUtils.mjs +0 -32
- package/dist/utils/StringUtils.mjs.map +0 -1
- package/lib/types/utils/StringUtils.d.ts +0 -8
|
@@ -1,54 +1,9 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
|
-
/*! @azure/msal-common
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
* Licensed under the MIT License.
|
|
7
|
-
*/
|
|
8
|
-
const clientInfoDecodingError = "client_info_decoding_error";
|
|
9
|
-
const clientInfoEmptyError = "client_info_empty_error";
|
|
10
|
-
const tokenParsingError = "token_parsing_error";
|
|
11
|
-
const nullOrEmptyToken = "null_or_empty_token";
|
|
12
|
-
const endpointResolutionError = "endpoints_resolution_error";
|
|
13
|
-
const networkError = "network_error";
|
|
14
|
-
const openIdConfigError = "openid_config_error";
|
|
15
|
-
const hashNotDeserialized = "hash_not_deserialized";
|
|
16
|
-
const invalidState = "invalid_state";
|
|
17
|
-
const stateMismatch = "state_mismatch";
|
|
18
|
-
const stateNotFound = "state_not_found";
|
|
19
|
-
const nonceMismatch = "nonce_mismatch";
|
|
20
|
-
const authTimeNotFound = "auth_time_not_found";
|
|
21
|
-
const maxAgeTranspired = "max_age_transpired";
|
|
22
|
-
const multipleMatchingTokens = "multiple_matching_tokens";
|
|
23
|
-
const multipleMatchingAccounts = "multiple_matching_accounts";
|
|
24
|
-
const multipleMatchingAppMetadata = "multiple_matching_appMetadata";
|
|
25
|
-
const requestCannotBeMade = "request_cannot_be_made";
|
|
26
|
-
const cannotRemoveEmptyScope = "cannot_remove_empty_scope";
|
|
27
|
-
const cannotAppendScopeSet = "cannot_append_scopeset";
|
|
28
|
-
const emptyInputScopeSet = "empty_input_scopeset";
|
|
29
|
-
const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
30
|
-
const deviceCodeExpired = "device_code_expired";
|
|
31
|
-
const deviceCodeUnknownError = "device_code_unknown_error";
|
|
32
|
-
const noAccountInSilentRequest = "no_account_in_silent_request";
|
|
33
|
-
const invalidCacheRecord = "invalid_cache_record";
|
|
34
|
-
const invalidCacheEnvironment = "invalid_cache_environment";
|
|
3
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
35
4
|
const noAccountFound = "no_account_found";
|
|
36
|
-
const noCryptoObject = "no_crypto_object";
|
|
37
|
-
const unexpectedCredentialType = "unexpected_credential_type";
|
|
38
|
-
const invalidAssertion = "invalid_assertion";
|
|
39
|
-
const invalidClientCredential = "invalid_client_credential";
|
|
40
|
-
const tokenRefreshRequired = "token_refresh_required";
|
|
41
|
-
const userTimeoutReached = "user_timeout_reached";
|
|
42
|
-
const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
|
|
43
|
-
const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
|
|
44
|
-
const bindingKeyNotRemoved = "binding_key_not_removed";
|
|
45
|
-
const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
|
46
|
-
const keyIdMissing = "key_id_missing";
|
|
47
5
|
const noNetworkConnectivity = "no_network_connectivity";
|
|
48
|
-
const userCanceled = "user_canceled";
|
|
49
|
-
const missingTenantIdError = "missing_tenant_id_error";
|
|
50
|
-
const methodNotImplemented = "method_not_implemented";
|
|
51
|
-
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
|
6
|
+
const userCanceled = "user_canceled";
|
|
52
7
|
|
|
53
|
-
export {
|
|
8
|
+
export { noAccountFound, noNetworkConnectivity, userCanceled };
|
|
54
9
|
//# sourceMappingURL=ClientAuthErrorCodes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientAuthErrorCodes.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientAuthErrorCodes.mjs"],"sourcesContent":["/*! @azure/msal-common
|
|
1
|
+
{"version":3,"file":"ClientAuthErrorCodes.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientAuthErrorCodes.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nconst clientInfoDecodingError = \"client_info_decoding_error\";\r\nconst clientInfoEmptyError = \"client_info_empty_error\";\r\nconst tokenParsingError = \"token_parsing_error\";\r\nconst nullOrEmptyToken = \"null_or_empty_token\";\r\nconst endpointResolutionError = \"endpoints_resolution_error\";\r\nconst networkError = \"network_error\";\r\nconst openIdConfigError = \"openid_config_error\";\r\nconst hashNotDeserialized = \"hash_not_deserialized\";\r\nconst invalidState = \"invalid_state\";\r\nconst stateMismatch = \"state_mismatch\";\r\nconst stateNotFound = \"state_not_found\";\r\nconst nonceMismatch = \"nonce_mismatch\";\r\nconst authTimeNotFound = \"auth_time_not_found\";\r\nconst maxAgeTranspired = \"max_age_transpired\";\r\nconst multipleMatchingTokens = \"multiple_matching_tokens\";\r\nconst multipleMatchingAppMetadata = \"multiple_matching_appMetadata\";\r\nconst requestCannotBeMade = \"request_cannot_be_made\";\r\nconst cannotRemoveEmptyScope = \"cannot_remove_empty_scope\";\r\nconst cannotAppendScopeSet = \"cannot_append_scopeset\";\r\nconst emptyInputScopeSet = \"empty_input_scopeset\";\r\nconst noAccountInSilentRequest = \"no_account_in_silent_request\";\r\nconst invalidCacheRecord = \"invalid_cache_record\";\r\nconst invalidCacheEnvironment = \"invalid_cache_environment\";\r\nconst noAccountFound = \"no_account_found\";\r\nconst noCryptoObject = \"no_crypto_object\";\r\nconst unexpectedCredentialType = \"unexpected_credential_type\";\r\nconst tokenRefreshRequired = \"token_refresh_required\";\r\nconst tokenClaimsCnfRequiredForSignedJwt = \"token_claims_cnf_required_for_signedjwt\";\r\nconst authorizationCodeMissingFromServerResponse = \"authorization_code_missing_from_server_response\";\r\nconst bindingKeyNotRemoved = \"binding_key_not_removed\";\r\nconst endSessionEndpointNotSupported = \"end_session_endpoint_not_supported\";\r\nconst keyIdMissing = \"key_id_missing\";\r\nconst noNetworkConnectivity = \"no_network_connectivity\";\r\nconst userCanceled = \"user_canceled\";\r\nconst methodNotImplemented = \"method_not_implemented\";\r\nconst nestedAppAuthBridgeDisabled = \"nested_app_auth_bridge_disabled\";\n\nexport { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError, emptyInputScopeSet, endSessionEndpointNotSupported, endpointResolutionError, hashNotDeserialized, invalidCacheEnvironment, invalidCacheRecord, invalidState, keyIdMissing, maxAgeTranspired, methodNotImplemented, multipleMatchingAppMetadata, multipleMatchingTokens, nestedAppAuthBridgeDisabled, networkError, noAccountFound, noAccountInSilentRequest, noCryptoObject, noNetworkConnectivity, nonceMismatch, nullOrEmptyToken, openIdConfigError, requestCannotBeMade, stateMismatch, stateNotFound, tokenClaimsCnfRequiredForSignedJwt, tokenParsingError, tokenRefreshRequired, unexpectedCredentialType, userCanceled };\n//# sourceMappingURL=ClientAuthErrorCodes.mjs.map\n"],"names":[],"mappings":";;AAAA;AA6BK,MAAC,cAAc,GAAG,mBAAmB;AASrC,MAAC,qBAAqB,GAAG,0BAA0B;AACnD,MAAC,YAAY,GAAG;;;;"}
|
|
@@ -1,45 +1,19 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthError } from './AuthError.mjs';
|
|
4
|
-
import { invalidRequestMethodForEAR, invalidAuthorizePostBodyParameters, authorityMismatch, cannotAllowPlatformBroker, cannotSetOIDCOptions, invalidAuthenticationHeader, missingNonceAuthenticationHeader, missingSshKid, missingSshJwk, untrustedAuthority, invalidAuthorityMetadata, invalidCloudDiscoveryMetadata, pkceParamsMissing, invalidCodeChallengeMethod, logoutRequestEmpty, tokenRequestEmpty, invalidClaims, emptyInputScopesError, urlEmptyError, urlParseError, authorityUriInsecure, claimsRequestParsingError, redirectUriEmpty } from './ClientConfigurationErrorCodes.mjs';
|
|
5
4
|
|
|
6
|
-
/*! @azure/msal-common
|
|
5
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
7
6
|
|
|
8
7
|
/*
|
|
9
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
9
|
* Licensed under the MIT License.
|
|
11
10
|
*/
|
|
12
|
-
const ClientConfigurationErrorMessages = {
|
|
13
|
-
[redirectUriEmpty]: "A redirect URI is required for all calls, and none has been set.",
|
|
14
|
-
[claimsRequestParsingError]: "Could not parse the given claims request object.",
|
|
15
|
-
[authorityUriInsecure]: "Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",
|
|
16
|
-
[urlParseError]: "URL could not be parsed into appropriate segments.",
|
|
17
|
-
[urlEmptyError]: "URL was empty or null.",
|
|
18
|
-
[emptyInputScopesError]: "Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",
|
|
19
|
-
[invalidClaims]: "Given claims parameter must be a stringified JSON object.",
|
|
20
|
-
[tokenRequestEmpty]: "Token request was empty and not found in cache.",
|
|
21
|
-
[logoutRequestEmpty]: "The logout request was null or undefined.",
|
|
22
|
-
[invalidCodeChallengeMethod]: 'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',
|
|
23
|
-
[pkceParamsMissing]: "Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",
|
|
24
|
-
[invalidCloudDiscoveryMetadata]: "Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",
|
|
25
|
-
[invalidAuthorityMetadata]: "Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",
|
|
26
|
-
[untrustedAuthority]: "The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",
|
|
27
|
-
[missingSshJwk]: "Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",
|
|
28
|
-
[missingSshKid]: "Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",
|
|
29
|
-
[missingNonceAuthenticationHeader]: "Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",
|
|
30
|
-
[invalidAuthenticationHeader]: "Invalid authentication header provided",
|
|
31
|
-
[cannotSetOIDCOptions]: "Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",
|
|
32
|
-
[cannotAllowPlatformBroker]: "Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",
|
|
33
|
-
[authorityMismatch]: "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.",
|
|
34
|
-
[invalidAuthorizePostBodyParameters]: "Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.",
|
|
35
|
-
[invalidRequestMethodForEAR]: "Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST.",
|
|
36
|
-
};
|
|
37
11
|
/**
|
|
38
12
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
39
13
|
*/
|
|
40
14
|
class ClientConfigurationError extends AuthError {
|
|
41
15
|
constructor(errorCode) {
|
|
42
|
-
super(errorCode
|
|
16
|
+
super(errorCode);
|
|
43
17
|
this.name = "ClientConfigurationError";
|
|
44
18
|
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
|
45
19
|
}
|
|
@@ -48,5 +22,5 @@ function createClientConfigurationError(errorCode) {
|
|
|
48
22
|
return new ClientConfigurationError(errorCode);
|
|
49
23
|
}
|
|
50
24
|
|
|
51
|
-
export { ClientConfigurationError,
|
|
25
|
+
export { ClientConfigurationError, createClientConfigurationError };
|
|
52
26
|
//# sourceMappingURL=ClientConfigurationError.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientConfigurationError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientConfigurationError.mjs"],"sourcesContent":["/*! @azure/msal-common v15.13.0 2025-09-24 */\n'use strict';\nimport { AuthError } from './AuthError.mjs';\nimport { invalidRequestMethodForEAR, invalidAuthorizePostBodyParameters, authorityMismatch, cannotAllowPlatformBroker, cannotSetOIDCOptions, invalidAuthenticationHeader, missingNonceAuthenticationHeader, missingSshKid, missingSshJwk, untrustedAuthority, invalidAuthorityMetadata, invalidCloudDiscoveryMetadata, pkceParamsMissing, invalidCodeChallengeMethod, logoutRequestEmpty, tokenRequestEmpty, invalidClaims, emptyInputScopesError, urlEmptyError, urlParseError, authorityUriInsecure, claimsRequestParsingError, redirectUriEmpty } from './ClientConfigurationErrorCodes.mjs';\nimport * as ClientConfigurationErrorCodes from './ClientConfigurationErrorCodes.mjs';\nexport { ClientConfigurationErrorCodes };\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nconst ClientConfigurationErrorMessages = {\r\n [redirectUriEmpty]: \"A redirect URI is required for all calls, and none has been set.\",\r\n [claimsRequestParsingError]: \"Could not parse the given claims request object.\",\r\n [authorityUriInsecure]: \"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options\",\r\n [urlParseError]: \"URL could not be parsed into appropriate segments.\",\r\n [urlEmptyError]: \"URL was empty or null.\",\r\n [emptyInputScopesError]: \"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.\",\r\n [invalidClaims]: \"Given claims parameter must be a stringified JSON object.\",\r\n [tokenRequestEmpty]: \"Token request was empty and not found in cache.\",\r\n [logoutRequestEmpty]: \"The logout request was null or undefined.\",\r\n [invalidCodeChallengeMethod]: 'code_challenge_method passed is invalid. Valid values are \"plain\" and \"S256\".',\r\n [pkceParamsMissing]: \"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request\",\r\n [invalidCloudDiscoveryMetadata]: \"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields\",\r\n [invalidAuthorityMetadata]: \"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.\",\r\n [untrustedAuthority]: \"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.\",\r\n [missingSshJwk]: \"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.\",\r\n [missingSshKid]: \"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.\",\r\n [missingNonceAuthenticationHeader]: \"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.\",\r\n [invalidAuthenticationHeader]: \"Invalid authentication header provided\",\r\n [cannotSetOIDCOptions]: \"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.\",\r\n [cannotAllowPlatformBroker]: \"Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.\",\r\n [authorityMismatch]: \"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.\",\r\n [invalidAuthorizePostBodyParameters]: \"Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.\",\r\n [invalidRequestMethodForEAR]: \"Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST.\",\r\n};\r\n/**\r\n * ClientConfigurationErrorMessage class containing string constants used by error codes and messages.\r\n * @deprecated Use ClientConfigurationErrorCodes instead\r\n */\r\nconst ClientConfigurationErrorMessage = {\r\n redirectUriNotSet: {\r\n code: redirectUriEmpty,\r\n desc: ClientConfigurationErrorMessages[redirectUriEmpty],\r\n },\r\n claimsRequestParsingError: {\r\n code: claimsRequestParsingError,\r\n desc: ClientConfigurationErrorMessages[claimsRequestParsingError],\r\n },\r\n authorityUriInsecure: {\r\n code: authorityUriInsecure,\r\n desc: ClientConfigurationErrorMessages[authorityUriInsecure],\r\n },\r\n urlParseError: {\r\n code: urlParseError,\r\n desc: ClientConfigurationErrorMessages[urlParseError],\r\n },\r\n urlEmptyError: {\r\n code: urlEmptyError,\r\n desc: ClientConfigurationErrorMessages[urlEmptyError],\r\n },\r\n emptyScopesError: {\r\n code: emptyInputScopesError,\r\n desc: ClientConfigurationErrorMessages[emptyInputScopesError],\r\n },\r\n invalidClaimsRequest: {\r\n code: invalidClaims,\r\n desc: ClientConfigurationErrorMessages[invalidClaims],\r\n },\r\n tokenRequestEmptyError: {\r\n code: tokenRequestEmpty,\r\n desc: ClientConfigurationErrorMessages[tokenRequestEmpty],\r\n },\r\n logoutRequestEmptyError: {\r\n code: logoutRequestEmpty,\r\n desc: ClientConfigurationErrorMessages[logoutRequestEmpty],\r\n },\r\n invalidCodeChallengeMethod: {\r\n code: invalidCodeChallengeMethod,\r\n desc: ClientConfigurationErrorMessages[invalidCodeChallengeMethod],\r\n },\r\n invalidCodeChallengeParams: {\r\n code: pkceParamsMissing,\r\n desc: ClientConfigurationErrorMessages[pkceParamsMissing],\r\n },\r\n invalidCloudDiscoveryMetadata: {\r\n code: invalidCloudDiscoveryMetadata,\r\n desc: ClientConfigurationErrorMessages[invalidCloudDiscoveryMetadata],\r\n },\r\n invalidAuthorityMetadata: {\r\n code: invalidAuthorityMetadata,\r\n desc: ClientConfigurationErrorMessages[invalidAuthorityMetadata],\r\n },\r\n untrustedAuthority: {\r\n code: untrustedAuthority,\r\n desc: ClientConfigurationErrorMessages[untrustedAuthority],\r\n },\r\n missingSshJwk: {\r\n code: missingSshJwk,\r\n desc: ClientConfigurationErrorMessages[missingSshJwk],\r\n },\r\n missingSshKid: {\r\n code: missingSshKid,\r\n desc: ClientConfigurationErrorMessages[missingSshKid],\r\n },\r\n missingNonceAuthenticationHeader: {\r\n code: missingNonceAuthenticationHeader,\r\n desc: ClientConfigurationErrorMessages[missingNonceAuthenticationHeader],\r\n },\r\n invalidAuthenticationHeader: {\r\n code: invalidAuthenticationHeader,\r\n desc: ClientConfigurationErrorMessages[invalidAuthenticationHeader],\r\n },\r\n cannotSetOIDCOptions: {\r\n code: cannotSetOIDCOptions,\r\n desc: ClientConfigurationErrorMessages[cannotSetOIDCOptions],\r\n },\r\n cannotAllowPlatformBroker: {\r\n code: cannotAllowPlatformBroker,\r\n desc: ClientConfigurationErrorMessages[cannotAllowPlatformBroker],\r\n },\r\n authorityMismatch: {\r\n code: authorityMismatch,\r\n desc: ClientConfigurationErrorMessages[authorityMismatch],\r\n },\r\n invalidAuthorizePostBodyParameters: {\r\n code: invalidAuthorizePostBodyParameters,\r\n desc: ClientConfigurationErrorMessages[invalidAuthorizePostBodyParameters],\r\n },\r\n invalidRequestMethodForEAR: {\r\n code: invalidRequestMethodForEAR,\r\n desc: ClientConfigurationErrorMessages[invalidRequestMethodForEAR],\r\n },\r\n};\r\n/**\r\n * Error thrown when there is an error in configuration of the MSAL.js library.\r\n */\r\nclass ClientConfigurationError extends AuthError {\r\n constructor(errorCode) {\r\n super(errorCode, ClientConfigurationErrorMessages[errorCode]);\r\n this.name = \"ClientConfigurationError\";\r\n Object.setPrototypeOf(this, ClientConfigurationError.prototype);\r\n }\r\n}\r\nfunction createClientConfigurationError(errorCode) {\r\n return new ClientConfigurationError(errorCode);\r\n}\n\nexport { ClientConfigurationError, ClientConfigurationErrorMessage, ClientConfigurationErrorMessages, createClientConfigurationError };\n//# sourceMappingURL=ClientConfigurationError.mjs.map\n"],"names":[],"mappings":";;;;;AAAA;;AAOA;AACA;AACA;AACA;AACK,MAAC,gCAAgC,GAAG;AACzC,IAAI,CAAC,gBAAgB,GAAG,kEAAkE;AAC1F,IAAI,CAAC,yBAAyB,GAAG,kDAAkD;AACnF,IAAI,CAAC,oBAAoB,GAAG,2NAA2N;AACvP,IAAI,CAAC,aAAa,GAAG,oDAAoD;AACzE,IAAI,CAAC,aAAa,GAAG,wBAAwB;AAC7C,IAAI,CAAC,qBAAqB,GAAG,gHAAgH;AAC7I,IAAI,CAAC,aAAa,GAAG,2DAA2D;AAChF,IAAI,CAAC,iBAAiB,GAAG,iDAAiD;AAC1E,IAAI,CAAC,kBAAkB,GAAG,2CAA2C;AACrE,IAAI,CAAC,0BAA0B,GAAG,+EAA+E;AACjH,IAAI,CAAC,iBAAiB,GAAG,qGAAqG;AAC9H,IAAI,CAAC,6BAA6B,GAAG,qIAAqI;AAC1K,IAAI,CAAC,wBAAwB,GAAG,yIAAyI;AACzK,IAAI,CAAC,kBAAkB,GAAG,4HAA4H;AACtJ,IAAI,CAAC,aAAa,GAAG,6HAA6H;AAClJ,IAAI,CAAC,aAAa,GAAG,uJAAuJ;AAC5K,IAAI,CAAC,gCAAgC,GAAG,gLAAgL;AACxN,IAAI,CAAC,2BAA2B,GAAG,wCAAwC;AAC3E,IAAI,CAAC,oBAAoB,GAAG,6GAA6G;AACzI,IAAI,CAAC,yBAAyB,GAAG,iFAAiF;AAClH,IAAI,CAAC,iBAAiB,GAAG,kPAAkP;AAC3Q,IAAI,CAAC,kCAAkC,GAAG,iLAAiL;AAC3N,IAAI,CAAC,0BAA0B,GAAG,wJAAwJ;AAC1L,EAAE;AAmGF;AACA;AACA;AACA,MAAM,wBAAwB,SAAS,SAAS,CAAC;AACjD,IAAI,WAAW,CAAC,SAAS,EAAE;AAC3B,QAAQ,KAAK,CAAC,SAAS,EAAE,gCAAgC,CAAC,SAAS,CAAC,CAAC,CAAC;AACtE,QAAQ,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;AAC/C,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;AACxE,KAAK;AACL,CAAC;AACD,SAAS,8BAA8B,CAAC,SAAS,EAAE;AACnD,IAAI,OAAO,IAAI,wBAAwB,CAAC,SAAS,CAAC,CAAC;AACnD;;;;"}
|
|
1
|
+
{"version":3,"file":"ClientConfigurationError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientConfigurationError.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\nimport { AuthError } from './AuthError.mjs';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Error thrown when there is an error in configuration of the MSAL.js library.\r\n */\r\nclass ClientConfigurationError extends AuthError {\r\n constructor(errorCode) {\r\n super(errorCode);\r\n this.name = \"ClientConfigurationError\";\r\n Object.setPrototypeOf(this, ClientConfigurationError.prototype);\r\n }\r\n}\r\nfunction createClientConfigurationError(errorCode) {\r\n return new ClientConfigurationError(errorCode);\r\n}\n\nexport { ClientConfigurationError, createClientConfigurationError };\n//# sourceMappingURL=ClientConfigurationError.mjs.map\n"],"names":[],"mappings":";;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,wBAAwB,SAAS,SAAS,CAAC;AACjD,IAAI,WAAW,CAAC,SAAS,EAAE;AAC3B,QAAQ,KAAK,CAAC,SAAS,CAAC,CAAC;AACzB,QAAQ,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;AAC/C,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;AACxE,IAAI,CAAC;AACL,CAAC;AACD,SAAS,8BAA8B,CAAC,SAAS,EAAE;AACnD,IAAI,OAAO,IAAI,wBAAwB,CAAC,SAAS,CAAC,CAAC;AACnD;;;;"}
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
|
-
/*! @azure/msal-common
|
|
4
|
-
|
|
5
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
* Licensed under the MIT License.
|
|
7
|
-
*/
|
|
8
|
-
const redirectUriEmpty = "redirect_uri_empty";
|
|
9
|
-
const claimsRequestParsingError = "claims_request_parsing_error";
|
|
10
|
-
const authorityUriInsecure = "authority_uri_insecure";
|
|
11
|
-
const urlParseError = "url_parse_error";
|
|
12
|
-
const urlEmptyError = "empty_url_error";
|
|
13
|
-
const emptyInputScopesError = "empty_input_scopes_error";
|
|
14
|
-
const invalidClaims = "invalid_claims";
|
|
15
|
-
const tokenRequestEmpty = "token_request_empty";
|
|
16
|
-
const logoutRequestEmpty = "logout_request_empty";
|
|
17
|
-
const invalidCodeChallengeMethod = "invalid_code_challenge_method";
|
|
18
|
-
const pkceParamsMissing = "pkce_params_missing";
|
|
19
|
-
const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata";
|
|
20
|
-
const invalidAuthorityMetadata = "invalid_authority_metadata";
|
|
21
|
-
const untrustedAuthority = "untrusted_authority";
|
|
22
|
-
const missingSshJwk = "missing_ssh_jwk";
|
|
23
|
-
const missingSshKid = "missing_ssh_kid";
|
|
24
|
-
const missingNonceAuthenticationHeader = "missing_nonce_authentication_header";
|
|
25
|
-
const invalidAuthenticationHeader = "invalid_authentication_header";
|
|
26
|
-
const cannotSetOIDCOptions = "cannot_set_OIDCOptions";
|
|
27
|
-
const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
|
|
28
|
-
const authorityMismatch = "authority_mismatch";
|
|
29
|
-
const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
|
30
|
-
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
|
3
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
4
|
+
const untrustedAuthority = "untrusted_authority";
|
|
31
5
|
|
|
32
|
-
export {
|
|
6
|
+
export { untrustedAuthority };
|
|
33
7
|
//# sourceMappingURL=ClientConfigurationErrorCodes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientConfigurationErrorCodes.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs"],"sourcesContent":["/*! @azure/msal-common
|
|
1
|
+
{"version":3,"file":"ClientConfigurationErrorCodes.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\nconst redirectUriEmpty = \"redirect_uri_empty\";\r\nconst claimsRequestParsingError = \"claims_request_parsing_error\";\r\nconst authorityUriInsecure = \"authority_uri_insecure\";\r\nconst urlParseError = \"url_parse_error\";\r\nconst urlEmptyError = \"empty_url_error\";\r\nconst emptyInputScopesError = \"empty_input_scopes_error\";\r\nconst invalidClaims = \"invalid_claims\";\r\nconst tokenRequestEmpty = \"token_request_empty\";\r\nconst logoutRequestEmpty = \"logout_request_empty\";\r\nconst invalidCodeChallengeMethod = \"invalid_code_challenge_method\";\r\nconst pkceParamsMissing = \"pkce_params_missing\";\r\nconst invalidCloudDiscoveryMetadata = \"invalid_cloud_discovery_metadata\";\r\nconst invalidAuthorityMetadata = \"invalid_authority_metadata\";\r\nconst untrustedAuthority = \"untrusted_authority\";\r\nconst missingSshJwk = \"missing_ssh_jwk\";\r\nconst missingSshKid = \"missing_ssh_kid\";\r\nconst missingNonceAuthenticationHeader = \"missing_nonce_authentication_header\";\r\nconst invalidAuthenticationHeader = \"invalid_authentication_header\";\r\nconst cannotSetOIDCOptions = \"cannot_set_OIDCOptions\";\r\nconst cannotAllowPlatformBroker = \"cannot_allow_platform_broker\";\r\nconst authorityMismatch = \"authority_mismatch\";\n\nexport { authorityMismatch, authorityUriInsecure, cannotAllowPlatformBroker, cannotSetOIDCOptions, claimsRequestParsingError, emptyInputScopesError, invalidAuthenticationHeader, invalidAuthorityMetadata, invalidClaims, invalidCloudDiscoveryMetadata, invalidCodeChallengeMethod, logoutRequestEmpty, missingNonceAuthenticationHeader, missingSshJwk, missingSshKid, pkceParamsMissing, redirectUriEmpty, tokenRequestEmpty, untrustedAuthority, urlEmptyError, urlParseError };\n//# sourceMappingURL=ClientConfigurationErrorCodes.mjs.map\n"],"names":[],"mappings":";;AAAA;AAmBK,MAAC,kBAAkB,GAAG;;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { Constants } from '../utils/Constants.mjs';
|
|
4
3
|
import { AuthError } from './AuthError.mjs';
|
|
5
4
|
|
|
6
|
-
/*! @azure/msal-common
|
|
5
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
7
6
|
/**
|
|
8
7
|
* Error thrown when user interaction is required.
|
|
9
8
|
*/
|
|
@@ -11,10 +10,10 @@ class InteractionRequiredAuthError extends AuthError {
|
|
|
11
10
|
constructor(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
|
12
11
|
super(errorCode, errorMessage, subError);
|
|
13
12
|
Object.setPrototypeOf(this, InteractionRequiredAuthError.prototype);
|
|
14
|
-
this.timestamp = timestamp ||
|
|
15
|
-
this.traceId = traceId ||
|
|
16
|
-
this.correlationId = correlationId ||
|
|
17
|
-
this.claims = claims ||
|
|
13
|
+
this.timestamp = timestamp || "";
|
|
14
|
+
this.traceId = traceId || "";
|
|
15
|
+
this.correlationId = correlationId || "";
|
|
16
|
+
this.claims = claims || "";
|
|
18
17
|
this.name = "InteractionRequiredAuthError";
|
|
19
18
|
this.errorNo = errorNo;
|
|
20
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractionRequiredAuthError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/InteractionRequiredAuthError.mjs"],"sourcesContent":["/*! @azure/msal-common
|
|
1
|
+
{"version":3,"file":"InteractionRequiredAuthError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/InteractionRequiredAuthError.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\nimport { AuthError } from './AuthError.mjs';\nimport { interactionRequired, consentRequired, loginRequired, badToken, uxNotAllowed } from './InteractionRequiredAuthErrorCodes.mjs';\nimport * as InteractionRequiredAuthErrorCodes from './InteractionRequiredAuthErrorCodes.mjs';\nexport { InteractionRequiredAuthErrorCodes };\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required\r\n */\r\nconst InteractionRequiredServerErrorMessage = [\r\n interactionRequired,\r\n consentRequired,\r\n loginRequired,\r\n badToken,\r\n uxNotAllowed,\r\n];\r\nconst InteractionRequiredAuthSubErrorMessage = [\r\n \"message_only\",\r\n \"additional_action\",\r\n \"basic_action\",\r\n \"user_password_expired\",\r\n \"consent_required\",\r\n \"bad_token\",\r\n \"ux_not_allowed\",\r\n];\r\n/**\r\n * Error thrown when user interaction is required.\r\n */\r\nclass InteractionRequiredAuthError extends AuthError {\r\n constructor(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {\r\n super(errorCode, errorMessage, subError);\r\n Object.setPrototypeOf(this, InteractionRequiredAuthError.prototype);\r\n this.timestamp = timestamp || \"\";\r\n this.traceId = traceId || \"\";\r\n this.correlationId = correlationId || \"\";\r\n this.claims = claims || \"\";\r\n this.name = \"InteractionRequiredAuthError\";\r\n this.errorNo = errorNo;\r\n }\r\n}\r\n/**\r\n * Helper function used to determine if an error thrown by the server requires interaction to resolve\r\n * @param errorCode\r\n * @param errorString\r\n * @param subError\r\n */\r\nfunction isInteractionRequiredError(errorCode, errorString, subError) {\r\n const isInteractionRequiredErrorCode = !!errorCode &&\r\n InteractionRequiredServerErrorMessage.indexOf(errorCode) > -1;\r\n const isInteractionRequiredSubError = !!subError &&\r\n InteractionRequiredAuthSubErrorMessage.indexOf(subError) > -1;\r\n const isInteractionRequiredErrorDesc = !!errorString &&\r\n InteractionRequiredServerErrorMessage.some((irErrorCode) => {\r\n return errorString.indexOf(irErrorCode) > -1;\r\n });\r\n return (isInteractionRequiredErrorCode ||\r\n isInteractionRequiredErrorDesc ||\r\n isInteractionRequiredSubError);\r\n}\r\n/**\r\n * Creates an InteractionRequiredAuthError\r\n */\r\nfunction createInteractionRequiredAuthError(errorCode, errorMessage) {\r\n return new InteractionRequiredAuthError(errorCode, errorMessage);\r\n}\n\nexport { InteractionRequiredAuthError, InteractionRequiredAuthSubErrorMessage, InteractionRequiredServerErrorMessage, createInteractionRequiredAuthError, isInteractionRequiredError };\n//# sourceMappingURL=InteractionRequiredAuthError.mjs.map\n"],"names":[],"mappings":";;;;AAAA;AA8BA;AACA;AACA;AACA,MAAM,4BAA4B,SAAS,SAAS,CAAC;AACrD,IAAI,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE;AACvG,QAAQ,KAAK,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AACjD,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,4BAA4B,CAAC,SAAS,CAAC,CAAC;AAC5E,QAAQ,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,EAAE,CAAC;AACzC,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;AACrC,QAAQ,IAAI,CAAC,aAAa,GAAG,aAAa,IAAI,EAAE,CAAC;AACjD,QAAQ,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;AACnC,QAAQ,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC;AACnD,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,IAAI,CAAC;AACL;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthError } from './AuthError.mjs';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common
|
|
5
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ServerError.mjs"],"sourcesContent":["/*! @azure/msal-common
|
|
1
|
+
{"version":3,"file":"ServerError.mjs","sources":["../../../../../../../lib/msal-common/dist/error/ServerError.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\nimport { AuthError } from './AuthError.mjs';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Error thrown when there is an error with the server code, for example, unavailability.\r\n */\r\nclass ServerError extends AuthError {\r\n constructor(errorCode, errorMessage, subError, errorNo, status) {\r\n super(errorCode, errorMessage, subError);\r\n this.name = \"ServerError\";\r\n this.errorNo = errorNo;\r\n this.status = status;\r\n Object.setPrototypeOf(this, ServerError.prototype);\r\n }\r\n}\n\nexport { ServerError };\n//# sourceMappingURL=ServerError.mjs.map\n"],"names":[],"mappings":";;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,SAAS,SAAS,CAAC;AACpC,IAAI,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE;AACpE,QAAQ,KAAK,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AACjD,QAAQ,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;AAClC,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,QAAQ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;AAC3D,IAAI,CAAC;AACL;;;;"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions
|
|
1
|
+
/*! @azure/msal-node-extensions v5.0.0-alpha.0 2025-10-07 */
|
|
2
2
|
'use strict';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/*! @azure/msal-common v15.13.0 2025-09-24 */
|
|
6
|
-
|
|
3
|
+
/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */
|
|
7
4
|
/*
|
|
8
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
6
|
* Licensed under the MIT License.
|
|
@@ -37,10 +34,8 @@ class Logger {
|
|
|
37
34
|
typeof setLoggerOptions.logLevel === "number"
|
|
38
35
|
? setLoggerOptions.logLevel
|
|
39
36
|
: LogLevel.Info;
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
this.packageName = packageName || Constants.EMPTY_STRING;
|
|
43
|
-
this.packageVersion = packageVersion || Constants.EMPTY_STRING;
|
|
37
|
+
this.packageName = packageName || "";
|
|
38
|
+
this.packageVersion = packageVersion || "";
|
|
44
39
|
}
|
|
45
40
|
static createDefaultLoggerOptions() {
|
|
46
41
|
return {
|
|
@@ -54,12 +49,11 @@ class Logger {
|
|
|
54
49
|
/**
|
|
55
50
|
* Create new Logger with existing configurations.
|
|
56
51
|
*/
|
|
57
|
-
clone(packageName, packageVersion
|
|
52
|
+
clone(packageName, packageVersion) {
|
|
58
53
|
return new Logger({
|
|
59
54
|
loggerCallback: this.localCallback,
|
|
60
55
|
piiLoggingEnabled: this.piiLoggingEnabled,
|
|
61
56
|
logLevel: this.level,
|
|
62
|
-
correlationId: correlationId || this.correlationId,
|
|
63
57
|
}, packageName, packageVersion);
|
|
64
58
|
}
|
|
65
59
|
/**
|
|
@@ -72,9 +66,9 @@ class Logger {
|
|
|
72
66
|
}
|
|
73
67
|
const timestamp = new Date().toUTCString();
|
|
74
68
|
// Add correlationId to logs if set, correlationId provided on log messages take precedence
|
|
75
|
-
const logHeader = `[${timestamp}] : [${options.correlationId
|
|
69
|
+
const logHeader = `[${timestamp}] : [${options.correlationId}]`;
|
|
76
70
|
const log = `${logHeader} : ${this.packageName}@${this.packageVersion} : ${LogLevel[options.logLevel]} - ${logMessage}`;
|
|
77
|
-
// debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": Constants.
|
|
71
|
+
// debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": Constants.""}${options.context ? `:${options.context}` : Constants.""}`)(logMessage);
|
|
78
72
|
this.executeCallback(options.logLevel, log, options.containsPii || false);
|
|
79
73
|
}
|
|
80
74
|
/**
|
|
@@ -92,7 +86,7 @@ class Logger {
|
|
|
92
86
|
this.logMessage(message, {
|
|
93
87
|
logLevel: LogLevel.Error,
|
|
94
88
|
containsPii: false,
|
|
95
|
-
correlationId: correlationId
|
|
89
|
+
correlationId: correlationId,
|
|
96
90
|
});
|
|
97
91
|
}
|
|
98
92
|
/**
|
|
@@ -102,7 +96,7 @@ class Logger {
|
|
|
102
96
|
this.logMessage(message, {
|
|
103
97
|
logLevel: LogLevel.Error,
|
|
104
98
|
containsPii: true,
|
|
105
|
-
correlationId: correlationId
|
|
99
|
+
correlationId: correlationId,
|
|
106
100
|
});
|
|
107
101
|
}
|
|
108
102
|
/**
|
|
@@ -112,7 +106,7 @@ class Logger {
|
|
|
112
106
|
this.logMessage(message, {
|
|
113
107
|
logLevel: LogLevel.Warning,
|
|
114
108
|
containsPii: false,
|
|
115
|
-
correlationId: correlationId
|
|
109
|
+
correlationId: correlationId,
|
|
116
110
|
});
|
|
117
111
|
}
|
|
118
112
|
/**
|
|
@@ -122,7 +116,7 @@ class Logger {
|
|
|
122
116
|
this.logMessage(message, {
|
|
123
117
|
logLevel: LogLevel.Warning,
|
|
124
118
|
containsPii: true,
|
|
125
|
-
correlationId: correlationId
|
|
119
|
+
correlationId: correlationId,
|
|
126
120
|
});
|
|
127
121
|
}
|
|
128
122
|
/**
|
|
@@ -132,7 +126,7 @@ class Logger {
|
|
|
132
126
|
this.logMessage(message, {
|
|
133
127
|
logLevel: LogLevel.Info,
|
|
134
128
|
containsPii: false,
|
|
135
|
-
correlationId: correlationId
|
|
129
|
+
correlationId: correlationId,
|
|
136
130
|
});
|
|
137
131
|
}
|
|
138
132
|
/**
|
|
@@ -142,7 +136,7 @@ class Logger {
|
|
|
142
136
|
this.logMessage(message, {
|
|
143
137
|
logLevel: LogLevel.Info,
|
|
144
138
|
containsPii: true,
|
|
145
|
-
correlationId: correlationId
|
|
139
|
+
correlationId: correlationId,
|
|
146
140
|
});
|
|
147
141
|
}
|
|
148
142
|
/**
|
|
@@ -152,7 +146,7 @@ class Logger {
|
|
|
152
146
|
this.logMessage(message, {
|
|
153
147
|
logLevel: LogLevel.Verbose,
|
|
154
148
|
containsPii: false,
|
|
155
|
-
correlationId: correlationId
|
|
149
|
+
correlationId: correlationId,
|
|
156
150
|
});
|
|
157
151
|
}
|
|
158
152
|
/**
|
|
@@ -162,7 +156,7 @@ class Logger {
|
|
|
162
156
|
this.logMessage(message, {
|
|
163
157
|
logLevel: LogLevel.Verbose,
|
|
164
158
|
containsPii: true,
|
|
165
|
-
correlationId: correlationId
|
|
159
|
+
correlationId: correlationId,
|
|
166
160
|
});
|
|
167
161
|
}
|
|
168
162
|
/**
|
|
@@ -172,7 +166,7 @@ class Logger {
|
|
|
172
166
|
this.logMessage(message, {
|
|
173
167
|
logLevel: LogLevel.Trace,
|
|
174
168
|
containsPii: false,
|
|
175
|
-
correlationId: correlationId
|
|
169
|
+
correlationId: correlationId,
|
|
176
170
|
});
|
|
177
171
|
}
|
|
178
172
|
/**
|
|
@@ -182,7 +176,7 @@ class Logger {
|
|
|
182
176
|
this.logMessage(message, {
|
|
183
177
|
logLevel: LogLevel.Trace,
|
|
184
178
|
containsPii: true,
|
|
185
|
-
correlationId: correlationId
|
|
179
|
+
correlationId: correlationId,
|
|
186
180
|
});
|
|
187
181
|
}
|
|
188
182
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.mjs","sources":["../../../../../../../lib/msal-common/dist/logger/Logger.mjs"],"sourcesContent":["/*! @azure/msal-common v15.13.0 2025-09-24 */\n'use strict';\nimport { Constants } from '../utils/Constants.mjs';\n\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Log message level.\r\n */\r\nvar LogLevel;\r\n(function (LogLevel) {\r\n LogLevel[LogLevel[\"Error\"] = 0] = \"Error\";\r\n LogLevel[LogLevel[\"Warning\"] = 1] = \"Warning\";\r\n LogLevel[LogLevel[\"Info\"] = 2] = \"Info\";\r\n LogLevel[LogLevel[\"Verbose\"] = 3] = \"Verbose\";\r\n LogLevel[LogLevel[\"Trace\"] = 4] = \"Trace\";\r\n})(LogLevel || (LogLevel = {}));\r\n/**\r\n * Class which facilitates logging of messages to a specific place.\r\n */\r\nclass Logger {\r\n constructor(loggerOptions, packageName, packageVersion) {\r\n // Current log level, defaults to info.\r\n this.level = LogLevel.Info;\r\n const defaultLoggerCallback = () => {\r\n return;\r\n };\r\n const setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();\r\n this.localCallback =\r\n setLoggerOptions.loggerCallback || defaultLoggerCallback;\r\n this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;\r\n this.level =\r\n typeof setLoggerOptions.logLevel === \"number\"\r\n ? setLoggerOptions.logLevel\r\n : LogLevel.Info;\r\n this.correlationId =\r\n setLoggerOptions.correlationId || Constants.EMPTY_STRING;\r\n this.packageName = packageName || Constants.EMPTY_STRING;\r\n this.packageVersion = packageVersion || Constants.EMPTY_STRING;\r\n }\r\n static createDefaultLoggerOptions() {\r\n return {\r\n loggerCallback: () => {\r\n // allow users to not set loggerCallback\r\n },\r\n piiLoggingEnabled: false,\r\n logLevel: LogLevel.Info,\r\n };\r\n }\r\n /**\r\n * Create new Logger with existing configurations.\r\n */\r\n clone(packageName, packageVersion, correlationId) {\r\n return new Logger({\r\n loggerCallback: this.localCallback,\r\n piiLoggingEnabled: this.piiLoggingEnabled,\r\n logLevel: this.level,\r\n correlationId: correlationId || this.correlationId,\r\n }, packageName, packageVersion);\r\n }\r\n /**\r\n * Log message with required options.\r\n */\r\n logMessage(logMessage, options) {\r\n if (options.logLevel > this.level ||\r\n (!this.piiLoggingEnabled && options.containsPii)) {\r\n return;\r\n }\r\n const timestamp = new Date().toUTCString();\r\n // Add correlationId to logs if set, correlationId provided on log messages take precedence\r\n const logHeader = `[${timestamp}] : [${options.correlationId || this.correlationId || \"\"}]`;\r\n const log = `${logHeader} : ${this.packageName}@${this.packageVersion} : ${LogLevel[options.logLevel]} - ${logMessage}`;\r\n // debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? \"-Pii\": Constants.EMPTY_STRING}${options.context ? `:${options.context}` : Constants.EMPTY_STRING}`)(logMessage);\r\n this.executeCallback(options.logLevel, log, options.containsPii || false);\r\n }\r\n /**\r\n * Execute callback with message.\r\n */\r\n executeCallback(level, message, containsPii) {\r\n if (this.localCallback) {\r\n this.localCallback(level, message, containsPii);\r\n }\r\n }\r\n /**\r\n * Logs error messages.\r\n */\r\n error(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Error,\r\n containsPii: false,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs error messages with PII.\r\n */\r\n errorPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Error,\r\n containsPii: true,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs warning messages.\r\n */\r\n warning(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Warning,\r\n containsPii: false,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs warning messages with PII.\r\n */\r\n warningPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Warning,\r\n containsPii: true,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs info messages.\r\n */\r\n info(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Info,\r\n containsPii: false,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs info messages with PII.\r\n */\r\n infoPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Info,\r\n containsPii: true,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs verbose messages.\r\n */\r\n verbose(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Verbose,\r\n containsPii: false,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs verbose messages with PII.\r\n */\r\n verbosePii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Verbose,\r\n containsPii: true,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs trace messages.\r\n */\r\n trace(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Trace,\r\n containsPii: false,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Logs trace messages with PII.\r\n */\r\n tracePii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Trace,\r\n containsPii: true,\r\n correlationId: correlationId || Constants.EMPTY_STRING,\r\n });\r\n }\r\n /**\r\n * Returns whether PII Logging is enabled or not.\r\n */\r\n isPiiLoggingEnabled() {\r\n return this.piiLoggingEnabled || false;\r\n }\r\n}\n\nexport { LogLevel, Logger };\n//# sourceMappingURL=Logger.mjs.map\n"],"names":[],"mappings":";;;;AAAA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,SAAS;AACb,CAAC,UAAU,QAAQ,EAAE;AACrB,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AAC9C,IAAI,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAClD,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;AAC5C,IAAI,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC;AAClD,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AAC9C,CAAC,EAAE,QAAQ,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAC,CAAC;AAChC;AACA;AACA;AACA,MAAM,MAAM,CAAC;AACb,IAAI,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE;AAC5D;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC;AACnC,QAAQ,MAAM,qBAAqB,GAAG,M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AK;AACpC,YAAY,WAAW,EAAE,IAAI;AAC7B,YAAY,aAAa,EAAE,aAAa,IAAI,SAAS,CAAC,YAAY;AAClE,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA,IAAI,mBAAmB,GAAG;AAC1B,QAAQ,OAAO,IAAI,CAAC,iBAAiB,IAAI,KAAK,CAAC;AAC/C,KAAK;AACL;;;;"}
|
|
1
|
+
{"version":3,"file":"Logger.mjs","sources":["../../../../../../../lib/msal-common/dist/logger/Logger.mjs"],"sourcesContent":["/*! @azure/msal-common v16.0.0-alpha.0 2025-10-07 */\n'use strict';\n/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License.\r\n */\r\n/**\r\n * Log message level.\r\n */\r\nvar LogLevel;\r\n(function (LogLevel) {\r\n LogLevel[LogLevel[\"Error\"] = 0] = \"Error\";\r\n LogLevel[LogLevel[\"Warning\"] = 1] = \"Warning\";\r\n LogLevel[LogLevel[\"Info\"] = 2] = \"Info\";\r\n LogLevel[LogLevel[\"Verbose\"] = 3] = \"Verbose\";\r\n LogLevel[LogLevel[\"Trace\"] = 4] = \"Trace\";\r\n})(LogLevel || (LogLevel = {}));\r\n/**\r\n * Class which facilitates logging of messages to a specific place.\r\n */\r\nclass Logger {\r\n constructor(loggerOptions, packageName, packageVersion) {\r\n // Current log level, defaults to info.\r\n this.level = LogLevel.Info;\r\n const defaultLoggerCallback = () => {\r\n return;\r\n };\r\n const setLoggerOptions = loggerOptions || Logger.createDefaultLoggerOptions();\r\n this.localCallback =\r\n setLoggerOptions.loggerCallback || defaultLoggerCallback;\r\n this.piiLoggingEnabled = setLoggerOptions.piiLoggingEnabled || false;\r\n this.level =\r\n typeof setLoggerOptions.logLevel === \"number\"\r\n ? setLoggerOptions.logLevel\r\n : LogLevel.Info;\r\n this.packageName = packageName || \"\";\r\n this.packageVersion = packageVersion || \"\";\r\n }\r\n static createDefaultLoggerOptions() {\r\n return {\r\n loggerCallback: () => {\r\n // allow users to not set loggerCallback\r\n },\r\n piiLoggingEnabled: false,\r\n logLevel: LogLevel.Info,\r\n };\r\n }\r\n /**\r\n * Create new Logger with existing configurations.\r\n */\r\n clone(packageName, packageVersion) {\r\n return new Logger({\r\n loggerCallback: this.localCallback,\r\n piiLoggingEnabled: this.piiLoggingEnabled,\r\n logLevel: this.level,\r\n }, packageName, packageVersion);\r\n }\r\n /**\r\n * Log message with required options.\r\n */\r\n logMessage(logMessage, options) {\r\n if (options.logLevel > this.level ||\r\n (!this.piiLoggingEnabled && options.containsPii)) {\r\n return;\r\n }\r\n const timestamp = new Date().toUTCString();\r\n // Add correlationId to logs if set, correlationId provided on log messages take precedence\r\n const logHeader = `[${timestamp}] : [${options.correlationId}]`;\r\n const log = `${logHeader} : ${this.packageName}@${this.packageVersion} : ${LogLevel[options.logLevel]} - ${logMessage}`;\r\n // debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? \"-Pii\": Constants.\"\"}${options.context ? `:${options.context}` : Constants.\"\"}`)(logMessage);\r\n this.executeCallback(options.logLevel, log, options.containsPii || false);\r\n }\r\n /**\r\n * Execute callback with message.\r\n */\r\n executeCallback(level, message, containsPii) {\r\n if (this.localCallback) {\r\n this.localCallback(level, message, containsPii);\r\n }\r\n }\r\n /**\r\n * Logs error messages.\r\n */\r\n error(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Error,\r\n containsPii: false,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs error messages with PII.\r\n */\r\n errorPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Error,\r\n containsPii: true,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs warning messages.\r\n */\r\n warning(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Warning,\r\n containsPii: false,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs warning messages with PII.\r\n */\r\n warningPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Warning,\r\n containsPii: true,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs info messages.\r\n */\r\n info(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Info,\r\n containsPii: false,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs info messages with PII.\r\n */\r\n infoPii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Info,\r\n containsPii: true,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs verbose messages.\r\n */\r\n verbose(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Verbose,\r\n containsPii: false,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs verbose messages with PII.\r\n */\r\n verbosePii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Verbose,\r\n containsPii: true,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs trace messages.\r\n */\r\n trace(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Trace,\r\n containsPii: false,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Logs trace messages with PII.\r\n */\r\n tracePii(message, correlationId) {\r\n this.logMessage(message, {\r\n logLevel: LogLevel.Trace,\r\n containsPii: true,\r\n correlationId: correlationId,\r\n });\r\n }\r\n /**\r\n * Returns whether PII Logging is enabled or not.\r\n */\r\n isPiiLoggingEnabled() {\r\n return this.piiLoggingEnabled || false;\r\n }\r\n}\n\nexport { LogLevel, Logger };\n//# sourceMappingURL=Logger.mjs.map\n"],"names":[],"mappings":";;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,SAAS;AACb,CAAC,UAAU,QAAQ,EAAE;AACrB,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;AAC9C,IAAI,QAAQ,CAAC,QAAQ,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