mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-08 01:54:48 +08:00
Add extracted source directory and README navigation
This commit is contained in:
56
extracted-source/node_modules/@azure/msal-common/dist/error/AuthError.mjs
generated
vendored
Normal file
56
extracted-source/node_modules/@azure/msal-common/dist/error/AuthError.mjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { Constants } from '../utils/Constants.mjs';
|
||||
import { postRequestFailed, unexpectedError } from './AuthErrorCodes.mjs';
|
||||
import * as AuthErrorCodes from './AuthErrorCodes.mjs';
|
||||
export { AuthErrorCodes };
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const AuthErrorMessages = {
|
||||
[unexpectedError]: "Unexpected error in authentication.",
|
||||
[postRequestFailed]: "Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.",
|
||||
};
|
||||
/**
|
||||
* AuthErrorMessage class containing string constants used by error codes and messages.
|
||||
* @deprecated Use AuthErrorCodes instead
|
||||
*/
|
||||
const AuthErrorMessage = {
|
||||
unexpectedError: {
|
||||
code: unexpectedError,
|
||||
desc: AuthErrorMessages[unexpectedError],
|
||||
},
|
||||
postRequestFailed: {
|
||||
code: postRequestFailed,
|
||||
desc: AuthErrorMessages[postRequestFailed],
|
||||
},
|
||||
};
|
||||
/**
|
||||
* General error class thrown by the MSAL.js library.
|
||||
*/
|
||||
class AuthError extends Error {
|
||||
constructor(errorCode, errorMessage, suberror) {
|
||||
const errorString = errorMessage
|
||||
? `${errorCode}: ${errorMessage}`
|
||||
: errorCode;
|
||||
super(errorString);
|
||||
Object.setPrototypeOf(this, AuthError.prototype);
|
||||
this.errorCode = errorCode || Constants.EMPTY_STRING;
|
||||
this.errorMessage = errorMessage || Constants.EMPTY_STRING;
|
||||
this.subError = suberror || Constants.EMPTY_STRING;
|
||||
this.name = "AuthError";
|
||||
}
|
||||
setCorrelationId(correlationId) {
|
||||
this.correlationId = correlationId;
|
||||
}
|
||||
}
|
||||
function createAuthError(code, additionalMessage) {
|
||||
return new AuthError(code, additionalMessage
|
||||
? `${AuthErrorMessages[code]} ${additionalMessage}`
|
||||
: AuthErrorMessages[code]);
|
||||
}
|
||||
|
||||
export { AuthError, AuthErrorMessage, AuthErrorMessages, createAuthError };
|
||||
//# sourceMappingURL=AuthError.mjs.map
|
||||
14
extracted-source/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs
generated
vendored
Normal file
14
extracted-source/node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* AuthErrorMessage class containing string constants used by error codes and messages.
|
||||
*/
|
||||
const unexpectedError = "unexpected_error";
|
||||
const postRequestFailed = "post_request_failed";
|
||||
|
||||
export { postRequestFailed, unexpectedError };
|
||||
//# sourceMappingURL=AuthErrorCodes.mjs.map
|
||||
52
extracted-source/node_modules/@azure/msal-common/dist/error/CacheError.mjs
generated
vendored
Normal file
52
extracted-source/node_modules/@azure/msal-common/dist/error/CacheError.mjs
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
import { cacheErrorUnknown, cacheQuotaExceeded } from './CacheErrorCodes.mjs';
|
||||
import * as CacheErrorCodes from './CacheErrorCodes.mjs';
|
||||
export { CacheErrorCodes };
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const CacheErrorMessages = {
|
||||
[cacheQuotaExceeded]: "Exceeded cache storage capacity.",
|
||||
[cacheErrorUnknown]: "Unexpected error occurred when using cache storage.",
|
||||
};
|
||||
/**
|
||||
* Error thrown when there is an error with the cache
|
||||
*/
|
||||
class CacheError extends AuthError {
|
||||
constructor(errorCode, errorMessage) {
|
||||
const message = errorMessage ||
|
||||
(CacheErrorMessages[errorCode]
|
||||
? CacheErrorMessages[errorCode]
|
||||
: CacheErrorMessages[cacheErrorUnknown]);
|
||||
super(`${errorCode}: ${message}`);
|
||||
Object.setPrototypeOf(this, CacheError.prototype);
|
||||
this.name = "CacheError";
|
||||
this.errorCode = errorCode;
|
||||
this.errorMessage = message;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Helper function to wrap browser errors in a CacheError object
|
||||
* @param e
|
||||
* @returns
|
||||
*/
|
||||
function createCacheError(e) {
|
||||
if (!(e instanceof Error)) {
|
||||
return new CacheError(cacheErrorUnknown);
|
||||
}
|
||||
if (e.name === "QuotaExceededError" ||
|
||||
e.name === "NS_ERROR_DOM_QUOTA_REACHED" ||
|
||||
e.message.includes("exceeded the quota")) {
|
||||
return new CacheError(cacheQuotaExceeded);
|
||||
}
|
||||
else {
|
||||
return new CacheError(e.name, e.message);
|
||||
}
|
||||
}
|
||||
|
||||
export { CacheError, CacheErrorMessages, createCacheError };
|
||||
//# sourceMappingURL=CacheError.mjs.map
|
||||
11
extracted-source/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs
generated
vendored
Normal file
11
extracted-source/node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const cacheQuotaExceeded = "cache_quota_exceeded";
|
||||
const cacheErrorUnknown = "cache_error_unknown";
|
||||
|
||||
export { cacheErrorUnknown, cacheQuotaExceeded };
|
||||
//# sourceMappingURL=CacheErrorCodes.mjs.map
|
||||
259
extracted-source/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs
generated
vendored
Normal file
259
extracted-source/node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs
generated
vendored
Normal file
@@ -0,0 +1,259 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
import { nestedAppAuthBridgeDisabled, missingTenantIdError, userCanceled, noNetworkConnectivity, keyIdMissing, endSessionEndpointNotSupported, bindingKeyNotRemoved, authorizationCodeMissingFromServerResponse, tokenClaimsCnfRequiredForSignedJwt, userTimeoutReached, tokenRefreshRequired, invalidClientCredential, invalidAssertion, unexpectedCredentialType, noCryptoObject, noAccountFound, invalidCacheEnvironment, invalidCacheRecord, noAccountInSilentRequest, deviceCodeUnknownError, deviceCodeExpired, deviceCodePollingCancelled, emptyInputScopeSet, cannotAppendScopeSet, cannotRemoveEmptyScope, requestCannotBeMade, multipleMatchingAppMetadata, multipleMatchingAccounts, multipleMatchingTokens, maxAgeTranspired, authTimeNotFound, nonceMismatch, stateNotFound, stateMismatch, invalidState, hashNotDeserialized, openIdConfigError, networkError, endpointResolutionError, nullOrEmptyToken, tokenParsingError, clientInfoEmptyError, clientInfoDecodingError, methodNotImplemented } from './ClientAuthErrorCodes.mjs';
|
||||
import * as ClientAuthErrorCodes from './ClientAuthErrorCodes.mjs';
|
||||
export { ClientAuthErrorCodes };
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
||||
*/
|
||||
const ClientAuthErrorMessages = {
|
||||
[clientInfoDecodingError]: "The client info could not be parsed/decoded correctly",
|
||||
[clientInfoEmptyError]: "The client info was empty",
|
||||
[tokenParsingError]: "Token cannot be parsed",
|
||||
[nullOrEmptyToken]: "The token is null or empty",
|
||||
[endpointResolutionError]: "Endpoints cannot be resolved",
|
||||
[networkError]: "Network request failed",
|
||||
[openIdConfigError]: "Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",
|
||||
[hashNotDeserialized]: "The hash parameters could not be deserialized",
|
||||
[invalidState]: "State was not the expected format",
|
||||
[stateMismatch]: "State mismatch error",
|
||||
[stateNotFound]: "State not found",
|
||||
[nonceMismatch]: "Nonce mismatch error",
|
||||
[authTimeNotFound]: "Max Age was requested and the ID token is missing the auth_time variable." +
|
||||
" auth_time is an optional claim and is not enabled by default - it must be enabled." +
|
||||
" See https://aka.ms/msaljs/optional-claims for more information.",
|
||||
[maxAgeTranspired]: "Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",
|
||||
[multipleMatchingTokens]: "The cache contains multiple tokens satisfying the requirements. " +
|
||||
"Call AcquireToken again providing more requirements such as authority or account.",
|
||||
[multipleMatchingAccounts]: "The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",
|
||||
[multipleMatchingAppMetadata]: "The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",
|
||||
[requestCannotBeMade]: "Token request cannot be made without authorization code or refresh token.",
|
||||
[cannotRemoveEmptyScope]: "Cannot remove null or empty scope from ScopeSet",
|
||||
[cannotAppendScopeSet]: "Cannot append ScopeSet",
|
||||
[emptyInputScopeSet]: "Empty input ScopeSet cannot be processed",
|
||||
[deviceCodePollingCancelled]: "Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",
|
||||
[deviceCodeExpired]: "Device code is expired.",
|
||||
[deviceCodeUnknownError]: "Device code stopped polling for unknown reasons.",
|
||||
[noAccountInSilentRequest]: "Please pass an account object, silent flow is not supported without account information",
|
||||
[invalidCacheRecord]: "Cache record object was null or undefined.",
|
||||
[invalidCacheEnvironment]: "Invalid environment when attempting to create cache entry",
|
||||
[noAccountFound]: "No account found in cache for given key.",
|
||||
[noCryptoObject]: "No crypto object detected.",
|
||||
[unexpectedCredentialType]: "Unexpected credential type.",
|
||||
[invalidAssertion]: "Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",
|
||||
[invalidClientCredential]: "Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",
|
||||
[tokenRefreshRequired]: "Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",
|
||||
[userTimeoutReached]: "User defined timeout for device code polling reached",
|
||||
[tokenClaimsCnfRequiredForSignedJwt]: "Cannot generate a POP jwt if the token_claims are not populated",
|
||||
[authorizationCodeMissingFromServerResponse]: "Server response does not contain an authorization code to proceed",
|
||||
[bindingKeyNotRemoved]: "Could not remove the credential's binding key from storage.",
|
||||
[endSessionEndpointNotSupported]: "The provided authority does not support logout",
|
||||
[keyIdMissing]: "A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",
|
||||
[noNetworkConnectivity]: "No network connectivity. Check your internet connection.",
|
||||
[userCanceled]: "User cancelled the flow.",
|
||||
[missingTenantIdError]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
|
||||
[methodNotImplemented]: "This method has not been implemented",
|
||||
[nestedAppAuthBridgeDisabled]: "The nested app auth bridge is disabled",
|
||||
};
|
||||
/**
|
||||
* String constants used by error codes and messages.
|
||||
* @deprecated Use ClientAuthErrorCodes instead
|
||||
*/
|
||||
const ClientAuthErrorMessage = {
|
||||
clientInfoDecodingError: {
|
||||
code: clientInfoDecodingError,
|
||||
desc: ClientAuthErrorMessages[clientInfoDecodingError],
|
||||
},
|
||||
clientInfoEmptyError: {
|
||||
code: clientInfoEmptyError,
|
||||
desc: ClientAuthErrorMessages[clientInfoEmptyError],
|
||||
},
|
||||
tokenParsingError: {
|
||||
code: tokenParsingError,
|
||||
desc: ClientAuthErrorMessages[tokenParsingError],
|
||||
},
|
||||
nullOrEmptyToken: {
|
||||
code: nullOrEmptyToken,
|
||||
desc: ClientAuthErrorMessages[nullOrEmptyToken],
|
||||
},
|
||||
endpointResolutionError: {
|
||||
code: endpointResolutionError,
|
||||
desc: ClientAuthErrorMessages[endpointResolutionError],
|
||||
},
|
||||
networkError: {
|
||||
code: networkError,
|
||||
desc: ClientAuthErrorMessages[networkError],
|
||||
},
|
||||
unableToGetOpenidConfigError: {
|
||||
code: openIdConfigError,
|
||||
desc: ClientAuthErrorMessages[openIdConfigError],
|
||||
},
|
||||
hashNotDeserialized: {
|
||||
code: hashNotDeserialized,
|
||||
desc: ClientAuthErrorMessages[hashNotDeserialized],
|
||||
},
|
||||
invalidStateError: {
|
||||
code: invalidState,
|
||||
desc: ClientAuthErrorMessages[invalidState],
|
||||
},
|
||||
stateMismatchError: {
|
||||
code: stateMismatch,
|
||||
desc: ClientAuthErrorMessages[stateMismatch],
|
||||
},
|
||||
stateNotFoundError: {
|
||||
code: stateNotFound,
|
||||
desc: ClientAuthErrorMessages[stateNotFound],
|
||||
},
|
||||
nonceMismatchError: {
|
||||
code: nonceMismatch,
|
||||
desc: ClientAuthErrorMessages[nonceMismatch],
|
||||
},
|
||||
authTimeNotFoundError: {
|
||||
code: authTimeNotFound,
|
||||
desc: ClientAuthErrorMessages[authTimeNotFound],
|
||||
},
|
||||
maxAgeTranspired: {
|
||||
code: maxAgeTranspired,
|
||||
desc: ClientAuthErrorMessages[maxAgeTranspired],
|
||||
},
|
||||
multipleMatchingTokens: {
|
||||
code: multipleMatchingTokens,
|
||||
desc: ClientAuthErrorMessages[multipleMatchingTokens],
|
||||
},
|
||||
multipleMatchingAccounts: {
|
||||
code: multipleMatchingAccounts,
|
||||
desc: ClientAuthErrorMessages[multipleMatchingAccounts],
|
||||
},
|
||||
multipleMatchingAppMetadata: {
|
||||
code: multipleMatchingAppMetadata,
|
||||
desc: ClientAuthErrorMessages[multipleMatchingAppMetadata],
|
||||
},
|
||||
tokenRequestCannotBeMade: {
|
||||
code: requestCannotBeMade,
|
||||
desc: ClientAuthErrorMessages[requestCannotBeMade],
|
||||
},
|
||||
removeEmptyScopeError: {
|
||||
code: cannotRemoveEmptyScope,
|
||||
desc: ClientAuthErrorMessages[cannotRemoveEmptyScope],
|
||||
},
|
||||
appendScopeSetError: {
|
||||
code: cannotAppendScopeSet,
|
||||
desc: ClientAuthErrorMessages[cannotAppendScopeSet],
|
||||
},
|
||||
emptyInputScopeSetError: {
|
||||
code: emptyInputScopeSet,
|
||||
desc: ClientAuthErrorMessages[emptyInputScopeSet],
|
||||
},
|
||||
DeviceCodePollingCancelled: {
|
||||
code: deviceCodePollingCancelled,
|
||||
desc: ClientAuthErrorMessages[deviceCodePollingCancelled],
|
||||
},
|
||||
DeviceCodeExpired: {
|
||||
code: deviceCodeExpired,
|
||||
desc: ClientAuthErrorMessages[deviceCodeExpired],
|
||||
},
|
||||
DeviceCodeUnknownError: {
|
||||
code: deviceCodeUnknownError,
|
||||
desc: ClientAuthErrorMessages[deviceCodeUnknownError],
|
||||
},
|
||||
NoAccountInSilentRequest: {
|
||||
code: noAccountInSilentRequest,
|
||||
desc: ClientAuthErrorMessages[noAccountInSilentRequest],
|
||||
},
|
||||
invalidCacheRecord: {
|
||||
code: invalidCacheRecord,
|
||||
desc: ClientAuthErrorMessages[invalidCacheRecord],
|
||||
},
|
||||
invalidCacheEnvironment: {
|
||||
code: invalidCacheEnvironment,
|
||||
desc: ClientAuthErrorMessages[invalidCacheEnvironment],
|
||||
},
|
||||
noAccountFound: {
|
||||
code: noAccountFound,
|
||||
desc: ClientAuthErrorMessages[noAccountFound],
|
||||
},
|
||||
noCryptoObj: {
|
||||
code: noCryptoObject,
|
||||
desc: ClientAuthErrorMessages[noCryptoObject],
|
||||
},
|
||||
unexpectedCredentialType: {
|
||||
code: unexpectedCredentialType,
|
||||
desc: ClientAuthErrorMessages[unexpectedCredentialType],
|
||||
},
|
||||
invalidAssertion: {
|
||||
code: invalidAssertion,
|
||||
desc: ClientAuthErrorMessages[invalidAssertion],
|
||||
},
|
||||
invalidClientCredential: {
|
||||
code: invalidClientCredential,
|
||||
desc: ClientAuthErrorMessages[invalidClientCredential],
|
||||
},
|
||||
tokenRefreshRequired: {
|
||||
code: tokenRefreshRequired,
|
||||
desc: ClientAuthErrorMessages[tokenRefreshRequired],
|
||||
},
|
||||
userTimeoutReached: {
|
||||
code: userTimeoutReached,
|
||||
desc: ClientAuthErrorMessages[userTimeoutReached],
|
||||
},
|
||||
tokenClaimsRequired: {
|
||||
code: tokenClaimsCnfRequiredForSignedJwt,
|
||||
desc: ClientAuthErrorMessages[tokenClaimsCnfRequiredForSignedJwt],
|
||||
},
|
||||
noAuthorizationCodeFromServer: {
|
||||
code: authorizationCodeMissingFromServerResponse,
|
||||
desc: ClientAuthErrorMessages[authorizationCodeMissingFromServerResponse],
|
||||
},
|
||||
bindingKeyNotRemovedError: {
|
||||
code: bindingKeyNotRemoved,
|
||||
desc: ClientAuthErrorMessages[bindingKeyNotRemoved],
|
||||
},
|
||||
logoutNotSupported: {
|
||||
code: endSessionEndpointNotSupported,
|
||||
desc: ClientAuthErrorMessages[endSessionEndpointNotSupported],
|
||||
},
|
||||
keyIdMissing: {
|
||||
code: keyIdMissing,
|
||||
desc: ClientAuthErrorMessages[keyIdMissing],
|
||||
},
|
||||
noNetworkConnectivity: {
|
||||
code: noNetworkConnectivity,
|
||||
desc: ClientAuthErrorMessages[noNetworkConnectivity],
|
||||
},
|
||||
userCanceledError: {
|
||||
code: userCanceled,
|
||||
desc: ClientAuthErrorMessages[userCanceled],
|
||||
},
|
||||
missingTenantIdError: {
|
||||
code: missingTenantIdError,
|
||||
desc: ClientAuthErrorMessages[missingTenantIdError],
|
||||
},
|
||||
nestedAppAuthBridgeDisabled: {
|
||||
code: nestedAppAuthBridgeDisabled,
|
||||
desc: ClientAuthErrorMessages[nestedAppAuthBridgeDisabled],
|
||||
},
|
||||
};
|
||||
/**
|
||||
* Error thrown when there is an error in the client code running on the browser.
|
||||
*/
|
||||
class ClientAuthError extends AuthError {
|
||||
constructor(errorCode, additionalMessage) {
|
||||
super(errorCode, additionalMessage
|
||||
? `${ClientAuthErrorMessages[errorCode]}: ${additionalMessage}`
|
||||
: ClientAuthErrorMessages[errorCode]);
|
||||
this.name = "ClientAuthError";
|
||||
Object.setPrototypeOf(this, ClientAuthError.prototype);
|
||||
}
|
||||
}
|
||||
function createClientAuthError(errorCode, additionalMessage) {
|
||||
return new ClientAuthError(errorCode, additionalMessage);
|
||||
}
|
||||
|
||||
export { ClientAuthError, ClientAuthErrorMessage, ClientAuthErrorMessages, createClientAuthError };
|
||||
//# sourceMappingURL=ClientAuthError.mjs.map
|
||||
53
extracted-source/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs
generated
vendored
Normal file
53
extracted-source/node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const clientInfoDecodingError = "client_info_decoding_error";
|
||||
const clientInfoEmptyError = "client_info_empty_error";
|
||||
const tokenParsingError = "token_parsing_error";
|
||||
const nullOrEmptyToken = "null_or_empty_token";
|
||||
const endpointResolutionError = "endpoints_resolution_error";
|
||||
const networkError = "network_error";
|
||||
const openIdConfigError = "openid_config_error";
|
||||
const hashNotDeserialized = "hash_not_deserialized";
|
||||
const invalidState = "invalid_state";
|
||||
const stateMismatch = "state_mismatch";
|
||||
const stateNotFound = "state_not_found";
|
||||
const nonceMismatch = "nonce_mismatch";
|
||||
const authTimeNotFound = "auth_time_not_found";
|
||||
const maxAgeTranspired = "max_age_transpired";
|
||||
const multipleMatchingTokens = "multiple_matching_tokens";
|
||||
const multipleMatchingAccounts = "multiple_matching_accounts";
|
||||
const multipleMatchingAppMetadata = "multiple_matching_appMetadata";
|
||||
const requestCannotBeMade = "request_cannot_be_made";
|
||||
const cannotRemoveEmptyScope = "cannot_remove_empty_scope";
|
||||
const cannotAppendScopeSet = "cannot_append_scopeset";
|
||||
const emptyInputScopeSet = "empty_input_scopeset";
|
||||
const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
||||
const deviceCodeExpired = "device_code_expired";
|
||||
const deviceCodeUnknownError = "device_code_unknown_error";
|
||||
const noAccountInSilentRequest = "no_account_in_silent_request";
|
||||
const invalidCacheRecord = "invalid_cache_record";
|
||||
const invalidCacheEnvironment = "invalid_cache_environment";
|
||||
const noAccountFound = "no_account_found";
|
||||
const noCryptoObject = "no_crypto_object";
|
||||
const unexpectedCredentialType = "unexpected_credential_type";
|
||||
const invalidAssertion = "invalid_assertion";
|
||||
const invalidClientCredential = "invalid_client_credential";
|
||||
const tokenRefreshRequired = "token_refresh_required";
|
||||
const userTimeoutReached = "user_timeout_reached";
|
||||
const tokenClaimsCnfRequiredForSignedJwt = "token_claims_cnf_required_for_signedjwt";
|
||||
const authorizationCodeMissingFromServerResponse = "authorization_code_missing_from_server_response";
|
||||
const bindingKeyNotRemoved = "binding_key_not_removed";
|
||||
const endSessionEndpointNotSupported = "end_session_endpoint_not_supported";
|
||||
const keyIdMissing = "key_id_missing";
|
||||
const noNetworkConnectivity = "no_network_connectivity";
|
||||
const userCanceled = "user_canceled";
|
||||
const missingTenantIdError = "missing_tenant_id_error";
|
||||
const methodNotImplemented = "method_not_implemented";
|
||||
const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
|
||||
|
||||
export { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError, deviceCodeExpired, deviceCodePollingCancelled, deviceCodeUnknownError, emptyInputScopeSet, endSessionEndpointNotSupported, endpointResolutionError, hashNotDeserialized, invalidAssertion, invalidCacheEnvironment, invalidCacheRecord, invalidClientCredential, invalidState, keyIdMissing, maxAgeTranspired, methodNotImplemented, missingTenantIdError, multipleMatchingAccounts, multipleMatchingAppMetadata, multipleMatchingTokens, nestedAppAuthBridgeDisabled, networkError, noAccountFound, noAccountInSilentRequest, noCryptoObject, noNetworkConnectivity, nonceMismatch, nullOrEmptyToken, openIdConfigError, requestCannotBeMade, stateMismatch, stateNotFound, tokenClaimsCnfRequiredForSignedJwt, tokenParsingError, tokenRefreshRequired, unexpectedCredentialType, userCanceled, userTimeoutReached };
|
||||
//# sourceMappingURL=ClientAuthErrorCodes.mjs.map
|
||||
150
extracted-source/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs
generated
vendored
Normal file
150
extracted-source/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs
generated
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
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';
|
||||
import * as ClientConfigurationErrorCodes from './ClientConfigurationErrorCodes.mjs';
|
||||
export { ClientConfigurationErrorCodes };
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const ClientConfigurationErrorMessages = {
|
||||
[redirectUriEmpty]: "A redirect URI is required for all calls, and none has been set.",
|
||||
[claimsRequestParsingError]: "Could not parse the given claims request object.",
|
||||
[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",
|
||||
[urlParseError]: "URL could not be parsed into appropriate segments.",
|
||||
[urlEmptyError]: "URL was empty or null.",
|
||||
[emptyInputScopesError]: "Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",
|
||||
[invalidClaims]: "Given claims parameter must be a stringified JSON object.",
|
||||
[tokenRequestEmpty]: "Token request was empty and not found in cache.",
|
||||
[logoutRequestEmpty]: "The logout request was null or undefined.",
|
||||
[invalidCodeChallengeMethod]: 'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',
|
||||
[pkceParamsMissing]: "Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",
|
||||
[invalidCloudDiscoveryMetadata]: "Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",
|
||||
[invalidAuthorityMetadata]: "Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",
|
||||
[untrustedAuthority]: "The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",
|
||||
[missingSshJwk]: "Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",
|
||||
[missingSshKid]: "Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",
|
||||
[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.",
|
||||
[invalidAuthenticationHeader]: "Invalid authentication header provided",
|
||||
[cannotSetOIDCOptions]: "Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",
|
||||
[cannotAllowPlatformBroker]: "Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",
|
||||
[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.",
|
||||
[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.",
|
||||
[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.",
|
||||
};
|
||||
/**
|
||||
* ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
|
||||
* @deprecated Use ClientConfigurationErrorCodes instead
|
||||
*/
|
||||
const ClientConfigurationErrorMessage = {
|
||||
redirectUriNotSet: {
|
||||
code: redirectUriEmpty,
|
||||
desc: ClientConfigurationErrorMessages[redirectUriEmpty],
|
||||
},
|
||||
claimsRequestParsingError: {
|
||||
code: claimsRequestParsingError,
|
||||
desc: ClientConfigurationErrorMessages[claimsRequestParsingError],
|
||||
},
|
||||
authorityUriInsecure: {
|
||||
code: authorityUriInsecure,
|
||||
desc: ClientConfigurationErrorMessages[authorityUriInsecure],
|
||||
},
|
||||
urlParseError: {
|
||||
code: urlParseError,
|
||||
desc: ClientConfigurationErrorMessages[urlParseError],
|
||||
},
|
||||
urlEmptyError: {
|
||||
code: urlEmptyError,
|
||||
desc: ClientConfigurationErrorMessages[urlEmptyError],
|
||||
},
|
||||
emptyScopesError: {
|
||||
code: emptyInputScopesError,
|
||||
desc: ClientConfigurationErrorMessages[emptyInputScopesError],
|
||||
},
|
||||
invalidClaimsRequest: {
|
||||
code: invalidClaims,
|
||||
desc: ClientConfigurationErrorMessages[invalidClaims],
|
||||
},
|
||||
tokenRequestEmptyError: {
|
||||
code: tokenRequestEmpty,
|
||||
desc: ClientConfigurationErrorMessages[tokenRequestEmpty],
|
||||
},
|
||||
logoutRequestEmptyError: {
|
||||
code: logoutRequestEmpty,
|
||||
desc: ClientConfigurationErrorMessages[logoutRequestEmpty],
|
||||
},
|
||||
invalidCodeChallengeMethod: {
|
||||
code: invalidCodeChallengeMethod,
|
||||
desc: ClientConfigurationErrorMessages[invalidCodeChallengeMethod],
|
||||
},
|
||||
invalidCodeChallengeParams: {
|
||||
code: pkceParamsMissing,
|
||||
desc: ClientConfigurationErrorMessages[pkceParamsMissing],
|
||||
},
|
||||
invalidCloudDiscoveryMetadata: {
|
||||
code: invalidCloudDiscoveryMetadata,
|
||||
desc: ClientConfigurationErrorMessages[invalidCloudDiscoveryMetadata],
|
||||
},
|
||||
invalidAuthorityMetadata: {
|
||||
code: invalidAuthorityMetadata,
|
||||
desc: ClientConfigurationErrorMessages[invalidAuthorityMetadata],
|
||||
},
|
||||
untrustedAuthority: {
|
||||
code: untrustedAuthority,
|
||||
desc: ClientConfigurationErrorMessages[untrustedAuthority],
|
||||
},
|
||||
missingSshJwk: {
|
||||
code: missingSshJwk,
|
||||
desc: ClientConfigurationErrorMessages[missingSshJwk],
|
||||
},
|
||||
missingSshKid: {
|
||||
code: missingSshKid,
|
||||
desc: ClientConfigurationErrorMessages[missingSshKid],
|
||||
},
|
||||
missingNonceAuthenticationHeader: {
|
||||
code: missingNonceAuthenticationHeader,
|
||||
desc: ClientConfigurationErrorMessages[missingNonceAuthenticationHeader],
|
||||
},
|
||||
invalidAuthenticationHeader: {
|
||||
code: invalidAuthenticationHeader,
|
||||
desc: ClientConfigurationErrorMessages[invalidAuthenticationHeader],
|
||||
},
|
||||
cannotSetOIDCOptions: {
|
||||
code: cannotSetOIDCOptions,
|
||||
desc: ClientConfigurationErrorMessages[cannotSetOIDCOptions],
|
||||
},
|
||||
cannotAllowPlatformBroker: {
|
||||
code: cannotAllowPlatformBroker,
|
||||
desc: ClientConfigurationErrorMessages[cannotAllowPlatformBroker],
|
||||
},
|
||||
authorityMismatch: {
|
||||
code: authorityMismatch,
|
||||
desc: ClientConfigurationErrorMessages[authorityMismatch],
|
||||
},
|
||||
invalidAuthorizePostBodyParameters: {
|
||||
code: invalidAuthorizePostBodyParameters,
|
||||
desc: ClientConfigurationErrorMessages[invalidAuthorizePostBodyParameters],
|
||||
},
|
||||
invalidRequestMethodForEAR: {
|
||||
code: invalidRequestMethodForEAR,
|
||||
desc: ClientConfigurationErrorMessages[invalidRequestMethodForEAR],
|
||||
},
|
||||
};
|
||||
/**
|
||||
* Error thrown when there is an error in configuration of the MSAL.js library.
|
||||
*/
|
||||
class ClientConfigurationError extends AuthError {
|
||||
constructor(errorCode) {
|
||||
super(errorCode, ClientConfigurationErrorMessages[errorCode]);
|
||||
this.name = "ClientConfigurationError";
|
||||
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
||||
}
|
||||
}
|
||||
function createClientConfigurationError(errorCode) {
|
||||
return new ClientConfigurationError(errorCode);
|
||||
}
|
||||
|
||||
export { ClientConfigurationError, ClientConfigurationErrorMessage, ClientConfigurationErrorMessages, createClientConfigurationError };
|
||||
//# sourceMappingURL=ClientConfigurationError.mjs.map
|
||||
32
extracted-source/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs
generated
vendored
Normal file
32
extracted-source/node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const redirectUriEmpty = "redirect_uri_empty";
|
||||
const claimsRequestParsingError = "claims_request_parsing_error";
|
||||
const authorityUriInsecure = "authority_uri_insecure";
|
||||
const urlParseError = "url_parse_error";
|
||||
const urlEmptyError = "empty_url_error";
|
||||
const emptyInputScopesError = "empty_input_scopes_error";
|
||||
const invalidClaims = "invalid_claims";
|
||||
const tokenRequestEmpty = "token_request_empty";
|
||||
const logoutRequestEmpty = "logout_request_empty";
|
||||
const invalidCodeChallengeMethod = "invalid_code_challenge_method";
|
||||
const pkceParamsMissing = "pkce_params_missing";
|
||||
const invalidCloudDiscoveryMetadata = "invalid_cloud_discovery_metadata";
|
||||
const invalidAuthorityMetadata = "invalid_authority_metadata";
|
||||
const untrustedAuthority = "untrusted_authority";
|
||||
const missingSshJwk = "missing_ssh_jwk";
|
||||
const missingSshKid = "missing_ssh_kid";
|
||||
const missingNonceAuthenticationHeader = "missing_nonce_authentication_header";
|
||||
const invalidAuthenticationHeader = "invalid_authentication_header";
|
||||
const cannotSetOIDCOptions = "cannot_set_OIDCOptions";
|
||||
const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
|
||||
const authorityMismatch = "authority_mismatch";
|
||||
const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
|
||||
const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
|
||||
|
||||
export { authorityMismatch, authorityUriInsecure, cannotAllowPlatformBroker, cannotSetOIDCOptions, claimsRequestParsingError, emptyInputScopesError, invalidAuthenticationHeader, invalidAuthorityMetadata, invalidAuthorizePostBodyParameters, invalidClaims, invalidCloudDiscoveryMetadata, invalidCodeChallengeMethod, invalidRequestMethodForEAR, logoutRequestEmpty, missingNonceAuthenticationHeader, missingSshJwk, missingSshKid, pkceParamsMissing, redirectUriEmpty, tokenRequestEmpty, untrustedAuthority, urlEmptyError, urlParseError };
|
||||
//# sourceMappingURL=ClientConfigurationErrorCodes.mjs.map
|
||||
98
extracted-source/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs
generated
vendored
Normal file
98
extracted-source/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { Constants } from '../utils/Constants.mjs';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
import { badToken, nativeAccountUnavailable, noTokensFound, uxNotAllowed, refreshTokenExpired, interactionRequired, consentRequired, loginRequired } from './InteractionRequiredAuthErrorCodes.mjs';
|
||||
import * as InteractionRequiredAuthErrorCodes from './InteractionRequiredAuthErrorCodes.mjs';
|
||||
export { InteractionRequiredAuthErrorCodes };
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required
|
||||
*/
|
||||
const InteractionRequiredServerErrorMessage = [
|
||||
interactionRequired,
|
||||
consentRequired,
|
||||
loginRequired,
|
||||
badToken,
|
||||
uxNotAllowed,
|
||||
];
|
||||
const InteractionRequiredAuthSubErrorMessage = [
|
||||
"message_only",
|
||||
"additional_action",
|
||||
"basic_action",
|
||||
"user_password_expired",
|
||||
"consent_required",
|
||||
"bad_token",
|
||||
];
|
||||
const InteractionRequiredAuthErrorMessages = {
|
||||
[noTokensFound]: "No refresh token found in the cache. Please sign-in.",
|
||||
[nativeAccountUnavailable]: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",
|
||||
[refreshTokenExpired]: "Refresh token has expired.",
|
||||
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
||||
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
||||
};
|
||||
/**
|
||||
* Interaction required errors defined by the SDK
|
||||
* @deprecated Use InteractionRequiredAuthErrorCodes instead
|
||||
*/
|
||||
const InteractionRequiredAuthErrorMessage = {
|
||||
noTokensFoundError: {
|
||||
code: noTokensFound,
|
||||
desc: InteractionRequiredAuthErrorMessages[noTokensFound],
|
||||
},
|
||||
native_account_unavailable: {
|
||||
code: nativeAccountUnavailable,
|
||||
desc: InteractionRequiredAuthErrorMessages[nativeAccountUnavailable],
|
||||
},
|
||||
bad_token: {
|
||||
code: badToken,
|
||||
desc: InteractionRequiredAuthErrorMessages[badToken],
|
||||
},
|
||||
};
|
||||
/**
|
||||
* Error thrown when user interaction is required.
|
||||
*/
|
||||
class InteractionRequiredAuthError extends AuthError {
|
||||
constructor(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
||||
super(errorCode, errorMessage, subError);
|
||||
Object.setPrototypeOf(this, InteractionRequiredAuthError.prototype);
|
||||
this.timestamp = timestamp || Constants.EMPTY_STRING;
|
||||
this.traceId = traceId || Constants.EMPTY_STRING;
|
||||
this.correlationId = correlationId || Constants.EMPTY_STRING;
|
||||
this.claims = claims || Constants.EMPTY_STRING;
|
||||
this.name = "InteractionRequiredAuthError";
|
||||
this.errorNo = errorNo;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Helper function used to determine if an error thrown by the server requires interaction to resolve
|
||||
* @param errorCode
|
||||
* @param errorString
|
||||
* @param subError
|
||||
*/
|
||||
function isInteractionRequiredError(errorCode, errorString, subError) {
|
||||
const isInteractionRequiredErrorCode = !!errorCode &&
|
||||
InteractionRequiredServerErrorMessage.indexOf(errorCode) > -1;
|
||||
const isInteractionRequiredSubError = !!subError &&
|
||||
InteractionRequiredAuthSubErrorMessage.indexOf(subError) > -1;
|
||||
const isInteractionRequiredErrorDesc = !!errorString &&
|
||||
InteractionRequiredServerErrorMessage.some((irErrorCode) => {
|
||||
return errorString.indexOf(irErrorCode) > -1;
|
||||
});
|
||||
return (isInteractionRequiredErrorCode ||
|
||||
isInteractionRequiredErrorDesc ||
|
||||
isInteractionRequiredSubError);
|
||||
}
|
||||
/**
|
||||
* Creates an InteractionRequiredAuthError
|
||||
*/
|
||||
function createInteractionRequiredAuthError(errorCode) {
|
||||
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
||||
}
|
||||
|
||||
export { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, InteractionRequiredAuthSubErrorMessage, InteractionRequiredServerErrorMessage, createInteractionRequiredAuthError, isInteractionRequiredError };
|
||||
//# sourceMappingURL=InteractionRequiredAuthError.mjs.map
|
||||
19
extracted-source/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs
generated
vendored
Normal file
19
extracted-source/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
// Codes defined by MSAL
|
||||
const noTokensFound = "no_tokens_found";
|
||||
const nativeAccountUnavailable = "native_account_unavailable";
|
||||
const refreshTokenExpired = "refresh_token_expired";
|
||||
const uxNotAllowed = "ux_not_allowed";
|
||||
// Codes potentially returned by server
|
||||
const interactionRequired = "interaction_required";
|
||||
const consentRequired = "consent_required";
|
||||
const loginRequired = "login_required";
|
||||
const badToken = "bad_token";
|
||||
|
||||
export { badToken, consentRequired, interactionRequired, loginRequired, nativeAccountUnavailable, noTokensFound, refreshTokenExpired, uxNotAllowed };
|
||||
//# sourceMappingURL=InteractionRequiredAuthErrorCodes.mjs.map
|
||||
35
extracted-source/node_modules/@azure/msal-common/dist/error/NetworkError.mjs
generated
vendored
Normal file
35
extracted-source/node_modules/@azure/msal-common/dist/error/NetworkError.mjs
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Represents network related errors
|
||||
*/
|
||||
class NetworkError extends AuthError {
|
||||
constructor(error, httpStatus, responseHeaders) {
|
||||
super(error.errorCode, error.errorMessage, error.subError);
|
||||
Object.setPrototypeOf(this, NetworkError.prototype);
|
||||
this.name = "NetworkError";
|
||||
this.error = error;
|
||||
this.httpStatus = httpStatus;
|
||||
this.responseHeaders = responseHeaders;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Creates NetworkError object for a failed network request
|
||||
* @param error - Error to be thrown back to the caller
|
||||
* @param httpStatus - Status code of the network request
|
||||
* @param responseHeaders - Response headers of the network request, when available
|
||||
* @returns NetworkError object
|
||||
*/
|
||||
function createNetworkError(error, httpStatus, responseHeaders, additionalError) {
|
||||
error.errorMessage = `${error.errorMessage}, additionalErrorInfo: error.name:${additionalError?.name}, error.message:${additionalError?.message}`;
|
||||
return new NetworkError(error, httpStatus, responseHeaders);
|
||||
}
|
||||
|
||||
export { NetworkError, createNetworkError };
|
||||
//# sourceMappingURL=NetworkError.mjs.map
|
||||
23
extracted-source/node_modules/@azure/msal-common/dist/error/ServerError.mjs
generated
vendored
Normal file
23
extracted-source/node_modules/@azure/msal-common/dist/error/ServerError.mjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
||||
'use strict';
|
||||
import { AuthError } from './AuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Error thrown when there is an error with the server code, for example, unavailability.
|
||||
*/
|
||||
class ServerError extends AuthError {
|
||||
constructor(errorCode, errorMessage, subError, errorNo, status) {
|
||||
super(errorCode, errorMessage, subError);
|
||||
this.name = "ServerError";
|
||||
this.errorNo = errorNo;
|
||||
this.status = status;
|
||||
Object.setPrototypeOf(this, ServerError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { ServerError };
|
||||
//# sourceMappingURL=ServerError.mjs.map
|
||||
Reference in New Issue
Block a user