From b3c7ecaea17fe6b9896bd2effb7efb5a8cb04464 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 8 Jan 2025 00:38:00 -0800 Subject: [PATCH] fix: oauth webhook Co-Authored-By: Izhar Firdaus <480984+kagesenshi@users.noreply.github.com> --- backend/open_webui/utils/oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index bfcf22034..a7f40971b 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -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