fix: oauth webhook

Co-Authored-By: Izhar Firdaus <480984+kagesenshi@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek 2025-01-08 00:38:00 -08:00
parent c79b975ad0
commit b3c7ecaea1

View File

@ -34,7 +34,7 @@ from open_webui.config import (
JWT_EXPIRES_IN,
AppConfig,
)
from open_webui.constants import ERROR_MESSAGES
from open_webui.constants import ERROR_MESSAGES, WEBHOOK_MESSAGES
from open_webui.env import WEBUI_SESSION_COOKIE_SAME_SITE, WEBUI_SESSION_COOKIE_SECURE
from open_webui.utils.misc import parse_duration
from open_webui.utils.auth import get_password_hash, create_token
@ -57,6 +57,7 @@ auth_manager_config.OAUTH_ALLOWED_ROLES = OAUTH_ALLOWED_ROLES
auth_manager_config.OAUTH_ADMIN_ROLES = OAUTH_ADMIN_ROLES
auth_manager_config.OAUTH_ALLOWED_DOMAINS = OAUTH_ALLOWED_DOMAINS
auth_manager_config.WEBHOOK_URL = WEBHOOK_URL
auth_manager_config.WEBHOOK_MESSAGES = WEBHOOK_MESSAGES
auth_manager_config.JWT_EXPIRES_IN = JWT_EXPIRES_IN