Skip to content

Refresh and rotate persisted OAuth access tokens - #621

Draft
zaniebot wants to merge 1 commit into
zb/auth-oidc-session-persistencefrom
zb/auth-oidc-refresh-tokens
Draft

zaniebot wants to merge 1 commit into
zb/auth-oidc-session-persistencefrom
zb/auth-oidc-refresh-tokens

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

OAuth device authorization sessions can outlive their initial access tokens, but replacing those tokens requires a refresh exchange and careful coordination when providers rotate refresh tokens. Add a provider-neutral OAuth refresh exchange, select the most specific package service, and hold the existing credential-store lock while reloading and replacing persisted access and refresh tokens so concurrent uv processes cannot reuse a consumed token.

@astral-automations-bot astral-automations-bot Bot added the internal A refactor or improvement that is not user-facing label Aug 12, 2026
@zanieb
zanieb force-pushed the zb/auth-oidc-session-persistence branch from 6fe0206 to 7a2152e Compare August 12, 2026 16:27
@zanieb
zanieb force-pushed the zb/auth-oidc-refresh-tokens branch from c02e93c to 4dd8ee3 Compare August 12, 2026 16:29
@zanieb
zanieb force-pushed the zb/auth-oidc-refresh-tokens branch from 4dd8ee3 to 7f91236 Compare August 12, 2026 17:16
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context. enhancement New feature or request risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request internal A refactor or improvement that is not user-facing priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. size:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants