Skip to content

Expose cached OAuth2 access token snapshots - #631

Merged
AndreyVMarkelov merged 3 commits into
mainfrom
andreymarkelov/oauth2-access-token-snapshot
Nov 13, 2026
Merged

AndreyVMarkelov merged 3 commits into
mainfrom
andreymarkelov/oauth2-access-token-snapshot

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Add get_access_token_snapshot() to Dropbox and DropboxTeam so applications can persist and reuse cached access tokens and expiration without refreshing or making HTTP requests. Snapshots are immutable, redact tokens in ordinary text/logging, and never expose refresh credentials.

Token/expiration pairs are published atomically; failed refreshes preserve the cache, and locks never span HTTP requests. Clones retain independent caches. Includes README usage and regression tests; no generated code or dependencies changed.

Validation: 180 unit tests pass on Python 3.11, 3.12, and 3.14. Ruff lint, changed-file formatting, whitespace, package/metadata, and documentation checks pass.

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.35%. Comparing base (6150925) to head (0c5c6b6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #631   +/-   ##
=======================================
  Coverage   65.35%   65.35%           
=======================================
  Files          36       36           
  Lines       69651    69675   +24     
  Branches     5018     5019    +1     
=======================================
+ Hits        45518    45537   +19     
- Misses      23879    23886    +7     
+ Partials      254      252    -2     
Flag Coverage Δ
integration 64.35% <81.48%> (-0.02%) ⬇️
unit 65.13% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndreyVMarkelov
AndreyVMarkelov merged commit 748d76a into main Nov 13, 2026
35 checks passed
@AndreyVMarkelov
AndreyVMarkelov deleted the andreymarkelov/oauth2-access-token-snapshot branch November 13, 2026 23:12
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.

2 participants