Skip to content

Commit

Permalink
feat(App): Added Kerberos Support via Command Line Switches (#1331) (@…
Browse files Browse the repository at this point in the history
…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 a1950d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a1950d7

Please sign in to comment.