- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for from_service_account_file (0.17 sec)
-
security/tools/jwt/sa-jwt.py
import time import google.auth.crypt import google.auth.jwt def main(args): """Generates a signed JSON Web Token using a Google API Service Account.""" signer = google.auth.crypt.RSASigner.from_service_account_file( args.service_account_file) now = int(time.time()) payload = { # expire in one hour. "exp": now + 3600, "iat": now, } if args.iss:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Sep 14 20:15:07 UTC 2019 - 2.6K bytes - Viewed (0)