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 repos: Use the new "refresh token" OAuth flow #208

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

amberin
Copy link
Member

@amberin amberin commented Apr 1, 2024

As indicated here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-SDK-issues-with-short-lived-token/m-p/508693/highlight/true#M25109.

  • Store the DbxCredential object in JSON form in app preferences.
  • Store requestConfig as a property, since it is now needed in many places.
  • Write a mock credential to preferences when preparing for Dropbox-related tests.
  • Remove unused updating of Dropbox token in SyncTest.
  • Clean up some unused imports.

All tests in the "repos" directory (and all other tests) are now passing. Before this change, the access token used by Orgzly would expire within a few hours, since only short-lived tokens are now handed out when using the old OAuth flow.

As indicated here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-SDK-issues-with-short-lived-token/m-p/508693/highlight/true#M25109.

- Store the DbxCredential object in JSON form in app preferences.
- Store requestConfig as a property, since it is now needed in many
  places.
- Write a mock credential to preferences when preparing for
  Dropbox-related tests.
- Remove unused updating of Dropbox token in SyncTest.
- Clean up some unused imports.

All tests in the "repos" directory are now passing.
@amberin amberin linked an issue Apr 1, 2024 that may be closed by this pull request
@amberin amberin merged commit 4221bb2 into orgzly-revived:master Apr 3, 2024
1 check passed
@amberin amberin deleted the dropbox-refresh-token branch April 3, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropbox token keeps expiring
2 participants