Skip to content

Commit

Permalink
Merge pull request #109 from FloorLamp/coinbase
Browse files Browse the repository at this point in the history
fix uid in coinbase oauth
  • Loading branch information
omab committed Nov 28, 2013
2 parents 7a1f09d + 3259478 commit 0dff817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions social/backends/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class CoinbaseOAuth2(BaseOAuth2):
ACCESS_TOKEN_METHOD = 'POST'
REDIRECT_STATE = False

def get_user_id(self, details, response):
return response['users'][0]['user']['id']

def get_user_details(self, response):
"""Return user details from Coinbase account"""
user_data = response['users'][0]['user']
Expand Down

0 comments on commit 0dff817

Please sign in to comment.