
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@equinor/fusion-framework-module-msal
Advanced tools
This modules provides configuration and utilities for working with the Microsoft Authentication Library (MSAL) in Fusion.
This modules provides configuration and utilities for working with the Microsoft Authentication Library (MSAL) in Fusion.
[!IMPORTANT] The
@equinor/fusion-framework-appenables this package by default, so applications using the app package do not need to enable this package.
// enable the module
import { enableMsal } from '@equinor/fusion-framework-module-msal';
export const configure = (configurator: IModulesConfigurator) => {
enableMsal(configurator);
};
[!WARNING] Only the first ancestor should configure the module. All sub scopes will inherit the configuration from the first ancestor.
import { enableMsal } from '@equinor/fusion-framework-module-msal';
const myConfigurator = new ModulesConfigurator();
const msalConfig: AuthConfig = {
tenantId: 'your-tenant',
clientId: 'your-client'
callbackUrl: 'your-callback-url'
};
// Enable MSAL
enableMsal(myConfigurator, (msalConfigurator) => msalConfigurator.setClientConfig(msalConfig));
// Alternatively
import { configureMsal } from '@equinor/fusion-framework-module-msal';
myConfigurator.addConfig(configureMsal(msalConfigurator => {
configurator.setClientConfig(msalConfig);
}));
// Native MSAL configuration
import { module } from '@azure/msal-browser';
myConfigurator.addConfig({
module: module,
config: (msalConfigurator) => msalConfigurator.setClientConfig(msalConfig)
}
The provider proxy generation is by default set to MsalModuleVersion.Latest, which will be resolved by the ancestor module. If you want to force a specific version, you can set the version in the configuration.
[!NOTE] this should not be necessary in most cases and only done by understanding the inner workings of the module, but can be done in a transition phase._
import { MsalModuleVersion } from '@equinor/fusion-framework-module-msal';
enableMsal(myConfigurator, (msalConfigurator) => {
msalConfigurator.setClientConfig(msalConfig);
msalConfigurator.setVersion(MsalModuleVersion.V2);
});
V4
The module change to use module hoisting, which means that sub modules instances will proxy the parent module instance. This means that the module instance will be shared between all instances of the module.
This is a breaking change since this module used to support multiple MSAL clients (multi tenant, multi authority) in the same scoped instance. This is no longer supported, due to the way @azure/msal-browser uses a shared cache.
This version still uses @azure/msal-browser@^2, but enables
FAQs
Microsoft Authentication Library (MSAL) integration module for Fusion Framework
The npm package @equinor/fusion-framework-module-msal receives a total of 1,809 weekly downloads. As such, @equinor/fusion-framework-module-msal popularity was classified as popular.
We found that @equinor/fusion-framework-module-msal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies