feat: ENABLE_OAUTH_TOKEN_EXCHANGE

This commit is contained in:
Timothy Jaeryang Baek
2026-01-23 04:25:39 +04:00
parent 52c73390f8
commit 655420fd25
2 changed files with 148 additions and 0 deletions
+6
View File
@@ -523,6 +523,12 @@ OAUTH_SESSION_TOKEN_ENCRYPTION_KEY = os.environ.get(
"OAUTH_SESSION_TOKEN_ENCRYPTION_KEY", WEBUI_SECRET_KEY
)
# Token Exchange Configuration
# Allows external apps to exchange OAuth tokens for OpenWebUI tokens
ENABLE_OAUTH_TOKEN_EXCHANGE = (
os.environ.get("ENABLE_OAUTH_TOKEN_EXCHANGE", "False").lower() == "true"
)
####################################
# SCIM Configuration
####################################