GCP.Credential
— MethodCredential(data::Dict{Symbol, String})
Initialise credentials from dictionary containing values.
GCP.Credential
— MethodCredential(filename)
Load credentials from a JSON file.
GCP.JWTClaimSet
— TypeJWTClaimSet
JSON Web Token claim-set.
GCP.JWTHeader
— TypeJWTHeader
JSON Web Token header.
GCP.Session
— TypeSession(...)
OAuth 2.0 session for Google using provided credential.
Caches authorisation tokens up to expiry.
sess = Session(Credential(expanduser("~/auth.json")), ["devstorage.full_control"])
GCP.JWS
— FunctionJWS(credential, claimset)
Construct the Base64-encoded JSON Web Signature based on the JWT header, claimset and signed using the private key provided in the Google JSON service-account key.
GCP.SHA256withRSA
— MethodSHA256withRSA(message, key)
Sign message using private key with RSASSA-PKCS1-V1_5-SIGN algorithm.
GCP.authorize
— Methodauthorize(session; cache=true)
Get OAuth 2.0 authorisation token from Google.
If cache
set to true
, get a new token only if the existing token has expired.
GCP.isurl
— Methodisurl(path)
Return true if path
is a URL and false a path fragment.
GCP.unixseconds
— Methodunixseconds(x)
Convert date-time into unix seconds.