mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Base landed the native CLI OAuth + PKCE login, which added its own token storage and a silent refresh that wrote the key straight to token.json. This branch had already moved that secret into the OS keychain, so the two had to be joined rather than picked between. auth.py now keeps one pair of record helpers, load_token and save_token, that read and write through the vault and hand the PKCE layer the plain mapping it works with. fresh_api_key and revoke_stored_credential get vault-bound save and reload callables, so a renewed key is stored in the keychain like any other and a sibling process's rotation is still seen. login goes through _replace_stored_token on both paths, so the credential it replaces is revoked on the proxy and the user is still told where the new one landed. logout revokes first, then reports what the clear actually managed to do. |
||
|---|---|---|
| .. | ||
| cli | ||
| test_chat.py | ||
| test_client.py | ||
| test_credentials.py | ||
| test_http_client.py | ||
| test_http_commands.py | ||
| test_keys.py | ||
| test_model_groups.py | ||
| test_models.py | ||
| test_users.py | ||