[Answer]-Restrict tastypie API to my app

1đź‘Ť

âś…

You could just implement your own Authentication object for your Resources to use. They’ve got an example of this at the bottom of the doc page on tastypie authentication.

Of course, it depends on how much “protection” you’re looking for. By using a custom authenticator you could check for certain request headers, a certain user-agent, or similar – but none of these will stop anyone with 2 minutes and a packet sniffer.

👤cpf

Leave a comment