mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
use TLS 1.2 with WIF and Github Actions
This commit is contained in:
@@ -4329,7 +4329,8 @@ class signjwtSignJwt(google.auth.crypt.Signer):
|
|||||||
def sign(self, message):
|
def sign(self, message):
|
||||||
''' Call IAM Credentials SignJWT API to get our signed JWT '''
|
''' Call IAM Credentials SignJWT API to get our signed JWT '''
|
||||||
try:
|
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:
|
except (google.auth.exceptions.DefaultCredentialsError, google.auth.exceptions.RefreshError) as e:
|
||||||
systemErrorExit(API_ACCESS_DENIED_RC, str(e))
|
systemErrorExit(API_ACCESS_DENIED_RC, str(e))
|
||||||
httpObj = transportAuthorizedHttp(credentials, http=getHttpObj())
|
httpObj = transportAuthorizedHttp(credentials, http=getHttpObj())
|
||||||
|
|||||||
Reference in New Issue
Block a user