Thursday, June 2, 2011

Re: How to create user on mobile app for Django site?

On May 31, 2011, at 4:35 AM, Ivo Brodien wrote:

> What is the correct way to do the following:
>
> 1) Mobile App from which a user can create a user/profile on the Django site
> 2) Allow authenticated users to create on the site and query personalized data from the site
>
> This is what I guess I have to do:
>
> 1) Create a REST API (probably with e.g. django-piston) on at the Django site for creation and authentication
>
> How would I authenticate against the Django site?
>
> When I use URL connections from the mobile app do I always have to send the credentials or can the Django site identify me by storing session cookies on the client just like as if the mobile app would be a browser?
>

We've managed app authentication a few ways, depending on whether the end-user needs to be aware of the authentication or not.

In some cases, we've used django-jsonrpc (sends username and password with each request, no session cookies) and for others, we've used piston with basic authentication and ASIHTTPRequest.

Currently, we are looking at tastypie, piston is currently bogged down with a who will maintain it and where debate.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate