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" } }