Google API Authorisation Manager

# GoogleCloud.sessionModule.

OAuth 2.0 Google Sessions

source

# GoogleCloud.session.GoogleSessionType.

GoogleSession(...)

OAuth 2.0 session for Google using provided credentials.

Caches authorisation tokens up to expiry.

sess = GoogleSession(GoogleCredentials(expanduser("~/auth.json")), ["devstorage.full_control"])

source

# GoogleCloud.session.authorizeMethod.

authorize(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.

source

# GoogleCloud.session.JWTClaimSetType.

JWTClaimSet

JSON Web Token claim-set.

source

# GoogleCloud.session.JWTHeaderType.

JWTHeader

JSON Web Token header.

source

# GoogleCloud.session.JWSFunction.

JWS(credentials, 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.

source

# GoogleCloud.session.SHA256withRSAMethod.

SHA256withRSA(message, key)

Sign message using private key with RSASSA-PKCS1-V1_5-SIGN algorithm.

source

# GoogleCloud.session.unixsecondsMethod.

unixseconds(x)

Convert date-time into unix seconds.

source