umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 166 forks source link

How do I use auth token? #247

Closed erdenezul closed 6 years ago

BurkovBA commented 6 years ago

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.

erdenezul commented 6 years ago

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

BurkovBA commented 6 years ago

@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.

erdenezul commented 6 years ago

@BurkovBA thanks for your help