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

No prompt for authorization when connecting to different account #10634

Closed
cyberduck opened this issue Feb 25, 2019 · 4 comments
Closed

No prompt for authorization when connecting to different account #10634

cyberduck opened this issue Feb 25, 2019 · 4 comments
Assignees
Labels
bug dropbox high priority worksforme
Milestone

Comments

@cyberduck
Copy link
Collaborator

cyberduck commented Feb 25, 2019

481f357 created the issue

note: similar to closed ticket # 10562

I have two Dropbox accounts A and B. For the first time I use Cyberduck for a connection. I create a connection for account A and get the OAuth string back and can access this account. I disconnect account A.

Now I create a new connection for B and enter the other username (email), then click Connect button.

-Error* I get directly connected to account A, I never get to see the Dropbox authorization webpages for account B and have no new OAuth string to enter. Cyberduck does not ask for such.


ETA. sorry I cannot remove duplicate PNG files of "rth new profile"


Attachments

@cyberduck
Copy link
Collaborator Author

cyberduck commented Mar 12, 2019

@dkocher commented

I cannot reproduce this issue with two bookmarks for Dropbox set to different accounts by distinct username settings.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Mar 13, 2019

481f357 commented

Replying to [comment:3 dkocher]:

I cannot reproduce this issue with two bookmarks for Dropbox set to different accounts by distinct username settings.

I can now better document this bug - it's for real!

After your reply I tried one more to make a new connection for account "B". To my great surprize the operation proceeded right thru the authorization and completed with seeing the correct Dropbox account.

Using again the New Connection and entering the username to connect to a different Dropbox account I again get that weird redirection to a wrong Dropbox account of listed in the booksmarks (and may have been logged in before in the same Cyberduck session).

It all looks suspiciously like an initialization error, so I exit Cyberduck and relaunch it.Again I perceive the situation as originally described. To note once more, connection attempt are thru the New Connection button, not a bookmark.

A new side effect observed:

I try to make a New Connection to Dropbox using a fake account name (funny-at-nowhere-dot-net). Not unexpectedly I don't get to see any Dropbox interaction for verification. BUT to my surprize Cyberduck offers me an Authorization Code on https://cyberduck.io/oauth/?state=kUg9Vb8l&code=, at the same time not opening the associated dialog to copy the string into it.

-Question:* is Cyberduck handling invalid account verifications correctly?

I was wondering what may have been the difference from the time original report and the successful connection following the feedback. Also keeping in mind as what I perceive to be an initialization error. I then remember that Windows DLLs can initialize and retain data between invocations. The Cyberduck installation directory reveals the use of DLLs (no surprize there of course).

My attempt to prove my case: I create a fresh Dropbox account with another available valid username / email address. Then I reboot my Notebook. Run Cyberduck and make a New Connection to this new Dropbox account. Works as intended!

-Conclusion:* please check Cyberduck components, especially the Dropbox connection stuff, for correct handling of reentry / reinvocation and data retention / initialization.

Regards - Richard

@cyberduck
Copy link
Collaborator Author

cyberduck commented Mar 17, 2019

@dkocher commented

Replying to [comment:4 rth10260]:
To me it looks like you do not log out the Dropbox account A after attempting to get an authorization code for account B. Before opening the second connection, make sure to log out from your Dropbox account in the web browser, otherwise the authentication code obtained will be linked to the account you originally logged in.

@cyberduck
Copy link
Collaborator Author

cyberduck commented Jun 4, 2019

@dkocher commented

Ticket retargeted after milestone deleted

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug dropbox high priority worksforme
Projects
None yet
Development

No branches or pull requests

2 participants