From 39ef9cc38465a8442859d2d8dc9bc218212765e4 Mon Sep 17 00:00:00 2001 From: Skylar Saveland Date: Sun, 16 Oct 2022 10:57:50 -0700 Subject: [PATCH] Use api_settings.DEFAULT_AUTHENTICATION_CLASSES for LogoutAllView --- knox/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knox/views.py b/knox/views.py index 7a6b5719..b272ead9 100644 --- a/knox/views.py +++ b/knox/views.py @@ -91,7 +91,7 @@ class LogoutAllView(APIView): Log the user out of all sessions I.E. deletes all auth tokens for the user ''' - authentication_classes = (TokenAuthentication,) + authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES permission_classes = (IsAuthenticated,) def post(self, request, format=None):