surjit / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

A better OAuthClient #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a defect.  Just some code that might be worth contributing.

The attached file is a modified OAuthClient that is included in oauth.py. 
I had not looked at the example, so to me it just looked as if someone had
forgotten to write the class.  I implemented the class using urllib2 and
added a get_redirect_url method, so that I didn't need to care much about
the underlying implementation.

I suggest replacing OAuthClient with this to oauth.py and updating the
example code to use it.  If that's agreeable, I can update the example and
add a patch to this ticket.

Original issue reported on code.google.com by ben%stec...@gtempaccount.com on 18 Feb 2009 at 6:49

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by leah.culver on 27 Feb 2009 at 2:02

GoogleCodeExporter commented 9 years ago
Here is an oauth client I wrote a few weeks ago that is similar to this one. 
It can be found on github--> 
http://github.com/joshthecoder/python-oauth/tree/master
See easyoauth.py

Just noticed this issue and thought I'd just share my version. I wrote it in 
like a
few hours, so it might not be 100% but it worked nice for my application. 

Original comment by jroessl...@gmail.com on 3 Apr 2009 at 5:24