From d37bb19df2bb4b274ee69c8ed3e85056c216e8e0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 20 May 2016 18:26:48 +0200 Subject: [PATCH] feat(authentication): Use flow for installed apps That way, more complex APIs like drive and calendars will work without any (sometimes non-existing) workarounds. --- src/mako/cli/lib/engine.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mako/cli/lib/engine.mako b/src/mako/cli/lib/engine.mako index 7cfe9c796f..9f834ce089 100644 --- a/src/mako/cli/lib/engine.mako +++ b/src/mako/cli/lib/engine.mako @@ -38,7 +38,7 @@ use cmn::{InvalidOptionsError, CLIError, JsonTokenStorage, arg_from_str, writer_ use std::default::Default; use std::str::FromStr; -use oauth2::{Authenticator, DefaultAuthenticatorDelegate}; +use oauth2::{Authenticator, DefaultAuthenticatorDelegate, FlowType}; use serde_json as json; use clap::ArgMatches; @@ -122,7 +122,7 @@ impl<'n> Engine<'n> { JsonTokenStorage { program_name: "${util.program_name()}", db_dir: config_dir.clone(), - }, None); + }, Some(FlowType::InstalledInteractive)); let client = ${self._debug_client(DEBUG_FLAG) | indent_all_but_first_by(3)};