From: Florian Ludwig Date: Fri, 11 Aug 2017 22:56:54 +0000 (+0200) Subject: update google oauth URLs X-Git-Tag: v5.0.0~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f64d44197de0667754f3e3de5dd54709233a019d;p=thirdparty%2Ftornado.git update google oauth URLs Reference: https://developers.google.com/identity/protocols/OpenIDConnect --- diff --git a/tornado/auth.py b/tornado/auth.py index f02d28980..2690928dd 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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'