Skip to content

Instantly share code, notes, and snippets.

@ashchristopher
Created August 19, 2015 03:25
Show Gist options
  • Save ashchristopher/86698fb11e0378ec9ac1 to your computer and use it in GitHub Desktop.
Save ashchristopher/86698fb11e0378ec9ac1 to your computer and use it in GitHub Desktop.
> /vagrant/src/sandbox/python-social-auth/social/backends/base.py(40)complete()
39 def complete(self, *args, **kwargs):
---> 40 return self.auth_complete(*args, **kwargs)
41
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(355)auth_complete()
354
--> 355 def auth_complete(self, *args, **kwargs):
356 """Completes loging process, must return user instance"""
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(357)auth_complete()
356 """Completes loging process, must return user instance"""
--> 357 state = self.validate_state()
358 self.process_error(self.data)
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(358)auth_complete()
357 state = self.validate_state()
--> 358 self.process_error(self.data)
359 try:
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(359)auth_complete()
358 self.process_error(self.data)
--> 359 try:
360 response = self.request_access_token(
ipdb> self.data
MergeDict(<QueryDict: {}>, <QueryDict: {u'state': [u'**********************'], u'code': [u'****************************']}>)
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(360)auth_complete()
359 try:
--> 360 response = self.request_access_token(
361 self.ACCESS_TOKEN_URL,
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(361)auth_complete()
360 response = self.request_access_token(
--> 361 self.ACCESS_TOKEN_URL,
362 data=self.auth_complete_params(state),
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(362)auth_complete()
361 self.ACCESS_TOKEN_URL,
--> 362 data=self.auth_complete_params(state),
363 headers=self.auth_headers(),
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(363)auth_complete()
362 data=self.auth_complete_params(state),
--> 363 headers=self.auth_headers(),
364 method=self.ACCESS_TOKEN_METHOD
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(364)auth_complete()
363 headers=self.auth_headers(),
--> 364 method=self.ACCESS_TOKEN_METHOD
365 )
ipdb> n
> /vagrant/src/sandbox/python-social-auth/social/backends/oauth.py(373)auth_complete()
372 raise AuthUnknownError(self)
--> 373 self.process_error(response)
374 return self.do_auth(response['access_token'], response=response,
ipdb> response
{u'access_token': u'**************************************', u'token_type': u'Bearer', u'expires_in': 3549, u'id_token': u'************************************************'}
ipdb> response.keys()
[u'access_token', u'token_type', u'expires_in', u'id_token']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment