-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Hi, thanks for this library!
Is there any reason why logoutall can't use all of the default auth classes by default? Seems like it works fine:
from rest_framework.settings import api_settings
from knox.views import LogoutAllView as KnoxLogoutAllView
class LogoutAllView(KnoxLogoutAllView):
authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES
urlpatterns = urlpatterns + [
path('api/token/logoutall/', LogoutAllView.as_view(), name="knox_logout"),
path('api/token/', include('knox.urls')),
It seems one of the best reasons to logoutall
might be that you lost all of your tokens and just want to start over. So, basic or session auth would be good for this. I think the individual logout needs the token to know which token to delete though? Therefore I think it makes sense to leave authentication_classes = (TokenAuthentication,)
for that one
Metadata
Metadata
Assignees
Labels
No labels