permission_classes = [IsAuthenticated] raises a 403 and not 401 #8958
Unanswered
golthmike
asked this question in
Potential Issue
Replies: 1 comment 1 reply
-
I think the behavior is dependent on the authentication class; which one are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Somehow using the permission class IsAuthenticated raises HTTP_403_FORBIDDEN and not HTTP_401_UNAUTHORIZED when users are not authenticated.
I believe the problem lies in the APIView's permission_denied method (code below).
Is this a bug or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions