DRF 官網(wǎng) token 部分
stackoverflow 中兩個關(guān)于 DRF 的問題
Get Authenticated user from token in Django Rest Framework
Django Rest Framework Token Authentication
修改 DRF token 的過期時間
改進(jìn)django rest framework中的token驗證,并加入cache
Token Authentication for RESTful API: should the token be periodically changed?
兩篇關(guān)于 DRF token 的博客
How to use Django REST Framework's Token Based Authentication
How to Implement Token Authentication with Django REST Framework
后面這個作者還寫了一系列的文章(目錄是:Django Solutions to Django Problems),涉及到:
- 運用 DRF 自帶的 Token authentication
- 運用 DRF 自帶的 Session authentication
- 重置 TokenAuthentication Backend 來查看過期 Token
- 定制 DRF 的 authentication
- 運用 DRF 的 OAuth2