简体   繁体   中英

How do I use an Django Rest Framework with API key per account (not user)?

For Django, both tastypie and django-rest-framework seem to be focused on API authentication/authorization/throttling per user. I want to expose an API that is per account, where an account might have multiple users administrating it. What is the best way to approach this problem?

The django-rest-framework can achieve this. You don't have to throttling a user, these are options. You could have Basic Authentication for one account (username and password) that multiple user have access to.

You have Custom Authentication will any manner of options. Digest Authentication and much more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM