From 9c31ea1aa6187266a94a0dbc4d7aa6aa88e71e14 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 e822c02c3..d8079d1ae 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",