Web2py Restful api authentication for android app

285 views
Skip to first unread message

Saurabh Kumar

unread,
Jun 5, 2013, 8:29:23 PM6/5/13
to web...@googlegroups.com
Hi,

I am writing an android app which has web2py as the server side backend. What are the authentication protocols while using Restful api from Java code. There are two scenarios:
1) HTTP (will need something like oauth2.0 )
2) HTTPS (can do basic auth)

Which is the best way for authentication in this scenario. Are there any authentication libraries that can help me setup the authentication for restful apis? 

Christian Foster Howes

unread,
Jun 7, 2013, 2:10:46 PM6/7/13
to web...@googlegroups.com
for my resful APIs i use an oauth library to sign the requests.  i then use oauth as my authentication mechanism.

Saurabh Kumar

unread,
Jun 7, 2013, 2:26:09 PM6/7/13
to web...@googlegroups.com
Can you give pointers to the library you are using?

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/i1DJatX4P58/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Christian Foster Howes

unread,
Jun 7, 2013, 3:06:29 PM6/7/13
to web...@googlegroups.com, Saurabh Kumar
we are using a modified form of
https://github.com/simplegeo/python-oauth2 modified to make it run on
GAE and also some tweaks in usage to handle some special-case requirements.

cfh

Saurabh Kumar

unread,
Jun 7, 2013, 3:13:03 PM6/7/13
to Christian Foster Howes, web...@googlegroups.com
Thanks :)

Reply all
Reply to author
Forward
0 new messages