fix(auth): use redirect flow

The interactive flow requires to paste a code back into the
command-line, which does only work when it's cat'ed, but not
if it is pasted.

This should let it handle everything internally, which is
way more user-friendly.
This commit is contained in:
Sebastian Thiel
2016-07-17 19:31:13 +02:00
parent 2a2e7bfc9a
commit b6f5fc6eb3
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ make:
- source: main.rs
output_dir: src
cargo:
build_version: "0.3.5"
build_version: "0.3.6"
keywords: [cli]
is_executable: YES
dependencies:

View File

@@ -2947,7 +2947,7 @@ impl<'n> Engine<'n> {
JsonTokenStorage {
program_name: "drive3",
db_dir: config_dir.clone(),
}, Some(FlowType::InstalledInteractive));
}, Some(FlowType::InstalledRedirect(54324)));
let client =
if opt.is_present("debug") {

View File

@@ -122,7 +122,7 @@ impl<'n> Engine<'n> {
JsonTokenStorage {
program_name: "${util.program_name()}",
db_dir: config_dir.clone(),
}, Some(FlowType::InstalledInteractive));
}, Some(FlowType::InstalledRedirect(54324)));
let client =
${self._debug_client(DEBUG_FLAG) | indent_all_but_first_by(3)};