You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix upstream token storage TTL for refresh-token-bearing entries #3914
StoreUpstreamTokens sets the storage entry's TTL to the upstream access token's ExpiresAt (~1h). This garbage-collects the refresh token along with the expired access token, even though the refresh token may be valid for 30+ days.
What
Change StoreUpstreamTokens TTL logic:
If the entry has a refresh token: TTL = now + 2h (sliding inactivity window)
If no refresh token: TTL = ExpiresAt (unchanged)
Add DefaultUpstreamInactivityTimeout constant.
Why
This is a prerequisite for upstream token refresh — without it, there's nothing left to refresh by the time anyone tries.
Activity
Return 401 with WWW-Authenticate for expired upstream tokens
Return 401 with WWW-Authenticate for expired upstream tokens (#3984)
Return 401 with WWW-Authenticate for expired upstream tokens (#3984)