2

I am creating a django api system that works with django rest framework. I need an expiring token system that works on the below manner

We have three user roles

  • admin (token expire in 1 hour)
  • supervisor (token expire in 1 hour)
  • end user (token expire in 6 months)

i saw many third party add ons but that doesn't completely match my requirements

does any one find a package that can be tweaked or directly used to match my requirements?

Thanks Akhil

Akhil Sundar
  • 1,267
  • 5
  • 18
  • 32
  • Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. – Sayse Jan 18 '16 at 11:06
  • Do you really need to login admin the same approach as users? Maybe you can login with admin on admin-panel with session and cookie authentication instead of token and keep token for normal users – Serjik Jan 18 '16 at 13:04
  • [You probably don't want `TokenAuthentication`.](http://stackoverflow.com/q/27578726/359284) – Kevin Brown-Silva Jan 21 '16 at 00:33

0 Answers0