mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-01 09:03:39 +01:00
feat(authentication): Use flow for installed apps
That way, more complex APIs like drive and calendars will work without any (sometimes non-existing) workarounds.
This commit is contained in:
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user