Skip to content

Commit

Permalink
Merge pull request #689 from gcheshkov/master
Browse files Browse the repository at this point in the history
Remove debug printing from BaseOAuth2 backend
  • Loading branch information
omab committed Jul 22, 2015
2 parents 2af852a + 0fb28df commit ec56fac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions social/backends/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,13 @@ def auth_complete(self, *args, **kwargs):
auth=self.auth_complete_credentials(),
method=self.ACCESS_TOKEN_METHOD
)
print(dict(response))
self.process_error(response)
return self.do_auth(response['access_token'], response=response,
*args, **kwargs)

@handle_http_errors
def do_auth(self, access_token, *args, **kwargs):
"""Finish the auth process once the access_token was retrieved"""
print(args)
print(kwargs)
data = self.user_data(access_token, *args, **kwargs)
response = kwargs.get('response') or {}
response.update(data or {})
Expand Down

0 comments on commit ec56fac

Please sign in to comment.