Estructura inicial del proyecto
This commit is contained in:
105
backend/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs
generated
vendored
Normal file
105
backend/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs
generated
vendored
Normal file
@ -0,0 +1,105 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { LogLevel, Logger } from '@azure/msal-common/browser';
|
||||
import { buildConfiguration } from '../config/Configuration.mjs';
|
||||
import { name, version } from '../packageMetadata.mjs';
|
||||
import { BrowserCacheLocation } from '../utils/BrowserConstants.mjs';
|
||||
import { LOG_LEVEL_CACHE_KEY, LOG_PII_CACHE_KEY } from '../cache/CacheKeys.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
/**
|
||||
* Base class for operating context
|
||||
* Operating contexts are contexts in which MSAL.js is being run
|
||||
* More than one operating context may be available at a time
|
||||
* It's important from a logging and telemetry point of view for us to be able to identify the operating context.
|
||||
* For example: Some operating contexts will pre-cache tokens impacting performance telemetry
|
||||
*/
|
||||
class BaseOperatingContext {
|
||||
static loggerCallback(level, message) {
|
||||
switch (level) {
|
||||
case LogLevel.Error:
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(message);
|
||||
return;
|
||||
case LogLevel.Info:
|
||||
// eslint-disable-next-line no-console
|
||||
console.info(message);
|
||||
return;
|
||||
case LogLevel.Verbose:
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug(message);
|
||||
return;
|
||||
case LogLevel.Warning:
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(message);
|
||||
return;
|
||||
default:
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
constructor(config) {
|
||||
/*
|
||||
* If loaded in an environment where window is not available,
|
||||
* set internal flag to false so that further requests fail.
|
||||
* This is to support server-side rendering environments.
|
||||
*/
|
||||
this.browserEnvironment = typeof window !== "undefined";
|
||||
this.config = buildConfiguration(config, this.browserEnvironment);
|
||||
let sessionStorage;
|
||||
try {
|
||||
sessionStorage = window[BrowserCacheLocation.SessionStorage];
|
||||
// Mute errors if it's a non-browser environment or cookies are blocked.
|
||||
}
|
||||
catch (e) { }
|
||||
const logLevelKey = sessionStorage?.getItem(LOG_LEVEL_CACHE_KEY);
|
||||
const piiLoggingKey = sessionStorage
|
||||
?.getItem(LOG_PII_CACHE_KEY)
|
||||
?.toLowerCase();
|
||||
const piiLoggingEnabled = piiLoggingKey === "true"
|
||||
? true
|
||||
: piiLoggingKey === "false"
|
||||
? false
|
||||
: undefined;
|
||||
const loggerOptions = { ...this.config.system.loggerOptions };
|
||||
const logLevel = logLevelKey && Object.keys(LogLevel).includes(logLevelKey)
|
||||
? LogLevel[logLevelKey]
|
||||
: undefined;
|
||||
if (logLevel) {
|
||||
loggerOptions.loggerCallback = BaseOperatingContext.loggerCallback;
|
||||
loggerOptions.logLevel = logLevel;
|
||||
}
|
||||
if (piiLoggingEnabled !== undefined) {
|
||||
loggerOptions.piiLoggingEnabled = piiLoggingEnabled;
|
||||
}
|
||||
this.logger = new Logger(loggerOptions, name, version);
|
||||
this.available = false;
|
||||
}
|
||||
/**
|
||||
* Return the MSAL config
|
||||
* @returns BrowserConfiguration
|
||||
*/
|
||||
getConfig() {
|
||||
return this.config;
|
||||
}
|
||||
/**
|
||||
* Returns the MSAL Logger
|
||||
* @returns Logger
|
||||
*/
|
||||
getLogger() {
|
||||
return this.logger;
|
||||
}
|
||||
isAvailable() {
|
||||
return this.available;
|
||||
}
|
||||
isBrowserEnvironment() {
|
||||
return this.browserEnvironment;
|
||||
}
|
||||
}
|
||||
|
||||
export { BaseOperatingContext };
|
||||
//# sourceMappingURL=BaseOperatingContext.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"BaseOperatingContext.mjs","sources":["../../src/operatingcontext/BaseOperatingContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;AAYH;;;;;;AAMG;MACmB,oBAAoB,CAAA;AAM5B,IAAA,OAAO,cAAc,CAAC,KAAe,EAAE,OAAe,EAAA;AAC5D,QAAA,QAAQ,KAAK;YACT,KAAK,QAAQ,CAAC,KAAK;;AAEf,gBAAA,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO;YACX,KAAK,QAAQ,CAAC,IAAI;;AAEd,gBAAA,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBACtB,OAAO;YACX,KAAK,QAAQ,CAAC,OAAO;;AAEjB,gBAAA,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO;YACX,KAAK,QAAQ,CAAC,OAAO;;AAEjB,gBAAA,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBACtB,OAAO;AACX,YAAA;;AAEI,gBAAA,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACrB,OAAO;AACd,SAAA;KACJ;AAED,IAAA,WAAA,CAAY,MAAqB,EAAA;AAC7B;;;;AAIG;AACH,QAAA,IAAI,CAAC,kBAAkB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAElE,QAAA,IAAI,cAAmC,CAAC;QACxC,IAAI;AACA,YAAA,cAAc,GAAG,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;;AAEhE,SAAA;QAAC,OAAO,CAAC,EAAE,GAAE;QAEd,MAAM,WAAW,GAAG,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;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
generated
vendored
Normal file
80
backend/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { BaseOperatingContext } from './BaseOperatingContext.mjs';
|
||||
import { BridgeProxy } from '../naa/BridgeProxy.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class NestedAppOperatingContext extends BaseOperatingContext {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.bridgeProxy = undefined;
|
||||
this.accountContext = null;
|
||||
}
|
||||
/**
|
||||
* Return the module name. Intended for use with import() to enable dynamic import
|
||||
* of the implementation associated with this operating context
|
||||
* @returns
|
||||
*/
|
||||
getModuleName() {
|
||||
return NestedAppOperatingContext.MODULE_NAME;
|
||||
}
|
||||
/**
|
||||
* Returns the unique identifier for this operating context
|
||||
* @returns string
|
||||
*/
|
||||
getId() {
|
||||
return NestedAppOperatingContext.ID;
|
||||
}
|
||||
/**
|
||||
* Returns the current BridgeProxy
|
||||
* @returns IBridgeProxy | undefined
|
||||
*/
|
||||
getBridgeProxy() {
|
||||
return this.bridgeProxy;
|
||||
}
|
||||
/**
|
||||
* Checks whether the operating context is available.
|
||||
* Confirms that the code is running a browser rather. This is required.
|
||||
* @param correlationId
|
||||
* @returns Promise<boolean> indicating whether this operating context is currently available.
|
||||
*/
|
||||
async initialize(correlationId) {
|
||||
const cid = correlationId || "";
|
||||
try {
|
||||
if (typeof window !== "undefined") {
|
||||
if (typeof window.__initializeNestedAppAuth === "function") {
|
||||
await window.__initializeNestedAppAuth();
|
||||
}
|
||||
const bridgeProxy = await BridgeProxy.create();
|
||||
/*
|
||||
* Because we want single sign on we expect the host app to provide the account context
|
||||
* with a min set of params that can be used to identify the account
|
||||
* this.account = nestedApp.getAccountByFilter(bridgeProxy.getAccountContext());
|
||||
*/
|
||||
this.accountContext = bridgeProxy.getAccountContext();
|
||||
this.bridgeProxy = bridgeProxy;
|
||||
this.available = bridgeProxy !== undefined;
|
||||
}
|
||||
}
|
||||
catch (ex) {
|
||||
this.logger.infoPii("1mdxyj", cid);
|
||||
}
|
||||
this.logger.info("12jy9a", cid);
|
||||
return this.available;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* TODO: Once we have determine the bundling code return here to specify the name of the bundle
|
||||
* containing the implementation for this operating context
|
||||
*/
|
||||
NestedAppOperatingContext.MODULE_NAME = "";
|
||||
/**
|
||||
* Unique identifier for the operating context
|
||||
*/
|
||||
NestedAppOperatingContext.ID = "NestedAppOperatingContext";
|
||||
|
||||
export { NestedAppOperatingContext };
|
||||
//# sourceMappingURL=NestedAppOperatingContext.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/NestedAppOperatingContext.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"NestedAppOperatingContext.mjs","sources":["../../src/operatingcontext/NestedAppOperatingContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAaG,MAAO,yBAA0B,SAAQ,oBAAoB,CAAA;AAAnE,IAAA,WAAA,GAAA;;QACc,IAAW,CAAA,WAAA,GAA6B,SAAS,CAAC;QAClD,IAAc,CAAA,cAAA,GAA0B,IAAI,CAAC;KA2E1D;AA9DG;;;;AAIG;IACH,aAAa,GAAA;QACT,OAAO,yBAAyB,CAAC,WAAW,CAAC;KAChD;AAED;;;AAGG;IACH,KAAK,GAAA;QACD,OAAO,yBAAyB,CAAC,EAAE,CAAC;KACvC;AAED;;;AAGG;IACH,cAAc,GAAA;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;KAC3B;AAED;;;;;AAKG;IACH,MAAM,UAAU,CAAC,aAAsB,EAAA;AACnC,QAAA,MAAM,GAAG,GAAG,aAAa,IAAI,EAAE,CAAC;QAChC,IAAI;AACA,YAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AAC/B,gBAAA,IAAI,OAAO,MAAM,CAAC,yBAAyB,KAAK,UAAU,EAAE;AACxD,oBAAA,MAAM,MAAM,CAAC,yBAAyB,EAAE,CAAC;AAC5C,iBAAA;AAED,gBAAA,MAAM,WAAW,GAAiB,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;AAC7D;;;;AAIG;AACH,gBAAA,IAAI,CAAC,cAAc,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;AACtD,gBAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,gBAAA,IAAI,CAAC,SAAS,GAAG,WAAW,KAAK,SAAS,CAAC;AAC9C,aAAA;AACJ,SAAA;AAAC,QAAA,OAAO,EAAE,EAAE;YACT,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,QAAiD,EAAA,GAAA,CAAA,CAAA;AAGxD,SAAA;AAED,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,QAAA,EAAA,GAAA,CAAA,CAAA;QAGJ,OAAO,IAAI,CAAC,SAAS,CAAC;KACzB;;AAxED;;;AAGG;AACa,yBAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAEzC;;AAEG;AACa,yBAAE,CAAA,EAAA,GAAW,2BAA2B;;;;"}
|
||||
51
backend/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs
generated
vendored
Normal file
51
backend/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/*! @azure/msal-browser v5.11.0 2026-05-19 */
|
||||
'use strict';
|
||||
import { BaseOperatingContext } from './BaseOperatingContext.mjs';
|
||||
|
||||
/*
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
class StandardOperatingContext extends BaseOperatingContext {
|
||||
/**
|
||||
* Return the module name. Intended for use with import() to enable dynamic import
|
||||
* of the implementation associated with this operating context
|
||||
* @returns
|
||||
*/
|
||||
getModuleName() {
|
||||
return StandardOperatingContext.MODULE_NAME;
|
||||
}
|
||||
/**
|
||||
* Returns the unique identifier for this operating context
|
||||
* @returns string
|
||||
*/
|
||||
getId() {
|
||||
return StandardOperatingContext.ID;
|
||||
}
|
||||
/**
|
||||
* Checks whether the operating context is available.
|
||||
* Confirms that the code is running a browser rather. This is required.
|
||||
* @returns Promise<boolean> indicating whether this operating context is currently available.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
async initialize(correlationId) {
|
||||
this.available = typeof window !== "undefined";
|
||||
return this.available;
|
||||
/*
|
||||
* NOTE: The standard context is available as long as there is a window. If/when we split out WAM from Browser
|
||||
* We can move the current contents of the initialize method to here and verify that the WAM extension is available
|
||||
*/
|
||||
}
|
||||
}
|
||||
/*
|
||||
* TODO: Once we have determine the bundling code return here to specify the name of the bundle
|
||||
* containing the implementation for this operating context
|
||||
*/
|
||||
StandardOperatingContext.MODULE_NAME = "";
|
||||
/**
|
||||
* Unique identifier for the operating context
|
||||
*/
|
||||
StandardOperatingContext.ID = "StandardOperatingContext";
|
||||
|
||||
export { StandardOperatingContext };
|
||||
//# sourceMappingURL=StandardOperatingContext.mjs.map
|
||||
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"StandardOperatingContext.mjs","sources":["../../src/operatingcontext/StandardOperatingContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;AAY9D;;;;AAIG;IACH,aAAa,GAAA;QACT,OAAO,wBAAwB,CAAC,WAAW,CAAC;KAC/C;AAED;;;AAGG;IACH,KAAK,GAAA;QACD,OAAO,wBAAwB,CAAC,EAAE,CAAC;KACtC;AAED;;;;AAIG;;IAEH,MAAM,UAAU,CAAC,aAAsB,EAAA;AACnC,QAAA,IAAI,CAAC,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC;AACtB;;;AAGG;KACN;;AAzCD;;;AAGG;AACa,wBAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAEzC;;AAEG;AACa,wBAAE,CAAA,EAAA,GAAW,0BAA0B;;;;"}
|
||||
Reference in New Issue
Block a user