From 45fea34bd0c8ce54b0822499c40e3e6964220354 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 29 Jun 2026 04:46:56 -0500 Subject: [PATCH] refac Co-Authored-By: Pedro Machado <45520277+pedrofcm@users.noreply.github.com> --- backend/open_webui/utils/oauth.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index f5d861af0c..5b931222de 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -928,7 +928,16 @@ class OAuthClientManager: error_message = f'{error or ""} {error_description or ""}'.lower() - if any(keyword in error_message for keyword in ('invalid_client', 'invalid client', 'client id')): + if any( + keyword in error_message + for keyword in ( + 'invalid_client', + 'invalid client', + 'client id', + 'redirect_uri', + 'redirect uri', + ) + ): log.warning( f'OAuth client preflight detected invalid registration for {client_info.client_id}: {error} {error_description}' )