Skip to content

Add storage methods for upstream token refresh #3915

Closed

Description

@jhrozek

Summary

Add storage-layer methods that the upstream token refresh service will depend on.

What

  • UpdateUpstreamTokens on UpstreamTokenStorage — atomically updates token values for an existing session and resets the sliding-window TTL.
  • SessionRevoker interface with RevokeSessionByTSID — revokes all internal access and refresh tokens where the session's upstream session ID matches the given tsid. Implemented on MemoryStorage using the existing O(n) scan pattern.

Why

Foundation for the UpstreamTokenService. Separated from the service implementation to keep PRs focused.

Activity

  1. added
    enhancement
    size/S
    on Feb 20, 2026
  2. self-assigned this
    on Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

authenticationenhancementsize/S

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions