Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropbox callback does not work via CLI #14282

Closed
JoepdeJong opened this issue Feb 25, 2023 · 2 comments
Closed

Dropbox callback does not work via CLI #14282

JoepdeJong opened this issue Feb 25, 2023 · 2 comments
Assignees
Labels
cli Command Line Interface enhancement

Comments

@JoepdeJong
Copy link

JoepdeJong commented Feb 25, 2023

Describe the bug
It seems not possible to retrieve an OAuth2 token on a Linux machine that has only CLI installed. The redirect uri is of course not able to open the program, but the prompt also does not allow to manually type a code.

To Reproduce
Steps to reproduce the behavior:

  1. run duck --list dropbox:/ in terminal, this outputs something like:
https://www.dropbox.com/1/oauth2/authorize?client_id=XXXX&code_challenge=XXXX&code_challenge_method=S256&redirect_uri=x-cyberduck-action:oauth&response_type=code&state=XXXX
Open web browser to authenticate and obtain an authorization code
  1. go on my main machine to the url
  2. Accept the terms and copy the redirect-uri: x-cyberduck-action:oauth?code=XXXXX&state=XXXXX
  3. There is no way to paste the code in the terminal shell directly, and the x-cyberduck-action:oauth also does not work when only a CLI is installed.

Expected behavior
After Open web browser to authenticate and obtain an authorization code an input prompt should start which allows typing the code manually

Desktop (please complete the following information):

  • OS: ubuntu
    • Version 22.04
@AliveDevil
Copy link
Contributor

@dkocher Add OAuth prompt handle so that pasting the x-cyberduck-action automatically retrieves all required information?

Joep, copying the redirect URI and only using the X part after code= should work, though isn't elegant and requires opening up some text editing application.

@AliveDevil AliveDevil added enhancement cli Command Line Interface labels Feb 27, 2023
@dkocher
Copy link
Contributor

dkocher commented Feb 27, 2023

Duplicate for #13587.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command Line Interface enhancement
Projects
None yet
Development

No branches or pull requests

3 participants