Search code examples
pythondjangoauthenticationtokentastypie

Tastypie and token authorization


I new in Django. I need to write API for using from mobile devices. I decided to use Tastypie framework for this. Everything is clear here but I can't find a fully described solution for authentication realization for such API. So here is a couple of questions:

1) How to create token authentication with django and tastypie 2) How to get token on client (curl request example is enough here)

Thanks


Solution

  • Tastypie Documentation has very clear explanation on how to implement custom authentication and authorization. Please refer to Authentication and Authorization