Obsolete documentation or I'm missing something? #7962
Unanswered
NaturalBornCamper
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation's permissions section,
It says to use these settings to protect every endpoint:
However, this ends up with the error:
'IsAuthenticated' object has no attribute 'authenticate'
Is there something missing from the documentation that would make this work, or maybe it's not valid anymore?
Note that if I add this line in my
ViewSet
classes instead, it works perfectly:permission_classes = [IsAuthenticated]
Beta Was this translation helpful? Give feedback.
All reactions