]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update FacebookGraphMixin with new authorization url.
authorBen Darnell <ben@bendarnell.com>
Fri, 5 Jul 2013 17:13:40 +0000 (13:13 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 5 Jul 2013 17:13:40 +0000 (13:13 -0400)
The old url still works, but results in an extra redirect.

tornado/auth.py

index 825fda417248cd136ce152d4e77406516b78f849..0cbfa7c04d407f75e07b4d51f4b214e225f892fc 100644 (file)
@@ -1158,7 +1158,7 @@ class FacebookMixin(object):
 class FacebookGraphMixin(OAuth2Mixin):
     """Facebook authentication using the new Graph API and OAuth2."""
     _OAUTH_ACCESS_TOKEN_URL = "https://graph.facebook.com/oauth/access_token?"
-    _OAUTH_AUTHORIZE_URL = "https://graph.facebook.com/oauth/authorize?"
+    _OAUTH_AUTHORIZE_URL = "https://www.facebook.com/dialog/oauth?"
     _OAUTH_NO_CALLBACKS = False
     _FACEBOOK_BASE_URL = "https://graph.facebook.com"