Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RESTFUL web services consumed by web and native mobile apps with authentication in python using django framework

I have to write RESTFUL web-services with authentication in python using django framework which will be consumed by web based clients and mobile native apps (Android and IOS).

the simple example would be that user will log in using email and password, he fetches the api key and stores it on the mobile device and then use this api key for consuming further api's instead of giving user credentials again and again.

I am thinking of using TASTYPIE or Django piston for writing RESTFUL services but please suggest otherwise if you know any better solution.

But my main focus is on the authentication part. Should I use OAuth for implementing authentication or a simple Basic authentication over ssl with api-key in response would be enough.

like image 373
Muneeb Ahmad Avatar asked Aug 18 '12 01:08

Muneeb Ahmad


1 Answers

You can write RESTful web service with the python standard library, third party libraries are not absolutely necessary.

You should read more about what defines a RESTful service, and start implementing it yourself.

For what it's worth, I use cherrypy as a light framework in a few projects. It's simple and easy to use. The website even has a section about how to implement REST in your application.

like image 122
Aesthete Avatar answered Nov 03 '22 19:11

Aesthete