refac
Co-Authored-By: Pedro Machado <45520277+pedrofcm@users.noreply.github.com>
This commit is contained in:
1 parent
953432b5fe
commit
45fea34bd0
1 file changed
+10
-1
@@ -928,7 +928,16 @@ class OAuthClientManager:
|
|||||||
|
|
||||||
error_message = f'{error or ""} {error_description or ""}'.lower()
|
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(
|
log.warning(
|
||||||
f'OAuth client preflight detected invalid registration for {client_info.client_id}: {error} {error_description}'
|
f'OAuth client preflight detected invalid registration for {client_info.client_id}: {error} {error_description}'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user