mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
clean up stale pkce verifier cache entries in non-strict mode
This commit is contained in:
parent
17b5b90526
commit
faa8e29cd9
1 changed files with 4 additions and 0 deletions
|
|
@ -2678,6 +2678,10 @@ class SSOAuthenticationHandler:
|
|||
code=status.HTTP_401_UNAUTHORIZED,
|
||||
)
|
||||
else:
|
||||
# Best-effort cleanup: if a stale/corrupt entry is present, delete it
|
||||
# now so it does not linger until TTL expiry (resource hygiene).
|
||||
if cached_data is not None:
|
||||
await SSOAuthenticationHandler._delete_pkce_verifier(cache_key)
|
||||
verbose_proxy_logger.warning(
|
||||
"PKCE is enabled but verifier not found in cache for state '%s' "
|
||||
"(cache type: %s, raw data present: %s). "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue