Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Release v4.1.3 and update OAuth2 URIs. Fixes #742. (#743)
Browse files Browse the repository at this point in the history
Release v4.1.3 and update OAuth2 URIs. Fixes #742.
  • Loading branch information
houglum authored Sep 7, 2018
1 parent b61aec4 commit 50d2053
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 6 additions & 5 deletions oauth2client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

2 changes: 1 addition & 1 deletion tests/contrib/appengine/test_appengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def test_decorator_from_client_secrets(self, new_http):

# 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)

Expand Down
4 changes: 2 additions & 2 deletions tests/data/client_secrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion tests/data/unfilled_client_secrets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 50d2053

Please sign in to comment.