open-webui/backend
root 0fe0fcff4d fix: Add proactive OAuth token refresh for MCP sessions
Add a background task that periodically refreshes OAuth tokens before
they expire, preventing users from having to re-authenticate when MCP
OAuth tokens (like Notion) expire after 1 hour.

Changes:
- Add get_expiring_sessions() method to OAuthSessionTable to query
  sessions expiring within a specified time window
- Enhance OAuthClientManager._perform_token_refresh() to handle
  unregistered MCP clients by discovering OAuth info from stored
  tool server config
- Add periodic_oauth_token_refresh() background task that runs every
  5 minutes and refreshes tokens expiring within 10 minutes
- Start the background task in app lifespan with proper cleanup

Fixes #19809
2025-12-08 18:29:07 +11:00
..
data
open_webui fix: Add proactive OAuth token refresh for MCP sessions 2025-12-08 18:29:07 +11:00
.dockerignore
.gitignore refac 2024-09-06 04:59:20 +02:00
dev.sh feat: add Feishu OAuth integration 2025-09-12 14:09:32 +08:00
requirements-min.txt BREAKING/CAUTION: chore: chromadb dep bump - needs testing (#19780) 2025-12-06 08:03:04 -05:00
requirements.txt chore: bump pymilvus (#19773) 2025-12-06 08:03:42 -05:00
start.sh 0.6.33 (#18118) 2025-10-07 16:20:27 -05:00
start_windows.bat fix: windows start script 2025-06-27 15:46:38 +04:00