Skip to content

Add storage methods for upstream token refresh #3915

@jhrozek

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions