From 1524efcf51f4d74b82528b18a899b45be1b169e2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 12 Aug 2021 17:21:53 +0200 Subject: [PATCH] core: fix expired tokens not being returned by API Signed-off-by: Jens Langhammer --- authentik/core/api/tokens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/api/tokens.py b/authentik/core/api/tokens.py index f707e037a..e8268ebe8 100644 --- a/authentik/core/api/tokens.py +++ b/authentik/core/api/tokens.py @@ -48,7 +48,7 @@ class TokenViewSet(UsedByMixin, ModelViewSet): """Token Viewset""" lookup_field = "identifier" - queryset = Token.filter_not_expired() + queryset = Token.objects.all() serializer_class = TokenSerializer search_fields = [ "identifier",