>>> from cirrus_py.credentials import ServiceAccountCredentials
>>> from cirrus_py.google_jwt import GoogleJwt
>>> creds = ServiceAccountCredentials("./my_secret_service_account_credentials.json")
>>> STORAGE_FULL_CONTROL_SCOPE = "https://www.googleapis.com/auth/devstorage.full_control"
>>> my_jwt = GoogleJwt(scope=STORAGE_FULL_CONTROL_SCOPE, credentials=creds)
>>> my_jwt.get_token()
{
'access_token': "<access_token_here>",
'expires_in': 3600,
'token_type': 'Bearer'
}
-
Notifications
You must be signed in to change notification settings - Fork 0
google cloud utility for turning account services json into tokens for use in headers
License
elbow-jason/cirrus_py
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
google cloud utility for turning account services json into tokens for use in headers
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published