Browse Source

fix: oauth webhook

Co-Authored-By: Izhar Firdaus <480984+kagesenshi@users.noreply.github.com>
Timothy Jaeryang Baek 3 months ago
parent
commit
b3c7ecaea1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      backend/open_webui/utils/oauth.py

+ 2 - 1
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