I'm already using build-in Django rest auth token and I plan to release an other api that will be called by an external integrations to call some action in my Django application. The issue is that I want to generate an other token for this external api call that must be separate from auth system (f.i. like Mandrill API Keys or Github Personal Access Token). Is it a good solution to generate api keys from Django rest framework authtoken Model ?
External api token:
- must never expire (it could expire in a session auth system)
- could be linked to user but not required (if linked to account)
- could be revoked and reactivated
Do you have any experience with releasing api keys ?
Is it any best practice recommended by Django Rest Framework ?
Thank you ;)