refac: oauth session management

This commit is contained in:
Timothy Jaeryang Baek committed 2026-02-20 16:49:43 -06:00
1 parent f5e5632afc
commit ae05586fda
3 files changed
+24 -4

No files matched your search

+6
View File
@@ -557,6 +557,12 @@ OAUTH_SESSION_TOKEN_ENCRYPTION_KEY = os.environ.get(
"OAUTH_SESSION_TOKEN_ENCRYPTION_KEY", WEBUI_SECRET_KEY
)
# Maximum number of concurrent OAuth sessions per user per provider
# This prevents unbounded session growth while allowing multi-device usage
OAUTH_MAX_SESSIONS_PER_USER = int(
os.environ.get("OAUTH_MAX_SESSIONS_PER_USER", "10")
)
# Token Exchange Configuration
# Allows external apps to exchange OAuth tokens for OpenWebUI tokens
ENABLE_OAUTH_TOKEN_EXCHANGE = (