From f64d44197de0667754f3e3de5dd54709233a019d Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sat, 12 Aug 2017 00:56:54 +0200 Subject: [PATCH] update google oauth URLs Reference: https://developers.google.com/identity/protocols/OpenIDConnect --- tornado/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.47.2