]> git.parisson.com Git - django-social-auth.git/commitdiff
Migration to OAuth2 lib. Closes gh-37. Closes gh-28. Closes gh-31.
authorMatías Aguirre <matiasaguirre@gmail.com>
Sun, 6 Mar 2011 14:49:42 +0000 (12:49 -0200)
committerMatías Aguirre <matiasaguirre@gmail.com>
Sun, 6 Mar 2011 14:49:42 +0000 (12:49 -0200)
README.rst
example/app/views.py
setup.py
social_auth/backends/__init__.py

index 900e45eadf1e693aeeb91ab066137a105ecd63c8..73252c4c10adc367987ee1431b9659c4ce352685 100644 (file)
@@ -469,6 +469,10 @@ Attributions to whom deserves:
 
   - LinkedIn support
 
+- micrypt_ (Seyi Ogunyemi)
+
+  - OAuth2 migration
+
 
 ----------
 Copyrights
@@ -527,3 +531,4 @@ Base work is copyrighted by:
 .. _alfredo: https://github.com/alfredo
 .. _mattucf: https://github.com/mattucf
 .. _Quard: https://github.com/Quard
+.. _micrypt: https://github.com/micrypt
index c810726fa2eb09f0f741371b4b5d2ea10e826768..a17a0cf54b7913b194acb9793bcf77081d8b0131 100644 (file)
@@ -21,7 +21,6 @@ def done(request):
     """Login complete view, displays user data"""
     names = request.user.social_auth.values_list('provider', flat=True)
     ctx = dict((name.lower().replace('-', '_'), True) for name in names)
-    print ctx
     ctx['version'] = version
     return render_to_response('done.html', ctx, RequestContext(request))
 
index b1c22812b4eede914fe2ab8dc2b040f8e7f79bde..cab3e9b7287c38e88f4a019426099e01062e4034 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ setup(name='django-social-auth',
                 'social_auth.backends.contrib'],
       long_description=long_description(),
       install_requires=['django>=1.2',
-                        'oauth>=1.0',
+                        'oauth2>=1.5.167',
                         'python_openid>=2.2'],
       classifiers=['Framework :: Django',
                    'Development Status :: 4 - Beta',
index dee177025d13f200f424d0cbc5fb6eda3d177a9c..fa482bbca36a184a12e14bfa9be4137c9d202ca7 100644 (file)
@@ -17,8 +17,10 @@ from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE
 from openid.consumer.discover import DiscoveryFailure
 from openid.extensions import sreg, ax
 
-from oauth2 import Consumer as OAuthConsumer, Token as OAuthToken, Request as OAuthRequest, \
-                        SignatureMethod_HMAC_SHA1 as OAuthSignatureMethod_HMAC_SHA1
+from oauth2 import Consumer as OAuthConsumer, \
+                   Token as OAuthToken, \
+                   Request as OAuthRequest, \
+                   SignatureMethod_HMAC_SHA1 as OAuthSignatureMethod_HMAC_SHA1
 
 from django.conf import settings
 from django.contrib.auth import authenticate