Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
There is no MSAL Node v4 release. The package version was incremented from v3 directly to v5 to align msal-node versioning with the other MSAL.js libraries. No separate v4 feature set exists.
Dropped support for Node.js 16 and 18
MSAL Node v5 no longer supports Node.js 16 or 18; you must use Node.js 20 or later.
Removed proxyUrl and customAgentOptions
MSAL Node v5 no longer provides optional configuration for the HTTP client. The proxyUrl and customAgentOptions parameters have been removed from NodeSystemOptions.
// BEFORE (v3)
NodeSystemOptions = {
loggerOptions?: LoggerOptions;
networkClient?: INetworkModule;
proxyUrl?: string;
customAgentOptions?: http.AgentOptions | https.AgentOptions;
disableInternalRetries?: boolean;
protocolMode?: ProtocolMode;
};
// AFTER (v5)
NodeSystemOptions = {
loggerOptions?: LoggerOptions;
networkClient?: INetworkModule;
disableInternalRetries?: boolean;
protocolMode?: ProtocolMode;
};
Developers must now write their own custom HTTP client when proxy support is needed. See the custom INetworkModule sample for implementation details.
Configuration changes
protocolMode moved to system config
The protocolMode parameter is no longer an auth config option and is instead a system config option.
// BEFORE (v3)
const msalConfig = {
auth: {
clientId: "your_client_id",
authority: "https://login.live.com",
protocolMode: "OIDC",
},
};
// AFTER (v5)
const msalConfig = {
auth: {
clientId: "your_client_id",
authority: "https://login.live.com",
},
system: {
protocolMode: "OIDC",
},
};
Other removed parameters
- The
skipAuthorityMetadataCacheparameter has been removed. Applications no longer use the local metadata cache during authority initialization. - The
encodeExtraQueryParamsparameter has been removed. All extra query parameters are automatically encoded.
fromNativeBroker renamed to fromPlatformBroker
In the AuthenticationResult object, the fromNativeBroker field has been renamed to fromPlatformBroker.