mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
Update signjwt.py
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user