Skip to content

Persist OAuth device authorization refresh sessions - #620

Draft
zaniebot wants to merge 3 commits into
zb/auth-oidc-device-flowfrom
zb/auth-oidc-session-persistence
Draft

zaniebot wants to merge 3 commits into
zb/auth-oidc-device-flowfrom
zb/auth-oidc-session-persistence

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

OAuth device authorization currently discards refresh tokens, so authenticated package indexes require another interactive login after the access token expires. Persist refreshable session metadata alongside bearer credentials for the package service, preserve the configured issuer and client scope, and remove the complete session during logout so a subsequent change can refresh tokens transparently.

@astral-automations-bot astral-automations-bot Bot added the enhancement New feature or request label Aug 12, 2026
@zanieb
zanieb force-pushed the zb/auth-oidc-device-flow branch from f39bd86 to 6d6e296 Compare August 12, 2026 16:25
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration. risk:4 Major incorrectness or regressions with broad impact or difficult detection or recovery. 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 priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:4 Major incorrectness or regressions with broad impact or difficult detection or recovery. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants