diff options
author | Matt Houglum <houglum@google.com> | 2018-09-07 14:33:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 14:33:19 -0700 |
commit | 50d20532a748f18e53f7d24ccbe6647132c979a9 (patch) | |
tree | 3e12d5f6a8d13e2baaa541bc9f9dc4c16a11e14e | |
parent | b61aec4fe60d88dc73ec66355de0fe9d55c7ae7c (diff) | |
download | oauth2client-50d20532a748f18e53f7d24ccbe6647132c979a9.tar.gz |
Release v4.1.3 and update OAuth2 URIs. Fixes #742. (#743)upstream-master
Release v4.1.3 and update OAuth2 URIs. Fixes #742.
-rw-r--r-- | CHANGELOG.md | 8 | ||||
-rw-r--r-- | oauth2client/__init__.py | 11 | ||||
-rw-r--r-- | tests/contrib/appengine/test_appengine.py | 2 | ||||
-rw-r--r-- | tests/data/client_secrets.json | 4 | ||||
-rw-r--r-- | tests/data/unfilled_client_secrets.json | 2 |
5 files changed, 18 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 65809ff..2523d29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## v4.1.3 + +**Note**: oauth2client is deprecated. No more features will be added to the +libraries and the core team is turning down support. We recommend you use +[google-auth](https://google-auth.readthedocs.io) and [oauthlib](http://oauthlib.readthedocs.io/). + +* Changed OAuth2 endpoints to use oauth2.googleapis.com variants. (#742) + ## v4.1.2 **Note**: oauth2client is deprecated. No more features will be added to the diff --git a/oauth2client/__init__.py b/oauth2client/__init__.py index 31dd701..92bc191 100644 --- a/oauth2client/__init__.py +++ b/oauth2client/__init__.py @@ -14,10 +14,11 @@ """Client library for using OAuth2, especially with Google APIs.""" -__version__ = '4.1.2' +__version__ = '4.1.3' 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://www.googleapis.com/oauth2/v4/token' -GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v3/tokeninfo' +GOOGLE_DEVICE_URI = 'https://oauth2.googleapis.com/device/code' +GOOGLE_REVOKE_URI = 'https://oauth2.googleapis.com/revoke' +GOOGLE_TOKEN_URI = 'https://oauth2.googleapis.com/token' +GOOGLE_TOKEN_INFO_URI = 'https://oauth2.googleapis.com/tokeninfo' + diff --git a/tests/contrib/appengine/test_appengine.py b/tests/contrib/appengine/test_appengine.py index de26ae4..36d2713 100644 --- a/tests/contrib/appengine/test_appengine.py +++ b/tests/contrib/appengine/test_appengine.py @@ -911,7 +911,7 @@ class DecoratorTests(unittest.TestCase): # revoke_uri is not required self.assertEqual(self.decorator._revoke_uri, - 'https://accounts.google.com/o/oauth2/revoke') + 'https://oauth2.googleapis.com/revoke') self.assertEqual(self.decorator._revoke_uri, self.decorator.credentials.revoke_uri) diff --git a/tests/data/client_secrets.json b/tests/data/client_secrets.json index 5356103..81079e6 100644 --- a/tests/data/client_secrets.json +++ b/tests/data/client_secrets.json @@ -4,7 +4,7 @@ "client_secret": "foo_client_secret", "redirect_uris": [], "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" + "token_uri": "https://oauth2.googleapis.com/token", + "revoke_uri": "https://oauth2.googleapis.com/revoke" } } diff --git a/tests/data/unfilled_client_secrets.json b/tests/data/unfilled_client_secrets.json index a85ca01..8b5d55e 100644 --- a/tests/data/unfilled_client_secrets.json +++ b/tests/data/unfilled_client_secrets.json @@ -4,6 +4,6 @@ "client_secret": "[[INSERT CLIENT SECRET HERE]]", "redirect_uris": [], "auth_uri": "https://accounts.google.com/o/oauth2/v2/auth", - "token_uri": "https://www.googleapis.com/oauth2/v4/token" + "token_uri": "https://oauth2.googleapis.com/token" } } |