Skip to content

Commit a1950d7

Browse files
frumaniaadlk
authored andcommitted
feat(App): Added Kerberos Support via Command Line Switches (#1331) (@frumania)
* added Kerberos support * added Kerberos support * reset package-lock
1 parent 39d5696 commit a1950d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,20 @@ const createWindow = () => {
305305
});
306306
};
307307

308+
// Allow passing command line parameters/switches to electron
309+
// https://electronjs.org/docs/api/chrome-command-line-switches
310+
// used for Kerberos support
311+
// Usage e.g. MACOS
312+
// $ Franz.app/Contents/MacOS/Franz --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com
313+
const argv = require('minimist')(process.argv.slice(1));
314+
315+
if (argv['auth-server-whitelist']) {
316+
app.commandLine.appendSwitch('auth-server-whitelist', argv['auth-server-whitelist']);
317+
}
318+
if (argv['auth-negotiate-delegate-whitelist']) {
319+
app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', argv['auth-negotiate-delegate-whitelist']);
320+
}
321+
308322
// This method will be called when Electron has finished
309323
// initialization and is ready to create browser windows.
310324
// Some APIs can only be used after this event occurs.

0 commit comments

Comments
 (0)