-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
CLI OAuth workflow never finishes with custom URI in redirect_url #13587
Comments
This was missed in #13366. |
Not sure how we should implement this, as manual copy & paste of authentication code 1 is deprecated . Footnotes
|
from the migration guide, the most matching option seems to be a loopback IP address -- so cyberduck temporarily listens on some localhost+port and that is given as the redirect_uri https://developers.google.com/identity/protocols/oauth2/native-app#redirect-uri_loopback |
Relates to #13476. |
We don't currently have an implementation using a listener on the loopback address as it is prone to man in the middle attacks. it is still feasible for desktop apps according to the documentation 1
Footnotes |
You should be able to work with Cyberduck CLI by connecting first with Cyberduck and then use |
Can it be done from another machine with cyberduck gui? If we installed duck in a unix system we can go for a walk with that workaround, it is useless in that case |
The problem occurs with onedrive as well. |
Also occurs with Dropbox (as mentioned in #14282). Seems like you can't really use the CLI on Linux for any service with an oauth flow since there is no GUI for Linux. |
Find attached 1 a connection profile for Dropbox that can be used with Cyberduck CLI using
Footnotes |
@dkocher, I appreciate your message, but I'm not sure how that is helpful. The oauth client secret is blank in there (and kinda has to be since any secret you gave me would be to your account! :) ). And, you can't complete the oauth flow to get the secret. I guess if you use a GUI on a windows machine with cyberduck (non-CLI) installed and connect on there you can find the profile on the machine and copy the key from there. At that point, you can just take that whole profile though, right? Where could we find that on a windows machine? Maybe I can just grab it from my windows installation (I dual boot with Linux and Windows). |
The OAuth Authorization Code Flow implemented by Dropbox does not require a client secret and is therefore intentionally left blank in the profile. |
Find attached 1 a connection profile for Microsoft OneDrive that can be used with Cyberduck CLI using
Footnotes |
Make sure to use the
to read saved tokens from the keychain or credentials manager. |
Find attached 1 a connection profile for Microsoft SharePoint that can be used with Cyberduck CLI using
Footnotes |
@dkocher Is this an updated profile from the one posted previously? |
Describe the bug
In the
duck
CLI, take a simple workflow such asduck -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:
duck -l googledrive:/
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):
Logs with
--debug
:foo.log
The text was updated successfully, but these errors were encountered: