mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-07-03 02:53:02 +03:00
KnoxTokenAuthentication won't exist unless REST_USE_KNOX
This commit is contained in:
parent
cc37193efd
commit
cb3c859919
|
@ -156,6 +156,7 @@ class LogoutAllView(APIView):
|
||||||
|
|
||||||
Accepts/Returns nothing.
|
Accepts/Returns nothing.
|
||||||
"""
|
"""
|
||||||
|
if getattr(settings, 'REST_USE_KNOX', False):
|
||||||
authentication_classes = (KnoxTokenAuthentication,)
|
authentication_classes = (KnoxTokenAuthentication,)
|
||||||
permission_classes = (IsAuthenticated,)
|
permission_classes = (IsAuthenticated,)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user