aboutsummaryrefslogtreecommitdiff
path: root/tests_async/oauth2
diff options
context:
space:
mode:
authorarithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>2021-07-20 12:09:57 -0700
committerGitHub <noreply@github.com>2021-07-20 13:09:57 -0600
commitd94e65c0e441183403608d762b92b30b77e21eeb (patch)
treea170d7535f74e4efae1921285ed79589f55b451c /tests_async/oauth2
parentdfad66128c6ee7513e5565d39bc7b002055dd0d5 (diff)
downloadgoogle-auth-library-python-d94e65c0e441183403608d762b92b30b77e21eeb.tar.gz
revert: revert "feat: service account is able to use a private token endpoint (#784)" (#808)
revert "feat: service account is able to use a private token endpoint (#784)" until b/194191737 is fixed. This reverts commit 0e264092e35ac02ad68d5d91424ecba5397daa41.
Diffstat (limited to 'tests_async/oauth2')
-rw-r--r--tests_async/oauth2/test_service_account_async.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests_async/oauth2/test_service_account_async.py b/tests_async/oauth2/test_service_account_async.py
index 3dce13d..4079453 100644
--- a/tests_async/oauth2/test_service_account_async.py
+++ b/tests_async/oauth2/test_service_account_async.py
@@ -152,10 +152,7 @@ class TestCredentials(object):
token = credentials._make_authorization_grant_assertion()
payload = jwt.decode(token, test_service_account.PUBLIC_CERT_BYTES)
assert payload["iss"] == self.SERVICE_ACCOUNT_EMAIL
- assert (
- payload["aud"]
- == service_account.service_account._GOOGLE_OAUTH2_TOKEN_ENDPOINT
- )
+ assert payload["aud"] == self.TOKEN_URI
def test__make_authorization_grant_assertion_scoped(self):
credentials = self.make_credentials()
@@ -314,10 +311,7 @@ class TestIDTokenCredentials(object):
token = credentials._make_authorization_grant_assertion()
payload = jwt.decode(token, test_service_account.PUBLIC_CERT_BYTES)
assert payload["iss"] == self.SERVICE_ACCOUNT_EMAIL
- assert (
- payload["aud"]
- == service_account.service_account._GOOGLE_OAUTH2_TOKEN_ENDPOINT
- )
+ assert payload["aud"] == self.TOKEN_URI
assert payload["target_audience"] == self.TARGET_AUDIENCE
@mock.patch("google.oauth2._client_async.id_token_jwt_grant", autospec=True)