Skip to content

CLI OAuth workflow never finishes with custom URI in redirect_url #13587

@soumith

Description

@soumith

Describe the bug

In the duck CLI, take a simple workflow such as duck -l googledrive:/.
The CLI opens a browser, which does the OAuth workflow.
Once authenticated, the expectation is that you either have the OAuth redirect the CLI or some code shows on browser that you can paste back into CLI.
However, the OAuth redirect_url is set to open the CyberDuck app, and does not respect that the duck CLI originated the OAuth workflow.

To Reproduce
Steps to reproduce the behavior:

  1. Go to command-line
  2. Run duck -l googledrive:/
  3. Try to finish authentication workflow

Expected behavior
You expect the workflow to finish.
Either the OAuth takes you back to CLI and CLI finishes auth, or you get instructions on how to manually finish the workflow.

Desktop (please complete the following information):

  • macOS 12.4
  • [Also checked] Linux Ubuntu 20.04

Logs with --debug :
foo.log

Metadata

Metadata

Assignees

Labels

cliCommand Line InterfacedropboxDropbox Protocol ImplementationgoogledriveGoogle Drive Protocol ImplementationgooglestorageGoogle Cloud Storage Protocol ImplementationonedriveOneDrive Protocol Implementationsharepoint

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions