I am using JSONWebTokenAuthentication.
Yes. I got AnonymousUser by default.
I have solved the problem. Thank you.

On Mon, Dec 2, 2019 at 4:29 PM rohit jaiswal <[email protected]>
wrote:

> Can you tell which authentication system you are using? If none or if you
> failed to authenticate then by default you will be getting an Anonymous
> user instance.
>
> On Sun 1 Dec, 2019, 12:36 AM Yery cs, <[email protected]> wrote:
>
>> Hello, How are you?
>>
>> I am suck with Django Rest framework issue.
>>
>> I am trying to use `request.user` in Django Rest Framework middleware.
>>
>> It returns AnonymousUser and I failed.
>>
>> I have searched and searched but there is no answer.
>>
>> I wonder if this is Django Rest framework issue.
>>
>> Who faced this issue? And did you solve?
>>
>> Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-rest-framework/4c08081d-0706-4b70-b252-63f8ca8f7d17%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-rest-framework/4c08081d-0706-4b70-b252-63f8ca8f7d17%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/CAD1abLxtDke7DV%2BLhsxU5qOaiUdSvaprr7q0%2Bau2C%2BcmbmFiCg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-rest-framework/CAD1abLxtDke7DV%2BLhsxU5qOaiUdSvaprr7q0%2Bau2C%2BcmbmFiCg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CALCmTPHZub9xkU3qSdznCOU_9sxFinQM-JQtFkwTMVSR-2Zo-A%40mail.gmail.com.

Reply via email to