-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement OAuth2 token refresh #492
Comments
+1! |
Would be really really cool ! I received a lot of error due to users that changed their password ! |
+1 On Thu, Nov 22, 2012 at 10:43 PM, arnaudbreton notifications@github.comwrote:
Best regards, |
An exception is raised each time I call the method "refresh_token" with Facebook backend. Here's the stacktrace: File "/app/UniShared_python/website/tasks.py", line 243, in facebook_friends_joined_task
user_social.refresh_token()
File "/app/.heroku/python/lib/python2.7/site-packages/social_auth/db/base.py", line 44, in refresh_token
response = backend.refresh_token(token)
File "/app/.heroku/python/lib/python2.7/site-packages/social_auth/backends/__init__.py", line 857, in refresh_token
dsa_urlopen(request).read()
File "/app/.heroku/python/lib/python2.7/site-packages/social_auth/utils.py", line 254, in dsa_urlopen
return urlopen(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(*args)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/app/.heroku/python/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request Thanks for your help! |
^ I know this is extremely late, but have you specified that you want 'offline_access' in FACEBOOK_EXTENDED_PERMISSIONS in your settings file? |
+1 to 'offline_access'. For Google OAuth2, I just added the line
|
I have a error: ImportError: cannot import name dsa_urlopen |
Like the one in this snippet for google-oauth2 https://gist.github.com/3906451
The text was updated successfully, but these errors were encountered: