Co-Authored-By: Pedro Machado <45520277+pedrofcm@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek
2026-06-29 04:46:56 -05:00
co-authored by Pedro Machado
parent 953432b5fe
commit 45fea34bd0
+10 -1
View File
@@ -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}'
)