什么样的django-tastypie身份验证最适合多客户端(jquery/android/iOS)应用



我使用基于django的后端开发REST Api应用程序,我使用tastype包开发Api资源。我想创建三个客户端(Android应用程序,iOS应用程序和在jquery框架ember.js中开发的网站),每个客户端都必须访问我的资源。

到目前为止,我有ember.js前端,http请求是通过SessionAuthentication使用默认的django/admin设置进行认证的。

我没有验证过程的经验,但我认为它不可能在Android或iOS应用程序中使用这个会话。

那么,由tastype提供的这些类中的哪一个(或者一个是不够的?)http://django-tastypie.readthedocs.org/en/latest/authentication.html

最适合我的应用程序?

我在类似的场景中工作过。使用MultiAuthentication与SessionAuthentication为web和ApiKeyAuthentication为IOS和android。

最新更新