Token Authentication for RESTful API: should the token be periodically changed?

后端 未结 10 1306
庸人自扰
庸人自扰 2020-12-02 03:20

I\'m building a RESTful API with Django and django-rest-framework.

As authentication mechanism we have chosen \"Token Authentication\" and I have already implemented

10条回答
  •  爱一瞬间的悲伤
    2020-12-02 04:01

    You can leverage http://getblimp.github.io/django-rest-framework-jwt

    This library is able generate token that has an expiration date

    To understand the difference between DRF default token and the token provide by the DRF take a look at:

    How to make Django REST JWT Authentication scale with mulitple webservers?

提交回复
热议问题