From 6735c361a4de7a78fa557000848ea96025ab269b Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 18 Aug 2023 18:43:48 +0000 Subject: [PATCH] use TLS 1.2 with WIF and Github Actions --- src/gam/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 823f2ba4..2b5921a8 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -4329,7 +4329,8 @@ class signjwtSignJwt(google.auth.crypt.Signer): def sign(self, message): ''' Call IAM Credentials SignJWT API to get our signed JWT ''' try: - credentials, _ = google.auth.default(scopes=[API.IAM_SCOPE]) + credentials, _ = google.auth.default(scopes=[API.IAM_SCOPE], + request=getTLSv1_2Request()) except (google.auth.exceptions.DefaultCredentialsError, google.auth.exceptions.RefreshError) as e: systemErrorExit(API_ACCESS_DENIED_RC, str(e)) httpObj = transportAuthorizedHttp(credentials, http=getHttpObj())