Skip to content

Commit

Permalink
fix(auth): use redirect flow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Byron committed Jul 17, 2016
1 parent 2a2e7bf commit b6f5fc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/api/type-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gen/drive3-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion src/mako/cli/lib/engine.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
Expand Down

0 comments on commit b6f5fc6

Please sign in to comment.