From 76470e2708cd9f182f131be0da2a3785f9be2ae5 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 31 Dec 2015 12:40:28 -0500 Subject: [PATCH] -Updated Google URIs GOOGLE_AUTH_URI update as documented at: https://developers.google.com/identity/protocols/OAuth2UserAgent#formingtheurl GOOGLE_TOKEN_URI update as documented at: https://developers.google.com/identity/protocols/OAuth2InstalledApp#handlingtheresponse GOOGLE_TOKEN_INFO_URI update as documented at: https://developers.google.com/identity/protocols/OAuth2UserAgent#tokeninfo-validation -update client_secrets.json with new URIs -update unfilled_client_secrets.json with new URIs --- oauth2client/__init__.py | 6 +++--- tests/data/client_secrets.json | 4 ++-- tests/data/unfilled_client_secrets.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/oauth2client/__init__.py b/oauth2client/__init__.py index f7c36c1..f43df02 100644 --- a/oauth2client/__init__.py +++ b/oauth2client/__init__.py @@ -16,8 +16,8 @@ __version__ = '1.5.2' -GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth' +GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/v2/auth' GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code' GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke' -GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' -GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v2/tokeninfo' +GOOGLE_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token' +GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v3/tokeninfo' diff --git a/tests/data/client_secrets.json b/tests/data/client_secrets.json index fd96a7a..5356103 100644 --- a/tests/data/client_secrets.json +++ b/tests/data/client_secrets.json @@ -3,8 +3,8 @@ "client_id": "foo_client_id", "client_secret": "foo_client_secret", "redirect_uris": [], - "auth_uri": "https://accounts.google.com/o/oauth2/auth", - "token_uri": "https://accounts.google.com/o/oauth2/token", + "auth_uri": "https://accounts.google.com/o/oauth2/v2/auth", + "token_uri": "https://www.googleapis.com/oauth2/v4/token", "revoke_uri": "https://accounts.google.com/o/oauth2/revoke" } } diff --git a/tests/data/unfilled_client_secrets.json b/tests/data/unfilled_client_secrets.json index a232f37..a85ca01 100644 --- a/tests/data/unfilled_client_secrets.json +++ b/tests/data/unfilled_client_secrets.json @@ -3,7 +3,7 @@ "client_id": "[[INSERT CLIENT ID HERE]]", "client_secret": "[[INSERT CLIENT SECRET HERE]]", "redirect_uris": [], - "auth_uri": "https://accounts.google.com/o/oauth2/auth", - "token_uri": "https://accounts.google.com/o/oauth2/token" + "auth_uri": "https://accounts.google.com/o/oauth2/v2/auth", + "token_uri": "https://www.googleapis.com/oauth2/v4/token" } }