Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 50d2053

Browse files
authored
Release v4.1.3 and update OAuth2 URIs. Fixes #742. (#743)
Release v4.1.3 and update OAuth2 URIs. Fixes #742.
1 parent b61aec4 commit 50d2053

File tree

5 files changed

+18
-9
lines changed

5 files changed

+18
-9
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGELOG
22

3+
## v4.1.3
4+
5+
**Note**: oauth2client is deprecated. No more features will be added to the
6+
libraries and the core team is turning down support. We recommend you use
7+
[google-auth](https://google-auth.readthedocs.io) and [oauthlib](http://oauthlib.readthedocs.io/).
8+
9+
* Changed OAuth2 endpoints to use oauth2.googleapis.com variants. (#742)
10+
311
## v4.1.2
412

513
**Note**: oauth2client is deprecated. No more features will be added to the

oauth2client/__init__.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
"""Client library for using OAuth2, especially with Google APIs."""
1616

17-
__version__ = '4.1.2'
17+
__version__ = '4.1.3'
1818

1919
GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/v2/auth'
20-
GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code'
21-
GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'
22-
GOOGLE_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'
23-
GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v3/tokeninfo'
20+
GOOGLE_DEVICE_URI = 'https://oauth2.googleapis.com/device/code'
21+
GOOGLE_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'
22+
GOOGLE_TOKEN_URI = 'https://oauth2.googleapis.com/token'
23+
GOOGLE_TOKEN_INFO_URI = 'https://oauth2.googleapis.com/tokeninfo'
24+

tests/contrib/appengine/test_appengine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def test_decorator_from_client_secrets(self, new_http):
911911

912912
# revoke_uri is not required
913913
self.assertEqual(self.decorator._revoke_uri,
914-
'https://accounts.google.com/o/oauth2/revoke')
914+
'https://oauth2.googleapis.com/revoke')
915915
self.assertEqual(self.decorator._revoke_uri,
916916
self.decorator.credentials.revoke_uri)
917917

tests/data/client_secrets.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"client_secret": "foo_client_secret",
55
"redirect_uris": [],
66
"auth_uri": "https://accounts.google.com/o/oauth2/v2/auth",
7-
"token_uri": "https://www.googleapis.com/oauth2/v4/token",
8-
"revoke_uri": "https://accounts.google.com/o/oauth2/revoke"
7+
"token_uri": "https://oauth2.googleapis.com/token",
8+
"revoke_uri": "https://oauth2.googleapis.com/revoke"
99
}
1010
}

tests/data/unfilled_client_secrets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"client_secret": "[[INSERT CLIENT SECRET HERE]]",
55
"redirect_uris": [],
66
"auth_uri": "https://accounts.google.com/o/oauth2/v2/auth",
7-
"token_uri": "https://www.googleapis.com/oauth2/v4/token"
7+
"token_uri": "https://oauth2.googleapis.com/token"
88
}
99
}

0 commit comments

Comments
 (0)