mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
Chore: add some output of social login errors
This commit is contained in:
parent
6f3451bce0
commit
051c786b1b
1 changed files with 22 additions and 0 deletions
|
|
@ -137,3 +137,25 @@ class CustomSocialAccountAdapter(DefaultSocialAccountAdapter):
|
||||||
user.save()
|
user.save()
|
||||||
handle_social_account_updated(None, request, sociallogin)
|
handle_social_account_updated(None, request, sociallogin)
|
||||||
return user
|
return user
|
||||||
|
|
||||||
|
def on_authentication_error(
|
||||||
|
self,
|
||||||
|
request,
|
||||||
|
provider_id,
|
||||||
|
error,
|
||||||
|
exception,
|
||||||
|
extra_context,
|
||||||
|
):
|
||||||
|
"""
|
||||||
|
Just log errors and pass them along.
|
||||||
|
"""
|
||||||
|
logger.warning(
|
||||||
|
f"Social authentication error for provider `{provider_id}`: {error!s} ({exception!s})",
|
||||||
|
)
|
||||||
|
return super().on_authentication_error(
|
||||||
|
request,
|
||||||
|
provider_id,
|
||||||
|
error,
|
||||||
|
exception,
|
||||||
|
extra_context,
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue