Commit iniziale

This commit is contained in:
Paolo A
2025-02-18 22:59:07 +00:00
commit 4bbf35cefb
6879 changed files with 623784 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import { Logger, LogLevel } from "@azure/msal-common/browser";
import { BrowserConfiguration, Configuration } from "../config/Configuration.js";
/**
* 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
*/
export declare abstract class BaseOperatingContext {
protected logger: Logger;
protected config: BrowserConfiguration;
protected available: boolean;
protected browserEnvironment: boolean;
protected static loggerCallback(level: LogLevel, message: string): void;
constructor(config: Configuration);
/**
* returns the name of the module containing the API controller associated with this operating context
*/
abstract getModuleName(): string;
/**
* returns the string identifier of this operating context
*/
abstract getId(): string;
/**
* returns a boolean indicating whether this operating context is present
*/
abstract initialize(): Promise<boolean>;
/**
* Return the MSAL config
* @returns BrowserConfiguration
*/
getConfig(): BrowserConfiguration;
/**
* Returns the MSAL Logger
* @returns Logger
*/
getLogger(): Logger;
isAvailable(): boolean;
isBrowserEnvironment(): boolean;
}
//# sourceMappingURL=BaseOperatingContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"BaseOperatingContext.d.ts","sourceRoot":"","sources":["../../src/operatingcontext/BaseOperatingContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACH,oBAAoB,EAEpB,aAAa,EAChB,MAAM,4BAA4B,CAAC;AAQpC;;;;;;GAMG;AACH,8BAAsB,oBAAoB;IACtC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACvC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAEtC,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;gBAyB3D,MAAM,EAAE,aAAa;IA4CjC;;OAEG;IACH,QAAQ,CAAC,aAAa,IAAI,MAAM;IAEhC;;OAEG;IACH,QAAQ,CAAC,KAAK,IAAI,MAAM;IAExB;;OAEG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAEvC;;;OAGG;IACH,SAAS,IAAI,oBAAoB;IAIjC;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB,WAAW,IAAI,OAAO;IAItB,oBAAoB,IAAI,OAAO;CAGlC"}

View File

@@ -0,0 +1,104 @@
/*! @azure/msal-browser v4.2.1 2025-02-11 */
'use strict';
import { LogLevel, Logger } from '@azure/msal-common/browser';
import { buildConfiguration } from '../config/Configuration.mjs';
import { name, version } from '../packageMetadata.mjs';
import { BrowserCacheLocation, LOG_LEVEL_CACHE_KEY, LOG_PII_CACHE_KEY } from '../utils/BrowserConstants.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

View File

@@ -0,0 +1 @@
{"version":3,"file":"BaseOperatingContext.mjs","sources":["../../src/operatingcontext/BaseOperatingContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAeH;;;;;;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;QACjE,MAAM,aAAa,GAAG,cAAc;cAC9B,OAAO,CAAC,iBAAiB,CAAC;cAC1B,WAAW,EAAE,CAAC;AAEpB,QAAA,MAAM,iBAAiB,GACnB,aAAa,KAAK,MAAM;AACpB,cAAE,IAAI;cACJ,aAAa,KAAK,OAAO;AAC3B,kBAAE,KAAK;kBACL,SAAS,CAAC;AACpB,QAAA,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;AAE9D,QAAA,MAAM,QAAQ,GACV,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;AACtD,cAAE,QAAQ,CAAC,WAAW,CAAC;cACrB,SAAS,CAAC;AACpB,QAAA,IAAI,QAAQ,EAAE;AACV,YAAA,aAAa,CAAC,cAAc,GAAG,oBAAoB,CAAC,cAAc,CAAC;AACnE,YAAA,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACrC,SAAA;QACD,IAAI,iBAAiB,KAAK,SAAS,EAAE;AACjC,YAAA,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACvD,SAAA;AAED,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AACvD,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;KAC1B;AAiBD;;;AAGG;IACH,SAAS,GAAA;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;KACtB;AAED;;;AAGG;IACH,SAAS,GAAA;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;KACtB;IAED,WAAW,GAAA;QACP,OAAO,IAAI,CAAC,SAAS,CAAC;KACzB;IAED,oBAAoB,GAAA;QAChB,OAAO,IAAI,CAAC,kBAAkB,CAAC;KAClC;AACJ;;;;"}

View File

@@ -0,0 +1,40 @@
import { BaseOperatingContext } from "./BaseOperatingContext.js";
import { IBridgeProxy } from "../naa/IBridgeProxy.js";
import { AccountContext } from "../naa/BridgeAccountContext.js";
declare global {
interface Window {
__initializeNestedAppAuth?(): Promise<void>;
}
}
export declare class NestedAppOperatingContext extends BaseOperatingContext {
protected bridgeProxy: IBridgeProxy | undefined;
protected accountContext: AccountContext | null;
static readonly MODULE_NAME: string;
/**
* Unique identifier for the operating context
*/
static readonly ID: string;
/**
* Return the module name. Intended for use with import() to enable dynamic import
* of the implementation associated with this operating context
* @returns
*/
getModuleName(): string;
/**
* Returns the unique identifier for this operating context
* @returns string
*/
getId(): string;
/**
* Returns the current BridgeProxy
* @returns IBridgeProxy | undefined
*/
getBridgeProxy(): IBridgeProxy | undefined;
/**
* 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.
*/
initialize(): Promise<boolean>;
}
//# sourceMappingURL=NestedAppOperatingContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"NestedAppOperatingContext.d.ts","sourceRoot":"","sources":["../../src/operatingcontext/NestedAppOperatingContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,yBAAyB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KAC/C;CACJ;AAED,qBAAa,yBAA0B,SAAQ,oBAAoB;IAC/D,SAAS,CAAC,WAAW,EAAE,YAAY,GAAG,SAAS,CAAa;IAC5D,SAAS,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAQ;IAMvD,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAM;IAEzC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAA+B;IAEzD;;;;OAIG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,KAAK,IAAI,MAAM;IAIf;;;OAGG;IACH,cAAc,IAAI,YAAY,GAAG,SAAS;IAI1C;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;CA0BvC"}

View File

@@ -0,0 +1,78 @@
/*! @azure/msal-browser v4.2.1 2025-02-11 */
'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.
* @returns Promise<boolean> indicating whether this operating context is currently available.
*/
async initialize() {
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(`Could not initialize Nested App Auth bridge (${ex})`);
}
this.logger.info(`Nested App Auth Bridge available: ${this.available}`);
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

View 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;KAqE1D;AAxDG;;;;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;;;;AAIG;AACH,IAAA,MAAM,UAAU,GAAA;QACZ,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,CAAgD,6CAAA,EAAA,EAAE,CAAG,CAAA,CAAA,CACxD,CAAC;AACL,SAAA;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAqC,kCAAA,EAAA,IAAI,CAAC,SAAS,CAAE,CAAA,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC,SAAS,CAAC;KACzB;;AAlED;;;AAGG;AACa,yBAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAEzC;;AAEG;AACa,yBAAE,CAAA,EAAA,GAAW,2BAA2B;;;;"}

View File

@@ -0,0 +1,26 @@
import { BaseOperatingContext } from "./BaseOperatingContext.js";
export declare class StandardOperatingContext extends BaseOperatingContext {
static readonly MODULE_NAME: string;
/**
* Unique identifier for the operating context
*/
static readonly ID: string;
/**
* Return the module name. Intended for use with import() to enable dynamic import
* of the implementation associated with this operating context
* @returns
*/
getModuleName(): string;
/**
* Returns the unique identifier for this operating context
* @returns string
*/
getId(): string;
/**
* 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.
*/
initialize(): Promise<boolean>;
}
//# sourceMappingURL=StandardOperatingContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"StandardOperatingContext.d.ts","sourceRoot":"","sources":["../../src/operatingcontext/StandardOperatingContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,wBAAyB,SAAQ,oBAAoB;IAK9D,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAM;IAEzC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAA8B;IAExD;;;;OAIG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,KAAK,IAAI,MAAM;IAIf;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;CAQvC"}

View File

@@ -0,0 +1,50 @@
/*! @azure/msal-browser v4.2.1 2025-02-11 */
'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.
*/
async initialize() {
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

View 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;AACH,IAAA,MAAM,UAAU,GAAA;AACZ,QAAA,IAAI,CAAC,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC;AACtB;;;AAGG;KACN;;AAxCD;;;AAGG;AACa,wBAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAEzC;;AAEG;AACa,wBAAE,CAAA,EAAA,GAAW,0BAA0B;;;;"}

View File

@@ -0,0 +1,26 @@
import { BaseOperatingContext } from "./BaseOperatingContext.js";
export declare class UnknownOperatingContext extends BaseOperatingContext {
static readonly MODULE_NAME: string;
/**
* Unique identifier for the operating context
*/
static readonly ID: string;
/**
* Returns the unique identifier for this operating context
* @returns string
*/
getId(): string;
/**
* Return the module name. Intended for use with import() to enable dynamic import
* of the implementation associated with this operating context
* @returns
*/
getModuleName(): string;
/**
* 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.
*/
initialize(): Promise<boolean>;
}
//# sourceMappingURL=UnknownOperatingContext.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"UnknownOperatingContext.d.ts","sourceRoot":"","sources":["../../src/operatingcontext/UnknownOperatingContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,uBAAwB,SAAQ,oBAAoB;IAK7D,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAM;IAEzC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAA6B;IAEvD;;;OAGG;IACH,KAAK,IAAI,MAAM;IAIf;;;;OAIG;IACH,aAAa,IAAI,MAAM;IAIvB;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;CAOvC"}

View File

@@ -0,0 +1,49 @@
/*! @azure/msal-browser v4.2.1 2025-02-11 */
'use strict';
import { BaseOperatingContext } from './BaseOperatingContext.mjs';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
class UnknownOperatingContext extends BaseOperatingContext {
/**
* Returns the unique identifier for this operating context
* @returns string
*/
getId() {
return UnknownOperatingContext.ID;
}
/**
* Return the module name. Intended for use with import() to enable dynamic import
* of the implementation associated with this operating context
* @returns
*/
getModuleName() {
return UnknownOperatingContext.MODULE_NAME;
}
/**
* 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.
*/
async initialize() {
/**
* This operating context is in use when we have not checked for what the operating context is.
* The context is unknown until we check it.
*/
return true;
}
}
/*
* TODO: Once we have determine the bundling code return here to specify the name of the bundle
* containing the implementation for this operating context
*/
UnknownOperatingContext.MODULE_NAME = "";
/**
* Unique identifier for the operating context
*/
UnknownOperatingContext.ID = "UnknownOperatingContext";
export { UnknownOperatingContext };
//# sourceMappingURL=UnknownOperatingContext.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"UnknownOperatingContext.mjs","sources":["../../src/operatingcontext/UnknownOperatingContext.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIG,MAAO,uBAAwB,SAAQ,oBAAoB,CAAA;AAY7D;;;AAGG;IACH,KAAK,GAAA;QACD,OAAO,uBAAuB,CAAC,EAAE,CAAC;KACrC;AAED;;;;AAIG;IACH,aAAa,GAAA;QACT,OAAO,uBAAuB,CAAC,WAAW,CAAC;KAC9C;AAED;;;;AAIG;AACH,IAAA,MAAM,UAAU,GAAA;AACZ;;;AAGG;AACH,QAAA,OAAO,IAAI,CAAC;KACf;;AAvCD;;;AAGG;AACa,uBAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAEzC;;AAEG;AACa,uBAAE,CAAA,EAAA,GAAW,yBAAyB;;;;"}