mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
scope is a list, not str
This commit is contained in:
@@ -7963,7 +7963,7 @@ def create_signjwt_serviceaccount():
|
||||
'token_uri': 'https://oauth2.googleapis.com/token'
|
||||
}
|
||||
try:
|
||||
creds, sa_info['project_id'] = google.auth.default(scopes='https://www.googleapis.com/auth/iam')
|
||||
creds, sa_info['project_id'] = google.auth.default(scopes=['https://www.googleapis.com/auth/iam'])
|
||||
except google.auth.exceptions.DefaultCredentialsError as e:
|
||||
controlflow.system_error_exit(2, e)
|
||||
request = transport.create_request()
|
||||
|
||||
@@ -75,7 +75,7 @@ class SignJwt(google.auth.crypt.Signer):
|
||||
''' Call IAM Credentials SignJWT API to get our signed JWT '''
|
||||
request = transport.create_request()
|
||||
try:
|
||||
credentials, _ = google.auth.default(scopes='https://www.googleapis.com/auth/iam',
|
||||
credentials, _ = google.auth.default(scopes=['https://www.googleapis.com/auth/iam'],
|
||||
request=request)
|
||||
except google.auth.exceptions.DefaultCredentialsError as e:
|
||||
controlflow.system_error_exit(2, e)
|
||||
|
||||
Reference in New Issue
Block a user