umutbozkurt/django-rest-framework-mongoengine

How do I use auth token?

erdenezul opened this issue · 4 comments

How do I use auth token?

Hi, @erdenezul!

You pass it from frontend to your backend in Authorization header on each request to associate this request with particular user as described in TokenAuthentication documentation.

@BurkovBA I am using django_mongoengine and have no idea to support it.

@erdenezul You can just follow this example: https://github.com/BurkovBA/django-rest-framework-mongoengine-example.

It has a users app that implements TokenAuthentication using mongoengine backend.

@BurkovBA thanks for your help