At present, I want to use django as the server solution of ios client and tastypie to provide rest API.
The question now is how to authenticate users.
There are two situations:
1. Only one’s own client can access API. Is it simple and practical to use a key value to authenticate?
2. Some APIs require users to log in to access them, such as apikey.
I don’t know if I think this is right.
Thank you very much.
I am using the django rest framework.
User authentication uses Token
Api validation uses oauth