Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks Frank, will look into this set of openid providers. Pratik On Wed, Mar 13, 2013 at 4:28 PM, Frank Bieniek < frank.bien...@produktlaunch.de> wrote: > Hi Pratik, > we have glued something together for openid. > > git+git://github.com/openid/python-openid.git@7d65da5987 > django-tastypie >

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Frank Bieniek
Hi Pratik, we have glued something together for openid. git+git://github.com/openid/python-openid.git@7d65da5987 django-tastypie django-guardian hg+http://bitbucket.org/jezdez/django_openid_provider/@746ab34a974a django-social-auth oauth2 # iptools/netaddress tools for the api access based on ip

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thanks for reminding about OAuth2. The API use case I'm currently dealing with includes authenticating my own clients with my server, not third party apps. Hence Oauth2 seems a bit weird here in terms of usability since it will ask user for permission to access the backend service when they visit

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Alec Taylor
NO! - THERE IS RESTFUL METHOD OF AUTHENTICATION! Use OAuth2. RFC6749. There are a bunch of server implementations for Django. Use one of them. On Wed, Mar 13, 2013 at 8:06 PM, Pratik Mandrekar wrote: > Thank you for the response! > > As Nick & Jani have pointed out,

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-13 Thread Pratik Mandrekar
Thank you for the response! As Nick & Jani have pointed out, I figured out that there is no RESTFul way for authentication. Neither is there one good way all clients could access the api i.e Browsers can use Session Based Authentication while Mobile clients are better of using API based/digest

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Nick Apostolakis
On 12/03/2013 01:06 μμ, Jani Tiainen wrote: There is not exactly "RESTful way to authenticate", since after all REST is just an architecture to represent different resources and thus it's totally agnostic what comes to authentications and such. Simplest one (if you're use HTTP(S)) is to use

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Jani Tiainen
10.3.2013 22:54, Pratik Mandrekar kirjoitti: Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user has been

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Alec Taylor
You'll want to setup an OAuth2 server for this. On 11/03/2013 7:54 AM, "Pratik Mandrekar" wrote: > Hello, > > I'm trying to figure out what would be the best way to integrate django > with ember.js/backbone from the user authentication point of view. I'm > using

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Jaimin Patel
Not sure about your first questions. For right way to authenticate is solely depends on your requirement. If you don't care about who is using the data > you can turn off the data, if you want only your application users to use it > you can use DjangoAuthentication if you want minimal security

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Silviu Dicu
Tastypie supports custom authentication. You don't have to use the api_key. I'm not sure what is the best way to do it however :) On Sunday, 10 March 2013 16:54:10 UTC-4, Pratik Mandrekar wrote: > > Hello, > > I'm trying to figure out what would be the best way to integrate django > with

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-11 Thread Nick Apostolakis
On 10/03/2013 10:54 μμ, Pratik Mandrekar wrote: Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user

Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-10 Thread Pratik Mandrekar
Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user has been authenticated using the Session based