mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-31 00:21:44 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user