Update signjwt.py

This commit is contained in:
Jay Lee
2023-04-02 15:58:04 -04:00
committed by GitHub
parent e8cb1a7b9f
commit 376cd6e83f

View File

@@ -74,7 +74,7 @@ class SignJwt(google.auth.crypt.Signer):
def sign(self, message):
''' Call IAM Credentials SignJWT API to get our signed JWT '''
try:
credentials, _ = google.auth.default()
credentials, _ = google.auth.default(scopes='https://www.googleapis.com/auth/iam')
except google.auth.exceptions.DefaultCredentialsError as e:
controlflow.system_error_exit(2, e)
httpObj = transport.AuthorizedHttp(