From 4f868c2ef23c45282b57e6d4696f044978106643 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 12 Feb 2023 16:55:45 +0100 Subject: [PATCH] events: dont log oauth temporary model creation Signed-off-by: Jens Langhammer --- authentik/events/middleware.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/authentik/events/middleware.py b/authentik/events/middleware.py index a6df26d9a..9ecae5319 100644 --- a/authentik/events/middleware.py +++ b/authentik/events/middleware.py @@ -27,6 +27,7 @@ from authentik.lib.sentry import before_send from authentik.lib.utils.errors import exception_to_string from authentik.outposts.models import OutpostServiceConnection from authentik.policies.models import Policy, PolicyBindingModel +from authentik.providers.oauth2.models import AccessToken, AuthorizationCode, RefreshToken IGNORED_MODELS = ( Event, @@ -44,6 +45,9 @@ IGNORED_MODELS = ( OutpostServiceConnection, Policy, PolicyBindingModel, + AuthorizationCode, + AccessToken, + RefreshToken, )