Support brokering from Linux x64 and Intel Macs (#278689)

* Support Linux & Intel Macs

This grabs the native files directly since the ones at the root are not expected to work in our cases, namely Intel Mac where we use arm machines to build the x64 build.

* actually include macOS intel bits
This commit is contained in:
Tyler James Leonhardt
2025-11-20 17:42:11 -08:00
committed by GitHub
parent fd9cf8e3dd
commit 4c96903608
2 changed files with 27 additions and 8 deletions

View File

@@ -51,9 +51,7 @@ export class CachedPublicClientApplication implements ICachedPublicClientApplica
const loggerOptions = new MsalLoggerOptions(_logger, telemetryReporter);
let broker: BrokerOptions | undefined;
if (process.platform !== 'win32' && process.platform !== 'darwin') {
this._logger.info(`[${this._clientId}] Native Broker is only available on Windows and macOS`);
} else if (env.uiKind === UIKind.Web) {
if (env.uiKind === UIKind.Web) {
this._logger.info(`[${this._clientId}] Native Broker is not available in web UI`);
} else if (workspace.getConfiguration('microsoft-authentication').get<'msal' | 'msal-no-broker'>('implementation') === 'msal-no-broker') {
this._logger.info(`[${this._clientId}] Native Broker disabled via settings`);