From f6ab241219e22c1b3c0e846f46d1d339a71f4888 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 7 Aug 2021 21:35:17 +0200 Subject: [PATCH] providers/oauth2: fix accessing undefined variable Signed-off-by: Jens Langhammer --- authentik/providers/oauth2/views/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/oauth2/views/token.py b/authentik/providers/oauth2/views/token.py index bf40dc3e0..c8c9e5bcb 100644 --- a/authentik/providers/oauth2/views/token.py +++ b/authentik/providers/oauth2/views/token.py @@ -186,7 +186,7 @@ class TokenView(View): try: self.provider = OAuth2Provider.objects.get(client_id=client_id) except OAuth2Provider.DoesNotExist: - LOGGER.warning("OAuth2Provider does not exist", client_id=self.client_id) + LOGGER.warning("OAuth2Provider does not exist", client_id=client_id) raise TokenError("invalid_client") if not self.provider: