Skip to content

Commit d37bb19

Browse files
committed
feat(authentication): Use flow for installed apps
That way, more complex APIs like drive and calendars will work without any (sometimes non-existing) workarounds.
1 parent cb6679c commit d37bb19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mako/cli/lib/engine.mako

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use cmn::{InvalidOptionsError, CLIError, JsonTokenStorage, arg_from_str, writer_
3838
use std::default::Default;
3939
use std::str::FromStr;
4040
41-
use oauth2::{Authenticator, DefaultAuthenticatorDelegate};
41+
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, FlowType};
4242
use serde_json as json;
4343
use clap::ArgMatches;
4444
@@ -122,7 +122,7 @@ impl<'n> Engine<'n> {
122122
JsonTokenStorage {
123123
program_name: "${util.program_name()}",
124124
db_dir: config_dir.clone(),
125-
}, None);
125+
}, Some(FlowType::InstalledInteractive));
126126
127127
let client =
128128
${self._debug_client(DEBUG_FLAG) | indent_all_but_first_by(3)};

0 commit comments

Comments
 (0)