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
Commit 6d4b9eb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(oidcjwt): report a canceled fetch for an unknown key ID as unavailable
A fetch for an unknown key ID starts a one-minute backoff even when the
caller cancels it. Within that backoff, Verify returned a plain "unknown
key ID", which the exchange maps to UNAUTHENTICATED, so a valid token with
a newly rotated key ID failed without a retry. Until a fetch completes,
wrap ErrSigningKeysUnavailable instead.
Signed-off-by: Anish Ramasekar <[email protected]>
// The issuer may have rotated this key in, and no fetch since
470
+
// says otherwise.
471
+
returnnil, true, fmt.Errorf("%w from %s: a fetch for an unknown key ID did not complete less than %v ago", ErrSigningKeysUnavailable, v.issuer, jwksRefreshRetryInterval)
472
+
}
461
473
returnnil, true, fmt.Errorf("unknown key ID %q", keyID)
0 commit comments