-
Notifications
You must be signed in to change notification settings - Fork 669
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
Autostart on the client breaks transparent OAuth's token refresh #6522
Comments
I guess that's a duplicate of this one: Not much we can do about it.... maybe add some seconds of timer on first attempt and do another attempt... |
(We have |
Plasma don't understand X-GNOME-Autostart-Delay, But maybe we could try to use |
Additionally yes. Viel hilft Viel ;-) |
Not sure if this is the same issue or another one: OS: macOS 10.13.5, Client: owncloud 2.4.1 (build 9367), Server: 10.0.8.5 |
@cleverer thanks for reporting! Yeah, it might be a different form of the same issue. Just to be clear, you don't re-authorize the client in the browser right? Just reopening the client makes it work? That might point at #6357 as real cause: the first unauthorized call races against the function that fetches the credentials from the keychain service. @ogoffart might be worth taking a look at this. Will try to reproduce |
@SamuAlfageme Yes, I'm just closing the browser windows. Of course sync also continues normally when re-authorizing. I'm happy to open a new issue or contribute in any way I can, but I'm a bit unfamiliar with ownclouds workflows… |
This can happen when the client is started and the internet connection was not enabled. Then we would fetch the credentials, but we would no do the refresh token step (because network is down). So next time we try to connect, we would also not refresh the token because the credentials are not marked as 'ready' Reported in #6522 (comment)
This can happen when the client is started and the internet connection was not enabled. Then we would fetch the credentials, but we would no do the refresh token step (because network is down). So next time we try to connect, we would also not refresh the token because the credentials are not marked as 'ready' Reported in #6522 (comment)
This can happen when the client is started and the internet connection was not enabled. Then we would fetch the credentials, but we would no do the refresh token step (because network is down). So next time we try to connect, we would also not refresh the token because the credentials are not marked as 'ready' Reported in #6522 (comment) (cherry picked from commit 4cc0539)
If there are still issues with 2.4.2 coming out really soon now™ please open a new issue here. |
This can happen when the client is started and the internet connection was not enabled. Then we would fetch the credentials, but we would no do the refresh token step (because network is down). So next time we try to connect, we would also not refresh the token because the credentials are not marked as 'ready' Reported in owncloud/client#6522 (comment)
Last Friday I was debugging an apparent OAuth2 issue with @Helios07 that turned out to be a problem with the auto-start feature of the client.
When auto-start is enabled, the client seems to be starting before the keychain/keyring service on the OS and therefore, without access to the stored refresh token. This causes the client to start the authorize workflow from scratch.
We detected this behavior on a couple of Linux distros (Ubuntu and Fedora) - but it might not limit to Linux only.
Actual behavior
Client pops up the "Authorize Desktop client..." browser window.
Expected behavior
Delay the client login up until the password-store service is (back) online. See also #6440
Steps to reproduce
The text was updated successfully, but these errors were encountered: