diff --git a/src/paperless/adapter.py b/src/paperless/adapter.py index f8517a3aa..3f00ec0a9 100644 --- a/src/paperless/adapter.py +++ b/src/paperless/adapter.py @@ -137,3 +137,25 @@ class CustomSocialAccountAdapter(DefaultSocialAccountAdapter): user.save() handle_social_account_updated(None, request, sociallogin) 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, + )