mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 12:51: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):
|
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()
|
credentials, _ = google.auth.default(scopes='https://www.googleapis.com/auth/iam')
|
||||||
except google.auth.exceptions.DefaultCredentialsError as e:
|
except google.auth.exceptions.DefaultCredentialsError as e:
|
||||||
controlflow.system_error_exit(2, e)
|
controlflow.system_error_exit(2, e)
|
||||||
httpObj = transport.AuthorizedHttp(
|
httpObj = transport.AuthorizedHttp(
|
||||||
|
|||||||
Reference in New Issue
Block a user