Estructura inicial del proyecto
This commit is contained in:
59
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs
generated
vendored
Normal file
59
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { Constants } from '@azure/msal-common/browser';
|
||||
import { version } from '../packageMetadata.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const GrantType = {
|
||||
PASSWORD: "password",
|
||||
OOB: "oob",
|
||||
CONTINUATION_TOKEN: "continuation_token",
|
||||
REDIRECT: "redirect",
|
||||
ATTRIBUTES: "attributes",
|
||||
MFA_OOB: "mfa_oob",
|
||||
};
|
||||
const ChallengeType = {
|
||||
PASSWORD: "password",
|
||||
OOB: "oob",
|
||||
REDIRECT: "redirect",
|
||||
PREVERIFIED: "preverified",
|
||||
};
|
||||
const DefaultScopes = [
|
||||
Constants.OPENID_SCOPE,
|
||||
Constants.PROFILE_SCOPE,
|
||||
Constants.OFFLINE_ACCESS_SCOPE,
|
||||
];
|
||||
const HttpHeaderKeys = {
|
||||
CONTENT_TYPE: "Content-Type",
|
||||
X_MS_REQUEST_ID: "x-ms-request-id",
|
||||
};
|
||||
const CustomHeaderConstants = {
|
||||
REQUIRED_PREFIX: "x-",
|
||||
RESERVED_PREFIXES: [
|
||||
"x-client-",
|
||||
"x-ms-",
|
||||
"x-broker-",
|
||||
"x-app-",
|
||||
],
|
||||
};
|
||||
const DefaultPackageInfo = {
|
||||
SKU: "msal.browser",
|
||||
VERSION: version,
|
||||
OS: "",
|
||||
CPU: "",
|
||||
};
|
||||
const ResetPasswordPollStatus = {
|
||||
IN_PROGRESS: "in_progress",
|
||||
SUCCEEDED: "succeeded",
|
||||
FAILED: "failed",
|
||||
NOT_STARTED: "not_started",
|
||||
};
|
||||
const DefaultCustomAuthApiCodeLength = -1; // Default value indicating that the code length is not specified
|
||||
const DefaultCustomAuthApiCodeResendIntervalInSec = 300; // seconds
|
||||
const PasswordResetPollingTimeoutInMs = 300000; // milliseconds
|
||||
|
||||
export { ChallengeType, CustomHeaderConstants, DefaultCustomAuthApiCodeLength, DefaultCustomAuthApiCodeResendIntervalInSec, DefaultPackageInfo, DefaultScopes, GrantType, HttpHeaderKeys, PasswordResetPollingTimeoutInMs, ResetPasswordPollStatus };
|
||||
//# sourceMappingURL=CustomAuthConstants.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthConstants.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthConstants.mjs","sources":["../../src/custom_auth/CustomAuthConstants.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKU,MAAA,SAAS,GAAG;AACrB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,OAAO,EAAE,SAAS;EACX;AAEE,MAAA,aAAa,GAAG;AACzB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,WAAW,EAAE,aAAa;EACnB;AAEE,MAAA,aAAa,GAAG;AACzB,IAAA,SAAS,CAAC,YAAY;AACtB,IAAA,SAAS,CAAC,aAAa;AACvB,IAAA,SAAS,CAAC,oBAAoB;EACvB;AAEE,MAAA,cAAc,GAAG;AAC1B,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,eAAe,EAAE,iBAAiB;EAC3B;AAEE,MAAA,qBAAqB,GAAG;AACjC,IAAA,eAAe,EAAE,IAAI;AACrB,IAAA,iBAAiB,EAAE;QACf,WAAW;QACX,OAAO;QACP,WAAW;QACX,QAAQ;AACc,KAAA;EACnB;AAEE,MAAA,kBAAkB,GAAG;AAC9B,IAAA,GAAG,EAAE,cAAc;AACnB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,GAAG,EAAE,EAAE;EACA;AAEE,MAAA,uBAAuB,GAAG;AACnC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,WAAW,EAAE,aAAa;EACnB;MAEE,8BAA8B,GAAG,GAAG;AACpC,MAAA,2CAA2C,GAAG,IAAI;AAClD,MAAA,+BAA+B,GAAG,OAAO;;;;"}
|
||||
97
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs
generated
vendored
Normal file
97
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthStandardController } from './controller/CustomAuthStandardController.mjs';
|
||||
import { CustomAuthOperatingContext } from './operating_context/CustomAuthOperatingContext.mjs';
|
||||
import { InvalidConfigurationError } from './core/error/InvalidConfigurationError.mjs';
|
||||
import { ChallengeType } from './CustomAuthConstants.mjs';
|
||||
import { PublicClientApplication } from '../app/PublicClientApplication.mjs';
|
||||
import { MissingConfiguration, InvalidAuthority, InvalidChallengeType } from './core/error/InvalidConfigurationErrorCodes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class CustomAuthPublicClientApplication extends PublicClientApplication {
|
||||
/**
|
||||
* Creates a new instance of a PublicClientApplication with the given configuration and controller to start Native authentication flows
|
||||
* @param {CustomAuthConfiguration} config - A configuration object for the PublicClientApplication instance
|
||||
* @returns {Promise<ICustomAuthPublicClientApplication>} - A promise that resolves to a CustomAuthPublicClientApplication instance
|
||||
*/
|
||||
static async create(config) {
|
||||
CustomAuthPublicClientApplication.validateConfig(config);
|
||||
const customAuthController = new CustomAuthStandardController(new CustomAuthOperatingContext(config));
|
||||
await customAuthController.initialize();
|
||||
const app = new CustomAuthPublicClientApplication(config, customAuthController);
|
||||
return app;
|
||||
}
|
||||
constructor(config, controller) {
|
||||
super(config, controller);
|
||||
this.customAuthController = controller;
|
||||
}
|
||||
/**
|
||||
* Gets the current account from the browser cache.
|
||||
* @param {AccountRetrievalInputs} accountRetrievalInputs?:AccountRetrievalInputs
|
||||
* @returns {GetAccountResult} - The result of the get account operation
|
||||
*/
|
||||
getCurrentAccount(accountRetrievalInputs) {
|
||||
return this.customAuthController.getCurrentAccount(accountRetrievalInputs);
|
||||
}
|
||||
/**
|
||||
* Initiates the sign-in flow.
|
||||
* This method results in sign-in completion, or extra actions (password, code, etc.) required to complete the sign-in.
|
||||
* Create result with error details if any exception thrown.
|
||||
* @param {SignInInputs} signInInputs - Inputs for the sign-in flow
|
||||
* @returns {Promise<SignInResult>} - A promise that resolves to SignInResult
|
||||
*/
|
||||
signIn(signInInputs) {
|
||||
return this.customAuthController.signIn(signInInputs);
|
||||
}
|
||||
/**
|
||||
* Initiates the sign-up flow.
|
||||
* This method results in sign-up completion, or extra actions (password, code, etc.) required to complete the sign-up.
|
||||
* Create result with error details if any exception thrown.
|
||||
* @param {SignUpInputs} signUpInputs
|
||||
* @returns {Promise<SignUpResult>} - A promise that resolves to SignUpResult
|
||||
*/
|
||||
signUp(signUpInputs) {
|
||||
return this.customAuthController.signUp(signUpInputs);
|
||||
}
|
||||
/**
|
||||
* Initiates the reset password flow.
|
||||
* This method results in triggering extra action (submit code) to complete the reset password.
|
||||
* Create result with error details if any exception thrown.
|
||||
* @param {ResetPasswordInputs} resetPasswordInputs - Inputs for the reset password flow
|
||||
* @returns {Promise<ResetPasswordStartResult>} - A promise that resolves to ResetPasswordStartResult
|
||||
*/
|
||||
resetPassword(resetPasswordInputs) {
|
||||
return this.customAuthController.resetPassword(resetPasswordInputs);
|
||||
}
|
||||
/**
|
||||
* Validates the configuration to ensure it is a valid CustomAuthConfiguration object.
|
||||
* @param {CustomAuthConfiguration} config - The configuration object for the PublicClientApplication.
|
||||
* @returns {void}
|
||||
*/
|
||||
static validateConfig(config) {
|
||||
// Ensure the configuration object has a valid CIAM authority URL.
|
||||
if (!config) {
|
||||
throw new InvalidConfigurationError(MissingConfiguration, "The configuration is missing.");
|
||||
}
|
||||
if (!config.auth?.authority) {
|
||||
throw new InvalidConfigurationError(InvalidAuthority, `The authority URL '${config.auth?.authority}' is not set.`);
|
||||
}
|
||||
const challengeTypes = config.customAuth.challengeTypes;
|
||||
if (!!challengeTypes && challengeTypes.length > 0) {
|
||||
challengeTypes.forEach((challengeType) => {
|
||||
const lowerCaseChallengeType = challengeType.toLowerCase();
|
||||
if (lowerCaseChallengeType !== ChallengeType.PASSWORD &&
|
||||
lowerCaseChallengeType !== ChallengeType.OOB &&
|
||||
lowerCaseChallengeType !== ChallengeType.REDIRECT) {
|
||||
throw new InvalidConfigurationError(InvalidChallengeType, `Challenge type ${challengeType} in the configuration are not valid. Supported challenge types are ${Object.values(ChallengeType)}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthPublicClientApplication };
|
||||
//# sourceMappingURL=CustomAuthPublicClientApplication.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthPublicClientApplication.mjs","sources":["../../src/custom_auth/CustomAuthPublicClientApplication.ts"],"sourcesContent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IAAI,yBAAyB,CAC/B,oBAAoB,EACpB,+BAA+B,CAClC,CAAC;AACL,SAAA;AAED,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE;AACzB,YAAA,MAAM,IAAI,yBAAyB,CAC/B,gBAAgB,EAChB,CAAA,mBAAA,EAAsB,MAAM,CAAC,IAAI,EAAE,SAAS,CAAA,aAAA,CAAe,CAC9D,CAAC;AACL,SAAA;AAED,QAAA,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC;QAExD,IAAI,CAAC,CAAC,cAAc,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;AAC/C,YAAA,cAAc,CAAC,OAAO,CAAC,CAAC,aAAa,KAAI;AACrC,gBAAA,MAAM,sBAAsB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;AAC3D,gBAAA,IACI,sBAAsB,KAAK,aAAa,CAAC,QAAQ;oBACjD,sBAAsB,KAAK,aAAa,CAAC,GAAG;AAC5C,oBAAA,sBAAsB,KAAK,aAAa,CAAC,QAAQ,EACnD;AACE,oBAAA,MAAM,IAAI,yBAAyB,CAC/B,oBAAoB,EACpB,kBAAkB,aAAa,CAAA,mEAAA,EAAsE,MAAM,CAAC,MAAM,CAC9G,aAAa,CAChB,CAAA,CAAE,CACN,CAAC;AACL,iBAAA;AACL,aAAC,CAAC,CAAC;AACN,SAAA;KACJ;AACJ;;;;"}
|
||||
332
backend/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs
generated
vendored
Normal file
332
backend/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs
generated
vendored
Normal file
@ -0,0 +1,332 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { GetAccountResult } from '../get_account/auth_flow/result/GetAccountResult.mjs';
|
||||
import { SignInResult } from '../sign_in/auth_flow/result/SignInResult.mjs';
|
||||
import { SignUpResult } from '../sign_up/auth_flow/result/SignUpResult.mjs';
|
||||
import { SignInClient } from '../sign_in/interaction_client/SignInClient.mjs';
|
||||
import { CustomAuthAccountData } from '../get_account/auth_flow/CustomAuthAccountData.mjs';
|
||||
import { UnexpectedError } from '../core/error/UnexpectedError.mjs';
|
||||
import { ResetPasswordStartResult } from '../reset_password/auth_flow/result/ResetPasswordStartResult.mjs';
|
||||
import { CustomAuthAuthority } from '../core/CustomAuthAuthority.mjs';
|
||||
import { DefaultPackageInfo } from '../CustomAuthConstants.mjs';
|
||||
import { SIGN_IN_CODE_SEND_RESULT_TYPE, SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE, SIGN_IN_COMPLETED_RESULT_TYPE, SIGN_IN_JIT_REQUIRED_RESULT_TYPE, SIGN_IN_MFA_REQUIRED_RESULT_TYPE } from '../sign_in/interaction_client/result/SignInActionResult.mjs';
|
||||
import { SignUpClient } from '../sign_up/interaction_client/SignUpClient.mjs';
|
||||
import { CustomAuthInterationClientFactory } from '../core/interaction_client/CustomAuthInterationClientFactory.mjs';
|
||||
import { SIGN_UP_CODE_REQUIRED_RESULT_TYPE, SIGN_UP_PASSWORD_REQUIRED_RESULT_TYPE } from '../sign_up/interaction_client/result/SignUpActionResult.mjs';
|
||||
import { CustomAuthApiClient } from '../core/network_client/custom_auth_api/CustomAuthApiClient.mjs';
|
||||
import { FetchHttpClient } from '../core/network_client/http_client/FetchHttpClient.mjs';
|
||||
import { ResetPasswordClient } from '../reset_password/interaction_client/ResetPasswordClient.mjs';
|
||||
import { JitClient } from '../core/interaction_client/jit/JitClient.mjs';
|
||||
import { MfaClient } from '../core/interaction_client/mfa/MfaClient.mjs';
|
||||
import { NoCachedAccountFoundError } from '../core/error/NoCachedAccountFoundError.mjs';
|
||||
import { ensureArgumentIsNotNullOrUndefined, ensureArgumentIsNotEmptyString, ensureArgumentIsJSONString } from '../core/utils/ArgumentValidator.mjs';
|
||||
import { UserAlreadySignedInError } from '../core/error/UserAlreadySignedInError.mjs';
|
||||
import { CustomAuthSilentCacheClient } from '../get_account/interaction_client/CustomAuthSilentCacheClient.mjs';
|
||||
import { UnsupportedEnvironmentError } from '../core/error/UnsupportedEnvironmentError.mjs';
|
||||
import { SignInCodeRequiredState } from '../sign_in/auth_flow/state/SignInCodeRequiredState.mjs';
|
||||
import { SignInPasswordRequiredState } from '../sign_in/auth_flow/state/SignInPasswordRequiredState.mjs';
|
||||
import { SignInCompletedState } from '../sign_in/auth_flow/state/SignInCompletedState.mjs';
|
||||
import { AuthMethodRegistrationRequiredState } from '../core/auth_flow/jit/state/AuthMethodRegistrationState.mjs';
|
||||
import { MfaAwaitingState } from '../core/auth_flow/mfa/state/MfaState.mjs';
|
||||
import { SignUpCodeRequiredState } from '../sign_up/auth_flow/state/SignUpCodeRequiredState.mjs';
|
||||
import { SignUpPasswordRequiredState } from '../sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs';
|
||||
import { ResetPasswordCodeRequiredState } from '../reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs';
|
||||
import { StandardController } from '../../controllers/StandardController.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/*
|
||||
* Controller for standard native auth operations.
|
||||
*/
|
||||
class CustomAuthStandardController extends StandardController {
|
||||
/*
|
||||
* Constructor for CustomAuthStandardController.
|
||||
* @param operatingContext - The operating context for the controller.
|
||||
* @param customAuthApiClient - The client to use for custom auth API operations.
|
||||
*/
|
||||
constructor(operatingContext, customAuthApiClient) {
|
||||
super(operatingContext);
|
||||
if (!this.isBrowserEnvironment) {
|
||||
this.logger.verbose("1f7i3q", "");
|
||||
throw new UnsupportedEnvironmentError();
|
||||
}
|
||||
this.logger = this.logger.clone(DefaultPackageInfo.SKU, DefaultPackageInfo.VERSION);
|
||||
this.customAuthConfig = operatingContext.getCustomAuthConfig();
|
||||
this.authority = new CustomAuthAuthority(this.customAuthConfig.auth.authority, this.customAuthConfig, this.networkClient, this.browserStorage, this.logger, this.performanceClient, this.customAuthConfig.customAuth?.authApiProxyUrl);
|
||||
const interactionClientFactory = new CustomAuthInterationClientFactory(this.customAuthConfig, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, customAuthApiClient ??
|
||||
new CustomAuthApiClient(this.authority.getCustomAuthApiDomain(), this.customAuthConfig.auth.clientId, new FetchHttpClient(this.logger), this.customAuthConfig.customAuth?.capabilities?.join(" "), this.customAuthConfig.customAuth?.customAuthApiQueryParams, this.customAuthConfig.customAuth?.requestInterceptor, this.logger), this.authority);
|
||||
this.signInClient = interactionClientFactory.create(SignInClient);
|
||||
this.signUpClient = interactionClientFactory.create(SignUpClient);
|
||||
this.resetPasswordClient =
|
||||
interactionClientFactory.create(ResetPasswordClient);
|
||||
this.jitClient = interactionClientFactory.create(JitClient);
|
||||
this.mfaClient = interactionClientFactory.create(MfaClient);
|
||||
this.cacheClient = interactionClientFactory.create(CustomAuthSilentCacheClient);
|
||||
}
|
||||
/*
|
||||
* Gets the current account from the cache.
|
||||
* @param accountRetrievalInputs - Inputs for getting the current cached account
|
||||
* @returns {GetAccountResult} The account result
|
||||
*/
|
||||
getCurrentAccount(accountRetrievalInputs) {
|
||||
const correlationId = this.getCorrelationId(accountRetrievalInputs);
|
||||
try {
|
||||
this.logger.verbose("0mb49j", correlationId);
|
||||
const account = this.cacheClient.getCurrentAccount(correlationId);
|
||||
if (account) {
|
||||
this.logger.verbose("1utnrc", correlationId);
|
||||
return new GetAccountResult(new CustomAuthAccountData(account, this.customAuthConfig, this.cacheClient, this.logger, correlationId));
|
||||
}
|
||||
throw new NoCachedAccountFoundError(correlationId);
|
||||
}
|
||||
catch (error) {
|
||||
this.logger.errorPii("0ar5hw", correlationId);
|
||||
return GetAccountResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Signs the user in.
|
||||
* @param signInInputs - Inputs for signing in the user.
|
||||
* @returns {Promise<SignInResult>} The result of the operation.
|
||||
*/
|
||||
async signIn(signInInputs) {
|
||||
const correlationId = this.getCorrelationId(signInInputs);
|
||||
try {
|
||||
ensureArgumentIsNotNullOrUndefined("signInInputs", signInInputs, correlationId);
|
||||
ensureArgumentIsNotEmptyString("signInInputs.username", signInInputs.username, correlationId);
|
||||
this.ensureUserNotSignedIn(correlationId);
|
||||
if (signInInputs.claims) {
|
||||
ensureArgumentIsJSONString("signInInputs.claims", signInInputs.claims, correlationId);
|
||||
}
|
||||
// start the signin flow
|
||||
const signInStartParams = {
|
||||
clientId: this.customAuthConfig.auth.clientId,
|
||||
correlationId: correlationId,
|
||||
challengeType: this.customAuthConfig.customAuth.challengeTypes ?? [],
|
||||
username: signInInputs.username,
|
||||
password: signInInputs.password,
|
||||
};
|
||||
this.logger.verbose("0mncjk", correlationId);
|
||||
const startResult = await this.signInClient.start(signInStartParams);
|
||||
this.logger.verbose("0b1x6k", correlationId);
|
||||
if (startResult.type === SIGN_IN_CODE_SEND_RESULT_TYPE) {
|
||||
// require code
|
||||
this.logger.verbose("19jerh", correlationId);
|
||||
return new SignInResult(new SignInCodeRequiredState({
|
||||
correlationId: startResult.correlationId,
|
||||
continuationToken: startResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
signInClient: this.signInClient,
|
||||
cacheClient: this.cacheClient,
|
||||
jitClient: this.jitClient,
|
||||
mfaClient: this.mfaClient,
|
||||
username: signInInputs.username,
|
||||
codeLength: startResult.codeLength,
|
||||
scopes: signInInputs.scopes ?? [],
|
||||
claims: signInInputs.claims,
|
||||
}));
|
||||
}
|
||||
else if (startResult.type === SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE) {
|
||||
// require password
|
||||
this.logger.verbose("0457px", correlationId);
|
||||
if (!signInInputs.password) {
|
||||
this.logger.verbose("09dgsg", correlationId);
|
||||
return new SignInResult(new SignInPasswordRequiredState({
|
||||
correlationId: startResult.correlationId,
|
||||
continuationToken: startResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
signInClient: this.signInClient,
|
||||
cacheClient: this.cacheClient,
|
||||
jitClient: this.jitClient,
|
||||
mfaClient: this.mfaClient,
|
||||
username: signInInputs.username,
|
||||
scopes: signInInputs.scopes ?? [],
|
||||
claims: signInInputs.claims,
|
||||
}));
|
||||
}
|
||||
this.logger.verbose("1dm2kj", correlationId);
|
||||
// if the password is provided, then try to get token silently.
|
||||
const submitPasswordParams = {
|
||||
clientId: this.customAuthConfig.auth.clientId,
|
||||
correlationId: correlationId,
|
||||
challengeType: this.customAuthConfig.customAuth.challengeTypes ?? [],
|
||||
scopes: signInInputs.scopes ?? [],
|
||||
continuationToken: startResult.continuationToken,
|
||||
password: signInInputs.password,
|
||||
username: signInInputs.username,
|
||||
claims: signInInputs.claims,
|
||||
};
|
||||
const submitPasswordResult = await this.signInClient.submitPassword(submitPasswordParams);
|
||||
this.logger.verbose("09ajki", correlationId);
|
||||
if (submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
|
||||
const accountInfo = new CustomAuthAccountData(submitPasswordResult.authenticationResult.account, this.customAuthConfig, this.cacheClient, this.logger, correlationId);
|
||||
return new SignInResult(new SignInCompletedState(), accountInfo);
|
||||
}
|
||||
else if (submitPasswordResult.type ===
|
||||
SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
|
||||
// Authentication method registration is required - create AuthMethodRegistrationRequiredState
|
||||
this.logger.verbose("187c19", correlationId);
|
||||
return new SignInResult(new AuthMethodRegistrationRequiredState({
|
||||
correlationId: correlationId,
|
||||
continuationToken: submitPasswordResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
jitClient: this.jitClient,
|
||||
cacheClient: this.cacheClient,
|
||||
authMethods: submitPasswordResult.authMethods,
|
||||
username: signInInputs.username,
|
||||
scopes: signInInputs.scopes ?? [],
|
||||
claims: signInInputs.claims,
|
||||
}));
|
||||
}
|
||||
else if (submitPasswordResult.type ===
|
||||
SIGN_IN_MFA_REQUIRED_RESULT_TYPE) {
|
||||
// MFA is required - create MfaAwaitingState
|
||||
this.logger.verbose("1t79dc", correlationId);
|
||||
return new SignInResult(new MfaAwaitingState({
|
||||
correlationId: correlationId,
|
||||
continuationToken: submitPasswordResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
mfaClient: this.mfaClient,
|
||||
cacheClient: this.cacheClient,
|
||||
scopes: signInInputs.scopes ?? [],
|
||||
authMethods: submitPasswordResult.authMethods ?? [],
|
||||
}));
|
||||
}
|
||||
else {
|
||||
// Unexpected result type
|
||||
const result = submitPasswordResult;
|
||||
const error = new Error(`Unexpected result type: ${result.type}`);
|
||||
return SignInResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
this.logger.error("14awz5", correlationId);
|
||||
throw new UnexpectedError("Unknow sign-in result type", correlationId);
|
||||
}
|
||||
catch (error) {
|
||||
this.logger.errorPii("1te6co", correlationId);
|
||||
return SignInResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Signs the user up.
|
||||
* @param signUpInputs - Inputs for signing up the user.
|
||||
* @returns {Promise<SignUpResult>} The result of the operation
|
||||
*/
|
||||
async signUp(signUpInputs) {
|
||||
const correlationId = this.getCorrelationId(signUpInputs);
|
||||
try {
|
||||
ensureArgumentIsNotNullOrUndefined("signUpInputs", signUpInputs, correlationId);
|
||||
ensureArgumentIsNotEmptyString("signUpInputs.username", signUpInputs.username, correlationId);
|
||||
this.ensureUserNotSignedIn(correlationId);
|
||||
this.logger.verbose("1f4ezz", correlationId);
|
||||
const startResult = await this.signUpClient.start({
|
||||
clientId: this.customAuthConfig.auth.clientId,
|
||||
correlationId: correlationId,
|
||||
challengeType: this.customAuthConfig.customAuth.challengeTypes ?? [],
|
||||
username: signUpInputs.username,
|
||||
password: signUpInputs.password,
|
||||
attributes: signUpInputs.attributes,
|
||||
});
|
||||
this.logger.verbose("1pwgi0", correlationId);
|
||||
if (startResult.type === SIGN_UP_CODE_REQUIRED_RESULT_TYPE) {
|
||||
// Code required
|
||||
this.logger.verbose("1hm6bi", correlationId);
|
||||
return new SignUpResult(new SignUpCodeRequiredState({
|
||||
correlationId: startResult.correlationId,
|
||||
continuationToken: startResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
signInClient: this.signInClient,
|
||||
signUpClient: this.signUpClient,
|
||||
cacheClient: this.cacheClient,
|
||||
jitClient: this.jitClient,
|
||||
mfaClient: this.mfaClient,
|
||||
username: signUpInputs.username,
|
||||
codeLength: startResult.codeLength,
|
||||
codeResendInterval: startResult.interval,
|
||||
}));
|
||||
}
|
||||
else if (startResult.type === SIGN_UP_PASSWORD_REQUIRED_RESULT_TYPE) {
|
||||
// Password required
|
||||
this.logger.verbose("098u8y", correlationId);
|
||||
return new SignUpResult(new SignUpPasswordRequiredState({
|
||||
correlationId: startResult.correlationId,
|
||||
continuationToken: startResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
signInClient: this.signInClient,
|
||||
signUpClient: this.signUpClient,
|
||||
cacheClient: this.cacheClient,
|
||||
jitClient: this.jitClient,
|
||||
mfaClient: this.mfaClient,
|
||||
username: signUpInputs.username,
|
||||
}));
|
||||
}
|
||||
this.logger.error("12ceo3", correlationId);
|
||||
throw new UnexpectedError("Unknown sign-up result type", correlationId);
|
||||
}
|
||||
catch (error) {
|
||||
this.logger.errorPii("1ym5p8", correlationId);
|
||||
return SignUpResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Resets the user's password.
|
||||
* @param resetPasswordInputs - Inputs for resetting the user's password.
|
||||
* @returns {Promise<ResetPasswordStartResult>} The result of the operation.
|
||||
*/
|
||||
async resetPassword(resetPasswordInputs) {
|
||||
const correlationId = this.getCorrelationId(resetPasswordInputs);
|
||||
try {
|
||||
ensureArgumentIsNotNullOrUndefined("resetPasswordInputs", resetPasswordInputs, correlationId);
|
||||
ensureArgumentIsNotEmptyString("resetPasswordInputs.username", resetPasswordInputs.username, correlationId);
|
||||
this.ensureUserNotSignedIn(correlationId);
|
||||
this.logger.verbose("1u9e3k", correlationId);
|
||||
const startResult = await this.resetPasswordClient.start({
|
||||
clientId: this.customAuthConfig.auth.clientId,
|
||||
correlationId: correlationId,
|
||||
challengeType: this.customAuthConfig.customAuth.challengeTypes ?? [],
|
||||
username: resetPasswordInputs.username,
|
||||
});
|
||||
this.logger.verbose("1axxe2", correlationId);
|
||||
return new ResetPasswordStartResult(new ResetPasswordCodeRequiredState({
|
||||
correlationId: startResult.correlationId,
|
||||
continuationToken: startResult.continuationToken,
|
||||
logger: this.logger,
|
||||
config: this.customAuthConfig,
|
||||
signInClient: this.signInClient,
|
||||
resetPasswordClient: this.resetPasswordClient,
|
||||
cacheClient: this.cacheClient,
|
||||
jitClient: this.jitClient,
|
||||
mfaClient: this.mfaClient,
|
||||
username: resetPasswordInputs.username,
|
||||
codeLength: startResult.codeLength,
|
||||
}));
|
||||
}
|
||||
catch (error) {
|
||||
this.logger.errorPii("1s0wwh", correlationId);
|
||||
return ResetPasswordStartResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
getCorrelationId(actionInputs) {
|
||||
return (actionInputs?.correlationId || this.browserCrypto.createNewGuid());
|
||||
}
|
||||
ensureUserNotSignedIn(correlationId) {
|
||||
const account = this.getCurrentAccount({
|
||||
correlationId: correlationId,
|
||||
});
|
||||
if (account && !!account.data) {
|
||||
this.logger.error("1a17tw", correlationId);
|
||||
throw new UserAlreadySignedInError(correlationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthStandardController };
|
||||
//# sourceMappingURL=CustomAuthStandardController.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/controller/CustomAuthStandardController.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
82
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs
generated
vendored
Normal file
82
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs
generated
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { Authority } from '@azure/msal-common/browser';
|
||||
import { SIGNIN_TOKEN } from './network_client/custom_auth_api/CustomAuthApiEndpoint.mjs';
|
||||
import { buildUrl } from './utils/UrlUtils.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Authority class which can be used to create an authority object for Custom Auth features.
|
||||
*/
|
||||
class CustomAuthAuthority extends Authority {
|
||||
/**
|
||||
* Constructor for the Custom Auth Authority.
|
||||
* @param authority - The authority URL for the authority.
|
||||
* @param networkInterface - The network interface implementation to make requests.
|
||||
* @param cacheManager - The cache manager.
|
||||
* @param authorityOptions - The options for the authority.
|
||||
* @param logger - The logger for the authority.
|
||||
* @param customAuthProxyDomain - The custom auth proxy domain.
|
||||
*/
|
||||
constructor(authority, config, networkInterface, cacheManager, logger, performanceClient, customAuthProxyDomain) {
|
||||
const ciamAuthorityUrl = CustomAuthAuthority.transformCIAMAuthority(authority);
|
||||
const authorityOptions = {
|
||||
protocolMode: config.system.protocolMode,
|
||||
OIDCOptions: config.auth.OIDCOptions,
|
||||
knownAuthorities: config.auth.knownAuthorities,
|
||||
cloudDiscoveryMetadata: config.auth.cloudDiscoveryMetadata,
|
||||
authorityMetadata: config.auth.authorityMetadata,
|
||||
};
|
||||
super(ciamAuthorityUrl, networkInterface, cacheManager, authorityOptions, logger, "", performanceClient);
|
||||
this.customAuthProxyDomain = customAuthProxyDomain;
|
||||
// Set the metadata for the authority
|
||||
const metadataEntity = {
|
||||
aliases: [this.hostnameAndPort],
|
||||
preferred_cache: this.getPreferredCache(),
|
||||
preferred_network: this.hostnameAndPort,
|
||||
canonical_authority: this.canonicalAuthority,
|
||||
authorization_endpoint: "",
|
||||
token_endpoint: this.tokenEndpoint,
|
||||
end_session_endpoint: "",
|
||||
issuer: "",
|
||||
aliasesFromNetwork: false,
|
||||
endpointsFromNetwork: false,
|
||||
/*
|
||||
* give max value to make sure it doesn't expire,
|
||||
* as we only initiate the authority metadata entity once and it doesn't change
|
||||
*/
|
||||
expiresAt: Number.MAX_SAFE_INTEGER,
|
||||
jwks_uri: "",
|
||||
};
|
||||
const cacheKey = this.cacheManager.generateAuthorityMetadataCacheKey(metadataEntity.preferred_cache, this.correlationId);
|
||||
cacheManager.setAuthorityMetadata(cacheKey, metadataEntity, this.correlationId);
|
||||
}
|
||||
/**
|
||||
* Gets the custom auth endpoint.
|
||||
* The open id configuration doesn't have the correct endpoint for the auth APIs.
|
||||
* We need to generate the endpoint manually based on the authority URL.
|
||||
* @returns The custom auth endpoint
|
||||
*/
|
||||
getCustomAuthApiDomain() {
|
||||
/*
|
||||
* The customAuthProxyDomain is used to resolve the CORS issue when calling the auth APIs.
|
||||
* If the customAuthProxyDomain is not provided, we will generate the auth API domain based on the authority URL.
|
||||
*/
|
||||
return !this.customAuthProxyDomain
|
||||
? this.canonicalAuthority
|
||||
: this.customAuthProxyDomain;
|
||||
}
|
||||
getPreferredCache() {
|
||||
return this.canonicalAuthorityUrlComponents.HostNameAndPort;
|
||||
}
|
||||
get tokenEndpoint() {
|
||||
const endpointUrl = buildUrl(this.getCustomAuthApiDomain(), SIGNIN_TOKEN);
|
||||
return endpointUrl.href;
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthAuthority };
|
||||
//# sourceMappingURL=CustomAuthAuthority.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/CustomAuthAuthority.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAu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MAAM,EAAE,EAAE;AACV,YAAA,kBAAkB,EAAE,KAAK;AACzB,YAAA,oBAAoB,EAAE,KAAK;AAC3B;;;AAGG;YACH,SAAS,EAAE,MAAM,CAAC,gBAAgB;AAClC,YAAA,QAAQ,EAAE,EAAE;SACf,CAAC;AACF,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,iCAAiC,CAChE,cAAc,CAAC,eAAe,EAC9B,IAAI,CAAC,aAAa,CACrB,CAAC;QACF,YAAY,CAAC,oBAAoB,CAC7B,QAAQ,EACR,cAAc,EACd,IAAI,CAAC,aAAa,CACrB,CAAC;KACL;AAED;;;;;AAKG;IACH,sBAAsB,GAAA;AAClB;;;AAGG;QACH,OAAO,CAAC,IAAI,CAAC,qBAAqB;cAC5B,IAAI,CAAC,kBAAkB;AACzB,cAAE,IAAI,CAAC,qBAAqB,CAAC;KACpC;IAEQ,iBAAiB,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,+BAA+B,CAAC,eAAe,CAAC;KAC/D;AAED,IAAA,IAAa,aAAa,GAAA;AACtB,QAAA,MAAM,WAAW,GAAG,QAAQ,CACxB,IAAI,CAAC,sBAAsB,EAAE,EAC7BA,YAAkC,CACrC,CAAC;QAEF,OAAO,WAAW,CAAC,IAAI,CAAC;KAC3B;AACJ;;;;"}
|
||||
134
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs
generated
vendored
Normal file
134
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs
generated
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthApiError, RedirectError } from '../error/CustomAuthApiError.mjs';
|
||||
import { NoCachedAccountFoundError } from '../error/NoCachedAccountFoundError.mjs';
|
||||
import { InvalidArgumentError } from '../error/InvalidArgumentError.mjs';
|
||||
import { USER_NOT_FOUND, INVALID_REQUEST, UNSUPPORTED_CHALLENGE_TYPE, INVALID_GRANT, USER_ALREADY_EXISTS, ATTRIBUTES_REQUIRED, EXPIRED_TOKEN, ACCESS_DENIED } from '../network_client/custom_auth_api/types/ApiErrorCodes.mjs';
|
||||
import { INVALID_OOB_VALUE, ATTRIBUTE_VALIATION_FAILED, PROVIDER_BLOCKED_BY_REPUTATION, PASSWORD_BANNED, PASSWORD_IS_INVALID, PASSWORD_RECENTLY_USED, PASSWORD_TOO_LONG, PASSWORD_TOO_SHORT, PASSWORD_TOO_WEAK } from '../network_client/custom_auth_api/types/ApiSuberrors.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Base class for all auth flow errors.
|
||||
*/
|
||||
class AuthFlowErrorBase {
|
||||
constructor(errorData) {
|
||||
this.errorData = errorData;
|
||||
}
|
||||
isUserNotFoundError() {
|
||||
return this.errorData.error === USER_NOT_FOUND;
|
||||
}
|
||||
isUserInvalidError() {
|
||||
return ((this.errorData instanceof InvalidArgumentError &&
|
||||
this.errorData.errorDescription?.includes("username")) ||
|
||||
(this.errorData instanceof CustomAuthApiError &&
|
||||
!!this.errorData.errorDescription?.includes("username parameter is empty or not valid") &&
|
||||
!!this.errorData.errorCodes?.includes(90100)));
|
||||
}
|
||||
isUnsupportedChallengeTypeError() {
|
||||
return ((this.errorData.error === INVALID_REQUEST &&
|
||||
(this.errorData.errorDescription?.includes("The challenge_type list parameter contains an unsupported challenge type") ??
|
||||
false)) ||
|
||||
this.errorData.error ===
|
||||
UNSUPPORTED_CHALLENGE_TYPE);
|
||||
}
|
||||
isPasswordIncorrectError() {
|
||||
const isIncorrectPassword = this.errorData.error === INVALID_GRANT &&
|
||||
this.errorData instanceof CustomAuthApiError &&
|
||||
(this.errorData.errorCodes ?? []).includes(50126);
|
||||
const isPasswordEmpty = this.errorData instanceof InvalidArgumentError &&
|
||||
this.errorData.errorDescription?.includes("password") === true;
|
||||
return isIncorrectPassword || isPasswordEmpty;
|
||||
}
|
||||
isInvalidCodeError() {
|
||||
return ((this.errorData.error === INVALID_GRANT &&
|
||||
this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.subError ===
|
||||
INVALID_OOB_VALUE) ||
|
||||
(this.errorData instanceof InvalidArgumentError &&
|
||||
(this.errorData.errorDescription?.includes("code") ||
|
||||
this.errorData.errorDescription?.includes("challenge")) ===
|
||||
true));
|
||||
}
|
||||
isRedirectError() {
|
||||
return this.errorData instanceof RedirectError;
|
||||
}
|
||||
isInvalidNewPasswordError() {
|
||||
const invalidPasswordSubErrors = new Set([
|
||||
PASSWORD_BANNED,
|
||||
PASSWORD_IS_INVALID,
|
||||
PASSWORD_RECENTLY_USED,
|
||||
PASSWORD_TOO_LONG,
|
||||
PASSWORD_TOO_SHORT,
|
||||
PASSWORD_TOO_WEAK,
|
||||
]);
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === INVALID_GRANT &&
|
||||
invalidPasswordSubErrors.has(this.errorData.subError ?? ""));
|
||||
}
|
||||
isUserAlreadyExistsError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === USER_ALREADY_EXISTS);
|
||||
}
|
||||
isAttributeRequiredError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === ATTRIBUTES_REQUIRED);
|
||||
}
|
||||
isAttributeValidationFailedError() {
|
||||
return ((this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === INVALID_GRANT &&
|
||||
this.errorData.subError ===
|
||||
ATTRIBUTE_VALIATION_FAILED) ||
|
||||
(this.errorData instanceof InvalidArgumentError &&
|
||||
this.errorData.errorDescription?.includes("attributes") ===
|
||||
true));
|
||||
}
|
||||
isNoCachedAccountFoundError() {
|
||||
return this.errorData instanceof NoCachedAccountFoundError;
|
||||
}
|
||||
isTokenExpiredError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === EXPIRED_TOKEN);
|
||||
}
|
||||
/**
|
||||
* @todo verify the password change required error can be detected once the MFA is in place.
|
||||
* This error will be raised during signin and refresh tokens when calling /token endpoint.
|
||||
*/
|
||||
isPasswordResetRequiredError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === INVALID_REQUEST &&
|
||||
this.errorData.errorCodes?.includes(50142) === true);
|
||||
}
|
||||
isInvalidInputError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === INVALID_REQUEST &&
|
||||
this.errorData.errorCodes?.includes(901001) === true);
|
||||
}
|
||||
isVerificationContactBlockedError() {
|
||||
return (this.errorData instanceof CustomAuthApiError &&
|
||||
this.errorData.error === ACCESS_DENIED &&
|
||||
this.errorData.subError ===
|
||||
PROVIDER_BLOCKED_BY_REPUTATION);
|
||||
}
|
||||
}
|
||||
class AuthActionErrorBase extends AuthFlowErrorBase {
|
||||
/**
|
||||
* Checks if the error is due to the expired continuation token.
|
||||
* @returns {boolean} True if the error is due to the expired continuation token, false otherwise.
|
||||
*/
|
||||
isTokenExpired() {
|
||||
return this.isTokenExpiredError();
|
||||
}
|
||||
/**
|
||||
* Check if client app supports the challenge type configured in Entra.
|
||||
* @returns {boolean} True if client app doesn't support the challenge type configured in Entra, "loginPopup" function is required to continue the operation.
|
||||
*/
|
||||
isRedirectRequired() {
|
||||
return this.isRedirectError();
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthActionErrorBase, AuthFlowErrorBase };
|
||||
//# sourceMappingURL=AuthFlowErrorBase.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthFlowErrorBase.mjs","sources":["../../../../src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.USER_NOT_FOUND","CustomAuthApiErrorCode.INVALID_REQUEST","CustomAuthApiErrorCode.UNSUPPORTED_CHALLENGE_TYPE","CustomAuthApiErrorCode.INVALID_GRANT","CustomAuthApiSuberror.INVALID_OOB_VALUE","CustomAuthApiSuberror.PASSWORD_BANNED","CustomAuthApiSuberror.PASSWORD_IS_INVALID","CustomAuthApiSuberror.PASSWORD_RECENTLY_USED","CustomAuthApiSuberror.PASSWORD_TOO_LONG","CustomAuthApiSuberror.PASSWORD_TOO_SHORT","CustomAuthApiSuberror.PASSWORD_TOO_WEAK","CustomAuthApiErrorCode.USER_ALREADY_EXISTS","CustomAuthApiErrorCode.ATTRIBUTES_REQUIRED","CustomAuthApiSuberror.ATTRIBUTE_VALIATION_FAILED","CustomAuthApiErrorCode.EXPIRED_TOKEN","CustomAuthApiErrorCode.ACCESS_DENIED","CustomAuthApiSuberror.PROVIDER_BLOCKED_BY_REPUTATION"],"mappings":";;;;;;;;AAAA;;;AAGG;AAWH;;AAEG;MACmB,iBAAiB,CAAA;AACnC,IAAA,WAAA,CAAmB,SAA0B,EAAA;QAA1B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAiB;KAAI;IAEvC,mBAAmB,GAAA;QACzB,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKA,cAAqC,CAAC;KACzE;IAES,kBAAkB,GAAA;AACxB,QAAA,QACI,CAAC,IAAI,CAAC,SAAS,YAAY,oBAAoB;YAC3C,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,QAAQ,CAAC,UAAU,CAAC;AACzD,aAAC,IAAI,CAAC,SAAS,YAAY,kBAAkB;gBACzC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,QAAQ,CACvC,0CAA0C,CAC7C;AACD,gBAAA,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK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AA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKb,eAAsC;AAC/D,YAAA,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,EACrD;KACL;IAES,mBAAmB,GAAA;AACzB,QAAA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKA,eAAsC;AAC/D,YAAA,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,IAAI,EACtD;KACL;IAES,iCAAiC,GAAA;AACvC,QAAA,QACI,IAAI,CAAC,SAAS,YAAY,kBAAkB;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,KAAK,KAAKc,aAAoC;YAC7D,IAAI,CAAC,SAAS,CAAC,QAAQ;gBACnBC,8BAAoD,EAC1D;KACL;AACJ,CAAA;AAEK,MAAgB,mBAAoB,SAAQ,iBAAiB,CAAA;AAC/D;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;KACrC;AAED;;;AAGG;IACH,kBAAkB,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;KACjC;AACJ;;;;"}
|
||||
59
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs
generated
vendored
Normal file
59
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthError } from '@azure/msal-common/browser';
|
||||
import { CustomAuthError } from '../error/CustomAuthError.mjs';
|
||||
import { MsalCustomAuthError } from '../error/MsalCustomAuthError.mjs';
|
||||
import { UnexpectedError } from '../error/UnexpectedError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/*
|
||||
* Base class for a result of an authentication operation.
|
||||
* @typeParam TState - The type of the auth flow state.
|
||||
* @typeParam TError - The type of error.
|
||||
* @typeParam TData - The type of the result data.
|
||||
*/
|
||||
class AuthFlowResultBase {
|
||||
/*
|
||||
*constructor for ResultBase
|
||||
* @param state - The state.
|
||||
* @param data - The result data.
|
||||
*/
|
||||
constructor(state, data) {
|
||||
this.state = state;
|
||||
this.data = data;
|
||||
}
|
||||
/*
|
||||
* Creates a CustomAuthError with an error.
|
||||
* @param error - The error that occurred.
|
||||
* @returns The auth error.
|
||||
*/
|
||||
static createErrorData(error) {
|
||||
if (error instanceof CustomAuthError) {
|
||||
return error;
|
||||
}
|
||||
else if (error instanceof AuthError) {
|
||||
const errorCodes = [];
|
||||
if ("errorNo" in error) {
|
||||
if (typeof error.errorNo === "string") {
|
||||
const code = Number(error.errorNo);
|
||||
if (!isNaN(code)) {
|
||||
errorCodes.push(code);
|
||||
}
|
||||
}
|
||||
else if (typeof error.errorNo === "number") {
|
||||
errorCodes.push(error.errorNo);
|
||||
}
|
||||
}
|
||||
return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, errorCodes, error.correlationId);
|
||||
}
|
||||
else {
|
||||
return new UnexpectedError(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthFlowResultBase };
|
||||
//# sourceMappingURL=AuthFlowResultBase.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthFlowResultBase.mjs","sources":["../../../../src/custom_auth/core/auth_flow/AuthFlowResultBase.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AASH;;;;;AAKG;MACmB,kBAAkB,CAAA;AAKpC;;;;AAIG;IACH,WAAmB,CAAA,KAAa,EAAS,IAAY,EAAA;QAAlC,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;QAAS,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAQ;KAAI;AAOzD;;;;AAIG;IACO,OAAO,eAAe,CAAC,KAAc,EAAA;QAC3C,IAAI,KAAK,YAAY,eAAe,EAAE;AAClC,YAAA,OAAO,KAAK,CAAC;AAChB,SAAA;aAAM,IAAI,KAAK,YAAY,SAAS,EAAE;YACnC,MAAM,UAAU,GAAkB,EAAE,CAAC;YAErC,IAAI,SAAS,IAAI,KAAK,EAAE;AACpB,gBAAA,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE;oBACnC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACnC,oBAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;AACd,wBAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,qBAAA;AACJ,iBAAA;AAAM,qBAAA,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE;AAC1C,oBAAA,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAClC,iBAAA;AACJ,aAAA;YAED,OAAO,IAAI,mBAAmB,CAC1B,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,QAAQ,EACd,UAAU,EACV,KAAK,CAAC,aAAa,CACtB,CAAC;AACL,SAAA;AAAM,aAAA;AACH,YAAA,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AACrC,SAAA;KACJ;AACJ;;;;"}
|
||||
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs
generated
vendored
Normal file
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { InvalidArgumentError } from '../error/InvalidArgumentError.mjs';
|
||||
import { ensureArgumentIsNotEmptyString } from '../utils/ArgumentValidator.mjs';
|
||||
import { DefaultCustomAuthApiCodeLength } from '../../CustomAuthConstants.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Base class for the state of an authentication flow.
|
||||
*/
|
||||
class AuthFlowStateBase {
|
||||
}
|
||||
/**
|
||||
* Base class for the action requried state in an authentication flow.
|
||||
*/
|
||||
class AuthFlowActionRequiredStateBase extends AuthFlowStateBase {
|
||||
/**
|
||||
* Creates a new instance of AuthFlowActionRequiredStateBase.
|
||||
* @param stateParameters The parameters for the auth state.
|
||||
*/
|
||||
constructor(stateParameters) {
|
||||
ensureArgumentIsNotEmptyString("correlationId", stateParameters.correlationId);
|
||||
super();
|
||||
this.stateParameters = stateParameters;
|
||||
}
|
||||
ensureCodeIsValid(code, codeLength) {
|
||||
if (codeLength !== DefaultCustomAuthApiCodeLength &&
|
||||
(!code || code.length !== codeLength)) {
|
||||
this.stateParameters.logger.error("0jr92e", this.stateParameters.correlationId);
|
||||
throw new InvalidArgumentError("code", this.stateParameters.correlationId);
|
||||
}
|
||||
}
|
||||
ensurePasswordIsNotEmpty(password) {
|
||||
if (!password) {
|
||||
this.stateParameters.logger.error("140ijv", this.stateParameters.correlationId);
|
||||
throw new InvalidArgumentError("password", this.stateParameters.correlationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthFlowActionRequiredStateBase, AuthFlowStateBase };
|
||||
//# sourceMappingURL=AuthFlowState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthFlowState.mjs","sources":["../../../../src/custom_auth/core/auth_flow/AuthFlowState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAeH;;AAEG;MACmB,iBAAiB,CAAA;AAKtC,CAAA;AAED;;AAEG;AACG,MAAgB,+BAEpB,SAAQ,iBAAiB,CAAA;AACvB;;;AAGG;AACH,IAAA,WAAA,CAA+B,eAA2B,EAAA;AACtD,QAAA,8BAA8B,CAC1B,eAAe,EACf,eAAe,CAAC,aAAa,CAChC,CAAC;AAEF,QAAA,KAAK,EAAE,CAAC;QANmB,IAAe,CAAA,eAAA,GAAf,eAAe,CAAY;KAOzD;IAES,iBAAiB,CAAC,IAAY,EAAE,UAAkB,EAAA;QACxD,IACI,UAAU,KAAK,8BAA8B;aAC5C,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,EACvC;AACE,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAC7B,QAAoE,EAAA,IAAA,CAAA,eAAA,CAAA,aAAA,CAAA,CAAA;YAIxE,MAAM,IAAI,oBAAoB,CAC1B,MAAM,EACN,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AACL,SAAA;KACJ;AAES,IAAA,wBAAwB,CAAC,QAAgB,EAAA;QAC/C,IAAI,CAAC,QAAQ,EAAE;AACX,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,CAC7B,QAA6D,EAAA,IAAA,CAAA,eAAA,CAAA,aAAA,CAAA,CAAA;YAIjE,MAAM,IAAI,oBAAoB,CAC1B,UAAU,EACV,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
|
||||
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs
generated
vendored
Normal file
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
// Sign in state types
|
||||
const SIGN_IN_CODE_REQUIRED_STATE_TYPE = "SignInCodeRequiredState";
|
||||
const SIGN_IN_PASSWORD_REQUIRED_STATE_TYPE = "SignInPasswordRequiredState";
|
||||
const SIGN_IN_CONTINUATION_STATE_TYPE = "SignInContinuationState";
|
||||
const SIGN_IN_COMPLETED_STATE_TYPE = "SignInCompletedState";
|
||||
const SIGN_IN_FAILED_STATE_TYPE = "SignInFailedState";
|
||||
// Sign up state types
|
||||
const SIGN_UP_CODE_REQUIRED_STATE_TYPE = "SignUpCodeRequiredState";
|
||||
const SIGN_UP_PASSWORD_REQUIRED_STATE_TYPE = "SignUpPasswordRequiredState";
|
||||
const SIGN_UP_ATTRIBUTES_REQUIRED_STATE_TYPE = "SignUpAttributesRequiredState";
|
||||
const SIGN_UP_COMPLETED_STATE_TYPE = "SignUpCompletedState";
|
||||
const SIGN_UP_FAILED_STATE_TYPE = "SignUpFailedState";
|
||||
// Reset password state types
|
||||
const RESET_PASSWORD_CODE_REQUIRED_STATE_TYPE = "ResetPasswordCodeRequiredState";
|
||||
const RESET_PASSWORD_PASSWORD_REQUIRED_STATE_TYPE = "ResetPasswordPasswordRequiredState";
|
||||
const RESET_PASSWORD_COMPLETED_STATE_TYPE = "ResetPasswordCompletedState";
|
||||
const RESET_PASSWORD_FAILED_STATE_TYPE = "ResetPasswordFailedState";
|
||||
// Get account state types
|
||||
const GET_ACCOUNT_COMPLETED_STATE_TYPE = "GetAccountCompletedState";
|
||||
const GET_ACCOUNT_FAILED_STATE_TYPE = "GetAccountFailedState";
|
||||
// Get access token state types
|
||||
const GET_ACCESS_TOKEN_COMPLETED_STATE_TYPE = "GetAccessTokenCompletedState";
|
||||
const GET_ACCESS_TOKEN_FAILED_STATE_TYPE = "GetAccessTokenFailedState";
|
||||
// Sign out state types
|
||||
const SIGN_OUT_COMPLETED_STATE_TYPE = "SignOutCompletedState";
|
||||
const SIGN_OUT_FAILED_STATE_TYPE = "SignOutFailedState";
|
||||
// MFA state types
|
||||
const MFA_AWAITING_STATE_TYPE = "MfaAwaitingState";
|
||||
const MFA_VERIFICATION_REQUIRED_STATE_TYPE = "MfaVerificationRequiredState";
|
||||
const MFA_COMPLETED_STATE_TYPE = "MfaCompletedState";
|
||||
const MFA_FAILED_STATE_TYPE = "MfaFailedState";
|
||||
// Auth method registration (JIT) state types
|
||||
const AUTH_METHOD_REGISTRATION_REQUIRED_STATE_TYPE = "AuthMethodRegistrationRequiredState";
|
||||
const AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE = "AuthMethodVerificationRequiredState";
|
||||
const AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE = "AuthMethodRegistrationCompletedState";
|
||||
const AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE = "AuthMethodRegistrationFailedState";
|
||||
|
||||
export { AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE, AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE, AUTH_METHOD_REGISTRATION_REQUIRED_STATE_TYPE, AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE, GET_ACCESS_TOKEN_COMPLETED_STATE_TYPE, GET_ACCESS_TOKEN_FAILED_STATE_TYPE, GET_ACCOUNT_COMPLETED_STATE_TYPE, GET_ACCOUNT_FAILED_STATE_TYPE, MFA_AWAITING_STATE_TYPE, MFA_COMPLETED_STATE_TYPE, MFA_FAILED_STATE_TYPE, MFA_VERIFICATION_REQUIRED_STATE_TYPE, RESET_PASSWORD_CODE_REQUIRED_STATE_TYPE, RESET_PASSWORD_COMPLETED_STATE_TYPE, RESET_PASSWORD_FAILED_STATE_TYPE, RESET_PASSWORD_PASSWORD_REQUIRED_STATE_TYPE, SIGN_IN_CODE_REQUIRED_STATE_TYPE, SIGN_IN_COMPLETED_STATE_TYPE, SIGN_IN_CONTINUATION_STATE_TYPE, SIGN_IN_FAILED_STATE_TYPE, SIGN_IN_PASSWORD_REQUIRED_STATE_TYPE, SIGN_OUT_COMPLETED_STATE_TYPE, SIGN_OUT_FAILED_STATE_TYPE, SIGN_UP_ATTRIBUTES_REQUIRED_STATE_TYPE, SIGN_UP_CODE_REQUIRED_STATE_TYPE, SIGN_UP_COMPLETED_STATE_TYPE, SIGN_UP_FAILED_STATE_TYPE, SIGN_UP_PASSWORD_REQUIRED_STATE_TYPE };
|
||||
//# sourceMappingURL=AuthFlowStateTypes.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthFlowStateTypes.mjs","sources":["../../../../src/custom_auth/core/auth_flow/AuthFlowStateTypes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;AACO,MAAM,gCAAgC,GAAG,0BAA0B;AACnE,MAAM,oCAAoC,GAC7C,8BAA8B;AAC3B,MAAM,+BAA+B,GAAG,0BAA0B;AAClE,MAAM,4BAA4B,GAAG,uBAAuB;AAC5D,MAAM,yBAAyB,GAAG,oBAAoB;AAE7D;AACO,MAAM,gCAAgC,GAAG,0BAA0B;AACnE,MAAM,oCAAoC,GAC7C,8BAA8B;AAC3B,MAAM,sCAAsC,GAC/C,gCAAgC;AAC7B,MAAM,4BAA4B,GAAG,uBAAuB;AAC5D,MAAM,yBAAyB,GAAG,oBAAoB;AAE7D;AACO,MAAM,uCAAuC,GAChD,iCAAiC;AAC9B,MAAM,2CAA2C,GACpD,qCAAqC;AAClC,MAAM,mCAAmC,GAC5C,8BAA8B;AAC3B,MAAM,gCAAgC,GAAG,2BAA2B;AAE3E;AACO,MAAM,gCAAgC,GAAG,2BAA2B;AACpE,MAAM,6BAA6B,GAAG,wBAAwB;AAErE;AACO,MAAM,qCAAqC,GAC9C,+BAA+B;AAC5B,MAAM,kCAAkC,GAAG,4BAA4B;AAE9E;AACO,MAAM,6BAA6B,GAAG,wBAAwB;AAC9D,MAAM,0BAA0B,GAAG,qBAAqB;AAE/D;AACO,MAAM,uBAAuB,GAAG,mBAAmB;AACnD,MAAM,oCAAoC,GAC7C,+BAA+B;AAC5B,MAAM,wBAAwB,GAAG,oBAAoB;AACrD,MAAM,qBAAqB,GAAG,iBAAiB;AAEtD;AACO,MAAM,4CAA4C,GACrD,sCAAsC;AACnC,MAAM,4CAA4C,GACrD,sCAAsC;AACnC,MAAM,6CAA6C,GACtD,uCAAuC;AACpC,MAAM,0CAA0C,GACnD;;;;"}
|
||||
42
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs
generated
vendored
Normal file
42
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthActionErrorBase } from '../../AuthFlowErrorBase.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Error that occurred during authentication method challenge request.
|
||||
*/
|
||||
class AuthMethodRegistrationChallengeMethodError extends AuthActionErrorBase {
|
||||
/**
|
||||
* Checks if the input for auth method registration is incorrect.
|
||||
* @returns true if the input is incorrect, false otherwise.
|
||||
*/
|
||||
isInvalidInput() {
|
||||
return this.isInvalidInputError();
|
||||
}
|
||||
/**
|
||||
* Checks if the error is due to the verification contact (e.g., phone number or email) being blocked. Consider using a different email/phone number or a different authentication method.
|
||||
* @returns true if the error is due to the verification contact being blocked, false otherwise.
|
||||
*/
|
||||
isVerificationContactBlocked() {
|
||||
return this.isVerificationContactBlockedError();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Error that occurred during authentication method challenge submission.
|
||||
*/
|
||||
class AuthMethodRegistrationSubmitChallengeError extends AuthActionErrorBase {
|
||||
/**
|
||||
* Checks if the submitted challenge code is incorrect.
|
||||
* @returns true if the challenge code is incorrect, false otherwise.
|
||||
*/
|
||||
isIncorrectChallenge() {
|
||||
return this.isInvalidCodeError();
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationChallengeMethodError, AuthMethodRegistrationSubmitChallengeError };
|
||||
//# sourceMappingURL=AuthMethodRegistrationError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationError.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;AAEG;AACG,MAAO,0CAA2C,SAAQ,mBAAmB,CAAA;AAC/E;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;KACrC;AAED;;;AAGG;IACH,4BAA4B,GAAA;AACxB,QAAA,OAAO,IAAI,CAAC,iCAAiC,EAAE,CAAC;KACnD;AACJ,CAAA;AAED;;AAEG;AACG,MAAO,0CAA2C,SAAQ,mBAAmB,CAAA;AAC/E;;;AAGG;IACH,oBAAoB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;KACpC;AACJ;;;;"}
|
||||
56
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs
generated
vendored
Normal file
56
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
||||
import { AuthMethodRegistrationChallengeMethodError } from '../error_type/AuthMethodRegistrationError.mjs';
|
||||
import { AuthMethodRegistrationFailedState } from '../state/AuthMethodRegistrationFailedState.mjs';
|
||||
import { AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE, AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE, AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Result of challenging an authentication method for registration.
|
||||
* Uses base state type to avoid circular dependencies.
|
||||
*/
|
||||
class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
|
||||
/**
|
||||
* Creates an AuthMethodRegistrationChallengeMethodResult with an error.
|
||||
* @param error The error that occurred.
|
||||
* @returns The AuthMethodRegistrationChallengeMethodResult with error.
|
||||
*/
|
||||
static createWithError(error) {
|
||||
const result = new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationFailedState());
|
||||
result.error = new AuthMethodRegistrationChallengeMethodError(AuthMethodRegistrationChallengeMethodResult.createErrorData(error));
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Checks if the result indicates that verification is required.
|
||||
* @returns true if verification is required, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isVerificationRequired() {
|
||||
return (this.state.stateType ===
|
||||
AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE);
|
||||
}
|
||||
/**
|
||||
* Checks if the result indicates that registration is completed (fast-pass scenario).
|
||||
* @returns true if registration is completed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isCompleted() {
|
||||
return (this.state.stateType ===
|
||||
AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE);
|
||||
}
|
||||
/**
|
||||
* Checks if the result is in a failed state.
|
||||
* @returns true if the result is failed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isFailed() {
|
||||
return (this.state.stateType === AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE);
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationChallengeMethodResult };
|
||||
//# sourceMappingURL=AuthMethodRegistrationChallengeMethodResult.mjs.map
|
||||
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationChallengeMethodResult.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAcH;;;AAGG;AACG,MAAO,2CAA4C,SAAQ,kBAIhE,CAAA;AACG;;;;AAIG;IACH,OAAO,eAAe,CAClB,KAAc,EAAA;QAEd,MAAM,MAAM,GAAG,IAAI,2CAA2C,CAC1D,IAAI,iCAAiC,EAAE,CAC1C,CAAC;AACF,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,0CAA0C,CACzD,2CAA2C,CAAC,eAAe,CAAC,KAAK,CAAC,CACrE,CAAC;AACF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;AAIG;IACH,sBAAsB,GAAA;AAGlB,QAAA,QACI,IAAI,CAAC,KAAK,CAAC,SAAS;AACpB,YAAA,4CAA4C,EAC9C;KACL;AAED;;;;AAIG;IACH,WAAW,GAAA;AAGP,QAAA,QACI,IAAI,CAAC,KAAK,CAAC,SAAS;AACpB,YAAA,6CAA6C,EAC/C;KACL;AAED;;;;AAIG;IACH,QAAQ,GAAA;QAGJ,QACI,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,0CAA0C,EACrE;KACL;AACJ;;;;"}
|
||||
46
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs
generated
vendored
Normal file
46
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
||||
import { AuthMethodRegistrationSubmitChallengeError } from '../error_type/AuthMethodRegistrationError.mjs';
|
||||
import { AuthMethodRegistrationFailedState } from '../state/AuthMethodRegistrationFailedState.mjs';
|
||||
import { AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE, AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Result of submitting a challenge for authentication method registration.
|
||||
*/
|
||||
class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase {
|
||||
/**
|
||||
* Creates an AuthMethodRegistrationSubmitChallengeResult with an error.
|
||||
* @param error The error that occurred.
|
||||
* @returns The AuthMethodRegistrationSubmitChallengeResult with error.
|
||||
*/
|
||||
static createWithError(error) {
|
||||
const result = new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationFailedState());
|
||||
result.error = new AuthMethodRegistrationSubmitChallengeError(AuthMethodRegistrationSubmitChallengeResult.createErrorData(error));
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Checks if the result indicates that registration is completed.
|
||||
* @returns true if registration is completed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isCompleted() {
|
||||
return (this.state.stateType ===
|
||||
AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE);
|
||||
}
|
||||
/**
|
||||
* Checks if the result is in a failed state.
|
||||
* @returns true if the result is failed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isFailed() {
|
||||
return (this.state.stateType === AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE);
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationSubmitChallengeResult };
|
||||
//# sourceMappingURL=AuthMethodRegistrationSubmitChallengeResult.mjs.map
|
||||
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationSubmitChallengeResult.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAYH;;AAEG;AACG,MAAO,2CAA4C,SAAQ,kBAIhE,CAAA;AACG;;;;AAIG;IACH,OAAO,eAAe,CAClB,KAAc,EAAA;QAEd,MAAM,MAAM,GAAG,IAAI,2CAA2C,CAC1D,IAAI,iCAAiC,EAAE,CAC1C,CAAC;AACF,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,0CAA0C,CACzD,2CAA2C,CAAC,eAAe,CAAC,KAAK,CAAC,CACrE,CAAC;AACF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;AAIG;IACH,WAAW,GAAA;AAGP,QAAA,QACI,IAAI,CAAC,KAAK,CAAC,SAAS;AACpB,YAAA,6CAA6C,EAC/C;KACL;AAED;;;;AAIG;IACH,QAAQ,GAAA;QAGJ,QACI,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,0CAA0C,EACrE;KACL;AACJ;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
||||
import { AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* State indicating that the auth method registration flow has completed successfully.
|
||||
*/
|
||||
class AuthMethodRegistrationCompletedState extends AuthFlowStateBase {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = AUTH_METHOD_REGISTRATION_COMPLETED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationCompletedState };
|
||||
//# sourceMappingURL=AuthMethodRegistrationCompletedState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationCompletedState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKH;;AAEG;AACG,MAAO,oCAAqC,SAAQ,iBAAiB,CAAA;AAA3E,IAAA,WAAA,GAAA;;AACI;;AAEG;QACH,IAAS,CAAA,SAAA,GAAG,6CAA6C,CAAC;KAC7D;AAAA;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
||||
import { AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* State indicating that the auth method registration flow has failed.
|
||||
*/
|
||||
class AuthMethodRegistrationFailedState extends AuthFlowStateBase {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = AUTH_METHOD_REGISTRATION_FAILED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationFailedState };
|
||||
//# sourceMappingURL=AuthMethodRegistrationFailedState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationFailedState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKH;;AAEG;AACG,MAAO,iCAAkC,SAAQ,iBAAiB,CAAA;AAAxE,IAAA,WAAA,GAAA;;AACI;;AAEG;QACH,IAAS,CAAA,SAAA,GAAG,0CAA0C,CAAC;KAC1D;AAAA;;;;"}
|
||||
181
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs
generated
vendored
Normal file
181
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs
generated
vendored
Normal file
@ -0,0 +1,181 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
||||
import { JIT_VERIFICATION_REQUIRED_RESULT_TYPE, JIT_COMPLETED_RESULT_TYPE } from '../../../interaction_client/jit/result/JitActionResult.mjs';
|
||||
import { UnexpectedError } from '../../../error/UnexpectedError.mjs';
|
||||
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
||||
import { GrantType } from '../../../../CustomAuthConstants.mjs';
|
||||
import { AuthMethodRegistrationChallengeMethodResult } from '../result/AuthMethodRegistrationChallengeMethodResult.mjs';
|
||||
import { AuthMethodRegistrationSubmitChallengeResult } from '../result/AuthMethodRegistrationSubmitChallengeResult.mjs';
|
||||
import { AuthMethodRegistrationCompletedState } from './AuthMethodRegistrationCompletedState.mjs';
|
||||
import { AUTH_METHOD_REGISTRATION_REQUIRED_STATE_TYPE, AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Abstract base class for authentication method registration states.
|
||||
*/
|
||||
class AuthMethodRegistrationState extends AuthFlowActionRequiredStateBase {
|
||||
/**
|
||||
* Internal method to challenge an authentication method.
|
||||
* @param authMethodDetails The authentication method details to challenge.
|
||||
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
||||
*/
|
||||
async challengeAuthMethodInternal(authMethodDetails) {
|
||||
try {
|
||||
this.stateParameters.logger.verbose("0vi650", this.stateParameters.correlationId);
|
||||
const challengeParams = {
|
||||
correlationId: this.stateParameters.correlationId,
|
||||
continuationToken: this.stateParameters.continuationToken ?? "",
|
||||
authMethod: authMethodDetails.authMethodType,
|
||||
verificationContact: authMethodDetails.verificationContact,
|
||||
scopes: this.stateParameters.scopes ?? [],
|
||||
username: this.stateParameters.username,
|
||||
claims: this.stateParameters.claims,
|
||||
};
|
||||
const result = await this.stateParameters.jitClient.challengeAuthMethod(challengeParams);
|
||||
this.stateParameters.logger.verbose("1ipjwn", this.stateParameters.correlationId);
|
||||
if (result.type === JIT_VERIFICATION_REQUIRED_RESULT_TYPE) {
|
||||
// Verification required
|
||||
this.stateParameters.logger.verbose("0puifv", this.stateParameters.correlationId);
|
||||
return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodVerificationRequiredState({
|
||||
correlationId: result.correlationId,
|
||||
continuationToken: result.continuationToken,
|
||||
config: this.stateParameters.config,
|
||||
logger: this.stateParameters.logger,
|
||||
jitClient: this.stateParameters.jitClient,
|
||||
cacheClient: this.stateParameters.cacheClient,
|
||||
challengeChannel: result.challengeChannel,
|
||||
challengeTargetLabel: result.challengeTargetLabel,
|
||||
codeLength: result.codeLength,
|
||||
scopes: this.stateParameters.scopes ?? [],
|
||||
username: this.stateParameters.username,
|
||||
claims: this.stateParameters.claims,
|
||||
}));
|
||||
}
|
||||
else if (result.type === JIT_COMPLETED_RESULT_TYPE) {
|
||||
// Registration completed (fast-pass scenario)
|
||||
this.stateParameters.logger.verbose("01b21i", this.stateParameters.correlationId);
|
||||
const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
||||
return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationCompletedState(), accountInfo);
|
||||
}
|
||||
else {
|
||||
// Handle unexpected result type with proper typing
|
||||
this.stateParameters.logger.error("16lk12", this.stateParameters.correlationId);
|
||||
throw new UnexpectedError("Unexpected result type from auth challenge method");
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
this.stateParameters.logger.errorPii("17im04", this.stateParameters.correlationId);
|
||||
return AuthMethodRegistrationChallengeMethodResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* State indicating that authentication method registration is required.
|
||||
*/
|
||||
class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = AUTH_METHOD_REGISTRATION_REQUIRED_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Gets the available authentication methods for registration.
|
||||
* @returns Array of available authentication methods.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getAuthMethods() {
|
||||
return this.stateParameters.authMethods;
|
||||
}
|
||||
/**
|
||||
* Challenges an authentication method for registration.
|
||||
* @param authMethodDetails The authentication method details to challenge.
|
||||
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
async challengeAuthMethod(authMethodDetails) {
|
||||
return this.challengeAuthMethodInternal(authMethodDetails);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* State indicating that verification is required for the challenged authentication method.
|
||||
*/
|
||||
class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = AUTH_METHOD_VERIFICATION_REQUIRED_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Gets the length of the expected verification code.
|
||||
* @returns The code length.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getCodeLength() {
|
||||
return this.stateParameters.codeLength;
|
||||
}
|
||||
/**
|
||||
* Gets the channel through which the challenge was sent.
|
||||
* @returns The challenge channel (e.g., "email").
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getChannel() {
|
||||
return this.stateParameters.challengeChannel;
|
||||
}
|
||||
/**
|
||||
* Gets the target label indicating where the challenge was sent.
|
||||
* @returns The challenge target label (e.g., masked email address).
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getSentTo() {
|
||||
return this.stateParameters.challengeTargetLabel;
|
||||
}
|
||||
/**
|
||||
* Submits the verification challenge to complete the authentication method registration.
|
||||
* @param code The verification code entered by the user.
|
||||
* @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
async submitChallenge(code) {
|
||||
try {
|
||||
this.ensureCodeIsValid(code, this.getCodeLength());
|
||||
this.stateParameters.logger.verbose("084cxu", this.stateParameters.correlationId);
|
||||
const submitParams = {
|
||||
correlationId: this.stateParameters.correlationId,
|
||||
continuationToken: this.stateParameters.continuationToken ?? "",
|
||||
scopes: this.stateParameters.scopes ?? [],
|
||||
grantType: GrantType.OOB,
|
||||
challenge: code,
|
||||
username: this.stateParameters.username,
|
||||
claims: this.stateParameters.claims,
|
||||
};
|
||||
const result = await this.stateParameters.jitClient.submitChallenge(submitParams);
|
||||
this.stateParameters.logger.verbose("0hi8xc", this.stateParameters.correlationId);
|
||||
const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
||||
return new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationCompletedState(), accountInfo);
|
||||
}
|
||||
catch (error) {
|
||||
this.stateParameters.logger.errorPii("0njepo", this.stateParameters.correlationId);
|
||||
return AuthMethodRegistrationSubmitChallengeResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Challenges a different authentication method for registration.
|
||||
* @param authMethodDetails The authentication method details to challenge.
|
||||
* @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
async challengeAuthMethod(authMethodDetails) {
|
||||
return this.challengeAuthMethodInternal(authMethodDetails);
|
||||
}
|
||||
}
|
||||
|
||||
export { AuthMethodRegistrationRequiredState, AuthMethodVerificationRequiredState };
|
||||
//# sourceMappingURL=AuthMethodRegistrationState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"AuthMethodRegistrationState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AA6BH;;AAEG;AACH,MAAe,2BAEb,SAAQ,+BAA4C,CAAA;AAClD;;;;AAIG;IACO,MAAM,2BAA2B,CACvC,iBAAoC,EAAA;QAEpC,IAAI;YACA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,4CAAyD,CAAA,CAAA;AAI7D,YAAA,MAAM,eAAe,GAAiC;AAClD,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;gBAC/D,UAAU,EAAE,iBAAiB,CAAC,cAAc;gB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CAAC,eAAe,CAAC,QAAQ;AACvC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;aACtC,CAAC;AAEF,YAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,eAAe,CAC/D,YAAY,CACf,CAAC;AAEF,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,QAA+C,EAAA,IAAA,CAAA,eAAA,CAAA,aAAA,CAAA,CAAA;AAInD,YAAA,MAAM,WAAW,GAAG,IAAI,qBAAqB,CACzC,MAAM,CAAC,oBAAoB,CAAC,OAAO,EACnC,IAAI,CAAC,eAAe,CAAC,MAAM,EAC3B,IAAI,CAAC,eAAe,CAAC,WAAW,EAChC,IAAI,CAAC,eAAe,CAAC,MAAM,EAC3B,IAAI,CAAC,eAAe,CAAC,aAAa,CACrC,CAAC;YAEF,OAAO,IAAI,2CAA2C,CAClD,IAAI,oCAAoC,EAAE,EAC1C,WAAW,CACd,CAAC;AACL,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACZ,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAChC,QAAA,EAAA,IAAA,CAAA,eAAA,CAAA,aAAA,CAAA,CAAA;AAGJ,YAAA,OAAO,2CAA2C,CAAC,eAAe,CAC9D,KAAK,CACR,CAAC;AACL,SAAA;KACJ;AAED;;;;;AAKG;IACH,MAAM,mBAAmB,CACrB,iBAAoC,EAAA;AAEpC,QAAA,OAAO,IAAI,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,CAAC;KAC9D;AACJ;;;;"}
|
||||
42
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs
generated
vendored
Normal file
42
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthActionErrorBase } from '../../AuthFlowErrorBase.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Error that occurred during MFA challenge request.
|
||||
*/
|
||||
class MfaRequestChallengeError extends AuthActionErrorBase {
|
||||
/**
|
||||
* Checks if the input for MFA challenge is incorrect.
|
||||
* @returns true if the input is incorrect, false otherwise.
|
||||
*/
|
||||
isInvalidInput() {
|
||||
return this.isInvalidInputError();
|
||||
}
|
||||
/**
|
||||
* Checks if the error is due to the verification contact (e.g., phone number or email) being blocked. Consider contacting customer support for assistance.
|
||||
* @returns true if the error is due to the verification contact being blocked, false otherwise.
|
||||
*/
|
||||
isVerificationContactBlocked() {
|
||||
return this.isVerificationContactBlockedError();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Error that occurred during MFA challenge submission.
|
||||
*/
|
||||
class MfaSubmitChallengeError extends AuthActionErrorBase {
|
||||
/**
|
||||
* Checks if the submitted challenge code (e.g., OTP code) is incorrect.
|
||||
* @returns true if the challenge code is invalid, false otherwise.
|
||||
*/
|
||||
isIncorrectChallenge() {
|
||||
return this.isInvalidCodeError();
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaRequestChallengeError, MfaSubmitChallengeError };
|
||||
//# sourceMappingURL=MfaError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaError.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;AAEG;AACG,MAAO,wBAAyB,SAAQ,mBAAmB,CAAA;AAC7D;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,mBAAmB,EAAE,CAAC;KACrC;AAED;;;AAGG;IACH,4BAA4B,GAAA;AACxB,QAAA,OAAO,IAAI,CAAC,iCAAiC,EAAE,CAAC;KACnD;AACJ,CAAA;AAED;;AAEG;AACG,MAAO,uBAAwB,SAAQ,mBAAmB,CAAA;AAC5D;;;AAGG;IACH,oBAAoB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;KACpC;AACJ;;;;"}
|
||||
46
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs
generated
vendored
Normal file
46
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
||||
import { MfaRequestChallengeError } from '../error_type/MfaError.mjs';
|
||||
import { MfaFailedState } from '../state/MfaFailedState.mjs';
|
||||
import { MFA_VERIFICATION_REQUIRED_STATE_TYPE, MFA_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Result of requesting an MFA challenge.
|
||||
* Uses base state type to avoid circular dependencies.
|
||||
*/
|
||||
class MfaRequestChallengeResult extends AuthFlowResultBase {
|
||||
/**
|
||||
* Creates an MfaRequestChallengeResult with an error.
|
||||
* @param error The error that occurred.
|
||||
* @returns The MfaRequestChallengeResult with error.
|
||||
*/
|
||||
static createWithError(error) {
|
||||
const result = new MfaRequestChallengeResult(new MfaFailedState());
|
||||
result.error = new MfaRequestChallengeError(MfaRequestChallengeResult.createErrorData(error));
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Checks if the result indicates that verification is required.
|
||||
* @returns true if verification is required, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isVerificationRequired() {
|
||||
return this.state.stateType === MFA_VERIFICATION_REQUIRED_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Checks if the result is in a failed state.
|
||||
* @returns true if the result is failed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isFailed() {
|
||||
return this.state.stateType === MFA_FAILED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaRequestChallengeResult };
|
||||
//# sourceMappingURL=MfaRequestChallengeResult.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaRequestChallengeResult.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAWH;;;AAGG;AACG,MAAO,yBAA0B,SAAQ,kBAG9C,CAAA;AACG;;;;AAIG;IACH,OAAO,eAAe,CAAC,KAAc,EAAA;QACjC,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,IAAI,cAAc,EAAE,CAAC,CAAC;AACnE,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,wBAAwB,CACvC,yBAAyB,CAAC,eAAe,CAAC,KAAK,CAAC,CACnD,CAAC;AACF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;AAIG;IACH,sBAAsB,GAAA;AAGlB,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,oCAAoC,CAAC;KACxE;AAED;;;;AAIG;IACH,QAAQ,GAAA;AAGJ,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,qBAAqB,CAAC;KACzD;AACJ;;;;"}
|
||||
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs
generated
vendored
Normal file
45
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowResultBase } from '../../AuthFlowResultBase.mjs';
|
||||
import { MfaSubmitChallengeError } from '../error_type/MfaError.mjs';
|
||||
import { MfaFailedState } from '../state/MfaFailedState.mjs';
|
||||
import { MFA_COMPLETED_STATE_TYPE, MFA_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Result of submitting an MFA challenge.
|
||||
*/
|
||||
class MfaSubmitChallengeResult extends AuthFlowResultBase {
|
||||
/**
|
||||
* Creates an MfaSubmitChallengeResult with an error.
|
||||
* @param error The error that occurred.
|
||||
* @returns The MfaSubmitChallengeResult with error.
|
||||
*/
|
||||
static createWithError(error) {
|
||||
const result = new MfaSubmitChallengeResult(new MfaFailedState());
|
||||
result.error = new MfaSubmitChallengeError(MfaSubmitChallengeResult.createErrorData(error));
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Checks if the MFA flow is completed successfully.
|
||||
* @returns true if completed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isCompleted() {
|
||||
return this.state.stateType === MFA_COMPLETED_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Checks if the result is in a failed state.
|
||||
* @returns true if the result is failed, false otherwise.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
isFailed() {
|
||||
return this.state.stateType === MFA_FAILED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaSubmitChallengeResult };
|
||||
//# sourceMappingURL=MfaSubmitChallengeResult.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaSubmitChallengeResult.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAYH;;AAEG;AACG,MAAO,wBAAyB,SAAQ,kBAI7C,CAAA;AACG;;;;AAIG;IACH,OAAO,eAAe,CAAC,KAAc,EAAA;QACjC,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,IAAI,cAAc,EAAE,CAAC,CAAC;AAClE,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI,uBAAuB,CACtC,wBAAwB,CAAC,eAAe,CAAC,KAAK,CAAC,CAClD,CAAC;AACF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;;AAIG;IACH,WAAW,GAAA;AAGP,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,wBAAwB,CAAC;KAC5D;AAED;;;;AAIG;IACH,QAAQ,GAAA;AAGJ,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,KAAK,qBAAqB,CAAC;KACzD;AACJ;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
||||
import { MFA_COMPLETED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* State indicating that the MFA flow has completed successfully.
|
||||
*/
|
||||
class MfaCompletedState extends AuthFlowStateBase {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = MFA_COMPLETED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaCompletedState };
|
||||
//# sourceMappingURL=MfaCompletedState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaCompletedState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKH;;AAEG;AACG,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AAAxD,IAAA,WAAA,GAAA;;AACI;;AAEG;QACH,IAAS,CAAA,SAAA,GAAG,wBAAwB,CAAC;KACxC;AAAA;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { AuthFlowStateBase } from '../../AuthFlowState.mjs';
|
||||
import { MFA_FAILED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* State indicating that the MFA flow has failed.
|
||||
*/
|
||||
class MfaFailedState extends AuthFlowStateBase {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = MFA_FAILED_STATE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaFailedState };
|
||||
//# sourceMappingURL=MfaFailedState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaFailedState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/state/MfaFailedState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAKH;;AAEG;AACG,MAAO,cAAe,SAAQ,iBAAiB,CAAA;AAArD,IAAA,WAAA,GAAA;;AACI;;AAEG;QACH,IAAS,CAAA,SAAA,GAAG,qBAAqB,CAAC;KACrC;AAAA;;;;"}
|
||||
140
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs
generated
vendored
Normal file
140
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs
generated
vendored
Normal file
@ -0,0 +1,140 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { MfaSubmitChallengeResult } from '../result/MfaSubmitChallengeResult.mjs';
|
||||
import { MfaRequestChallengeResult } from '../result/MfaRequestChallengeResult.mjs';
|
||||
import { CustomAuthAccountData } from '../../../../get_account/auth_flow/CustomAuthAccountData.mjs';
|
||||
import { MfaCompletedState } from './MfaCompletedState.mjs';
|
||||
import { ensureArgumentIsNotEmptyString } from '../../../utils/ArgumentValidator.mjs';
|
||||
import { AuthFlowActionRequiredStateBase } from '../../AuthFlowState.mjs';
|
||||
import { MFA_AWAITING_STATE_TYPE, MFA_VERIFICATION_REQUIRED_STATE_TYPE } from '../../AuthFlowStateTypes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class MfaState extends AuthFlowActionRequiredStateBase {
|
||||
/**
|
||||
* Requests an MFA challenge for a specific authentication method.
|
||||
* @param authMethodId The authentication method ID to use for the challenge.
|
||||
* @returns Promise that resolves to MfaRequestChallengeResult.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
async requestChallenge(authMethodId) {
|
||||
try {
|
||||
ensureArgumentIsNotEmptyString("authMethodId", authMethodId);
|
||||
this.stateParameters.logger.verbose("1cnvk7", this.stateParameters.correlationId);
|
||||
const requestParams = {
|
||||
correlationId: this.stateParameters.correlationId,
|
||||
continuationToken: this.stateParameters.continuationToken ?? "",
|
||||
challengeType: this.stateParameters.config.customAuth.challengeTypes ?? [],
|
||||
authMethodId: authMethodId,
|
||||
};
|
||||
const result = await this.stateParameters.mfaClient.requestChallenge(requestParams);
|
||||
this.stateParameters.logger.verbose("0rb7r9", this.stateParameters.correlationId);
|
||||
return new MfaRequestChallengeResult(new MfaVerificationRequiredState({
|
||||
correlationId: result.correlationId,
|
||||
continuationToken: result.continuationToken,
|
||||
config: this.stateParameters.config,
|
||||
logger: this.stateParameters.logger,
|
||||
mfaClient: this.stateParameters.mfaClient,
|
||||
cacheClient: this.stateParameters.cacheClient,
|
||||
challengeChannel: result.challengeChannel,
|
||||
challengeTargetLabel: result.challengeTargetLabel,
|
||||
codeLength: result.codeLength,
|
||||
selectedAuthMethodId: authMethodId,
|
||||
scopes: this.stateParameters.scopes ?? [],
|
||||
}));
|
||||
}
|
||||
catch (error) {
|
||||
this.stateParameters.logger.errorPii("0bt3wx", this.stateParameters.correlationId);
|
||||
return MfaRequestChallengeResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* State indicating that MFA is required and awaiting user action.
|
||||
* This state allows the developer to pause execution before sending the code to the user's email.
|
||||
*/
|
||||
class MfaAwaitingState extends MfaState {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = MFA_AWAITING_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Gets the available authentication methods for MFA.
|
||||
* @returns Array of available authentication methods.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getAuthMethods() {
|
||||
return this.stateParameters.authMethods;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* State indicating that MFA verification is required.
|
||||
* The challenge has been sent and the user needs to provide the code.
|
||||
*/
|
||||
class MfaVerificationRequiredState extends MfaState {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
/**
|
||||
* The type of the state.
|
||||
*/
|
||||
this.stateType = MFA_VERIFICATION_REQUIRED_STATE_TYPE;
|
||||
}
|
||||
/**
|
||||
* Gets the length of the code that the user needs to provide.
|
||||
* @returns The expected code length.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getCodeLength() {
|
||||
return this.stateParameters.codeLength;
|
||||
}
|
||||
/**
|
||||
* Gets the channel through which the challenge was sent.
|
||||
* @returns The challenge channel (e.g., "email").
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getChannel() {
|
||||
return this.stateParameters.challengeChannel;
|
||||
}
|
||||
/**
|
||||
* Gets the target label indicating where the challenge was sent.
|
||||
* @returns The challenge target label (e.g., masked email address).
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
getSentTo() {
|
||||
return this.stateParameters.challengeTargetLabel;
|
||||
}
|
||||
/**
|
||||
* Submits the MFA challenge (e.g., OTP code) to complete the authentication.
|
||||
* @param challenge The challenge code (e.g., OTP code) entered by the user.
|
||||
* @returns Promise that resolves to MfaSubmitChallengeResult.
|
||||
* @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
|
||||
*/
|
||||
async submitChallenge(challenge) {
|
||||
try {
|
||||
this.ensureCodeIsValid(challenge, this.getCodeLength());
|
||||
this.stateParameters.logger.verbose("1pi02n", this.stateParameters.correlationId);
|
||||
const submitParams = {
|
||||
correlationId: this.stateParameters.correlationId,
|
||||
continuationToken: this.stateParameters.continuationToken ?? "",
|
||||
scopes: this.stateParameters.scopes ?? [],
|
||||
challenge: challenge,
|
||||
};
|
||||
const result = await this.stateParameters.mfaClient.submitChallenge(submitParams);
|
||||
this.stateParameters.logger.verbose("0ddwwn", this.stateParameters.correlationId);
|
||||
const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
|
||||
return new MfaSubmitChallengeResult(new MfaCompletedState(), accountInfo);
|
||||
}
|
||||
catch (error) {
|
||||
this.stateParameters.logger.errorPii("01ok2b", this.stateParameters.correlationId);
|
||||
return MfaSubmitChallengeResult.createWithError(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaAwaitingState, MfaVerificationRequiredState };
|
||||
//# sourceMappingURL=MfaState.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaState.mjs","sources":["../../../../../../src/custom_auth/core/auth_flow/mfa/state/MfaState.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAuBH,MAAe,QAEb,SAAQ,+BAA4C,CAAA;AAClD;;;;;AAKG;IACH,MAAM,gBAAgB,CAClB,YAAoB,EAAA;QAEpB,IAAI;AACA,YAAA,8BAA8B,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;AAE7D,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,QAAA,EAAA,IAAA,CAAA,eAAA,CAAA,aAAA,CAAA,CAAA;AAIJ,YAAA,MAAM,aAAa,GAA8B;AAC7C,gBAAA,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa;AACjD,gBAAA,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,iBAAiB,IAAI,EAAE;gBAC/D,aAAa,EACT,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,IAAI,EAAE;AAC/D,gBAAA,YAAY,EAAE,YAAY;aAC7B,CAAC;AAEF,YAAA,MAAM,MAAM,GACR,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,gBAAgB,CACjD,aAAa,CAChB,CAAC;AAEN,YAAA,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAC/B,QAAuC,EAAA,IAAA,CAAA,eAAA,CAAA,cACnC,CAAC;AAGT,YAAA,OAAO,IAAI,yBAAyB,CAChC,IAAI,4BAA4B,CAAC;gBAC7B,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;AAC3C,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM;AACnC,gBAAA,SAAS,EAAE,IAAI,CAAC,eAAe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AAA,OAAO,wBAAwB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1D,SAAA;KACJ;AACJ;;;;"}
|
||||
35
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs
generated
vendored
Normal file
35
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Error when no required authentication method by Microsoft Entra is supported
|
||||
*/
|
||||
class RedirectError extends CustomAuthError {
|
||||
constructor(correlationId, redirectReason) {
|
||||
super("redirect", redirectReason ||
|
||||
"Redirect Error, a fallback to the browser-delegated authentication is needed. Use loginPopup instead.", correlationId);
|
||||
this.redirectReason = redirectReason;
|
||||
Object.setPrototypeOf(this, RedirectError.prototype);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Custom Auth API error.
|
||||
*/
|
||||
class CustomAuthApiError extends CustomAuthError {
|
||||
constructor(error, errorDescription, correlationId, errorCodes, subError, attributes, continuationToken, traceId, timestamp) {
|
||||
super(error, errorDescription, correlationId, errorCodes, subError);
|
||||
this.attributes = attributes;
|
||||
this.continuationToken = continuationToken;
|
||||
this.traceId = traceId;
|
||||
this.timestamp = timestamp;
|
||||
Object.setPrototypeOf(this, CustomAuthApiError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthApiError, RedirectError };
|
||||
//# sourceMappingURL=CustomAuthApiError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthApiError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthApiError.mjs","sources":["../../../../src/custom_auth/core/error/CustomAuthApiError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAKH;;AAEG;AACG,MAAO,aAAc,SAAQ,eAAe,CAAA;IAC9C,WAAY,CAAA,aAAsB,EAAS,cAAuB,EAAA;QAC9D,KAAK,CACD,UAAU,EACV,cAAc;YACV,uGAAuG,EAC3G,aAAa,CAChB,CAAC;QANqC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAS;QAO9D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;KACxD;AACJ,CAAA;AAED;;AAEG;AACG,MAAO,kBAAmB,SAAQ,eAAe,CAAA;AACnD,IAAA,WAAA,CACI,KAAa,EACb,gBAAwB,EACxB,aAAsB,EACtB,UAA0B,EAC1B,QAAiB,EACV,UAAiC,EACjC,iBAA0B,EAC1B,OAAgB,EAChB,SAAkB,EAAA;QAEzB,KAAK,CAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAL7D,IAAU,CAAA,UAAA,GAAV,UAAU,CAAuB;QACjC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAS;QAC1B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;QAChB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;QAGzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;KAC7D;AACJ;;;;"}
|
||||
22
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs
generated
vendored
Normal file
22
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class CustomAuthError extends Error {
|
||||
constructor(error, errorDescription, correlationId, errorCodes, subError) {
|
||||
super(`${error}: ${errorDescription ?? ""}`);
|
||||
this.error = error;
|
||||
this.errorDescription = errorDescription;
|
||||
this.correlationId = correlationId;
|
||||
this.errorCodes = errorCodes;
|
||||
this.subError = subError;
|
||||
Object.setPrototypeOf(this, CustomAuthError.prototype);
|
||||
this.errorCodes = errorCodes ?? [];
|
||||
this.subError = subError ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthError };
|
||||
//# sourceMappingURL=CustomAuthError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/CustomAuthError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthError.mjs","sources":["../../../../src/custom_auth/core/error/CustomAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEG,MAAO,eAAgB,SAAQ,KAAK,CAAA;IACtC,WACW,CAAA,KAAa,EACb,gBAAyB,EACzB,aAAsB,EACtB,UAA0B,EAC1B,QAAiB,EAAA;QAExB,KAAK,CAAC,GAAG,KAAK,CAAA,EAAA,EAAK,gBAAgB,IAAI,EAAE,CAAE,CAAA,CAAC,CAAC;QANtC,IAAK,CAAA,KAAA,GAAL,KAAK,CAAQ;QACb,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAS;QACzB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAS;QACtB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAgB;QAC1B,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAS;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;AAEvD,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,IAAI,EAAE,CAAC;AACnC,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,EAAE,CAAC;KAClC;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class HttpError extends CustomAuthError {
|
||||
constructor(error, message, correlationId) {
|
||||
super(error, message, correlationId);
|
||||
Object.setPrototypeOf(this, HttpError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { HttpError };
|
||||
//# sourceMappingURL=HttpError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"HttpError.mjs","sources":["../../../../src/custom_auth/core/error/HttpError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,SAAU,SAAQ,eAAe,CAAA;AAC1C,IAAA,WAAA,CAAY,KAAa,EAAE,OAAe,EAAE,aAAsB,EAAA;AAC9D,QAAA,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QACrC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACpD;AACJ;;;;"}
|
||||
11
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs
generated
vendored
Normal file
11
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const NoNetworkConnectivity = "no_network_connectivity";
|
||||
const FailedSendRequest = "failed_send_request";
|
||||
|
||||
export { FailedSendRequest, NoNetworkConnectivity };
|
||||
//# sourceMappingURL=HttpErrorCodes.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/HttpErrorCodes.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"HttpErrorCodes.mjs","sources":["../../../../src/custom_auth/core/error/HttpErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,qBAAqB,GAAG,0BAA0B;AACxD,MAAM,iBAAiB,GAAG;;;;"}
|
||||
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs
generated
vendored
Normal file
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class InvalidArgumentError extends CustomAuthError {
|
||||
constructor(argName, correlationId) {
|
||||
const errorDescription = `The argument '${argName}' is invalid.`;
|
||||
super("invalid_argument", errorDescription, correlationId);
|
||||
Object.setPrototypeOf(this, InvalidArgumentError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { InvalidArgumentError };
|
||||
//# sourceMappingURL=InvalidArgumentError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidArgumentError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"InvalidArgumentError.mjs","sources":["../../../../src/custom_auth/core/error/InvalidArgumentError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,oBAAqB,SAAQ,eAAe,CAAA;IACrD,WAAY,CAAA,OAAe,EAAE,aAAsB,EAAA;AAC/C,QAAA,MAAM,gBAAgB,GAAG,CAAiB,cAAA,EAAA,OAAO,eAAe,CAAC;AAEjE,QAAA,KAAK,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC3D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;KAC/D;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class InvalidConfigurationError extends CustomAuthError {
|
||||
constructor(error, message, correlationId) {
|
||||
super(error, message, correlationId);
|
||||
Object.setPrototypeOf(this, InvalidConfigurationError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { InvalidConfigurationError };
|
||||
//# sourceMappingURL=InvalidConfigurationError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"InvalidConfigurationError.mjs","sources":["../../../../src/custom_auth/core/error/InvalidConfigurationError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAC1D,IAAA,WAAA,CAAY,KAAa,EAAE,OAAe,EAAE,aAAsB,EAAA;AAC9D,QAAA,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QACrC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;KACpE;AACJ;;;;"}
|
||||
12
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs
generated
vendored
Normal file
12
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const MissingConfiguration = "missing_configuration";
|
||||
const InvalidAuthority = "invalid_authority";
|
||||
const InvalidChallengeType = "invalid_challenge_type";
|
||||
|
||||
export { InvalidAuthority, InvalidChallengeType, MissingConfiguration };
|
||||
//# sourceMappingURL=InvalidConfigurationErrorCodes.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"InvalidConfigurationErrorCodes.mjs","sources":["../../../../src/custom_auth/core/error/InvalidConfigurationErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,oBAAoB,GAAG,wBAAwB;AACrD,MAAM,gBAAgB,GAAG,oBAAoB;AAC7C,MAAM,oBAAoB,GAAG;;;;"}
|
||||
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs
generated
vendored
Normal file
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class MethodNotImplementedError extends CustomAuthError {
|
||||
constructor(method, correlationId) {
|
||||
const errorDescription = `The method '${method}' is not implemented, please do not use.`;
|
||||
super("method_not_implemented", errorDescription, correlationId);
|
||||
Object.setPrototypeOf(this, MethodNotImplementedError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { MethodNotImplementedError };
|
||||
//# sourceMappingURL=MethodNotImplementedError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MethodNotImplementedError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MethodNotImplementedError.mjs","sources":["../../../../src/custom_auth/core/error/MethodNotImplementedError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,yBAA0B,SAAQ,eAAe,CAAA;IAC1D,WAAY,CAAA,MAAc,EAAE,aAAsB,EAAA;AAC9C,QAAA,MAAM,gBAAgB,GAAG,CAAe,YAAA,EAAA,MAAM,0CAA0C,CAAC;AAEzF,QAAA,KAAK,CAAC,wBAAwB,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QACjE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;KACpE;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class MsalCustomAuthError extends CustomAuthError {
|
||||
constructor(error, errorDescription, subError, errorCodes, correlationId) {
|
||||
super(error, errorDescription, correlationId, errorCodes, subError);
|
||||
Object.setPrototypeOf(this, MsalCustomAuthError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { MsalCustomAuthError };
|
||||
//# sourceMappingURL=MsalCustomAuthError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/MsalCustomAuthError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MsalCustomAuthError.mjs","sources":["../../../../src/custom_auth/core/error/MsalCustomAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,mBAAoB,SAAQ,eAAe,CAAA;IACpD,WACI,CAAA,KAAa,EACb,gBAAyB,EACzB,QAAiB,EACjB,UAA0B,EAC1B,aAAsB,EAAA;QAEtB,KAAK,CAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QACpE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;KAC9D;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class NoCachedAccountFoundError extends CustomAuthError {
|
||||
constructor(correlationId) {
|
||||
super("no_cached_account_found", "No account found in the cache", correlationId);
|
||||
Object.setPrototypeOf(this, NoCachedAccountFoundError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { NoCachedAccountFoundError };
|
||||
//# sourceMappingURL=NoCachedAccountFoundError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"NoCachedAccountFoundError.mjs","sources":["../../../../src/custom_auth/core/error/NoCachedAccountFoundError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAC1D,IAAA,WAAA,CAAY,aAAsB,EAAA;AAC9B,QAAA,KAAK,CACD,yBAAyB,EACzB,+BAA+B,EAC/B,aAAa,CAChB,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;KACpE;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class ParsedUrlError extends CustomAuthError {
|
||||
constructor(error, message, correlationId) {
|
||||
super(error, message, correlationId);
|
||||
Object.setPrototypeOf(this, ParsedUrlError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { ParsedUrlError };
|
||||
//# sourceMappingURL=ParsedUrlError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ParsedUrlError.mjs","sources":["../../../../src/custom_auth/core/error/ParsedUrlError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,cAAe,SAAQ,eAAe,CAAA;AAC/C,IAAA,WAAA,CAAY,KAAa,EAAE,OAAe,EAAE,aAAsB,EAAA;AAC9D,QAAA,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;QACrC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;KACzD;AACJ;;;;"}
|
||||
10
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs
generated
vendored
Normal file
10
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const InvalidUrl = "invalid_url";
|
||||
|
||||
export { InvalidUrl };
|
||||
//# sourceMappingURL=ParsedUrlErrorCodes.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ParsedUrlErrorCodes.mjs","sources":["../../../../src/custom_auth/core/error/ParsedUrlErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,UAAU,GAAG;;;;"}
|
||||
30
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs
generated
vendored
Normal file
30
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class UnexpectedError extends CustomAuthError {
|
||||
constructor(errorData, correlationId) {
|
||||
let errorDescription;
|
||||
if (errorData instanceof Error) {
|
||||
errorDescription = errorData.message;
|
||||
}
|
||||
else if (typeof errorData === "string") {
|
||||
errorDescription = errorData;
|
||||
}
|
||||
else if (typeof errorData === "object" && errorData !== null) {
|
||||
errorDescription = JSON.stringify(errorData);
|
||||
}
|
||||
else {
|
||||
errorDescription = "An unexpected error occurred.";
|
||||
}
|
||||
super("unexpected_error", errorDescription, correlationId);
|
||||
Object.setPrototypeOf(this, UnexpectedError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { UnexpectedError };
|
||||
//# sourceMappingURL=UnexpectedError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnexpectedError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"UnexpectedError.mjs","sources":["../../../../src/custom_auth/core/error/UnexpectedError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,eAAgB,SAAQ,eAAe,CAAA;IAChD,WAAY,CAAA,SAAkB,EAAE,aAAsB,EAAA;AAClD,QAAA,IAAI,gBAAwB,CAAC;QAE7B,IAAI,SAAS,YAAY,KAAK,EAAE;AAC5B,YAAA,gBAAgB,GAAG,SAAS,CAAC,OAAO,CAAC;AACxC,SAAA;AAAM,aAAA,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;YACtC,gBAAgB,GAAG,SAAS,CAAC;AAChC,SAAA;aAAM,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,EAAE;AAC5D,YAAA,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,SAAA;AAAM,aAAA;YACH,gBAAgB,GAAG,+BAA+B,CAAC;AACtD,SAAA;AAED,QAAA,KAAK,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAC3D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;KAC1D;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class UnsupportedEnvironmentError extends CustomAuthError {
|
||||
constructor(correlationId) {
|
||||
super("unsupported_env", "The current environment is not browser", correlationId);
|
||||
Object.setPrototypeOf(this, UnsupportedEnvironmentError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { UnsupportedEnvironmentError };
|
||||
//# sourceMappingURL=UnsupportedEnvironmentError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"UnsupportedEnvironmentError.mjs","sources":["../../../../src/custom_auth/core/error/UnsupportedEnvironmentError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,2BAA4B,SAAQ,eAAe,CAAA;AAC5D,IAAA,WAAA,CAAY,aAAsB,EAAA;AAC9B,QAAA,KAAK,CACD,iBAAiB,EACjB,wCAAwC,EACxC,aAAa,CAChB,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;KACtE;AACJ;;;;"}
|
||||
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs
generated
vendored
Normal file
18
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class UserAccountAttributeError extends CustomAuthError {
|
||||
constructor(error, attributeName, attributeValue) {
|
||||
const errorDescription = `Failed to set attribute '${attributeName}' with value '${attributeValue}'`;
|
||||
super(error, errorDescription);
|
||||
Object.setPrototypeOf(this, UserAccountAttributeError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { UserAccountAttributeError };
|
||||
//# sourceMappingURL=UserAccountAttributeError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAccountAttributeError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"UserAccountAttributeError.mjs","sources":["../../../../src/custom_auth/core/error/UserAccountAttributeError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,yBAA0B,SAAQ,eAAe,CAAA;AAC1D,IAAA,WAAA,CAAY,KAAa,EAAE,aAAqB,EAAE,cAAsB,EAAA;AACpE,QAAA,MAAM,gBAAgB,GAAG,CAAA,yBAAA,EAA4B,aAAa,CAAiB,cAAA,EAAA,cAAc,GAAG,CAAC;AAErG,QAAA,KAAK,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QAC/B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;KACpE;AACJ;;;;"}
|
||||
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs
generated
vendored
Normal file
17
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthError } from './CustomAuthError.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class UserAlreadySignedInError extends CustomAuthError {
|
||||
constructor(correlationId) {
|
||||
super("user_already_signed_in", "The user has already signed in.", correlationId);
|
||||
Object.setPrototypeOf(this, UserAlreadySignedInError.prototype);
|
||||
}
|
||||
}
|
||||
|
||||
export { UserAlreadySignedInError };
|
||||
//# sourceMappingURL=UserAlreadySignedInError.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/error/UserAlreadySignedInError.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"UserAlreadySignedInError.mjs","sources":["../../../../src/custom_auth/core/error/UserAlreadySignedInError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,wBAAyB,SAAQ,eAAe,CAAA;AACzD,IAAA,WAAA,CAAY,aAAsB,EAAA;AAC9B,QAAA,KAAK,CACD,wBAAwB,EACxB,iCAAiC,EACjC,aAAa,CAChB,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;KACnE;AACJ;;;;"}
|
||||
69
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs
generated
vendored
Normal file
69
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { MethodNotImplementedError } from '../error/MethodNotImplementedError.mjs';
|
||||
import { ChallengeType } from '../../CustomAuthConstants.mjs';
|
||||
import { StandardInteractionClient } from '../../../interaction_client/StandardInteractionClient.mjs';
|
||||
import { ResponseHandler, Constants } from '@azure/msal-common/browser';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class CustomAuthInteractionClientBase extends StandardInteractionClient {
|
||||
constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority) {
|
||||
super(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, "");
|
||||
this.customAuthApiClient = customAuthApiClient;
|
||||
this.customAuthAuthority = customAuthAuthority;
|
||||
this.tokenResponseHandler = new ResponseHandler(this.config.auth.clientId, this.browserStorage, this.browserCrypto, this.logger, this.performanceClient, null, null);
|
||||
}
|
||||
getChallengeTypes(configuredChallengeTypes) {
|
||||
const challengeType = configuredChallengeTypes ?? [];
|
||||
if (!challengeType.some((type) => type.toLowerCase() === ChallengeType.REDIRECT)) {
|
||||
challengeType.push(ChallengeType.REDIRECT);
|
||||
}
|
||||
return challengeType.join(" ");
|
||||
}
|
||||
getScopes(scopes) {
|
||||
if (!!scopes && scopes.length > 0) {
|
||||
return scopes;
|
||||
}
|
||||
return [
|
||||
Constants.OPENID_SCOPE,
|
||||
Constants.PROFILE_SCOPE,
|
||||
Constants.OFFLINE_ACCESS_SCOPE,
|
||||
];
|
||||
}
|
||||
/**
|
||||
* Common method to handle token response processing.
|
||||
* @param tokenResponse The token response from the API
|
||||
* @param requestScopes Scopes for the token request
|
||||
* @param correlationId Correlation ID for logging
|
||||
* @returns Authentication result from the token response
|
||||
*/
|
||||
async handleTokenResponse(tokenResponse, requestScopes, correlationId, apiId) {
|
||||
this.logger.verbose("04a00a", correlationId);
|
||||
const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
|
||||
// Save tokens and create authentication result
|
||||
const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
|
||||
authority: this.customAuthAuthority.canonicalAuthority,
|
||||
correlationId: tokenResponse.correlation_id ?? correlationId,
|
||||
scopes: requestScopes,
|
||||
}, apiId);
|
||||
return result;
|
||||
}
|
||||
// It is not necessary to implement this method from base class.
|
||||
acquireToken(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
request) {
|
||||
throw new MethodNotImplementedError("SignInClient.acquireToken");
|
||||
}
|
||||
// It is not necessary to implement this method from base class.
|
||||
logout(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
request) {
|
||||
throw new MethodNotImplementedError("SignInClient.logout");
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthInteractionClientBase };
|
||||
//# sourceMappingURL=CustomAuthInteractionClientBase.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthInteractionClientBase.mjs","sources":["../../../../src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AA0BG,MAAgB,+BAAgC,SAAQ,yBAAyB,CAAA;AAGnF,IAAA,WAAA,CACI,MAA4B,EAC5B,WAAgC,EAChC,aAAsB,EACtB,MAAc,EACd,YAA0B,EAC1B,gBAAmC,EACnC,iBAAqC,EAC3B,mBAAyC,EACzC,mBAAwC,EAAA;AAElD,QAAA,KAAK,CACD,MAAM,EACN,WAAW,EACX,aAAa,EACb,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,EAAE,CACL,CAAC;QAZQ,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAsB;QACzC,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;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yB,CACrD,aAAa,EACb,IAAI,CAAC,mBAAmB,EACxB,gBAAgB,EAChB;AACI,YAAA,SAAS,EAAE,IAAI,CAAC,mBAAmB,CAAC,kBAAkB;AACtD,YAAA,aAAa,EACT,aAAa,CAAC,cAAc,IAAI,aAAa;AACjD,YAAA,MAAM,EAAE,aAAa;SACxB,EACD,KAAK,CACR,CAAC;AAEN,QAAA,OAAO,MAA8B,CAAC;KACzC;;IAGD,YAAY;;IAER,OAA0D,EAAA;AAE1D,QAAA,MAAM,IAAI,yBAAyB,CAAC,2BAA2B,CAAC,CAAC;KACpE;;IAGD,MAAM;;IAEF,OAA0D,EAAA;AAE1D,QAAA,MAAM,IAAI,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;KAC9D;AACJ;;;;"}
|
||||
25
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs
generated
vendored
Normal file
25
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class CustomAuthInterationClientFactory {
|
||||
constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority) {
|
||||
this.config = config;
|
||||
this.storageImpl = storageImpl;
|
||||
this.browserCrypto = browserCrypto;
|
||||
this.logger = logger;
|
||||
this.eventHandler = eventHandler;
|
||||
this.navigationClient = navigationClient;
|
||||
this.performanceClient = performanceClient;
|
||||
this.customAuthApiClient = customAuthApiClient;
|
||||
this.customAuthAuthority = customAuthAuthority;
|
||||
}
|
||||
create(clientConstructor) {
|
||||
return new clientConstructor(this.config, this.storageImpl, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.performanceClient, this.customAuthApiClient, this.customAuthAuthority);
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthInterationClientFactory };
|
||||
//# sourceMappingURL=CustomAuthInterationClientFactory.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthInterationClientFactory.mjs","sources":["../../../../src/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;MAeU,iCAAiC,CAAA;AAC1C,IAAA,WAAA,CACY,MAA4B,EAC5B,WAAgC,EAChC,aAAsB,EACtB,MAAc,EACd,YAA0B,EAC1B,gBAAmC,EACnC,iBAAqC,EACrC,mBAAyC,EACzC,mBAAwC,EAAA;QARxC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAsB;QAC5B,IAAW,CAAA,WAAA,GAAX,WAAW,CAAqB;QAChC,IAAa,CAAA,aAAA,GAAb,aAAa,CAAS;QACtB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAc;QAC1B,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAmB;QACnC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAoB;QACrC,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAsB;QACzC,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;KAChD;AAEJ,IAAA,MAAM,CACF,iBAUY,EAAA;AAEZ,QAAA,OAAO,IAAI,iBAAiB,CACxB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,mBAAmB,CAC3B,CAAC;KACL;AACJ;;;;"}
|
||||
110
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs
generated
vendored
Normal file
110
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs
generated
vendored
Normal file
@ -0,0 +1,110 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthInteractionClientBase } from '../CustomAuthInteractionClientBase.mjs';
|
||||
import { createJitVerificationRequiredResult, createJitCompletedResult } from './result/JitActionResult.mjs';
|
||||
import { ChallengeType, GrantType, DefaultCustomAuthApiCodeLength } from '../../../CustomAuthConstants.mjs';
|
||||
import { JIT_SUBMIT_CHALLENGE, JIT_CHALLENGE_AUTH_METHOD } from '../../telemetry/PublicApiId.mjs';
|
||||
import { initializeServerTelemetryManager } from '../../../../interaction_client/BaseInteractionClient.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* JIT client for handling just-in-time authentication method registration flows.
|
||||
*/
|
||||
class JitClient extends CustomAuthInteractionClientBase {
|
||||
/**
|
||||
* Challenges an authentication method for JIT registration.
|
||||
* @param parameters The parameters for challenging the auth method.
|
||||
* @returns Promise that resolves to either JitVerificationRequiredResult or JitCompletedResult.
|
||||
*/
|
||||
async challengeAuthMethod(parameters) {
|
||||
const correlationId = parameters.correlationId || this.correlationId;
|
||||
const apiId = JIT_CHALLENGE_AUTH_METHOD;
|
||||
const telemetryManager = initializeServerTelemetryManager(apiId, this.config.auth.clientId, correlationId, this.browserStorage, this.logger);
|
||||
this.logger.verbose("1kxcgm", correlationId);
|
||||
const challengeReq = {
|
||||
continuation_token: parameters.continuationToken,
|
||||
challenge_type: parameters.authMethod.challenge_type,
|
||||
challenge_target: parameters.verificationContact,
|
||||
challenge_channel: parameters.authMethod.challenge_channel,
|
||||
correlationId: correlationId,
|
||||
telemetryManager: telemetryManager,
|
||||
};
|
||||
const challengeResponse = await this.customAuthApiClient.registerApi.challenge(challengeReq);
|
||||
this.logger.verbose("07vc8z", challengeResponse.correlation_id || correlationId);
|
||||
/*
|
||||
* Handle fast-pass scenario (preverified)
|
||||
* This occurs when the user selects the same email used during sign-up
|
||||
* Since the email was already verified during sign-up, no additional verification is needed
|
||||
*/
|
||||
if (challengeResponse.challenge_type === ChallengeType.PREVERIFIED) {
|
||||
this.logger.verbose("0tmt75", challengeResponse.correlation_id || correlationId);
|
||||
// Use submitChallenge for fast-pass scenario with continuation_token grant type
|
||||
const fastPassParams = {
|
||||
correlationId: challengeResponse.correlation_id || correlationId,
|
||||
continuationToken: challengeResponse.continuation_token,
|
||||
grantType: GrantType.CONTINUATION_TOKEN,
|
||||
scopes: parameters.scopes,
|
||||
username: parameters.username,
|
||||
claims: parameters.claims,
|
||||
};
|
||||
const completedResult = await this.submitChallenge(fastPassParams);
|
||||
return completedResult;
|
||||
}
|
||||
// Verification required
|
||||
return createJitVerificationRequiredResult({
|
||||
correlationId: challengeResponse.correlation_id || correlationId,
|
||||
continuationToken: challengeResponse.continuation_token,
|
||||
challengeChannel: challengeResponse.challenge_channel,
|
||||
challengeTargetLabel: challengeResponse.challenge_target,
|
||||
codeLength: challengeResponse.code_length || DefaultCustomAuthApiCodeLength,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Submits challenge response and completes JIT registration.
|
||||
* @param parameters The parameters for submitting the challenge.
|
||||
* @returns Promise that resolves to JitCompletedResult.
|
||||
*/
|
||||
async submitChallenge(parameters) {
|
||||
const correlationId = parameters.correlationId || this.correlationId;
|
||||
const apiId = JIT_SUBMIT_CHALLENGE;
|
||||
const telemetryManager = initializeServerTelemetryManager(apiId, this.config.auth.clientId, correlationId, this.browserStorage, this.logger);
|
||||
this.logger.verbose("1l3zg1", correlationId);
|
||||
// Submit challenge to complete registration
|
||||
const continueReq = {
|
||||
continuation_token: parameters.continuationToken,
|
||||
grant_type: parameters.grantType,
|
||||
...(parameters.challenge && {
|
||||
oob: parameters.challenge,
|
||||
}),
|
||||
correlationId: correlationId,
|
||||
telemetryManager: telemetryManager,
|
||||
};
|
||||
const continueResponse = await this.customAuthApiClient.registerApi.continue(continueReq);
|
||||
this.logger.verbose("10bc4x", parameters.correlationId);
|
||||
// Use continuation token to get authentication tokens
|
||||
const scopes = this.getScopes(parameters.scopes);
|
||||
const tokenRequest = {
|
||||
continuation_token: continueResponse.continuation_token,
|
||||
scope: scopes.join(" "),
|
||||
correlationId: continueResponse.correlation_id || correlationId,
|
||||
telemetryManager: telemetryManager,
|
||||
...(parameters.claims && {
|
||||
claims: parameters.claims,
|
||||
}),
|
||||
};
|
||||
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
|
||||
const authResult = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id ||
|
||||
continueResponse.correlation_id ||
|
||||
correlationId, apiId);
|
||||
return createJitCompletedResult({
|
||||
correlationId: continueResponse.correlation_id || correlationId,
|
||||
authenticationResult: authResult,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export { JitClient };
|
||||
//# sourceMappingURL=JitClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/JitClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"JitClient.mjs","sources":["../../../../../src/custom_auth/core/interaction_client/jit/JitClient.ts"],"sourcesContent":[null],"names":["PublicApiId.JIT_CHALLENGE_AUTH_METHOD","PublicApiId.JIT_SUBMIT_CHALLENGE"],"mappings":";;;;;;;;AAAA;;;AAGG;AA0BH;;AAEG;AACG,MAAO,SA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aAC5B,CAAC;AACF,YAAA,aAAa,EAAE,aAAa;AAC5B,YAAA,gBAAgB,EAAE,gBAAgB;SACrC,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAClB,MAAM,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAErE,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,QAAgE,EAAA,UAAA,CAAA,aAAA,CAAA,CAAA;;QAKpE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACjD,QAAA,MAAM,YAAY,GAAmC;YACjD,kBAAkB,EAAE,gBAAgB,CAAC,kBAAkB;AACvD,YAAA,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvB,YAAA,aAAa,EAAE,gBAAgB,CAAC,cAAc,IAAI,aAAa;AAC/D,YAAA,gBAAgB,EAAE,gBAAgB;AAClC,YAAA,IAAI,UAAU,CAAC,MAAM,IAAI;gBACrB,MAAM,EAAE,UAAU,CAAC,MAAM;aAC5B,CAAC;SACL,CAAC;AAEF,QAAA,MAAM,aAAa,GACf,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,iCAAiC,CACtE,YAAY,CACf,CAAC;AAEN,QAAA,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAC7C,aAAa,EACb,MAAM,EACN,aAAa,CAAC,cAAc;AACxB,YAAA,gBAAgB,CAAC,cAAc;YAC/B,aAAa,EACjB,KAAK,CACR,CAAC;AAEF,QAAA,OAAO,wBAAwB,CAAC;AAC5B,YAAA,aAAa,EAAE,gBAAgB,CAAC,cAAc,IAAI,aAAa;AAC/D,YAAA,oBAAoB,EAAE,UAAU;AACnC,SAAA,CAAC,CAAC;KACN;AACJ;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
// Result type constants
|
||||
const JIT_VERIFICATION_REQUIRED_RESULT_TYPE = "JitVerificationRequiredResult";
|
||||
const JIT_COMPLETED_RESULT_TYPE = "JitCompletedResult";
|
||||
function createJitVerificationRequiredResult(input) {
|
||||
return {
|
||||
type: JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
|
||||
...input,
|
||||
};
|
||||
}
|
||||
function createJitCompletedResult(input) {
|
||||
return {
|
||||
type: JIT_COMPLETED_RESULT_TYPE,
|
||||
...input,
|
||||
};
|
||||
}
|
||||
|
||||
export { JIT_COMPLETED_RESULT_TYPE, JIT_VERIFICATION_REQUIRED_RESULT_TYPE, createJitCompletedResult, createJitVerificationRequiredResult };
|
||||
//# sourceMappingURL=JitActionResult.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"JitActionResult.mjs","sources":["../../../../../../src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAsBH;AACO,MAAM,qCAAqC,GAC9C,gCAAgC;AAC7B,MAAM,yBAAyB,GAAG,qBAAqB;AAExD,SAAU,mCAAmC,CAC/C,KAAkD,EAAA;IAElD,OAAO;AACH,QAAA,IAAI,EAAE,qCAAqC;AAC3C,QAAA,GAAG,KAAK;KACX,CAAC;AACN,CAAC;AAEK,SAAU,wBAAwB,CACpC,KAAuC,EAAA;IAEvC,OAAO;AACH,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,GAAG,KAAK;KACX,CAAC;AACN;;;;"}
|
||||
88
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs
generated
vendored
Normal file
88
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs
generated
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { CustomAuthInteractionClientBase } from '../CustomAuthInteractionClientBase.mjs';
|
||||
import { createMfaVerificationRequiredResult, createMfaCompletedResult } from './result/MfaActionResult.mjs';
|
||||
import { ChallengeType, GrantType, DefaultCustomAuthApiCodeLength } from '../../../CustomAuthConstants.mjs';
|
||||
import { MFA_SUBMIT_CHALLENGE, MFA_REQUEST_CHALLENGE } from '../../telemetry/PublicApiId.mjs';
|
||||
import { ensureArgumentIsNotEmptyString } from '../../utils/ArgumentValidator.mjs';
|
||||
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
||||
import { UNSUPPORTED_CHALLENGE_TYPE } from '../../network_client/custom_auth_api/types/ApiErrorCodes.mjs';
|
||||
import { initializeServerTelemetryManager } from '../../../../interaction_client/BaseInteractionClient.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* MFA client for handling multi-factor authentication flows.
|
||||
*/
|
||||
class MfaClient extends CustomAuthInteractionClientBase {
|
||||
/**
|
||||
* Requests an MFA challenge to be sent to the user.
|
||||
* @param parameters The parameters for requesting the challenge.
|
||||
* @returns Promise that resolves to either MfaVerificationRequiredResult.
|
||||
*/
|
||||
async requestChallenge(parameters) {
|
||||
const apiId = MFA_REQUEST_CHALLENGE;
|
||||
const correlationId = parameters.correlationId || this.correlationId;
|
||||
const telemetryManager = initializeServerTelemetryManager(apiId, this.config.auth.clientId, correlationId, this.browserStorage, this.logger);
|
||||
this.logger.verbose("1cbc4t", correlationId);
|
||||
const challengeReq = {
|
||||
challenge_type: this.getChallengeTypes(parameters.challengeType),
|
||||
continuation_token: parameters.continuationToken,
|
||||
id: parameters.authMethodId,
|
||||
correlationId: correlationId,
|
||||
telemetryManager: telemetryManager,
|
||||
};
|
||||
const challengeResponse = await this.customAuthApiClient.signInApi.requestChallenge(challengeReq);
|
||||
this.logger.verbose("0egw9i", correlationId);
|
||||
if (challengeResponse.challenge_type === ChallengeType.OOB) {
|
||||
// Verification required - code will be sent
|
||||
return createMfaVerificationRequiredResult({
|
||||
correlationId: challengeResponse.correlation_id || correlationId,
|
||||
continuationToken: challengeResponse.continuation_token ?? "",
|
||||
challengeChannel: challengeResponse.challenge_channel ?? "",
|
||||
challengeTargetLabel: challengeResponse.challenge_target_label ?? "",
|
||||
codeLength: challengeResponse.code_length ??
|
||||
DefaultCustomAuthApiCodeLength,
|
||||
bindingMethod: challengeResponse.binding_method ?? "",
|
||||
});
|
||||
}
|
||||
this.logger.error("1jifg6", challengeResponse.correlation_id || correlationId);
|
||||
throw new CustomAuthApiError(UNSUPPORTED_CHALLENGE_TYPE, `Unsupported challenge type '${challengeResponse.challenge_type}'.`, challengeResponse.correlation_id || correlationId);
|
||||
}
|
||||
/**
|
||||
* Submits the MFA challenge response (e.g., OTP code).
|
||||
* @param parameters The parameters for submitting the challenge.
|
||||
* @returns Promise that resolves to MfaCompletedResult.
|
||||
*/
|
||||
async submitChallenge(parameters) {
|
||||
const correlationId = parameters.correlationId || this.correlationId;
|
||||
ensureArgumentIsNotEmptyString("parameters.challenge", parameters.challenge, correlationId);
|
||||
const apiId = MFA_SUBMIT_CHALLENGE;
|
||||
const telemetryManager = initializeServerTelemetryManager(apiId, this.config.auth.clientId, correlationId, this.browserStorage, this.logger);
|
||||
const scopes = this.getScopes(parameters.scopes);
|
||||
const request = {
|
||||
continuation_token: parameters.continuationToken,
|
||||
oob: parameters.challenge,
|
||||
grant_type: GrantType.MFA_OOB,
|
||||
scope: scopes.join(" "),
|
||||
correlationId: correlationId,
|
||||
telemetryManager: telemetryManager,
|
||||
...(parameters.claims && {
|
||||
claims: parameters.claims,
|
||||
}),
|
||||
};
|
||||
this.logger.verbose("1rkonv", correlationId);
|
||||
const tokenResponse = await this.customAuthApiClient.signInApi.requestTokensWithOob(request);
|
||||
// Save tokens and create authentication result
|
||||
const result = await this.handleTokenResponse(tokenResponse, scopes, tokenResponse.correlation_id || correlationId, apiId);
|
||||
return createMfaCompletedResult({
|
||||
correlationId: tokenResponse.correlation_id || correlationId,
|
||||
authenticationResult: result,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export { MfaClient };
|
||||
//# sourceMappingURL=MfaClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaClient.mjs","sources":["../../../../../src/custom_auth/core/interaction_client/mfa/MfaClient.ts"],"sourcesContent":[null],"names":["PublicApiId.MFA_REQUEST_CHALLENGE","CustomAuthApiErrorCode.UNSUPPORTED_CHALLENGE_TYPE","PublicApiId.MFA_SUBMIT_CHALLENGE"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AA4BH;;AAEG;AACG,MAAO,SAAU,SAAQ,+BAA+B,CAAA;AAC1D;;;;AAIG;IACH,MAAM,gBAAgB,CAClB,UAAqC,EAAA;AAErC,QAAA,MAAM,KAAK,GAAGA,qBAAiC,CAAC;QAChD,MAAM,aAAa,GAAG,UAAU,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC;QACrE,MAAM,gBAAgB,GAAG,gCAAgC,CACrD,KAAK,EACL,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EACzB,aAAa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AAI,aAAa,EAC7C,KAAK,CACR,CAAC;AAEF,QAAA,OAAO,wBAAwB,CAAC;AAC5B,YAAA,aAAa,EAAE,aAAa,CAAC,cAAc,IAAI,aAAa;AAC5D,YAAA,oBAAoB,EAAE,MAAM;AAC/B,SAAA,CAAC,CAAC;KACN;AACJ;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
// Result type constants
|
||||
const MFA_VERIFICATION_REQUIRED_RESULT_TYPE = "MfaVerificationRequiredResult";
|
||||
const MFA_COMPLETED_RESULT_TYPE = "MfaCompletedResult";
|
||||
function createMfaVerificationRequiredResult(input) {
|
||||
return {
|
||||
type: MFA_VERIFICATION_REQUIRED_RESULT_TYPE,
|
||||
...input,
|
||||
};
|
||||
}
|
||||
function createMfaCompletedResult(input) {
|
||||
return {
|
||||
type: MFA_COMPLETED_RESULT_TYPE,
|
||||
...input,
|
||||
};
|
||||
}
|
||||
|
||||
export { MFA_COMPLETED_RESULT_TYPE, MFA_VERIFICATION_REQUIRED_RESULT_TYPE, createMfaCompletedResult, createMfaVerificationRequiredResult };
|
||||
//# sourceMappingURL=MfaActionResult.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"MfaActionResult.mjs","sources":["../../../../../../src/custom_auth/core/interaction_client/mfa/result/MfaActionResult.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAuBH;AACO,MAAM,qCAAqC,GAC9C,gCAAgC;AAC7B,MAAM,yBAAyB,GAAG,qBAAqB;AAExD,SAAU,mCAAmC,CAC/C,KAAkD,EAAA;IAElD,OAAO;AACH,QAAA,IAAI,EAAE,qCAAqC;AAC3C,QAAA,GAAG,KAAK;KACX,CAAC;AACN,CAAC;AAEK,SAAU,wBAAwB,CACpC,KAAuC,EAAA;IAEvC,OAAO;AACH,QAAA,IAAI,EAAE,yBAAyB;AAC/B,QAAA,GAAG,KAAK;KACX,CAAC;AACN;;;;"}
|
||||
105
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs
generated
vendored
Normal file
105
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { HttpHeaderKeys, DefaultPackageInfo, ChallengeType } from '../../../CustomAuthConstants.mjs';
|
||||
import { HTTP_REQUEST_FAILED, CONTINUATION_TOKEN_MISSING, INVALID_RESPONSE_BODY } from './types/ApiErrorCodes.mjs';
|
||||
import { parseUrl, buildUrl } from '../../utils/UrlUtils.mjs';
|
||||
import { CustomAuthApiError, RedirectError } from '../../error/CustomAuthApiError.mjs';
|
||||
import { AADServerParamKeys } from '@azure/msal-common/browser';
|
||||
import { filterCustomHeaders } from '../../utils/CustomHeaderUtils.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class BaseApiClient {
|
||||
constructor(baseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger) {
|
||||
this.clientId = clientId;
|
||||
this.httpClient = httpClient;
|
||||
this.customAuthApiQueryParams = customAuthApiQueryParams;
|
||||
this.requestInterceptor = requestInterceptor;
|
||||
this.logger = logger;
|
||||
this.baseRequestUrl = parseUrl(!baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl);
|
||||
}
|
||||
async request(endpoint, data, telemetryManager, correlationId) {
|
||||
const formData = new URLSearchParams({
|
||||
client_id: this.clientId,
|
||||
...data,
|
||||
});
|
||||
const commonHeaders = this.getCommonHeaders(correlationId, telemetryManager);
|
||||
const url = buildUrl(this.baseRequestUrl.href, endpoint, this.customAuthApiQueryParams);
|
||||
const additionalHeaders = await this.getAdditionalHeaders(url, correlationId);
|
||||
const headers = { ...commonHeaders, ...additionalHeaders };
|
||||
let response;
|
||||
try {
|
||||
response = await this.httpClient.post(url, formData, headers);
|
||||
}
|
||||
catch (e) {
|
||||
throw new CustomAuthApiError(HTTP_REQUEST_FAILED, `Failed to perform '${endpoint}' request: ${e}`, correlationId);
|
||||
}
|
||||
return this.handleApiResponse(response, correlationId);
|
||||
}
|
||||
ensureContinuationTokenIsValid(continuationToken, correlationId) {
|
||||
if (!continuationToken) {
|
||||
throw new CustomAuthApiError(CONTINUATION_TOKEN_MISSING, "Continuation token is missing in the response body", correlationId);
|
||||
}
|
||||
}
|
||||
readResponseCorrelationId(response, requestCorrelationId) {
|
||||
return (response.headers.get(HttpHeaderKeys.X_MS_REQUEST_ID) ||
|
||||
requestCorrelationId);
|
||||
}
|
||||
getCommonHeaders(correlationId, telemetryManager) {
|
||||
return {
|
||||
[HttpHeaderKeys.CONTENT_TYPE]: "application/x-www-form-urlencoded",
|
||||
[AADServerParamKeys.X_CLIENT_SKU]: DefaultPackageInfo.SKU,
|
||||
[AADServerParamKeys.X_CLIENT_VER]: DefaultPackageInfo.VERSION,
|
||||
[AADServerParamKeys.X_CLIENT_OS]: DefaultPackageInfo.OS,
|
||||
[AADServerParamKeys.X_CLIENT_CPU]: DefaultPackageInfo.CPU,
|
||||
[AADServerParamKeys.X_CLIENT_CURR_TELEM]: telemetryManager.generateCurrentRequestHeaderValue(),
|
||||
[AADServerParamKeys.X_CLIENT_LAST_TELEM]: telemetryManager.generateLastRequestHeaderValue(),
|
||||
[AADServerParamKeys.CLIENT_REQUEST_ID]: correlationId,
|
||||
};
|
||||
}
|
||||
async handleApiResponse(response, requestCorrelationId) {
|
||||
if (!response) {
|
||||
throw new CustomAuthApiError("empty_response", "Response is empty", requestCorrelationId);
|
||||
}
|
||||
const correlationId = this.readResponseCorrelationId(response, requestCorrelationId);
|
||||
const responseData = await response.json();
|
||||
if (response.ok) {
|
||||
// Ensure the response doesn't have redirect challenge type
|
||||
if (typeof responseData === "object" &&
|
||||
responseData.challenge_type === ChallengeType.REDIRECT) {
|
||||
throw new RedirectError(correlationId, responseData.redirect_reason);
|
||||
}
|
||||
return {
|
||||
...responseData,
|
||||
correlation_id: correlationId,
|
||||
};
|
||||
}
|
||||
const responseError = responseData;
|
||||
if (!responseError) {
|
||||
throw new CustomAuthApiError(INVALID_RESPONSE_BODY, "Response error body is empty or invalid", correlationId);
|
||||
}
|
||||
const attributes = !!responseError.required_attributes &&
|
||||
responseError.required_attributes.length > 0
|
||||
? responseError.required_attributes
|
||||
: responseError.invalid_attributes ?? [];
|
||||
throw new CustomAuthApiError(responseError.error, responseError.error_description, responseError.correlation_id, responseError.error_codes, responseError.suberror, attributes, responseError.continuation_token, responseError.trace_id, responseError.timestamp);
|
||||
}
|
||||
async getAdditionalHeaders(url, correlationId) {
|
||||
if (!this.requestInterceptor) {
|
||||
return {};
|
||||
}
|
||||
try {
|
||||
const result = await Promise.resolve(this.requestInterceptor.addAdditionalHeaderFields(url));
|
||||
return filterCustomHeaders(result, this.logger, correlationId);
|
||||
}
|
||||
catch (e) {
|
||||
this.logger?.warningPii("1ptwx4", correlationId);
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { BaseApiClient };
|
||||
//# sourceMappingURL=BaseApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"BaseApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiErrorCode.HTTP_REQUEST_FAILED","CustomAuthApiErrorCode.CONTINUATION_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_RESPONSE_BODY"],"mappings":";;;;;;;;;AAAA;;;AAGG;MAuBmB,aAAa,CAAA;IAG/B,WACI,CAAA,OAAe,EACE,QAAgB,EACzB,UAAuB,EACvB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;QAJN,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAQ;QACzB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAa;QACvB,IAAwB,CAAA,wBAAA,GAAxB,wBAAwB,CAAyB;QACjD,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAA+B;QACjD,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;QAEvB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAA,EAAG,OAAO,CAAA,CAAA,CAAG,GAAG,OAAO,CACnD,CAAC;KACL;IAES,MAAM,OAAO,CACnB,QAAgB,EAChB,IAAsC,EACtC,gBAAwC,EACxC,aAAqB,EAAA;AAErB,QAAA,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC;YACjC,SAAS,EAAE,IAAI,CAAC,QAAQ;AACxB,YAAA,GAAG,IAAI;AACV,SAAA,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CACvC,aAAa,EACb,gBAAgB,CACnB,CAAC;AACF,QAAA,MAAM,GAAG,GAAG,QAAQ,CAChB,IAAI,CAAC,cAAc,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AG,CAAC;cACtC,aAAa,CAAC,mBAAmB;AACnC,cAAE,aAAa,CAAC,kBAAkB,IAAI,EAAE,CAAC;AAEjD,QAAA,MAAM,IAAI,kBAAkB,CACxB,aAAa,CAAC,KAAK,EACnB,aAAa,CAAC,iBAAiB,EAC/B,aAAa,CAAC,cAAc,EAC5B,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,QAAQ,EACtB,UAAU,EACV,aAAa,CAAC,kBAAkB,EAChC,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,SAAS,CAC1B,CAAC;KACL;AAEO,IAAA,MAAM,oBAAoB,CAC9B,GAAQ,EACR,aAAqB,EAAA;AAErB,QAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;AAC1B,YAAA,OAAO,EAAE,CAAC;AACb,SAAA;QAED,IAAI;AACA,YAAA,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,OAAO,CAChC,IAAI,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,GAAG,CAAC,CACzD,CAAC;YAEF,OAAO,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAClE,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;YACR,IAAI,CAAC,MAAM,EAAE,UAAU,CACnB,QAAiH,EAAA,aAAA,CAAA,CAAA;AAIrH,YAAA,OAAO,EAAE,CAAC;AACb,SAAA;KACJ;AACJ;;;;"}
|
||||
22
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs
generated
vendored
Normal file
22
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { ResetPasswordApiClient } from './ResetPasswordApiClient.mjs';
|
||||
import { SignupApiClient } from './SignupApiClient.mjs';
|
||||
import { SignInApiClient } from './SignInApiClient.mjs';
|
||||
import { RegisterApiClient } from './RegisterApiClient.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class CustomAuthApiClient {
|
||||
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
||||
this.signInApi = new SignInApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.signUpApi = new SignupApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.resetPasswordApi = new ResetPasswordApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.registerApi = new RegisterApiClient(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
}
|
||||
}
|
||||
|
||||
export { CustomAuthApiClient };
|
||||
//# sourceMappingURL=CustomAuthApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;MAWU,mBAAmB,CAAA;AAM5B,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;QAEf,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAChC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,IAAI,eAAe,CAChC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;QACF,IAAI,CAAC,gBAAgB,GAAG,IAAI,sBAAsB,CAC9C,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CACpC,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;KACL;AACJ;;;;"}
|
||||
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs
generated
vendored
Normal file
24
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const SIGNIN_INITIATE = "/oauth2/v2.0/initiate";
|
||||
const SIGNIN_CHALLENGE = "/oauth2/v2.0/challenge";
|
||||
const SIGNIN_TOKEN = "/oauth2/v2.0/token";
|
||||
const SIGNIN_INTROSPECT = "/oauth2/v2.0/introspect";
|
||||
const SIGNUP_START = "/signup/v1.0/start";
|
||||
const SIGNUP_CHALLENGE = "/signup/v1.0/challenge";
|
||||
const SIGNUP_CONTINUE = "/signup/v1.0/continue";
|
||||
const RESET_PWD_START = "/resetpassword/v1.0/start";
|
||||
const RESET_PWD_CHALLENGE = "/resetpassword/v1.0/challenge";
|
||||
const RESET_PWD_CONTINUE = "/resetpassword/v1.0/continue";
|
||||
const RESET_PWD_SUBMIT = "/resetpassword/v1.0/submit";
|
||||
const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
|
||||
const REGISTER_INTROSPECT = "/register/v1.0/introspect";
|
||||
const REGISTER_CHALLENGE = "/register/v1.0/challenge";
|
||||
const REGISTER_CONTINUE = "/register/v1.0/continue";
|
||||
|
||||
export { REGISTER_CHALLENGE, REGISTER_CONTINUE, REGISTER_INTROSPECT, RESET_PWD_CHALLENGE, RESET_PWD_CONTINUE, RESET_PWD_POLL, RESET_PWD_START, RESET_PWD_SUBMIT, SIGNIN_CHALLENGE, SIGNIN_INITIATE, SIGNIN_INTROSPECT, SIGNIN_TOKEN, SIGNUP_CHALLENGE, SIGNUP_CONTINUE, SIGNUP_START };
|
||||
//# sourceMappingURL=CustomAuthApiEndpoint.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"CustomAuthApiEndpoint.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,eAAe,GAAG,wBAAwB;AAChD,MAAM,gBAAgB,GAAG,yBAAyB;AAClD,MAAM,YAAY,GAAG,qBAAqB;AAC1C,MAAM,iBAAiB,GAAG,0BAA0B;AAEpD,MAAM,YAAY,GAAG,qBAAqB;AAC1C,MAAM,gBAAgB,GAAG,yBAAyB;AAClD,MAAM,eAAe,GAAG,wBAAwB;AAEhD,MAAM,eAAe,GAAG,4BAA4B;AACpD,MAAM,mBAAmB,GAAG,gCAAgC;AAC5D,MAAM,kBAAkB,GAAG,+BAA+B;AAC1D,MAAM,gBAAgB,GAAG,6BAA6B;AACtD,MAAM,cAAc,GAAG,sCAAsC;AAE7D,MAAM,mBAAmB,GAAG,4BAA4B;AACxD,MAAM,kBAAkB,GAAG,2BAA2B;AACtD,MAAM,iBAAiB,GAAG;;;;"}
|
||||
51
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs
generated
vendored
Normal file
51
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { BaseApiClient } from './BaseApiClient.mjs';
|
||||
import { REGISTER_INTROSPECT, REGISTER_CHALLENGE, REGISTER_CONTINUE } from './CustomAuthApiEndpoint.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class RegisterApiClient extends BaseApiClient {
|
||||
/**
|
||||
* Gets available authentication methods for registration
|
||||
*/
|
||||
async introspect(params) {
|
||||
const result = await this.request(REGISTER_INTROSPECT, {
|
||||
continuation_token: params.continuation_token,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Sends challenge to specified authentication method
|
||||
*/
|
||||
async challenge(params) {
|
||||
const result = await this.request(REGISTER_CHALLENGE, {
|
||||
continuation_token: params.continuation_token,
|
||||
challenge_type: params.challenge_type,
|
||||
challenge_target: params.challenge_target,
|
||||
...(params.challenge_channel && {
|
||||
challenge_channel: params.challenge_channel,
|
||||
}),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Submits challenge response and continues registration
|
||||
*/
|
||||
async continue(params) {
|
||||
const result = await this.request(REGISTER_CONTINUE, {
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: params.grant_type,
|
||||
...(params.oob && { oob: params.oob }),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
export { RegisterApiClient };
|
||||
//# sourceMappingURL=RegisterApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"RegisterApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.REGISTER_INTROSPECT","CustomAuthApiEndpoint.REGISTER_CHALLENGE","CustomAuthApiEndpoint.REGISTER_CONTINUE"],"mappings":";;;;;AAAA;;;AAGG;AAeG,MAAO,iBAAkB,SAAQ,aAAa,CAAA;AAChD;;AAEG;IACH,MAAM,UAAU,CACZ,MAAiC,EAAA;QAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,mBAAyC,EACzC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;SAChD,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;AAEG;IACH,MAAM,SAAS,CACX,MAAgC,EAAA;QAEhC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,kBAAwC,EACxC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;AACzC,YAAA,IAAI,MAAM,CAAC,iBAAiB,IAAI;gBAC5B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;aAC9C,CAAC;SACL,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;AAEG;IACH,MAAM,QAAQ,CACV,MAA+B,EAAA;QAE/B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,iBAAuC,EACvC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,MAAM,CAAC,UAAU;AAC7B,YAAA,IAAI,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC;SACzC,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AACJ;;;;"}
|
||||
94
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs
generated
vendored
Normal file
94
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { GrantType, ResetPasswordPollStatus } from '../../../CustomAuthConstants.mjs';
|
||||
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
||||
import { BaseApiClient } from './BaseApiClient.mjs';
|
||||
import { RESET_PWD_START, RESET_PWD_CHALLENGE, RESET_PWD_CONTINUE, RESET_PWD_SUBMIT, RESET_PWD_POLL } from './CustomAuthApiEndpoint.mjs';
|
||||
import { INVALID_POLL_STATUS } from './types/ApiErrorCodes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class ResetPasswordApiClient extends BaseApiClient {
|
||||
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
||||
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.capabilities = capabilities;
|
||||
}
|
||||
/**
|
||||
* Start the password reset flow
|
||||
*/
|
||||
async start(params) {
|
||||
const result = await this.request(RESET_PWD_START, {
|
||||
challenge_type: params.challenge_type,
|
||||
username: params.username,
|
||||
...(this.capabilities && {
|
||||
capabilities: this.capabilities,
|
||||
}),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Request a challenge (OTP) to be sent to the user's email
|
||||
* @param ChallengeResetPasswordRequest Parameters for the challenge request
|
||||
*/
|
||||
async requestChallenge(params) {
|
||||
const result = await this.request(RESET_PWD_CHALLENGE, {
|
||||
challenge_type: params.challenge_type,
|
||||
continuation_token: params.continuation_token,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Submit the code for verification
|
||||
* @param ContinueResetPasswordRequest Token from previous response
|
||||
*/
|
||||
async continueWithCode(params) {
|
||||
const result = await this.request(RESET_PWD_CONTINUE, {
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: GrantType.OOB,
|
||||
oob: params.oob,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Submit the new password
|
||||
* @param SubmitResetPasswordResponse Token from previous response
|
||||
*/
|
||||
async submitNewPassword(params) {
|
||||
const result = await this.request(RESET_PWD_SUBMIT, {
|
||||
continuation_token: params.continuation_token,
|
||||
new_password: params.new_password,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
if (result.poll_interval === 0) {
|
||||
result.poll_interval = 2;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Poll for password reset completion status
|
||||
* @param continuationToken Token from previous response
|
||||
*/
|
||||
async pollCompletion(params) {
|
||||
const result = await this.request(RESET_PWD_POLL, {
|
||||
continuation_token: params.continuation_token,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensurePollStatusIsValid(result.status, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
ensurePollStatusIsValid(status, correlationId) {
|
||||
if (status !== ResetPasswordPollStatus.FAILED &&
|
||||
status !== ResetPasswordPollStatus.IN_PROGRESS &&
|
||||
status !== ResetPasswordPollStatus.SUCCEEDED &&
|
||||
status !== ResetPasswordPollStatus.NOT_STARTED) {
|
||||
throw new CustomAuthApiError(INVALID_POLL_STATUS, `The poll status '${status}' for password reset is invalid`, correlationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { ResetPasswordApiClient };
|
||||
//# sourceMappingURL=ResetPasswordApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ResetPasswordApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.RESET_PWD_START","CustomAuthApiEndpoint.RESET_PWD_CHALLENGE","CustomAuthApiEndpoint.RESET_PWD_CONTINUE","CustomAuthApiEndpoint.RESET_PWD_SUBMIT","CustomAuthApiEndpoint.RESET_PWD_POLL","CustomAuthApiErrorCode.INVALID_POLL_STATUS"],"mappings":";;;;;;;;AAAA;;;AAGG;AA4BG,MAAO,sBAAuB,SAAQ,aAAa,CAAA;AAGrD,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;AAEf,QAAA,KAAK,CACD,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;AAEG;IACH,MAAM,KAAK,CACP,MAAiC,EAAA;QAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;AACzB,YAAA,IAAI,IAAI,CAAC,YAAY,IAAI;gBACrB,YAAY,EAAE,IAAI,CAAC,YAAY;aAClC,CAAC;SACL,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AAED;;;AAGG;IACH,MAAM,gBAAgB,CAClB,MAAqC,EAAA;QAErC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,mBAAyC,EACzC;YACI,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c,CAChB,MAA0C,EAAA;QAE1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BC,cAAoC,EACpC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;SAChD,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;AAElE,QAAA,OAAO,MAAM,CAAC;KACjB;IAES,uBAAuB,CAC7B,MAAc,EACd,aAAqB,EAAA;AAErB,QAAA,IACI,MAAM,KAAK,uBAAuB,CAAC,MAAM;YACzC,MAAM,KAAK,uBAAuB,CAAC,WAAW;YAC9C,MAAM,KAAK,uBAAuB,CAAC,SAAS;AAC5C,YAAA,MAAM,KAAK,uBAAuB,CAAC,WAAW,EAChD;AACE,YAAA,MAAM,IAAI,kBAAkB,CACxBC,mBAA0C,EAC1C,CAAA,iBAAA,EAAoB,MAAM,CAAA,+BAAA,CAAiC,EAC3D,aAAa,CAChB,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
|
||||
134
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs
generated
vendored
Normal file
134
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { GrantType } from '../../../CustomAuthConstants.mjs';
|
||||
import { CustomAuthApiError } from '../../error/CustomAuthApiError.mjs';
|
||||
import { BaseApiClient } from './BaseApiClient.mjs';
|
||||
import { SIGNIN_INITIATE, SIGNIN_CHALLENGE, SIGNIN_INTROSPECT, SIGNIN_TOKEN } from './CustomAuthApiEndpoint.mjs';
|
||||
import { ACCESS_TOKEN_MISSING, ID_TOKEN_MISSING, REFRESH_TOKEN_MISSING, INVALID_EXPIRES_IN, INVALID_TOKEN_TYPE, CLIENT_INFO_MISSING } from './types/ApiErrorCodes.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class SignInApiClient extends BaseApiClient {
|
||||
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
||||
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.capabilities = capabilities;
|
||||
}
|
||||
/**
|
||||
* Initiates the sign-in flow
|
||||
* @param username User's email
|
||||
* @param authMethod 'email-otp' | 'email-password'
|
||||
*/
|
||||
async initiate(params) {
|
||||
const result = await this.request(SIGNIN_INITIATE, {
|
||||
username: params.username,
|
||||
challenge_type: params.challenge_type,
|
||||
...(this.capabilities && {
|
||||
capabilities: this.capabilities,
|
||||
}),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Requests authentication challenge (OTP or password validation)
|
||||
* @param continuationToken Token from initiate response
|
||||
* @param authMethod 'email-otp' | 'email-password'
|
||||
*/
|
||||
async requestChallenge(params) {
|
||||
const result = await this.request(SIGNIN_CHALLENGE, {
|
||||
continuation_token: params.continuation_token,
|
||||
challenge_type: params.challenge_type,
|
||||
...(params.id && { id: params.id }),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Requests security tokens using either password or OTP
|
||||
* @param continuationToken Token from challenge response
|
||||
* @param credentials Password or OTP
|
||||
* @param authMethod 'email-otp' | 'email-password'
|
||||
*/
|
||||
async requestTokensWithPassword(params) {
|
||||
return this.requestTokens({
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: GrantType.PASSWORD,
|
||||
scope: params.scope,
|
||||
password: params.password,
|
||||
...(params.claims && { claims: params.claims }),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
}
|
||||
async requestTokensWithOob(params) {
|
||||
return this.requestTokens({
|
||||
continuation_token: params.continuation_token,
|
||||
scope: params.scope,
|
||||
oob: params.oob,
|
||||
grant_type: params.grant_type,
|
||||
...(params.claims && { claims: params.claims }),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
}
|
||||
async requestTokenWithContinuationToken(params) {
|
||||
return this.requestTokens({
|
||||
continuation_token: params.continuation_token,
|
||||
scope: params.scope,
|
||||
grant_type: GrantType.CONTINUATION_TOKEN,
|
||||
...(params.claims && { claims: params.claims }),
|
||||
...(params.username && { username: params.username }),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
}
|
||||
/**
|
||||
* Requests available authentication methods for MFA
|
||||
* @param continuationToken Token from previous response
|
||||
*/
|
||||
async requestAuthMethods(params) {
|
||||
const result = await this.request(SIGNIN_INTROSPECT, {
|
||||
continuation_token: params.continuation_token,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
async requestTokens(requestData, telemetryManager, correlationId) {
|
||||
// The client_info parameter is required for MSAL to return the uid and utid in the response.
|
||||
requestData.client_info = "1";
|
||||
const result = await this.request(SIGNIN_TOKEN, requestData, telemetryManager, correlationId);
|
||||
SignInApiClient.ensureTokenResponseIsValid(result);
|
||||
return result;
|
||||
}
|
||||
static ensureTokenResponseIsValid(tokenResponse) {
|
||||
let errorCode = "";
|
||||
let errorDescription = "";
|
||||
if (!tokenResponse.access_token) {
|
||||
errorCode = ACCESS_TOKEN_MISSING;
|
||||
errorDescription = "Access token is missing in the response body";
|
||||
}
|
||||
else if (!tokenResponse.id_token) {
|
||||
errorCode = ID_TOKEN_MISSING;
|
||||
errorDescription = "Id token is missing in the response body";
|
||||
}
|
||||
else if (!tokenResponse.refresh_token) {
|
||||
errorCode = REFRESH_TOKEN_MISSING;
|
||||
errorDescription = "Refresh token is missing in the response body";
|
||||
}
|
||||
else if (!tokenResponse.expires_in || tokenResponse.expires_in <= 0) {
|
||||
errorCode = INVALID_EXPIRES_IN;
|
||||
errorDescription = "Expires in is invalid in the response body";
|
||||
}
|
||||
else if (tokenResponse.token_type !== "Bearer") {
|
||||
errorCode = INVALID_TOKEN_TYPE;
|
||||
errorDescription = `Token type '${tokenResponse.token_type}' is invalid in the response body`;
|
||||
}
|
||||
else if (!tokenResponse.client_info) {
|
||||
errorCode = CLIENT_INFO_MISSING;
|
||||
errorDescription = "Client info is missing in the response body";
|
||||
}
|
||||
if (!errorCode && !errorDescription) {
|
||||
return;
|
||||
}
|
||||
throw new CustomAuthApiError(errorCode, errorDescription, tokenResponse.correlation_id);
|
||||
}
|
||||
}
|
||||
|
||||
export { SignInApiClient };
|
||||
//# sourceMappingURL=SignInApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"SignInApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNIN_INITIATE","CustomAuthApiEndpoint.SIGNIN_CHALLENGE","CustomAuthApiEndpoint.SIGNIN_INTROSPECT","CustomAuthApiEndpoint.SIGNIN_TOKEN","CustomAuthApiErrorCode.ACCESS_TOKEN_MISSING","CustomAuthApiErrorCode.ID_TOKEN_MISSING","CustomAuthApiErrorCode.REFRESH_TOKEN_MISSING","CustomAuthApiErrorCode.INVALID_EXPIRES_IN","CustomAuthApiErrorCode.INVALID_TOKEN_TYPE","CustomAuthApiErrorCode.CLIENT_INFO_MISSING"],"mappings":";;;;;;;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,qBAA4C,CAAC;YACzD,gBAAgB,GAAG,+CAA+C,CAAC;AACtE,SAAA;aAAM,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,aAAa,CAAC,UAAU,IAAI,CAAC,EAAE;AACnE,YAAA,SAAS,GAAGC,kBAAyC,CAAC;YACtD,gBAAgB,GAAG,4CAA4C,CAAC;AACnE,SAAA;AAAM,aAAA,IAAI,aAAa,CAAC,UAAU,KAAK,QAAQ,EAAE;AAC9C,YAAA,SAAS,GAAGC,kBAAyC,CAAC;AACtD,YAAA,gBAAgB,GAAG,CAAe,YAAA,EAAA,aAAa,CAAC,UAAU,mCAAmC,CAAC;AACjG,SAAA;AAAM,aAAA,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE;AACnC,YAAA,SAAS,GAAGC,mBAA0C,CAAC;YACvD,gBAAgB,GAAG,6CAA6C,CAAC;AACpE,SAAA;AAED,QAAA,IAAI,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE;YACjC,OAAO;AACV,SAAA;QAED,MAAM,IAAI,kBAAkB,CACxB,SAAS,EACT,gBAAgB,EAChB,aAAa,CAAC,cAAc,CAC/B,CAAC;KACL;AACJ;;;;"}
|
||||
78
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs
generated
vendored
Normal file
78
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs
generated
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { GrantType } from '../../../CustomAuthConstants.mjs';
|
||||
import { BaseApiClient } from './BaseApiClient.mjs';
|
||||
import { SIGNUP_START, SIGNUP_CHALLENGE, SIGNUP_CONTINUE } from './CustomAuthApiEndpoint.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class SignupApiClient extends BaseApiClient {
|
||||
constructor(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams, requestInterceptor, logger) {
|
||||
super(customAuthApiBaseUrl, clientId, httpClient, customAuthApiQueryParams, requestInterceptor, logger);
|
||||
this.capabilities = capabilities;
|
||||
}
|
||||
/**
|
||||
* Start the sign-up flow
|
||||
*/
|
||||
async start(params) {
|
||||
const result = await this.request(SIGNUP_START, {
|
||||
username: params.username,
|
||||
...(params.password && { password: params.password }),
|
||||
...(params.attributes && {
|
||||
attributes: JSON.stringify(params.attributes),
|
||||
}),
|
||||
challenge_type: params.challenge_type,
|
||||
...(this.capabilities && {
|
||||
capabilities: this.capabilities,
|
||||
}),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Request challenge (e.g., OTP)
|
||||
*/
|
||||
async requestChallenge(params) {
|
||||
const result = await this.request(SIGNUP_CHALLENGE, {
|
||||
continuation_token: params.continuation_token,
|
||||
challenge_type: params.challenge_type,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Continue sign-up flow with code.
|
||||
*/
|
||||
async continueWithCode(params) {
|
||||
const result = await this.request(SIGNUP_CONTINUE, {
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: GrantType.OOB,
|
||||
oob: params.oob,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
async continueWithPassword(params) {
|
||||
const result = await this.request(SIGNUP_CONTINUE, {
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: GrantType.PASSWORD,
|
||||
password: params.password,
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
async continueWithAttributes(params) {
|
||||
const result = await this.request(SIGNUP_CONTINUE, {
|
||||
continuation_token: params.continuation_token,
|
||||
grant_type: GrantType.ATTRIBUTES,
|
||||
attributes: JSON.stringify(params.attributes),
|
||||
}, params.telemetryManager, params.correlationId);
|
||||
this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
export { SignupApiClient };
|
||||
//# sourceMappingURL=SignupApiClient.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"SignupApiClient.mjs","sources":["../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"sourcesContent":[null],"names":["CustomAuthApiEndpoint.SIGNUP_START","CustomAuthApiEndpoint.SIGNUP_CHALLENGE","CustomAuthApiEndpoint.SIGNUP_CONTINUE"],"mappings":";;;;;;AAAA;;;AAGG;AAqBG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAG9C,IAAA,WAAA,CACI,oBAA4B,EAC5B,QAAgB,EAChB,UAAuB,EACvB,YAAqB,EACrB,wBAAiD,EACjD,kBAAiD,EACjD,MAAe,EAAA;AAEf,QAAA,KAAK,CACD,oBAAoB,EACpB,QAAQ,EACR,UAAU,EACV,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,CACT,CAAC;AACF,QAAA,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;KACpC;AAED;;AAEG;IACH,MAAM,KAAK,CAAC,MAA0B,EAAA;QAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,YAAkC,EAClC;YACI,QAAQ,EAAE,MAAM,CAAC,QAAQ;AACzB,YAAA,IAAI,MAAM,CAAC,QAAQ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,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;IAED,MAAM,oBAAoB,CACtB,MAAyC,EAAA;QAEzC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,SAAS,CAAC,QAAQ;YAC9B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC5B,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;IAED,MAAM,sBAAsB,CACxB,MAA2C,EAAA;QAE3C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7BA,eAAqC,EACrC;YACI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;YAC7C,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC;SAChD,EACD,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,aAAa,CACvB,CAAC;QAEF,IAAI,CAAC,8BAA8B,CAC/B,MAAM,CAAC,kBAAkB,EACzB,MAAM,CAAC,aAAa,CACvB,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACjB;AACJ;;;;"}
|
||||
30
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs
generated
vendored
Normal file
30
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
const CONTINUATION_TOKEN_MISSING = "continuation_token_missing";
|
||||
const INVALID_RESPONSE_BODY = "invalid_response_body";
|
||||
const UNSUPPORTED_CHALLENGE_TYPE = "unsupported_challenge_type";
|
||||
const ACCESS_TOKEN_MISSING = "access_token_missing";
|
||||
const ID_TOKEN_MISSING = "id_token_missing";
|
||||
const REFRESH_TOKEN_MISSING = "refresh_token_missing";
|
||||
const INVALID_EXPIRES_IN = "invalid_expires_in";
|
||||
const INVALID_TOKEN_TYPE = "invalid_token_type";
|
||||
const HTTP_REQUEST_FAILED = "http_request_failed";
|
||||
const INVALID_REQUEST = "invalid_request";
|
||||
const USER_NOT_FOUND = "user_not_found";
|
||||
const INVALID_GRANT = "invalid_grant";
|
||||
const CREDENTIAL_REQUIRED = "credential_required";
|
||||
const ATTRIBUTES_REQUIRED = "attributes_required";
|
||||
const USER_ALREADY_EXISTS = "user_already_exists";
|
||||
const INVALID_POLL_STATUS = "invalid_poll_status";
|
||||
const PASSWORD_CHANGE_FAILED = "password_change_failed";
|
||||
const PASSWORD_RESET_TIMEOUT = "password_reset_timeout";
|
||||
const CLIENT_INFO_MISSING = "client_info_missing";
|
||||
const EXPIRED_TOKEN = "expired_token";
|
||||
const ACCESS_DENIED = "access_denied";
|
||||
|
||||
export { ACCESS_DENIED, ACCESS_TOKEN_MISSING, ATTRIBUTES_REQUIRED, CLIENT_INFO_MISSING, CONTINUATION_TOKEN_MISSING, CREDENTIAL_REQUIRED, EXPIRED_TOKEN, HTTP_REQUEST_FAILED, ID_TOKEN_MISSING, INVALID_EXPIRES_IN, INVALID_GRANT, INVALID_POLL_STATUS, INVALID_REQUEST, INVALID_RESPONSE_BODY, INVALID_TOKEN_TYPE, PASSWORD_CHANGE_FAILED, PASSWORD_RESET_TIMEOUT, REFRESH_TOKEN_MISSING, UNSUPPORTED_CHALLENGE_TYPE, USER_ALREADY_EXISTS, USER_NOT_FOUND };
|
||||
//# sourceMappingURL=ApiErrorCodes.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"ApiErrorCodes.mjs","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEI,MAAM,0BAA0B,GAAG,6BAA6B;AAChE,MAAM,qBAAqB,GAAG,wBAAwB;AAEtD,MAAM,0BAA0B,GAAG,6BAA6B;AAChE,MAAM,oBAAoB,GAAG,uBAAuB;AACpD,MAAM,gBAAgB,GAAG,mBAAmB;AAC5C,MAAM,qBAAqB,GAAG,wBAAwB;AACtD,MAAM,kBAAkB,GAAG,qBAAqB;AAChD,MAAM,kBAAkB,GAAG,qBAAqB;AAChD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,eAAe,GAAG,kBAAkB;AAC1C,MAAM,cAAc,GAAG,iBAAiB;AACxC,MAAM,aAAa,GAAG,gBAAgB;AACtC,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,sBAAsB,GAAG,yBAAyB;AACxD,MAAM,sBAAsB,GAAG,yBAAyB;AACxD,MAAM,mBAAmB,GAAG,sBAAsB;AAClD,MAAM,aAAa,GAAG,gBAAgB;AACtC,MAAM,aAAa,GAAG;;;;"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user