Skip to content
Permalink
Browse files

feat(App): Added Kerberos Support via Command Line Switches (#1331) (@…

…frumania)

* added Kerberos support

* added Kerberos support

* reset package-lock
  • Loading branch information...
frumania authored and adlk committed Apr 12, 2019
1 parent 39d5696 commit a1950d79d72e2a64a8e872017093b5f873dd6fcd
Showing with 14 additions and 0 deletions.
  1. +14 −0 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.

0 comments on commit a1950d7

Please sign in to comment.
You can’t perform that action at this time.