diff options
author | Marcel Törpe <info@frumania.com> | 2019-04-12 09:38:24 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-04-12 09:38:24 +0200 |
commit | a1950d79d72e2a64a8e872017093b5f873dd6fcd (patch) | |
tree | 56e7222a49fd3f0f668a732148dec0b24fd8efc3 | |
parent | update jsonwebtoken to v8.5.1 (diff) | |
download | ferdium-app-a1950d79d72e2a64a8e872017093b5f873dd6fcd.tar.gz ferdium-app-a1950d79d72e2a64a8e872017093b5f873dd6fcd.tar.zst ferdium-app-a1950d79d72e2a64a8e872017093b5f873dd6fcd.zip |
feat(App): Added Kerberos Support via Command Line Switches (#1331) (@frumania)
* added Kerberos support
* added Kerberos support
* reset package-lock
-rw-r--r-- | src/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
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 = () => { | |||
305 | }); | 305 | }); |
306 | }; | 306 | }; |
307 | 307 | ||
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 | |||
308 | // This method will be called when Electron has finished | 322 | // This method will be called when Electron has finished |
309 | // initialization and is ready to create browser windows. | 323 | // initialization and is ready to create browser windows. |
310 | // Some APIs can only be used after this event occurs. | 324 | // Some APIs can only be used after this event occurs. |