【发布时间】:2015-01-16 08:49:45
【问题描述】:
如何通过 authtoken(而不是用户名/密码)进行身份验证,为特定用户使用 Django Rest Framework 可浏览 API?就像我在 Chrome 中为 POSTMAN 做的一样
谢谢
【问题讨论】:
标签: django-rest-framework django-authentication
如何通过 authtoken(而不是用户名/密码)进行身份验证,为特定用户使用 Django Rest Framework 可浏览 API?就像我在 Chrome 中为 POSTMAN 做的一样
谢谢
【问题讨论】:
标签: django-rest-framework django-authentication
检查modheader。它允许您为请求设置标头。您可以在此处设置令牌 authtoken,其中“名称”为“授权”,“值”为“令牌
【讨论】: