From a1950d79d72e2a64a8e872017093b5f873dd6fcd Mon Sep 17 00:00:00 2001 From: Marcel Törpe Date: Fri, 12 Apr 2019 09:38:24 +0200 Subject: feat(App): Added Kerberos Support via Command Line Switches (#1331) (@frumania) * added Kerberos support * added Kerberos support * reset package-lock --- src/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 05c793d98..3fe996aa7 100644 --- a/src/index.js +++ b/src/index.js @@ -305,6 +305,20 @@ const createWindow = () => { }); }; +// Allow passing command line parameters/switches to electron +// https://electronjs.org/docs/api/chrome-command-line-switches +// used for Kerberos support +// Usage e.g. MACOS +// $ Franz.app/Contents/MacOS/Franz --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com +const argv = require('minimist')(process.argv.slice(1)); + +if (argv['auth-server-whitelist']) { + app.commandLine.appendSwitch('auth-server-whitelist', argv['auth-server-whitelist']); +} +if (argv['auth-negotiate-delegate-whitelist']) { + app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', argv['auth-negotiate-delegate-whitelist']); +} + // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. -- cgit v1.2.3-70-g09d2