]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
update google oauth URLs 2135/head
authorFlorian Ludwig <f.ludwig@greyrook.com>
Fri, 11 Aug 2017 22:56:54 +0000 (00:56 +0200)
committerFlorian Ludwig <f.ludwig@greyrook.com>
Fri, 11 Aug 2017 22:56:54 +0000 (00:56 +0200)
Reference: https://developers.google.com/identity/protocols/OpenIDConnect

tornado/auth.py

index f02d2898085f93f4087c2ecefc288cd6bbf8900f..2690928dd72d7aa0b60ad49552b5bd91a52344c8 100644 (file)
@@ -848,8 +848,8 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
 
     .. versionadded:: 3.2
     """
-    _OAUTH_AUTHORIZE_URL = "https://accounts.google.com/o/oauth2/auth"
-    _OAUTH_ACCESS_TOKEN_URL = "https://accounts.google.com/o/oauth2/token"
+    _OAUTH_AUTHORIZE_URL = "https://accounts.google.com/o/oauth2/v2/auth"
+    _OAUTH_ACCESS_TOKEN_URL = "https://www.googleapis.com/oauth2/v4/token"
     _OAUTH_USERINFO_URL = "https://www.googleapis.com/oauth2/v1/userinfo"
     _OAUTH_NO_CALLBACKS = False
     _OAUTH_SETTINGS_KEY = 'google_oauth'