Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: omab/django-social-auth
base: a3d0bdca28
...
head fork: omab/django-social-auth
compare: 08ebd7b744
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Sep 26, 2012
@vicalloy vicalloy add username to EXTRA_DATA for douban and weibo backends e854cbf
Commits on Sep 27, 2012
@omab Merge pull request #472 from vicalloy/master
add username to EXTRA_DATA for douban and weibo backends
08ebd7b
View
4 social_auth/backends/contrib/douban.py
@@ -75,7 +75,9 @@ def auth_complete(self, *args, **kwargs):
class DoubanBackend2(OAuthBackend):
"""Douban OAuth authentication backend"""
name = 'douban2'
- EXTRA_DATA = [('id', 'id')]
+ EXTRA_DATA = [('id', 'id'),
+ ('uid', 'username'),
+ ]
def get_user_id(self, details, response):
return response['id']
View
1  social_auth/backends/contrib/weibo.py
@@ -32,6 +32,7 @@ class WeiboBackend(OAuthBackend):
# Default extra data to store
EXTRA_DATA = [
('id', 'id'),
+ ('name', 'username'),
('profile_image_url', 'profile_image_url'),
('gender', 'gender')
]

No commit comments for this range

Something went wrong with that request. Please try again.