googleauth - Module Google::Auth::JsonKeyReader (v1.15.0)

Reference documentation and code samples for the googleauth module Google::Auth::JsonKeyReader.

JsonKeyReader contains the behaviour used to read private key and client email fields from the service account

Methods

#read_json_key

def read_json_key(json_key_io) -> Array(String, String, String, String, String)

Reads a JSON key from an IO object and extracts common fields.

Parameter
  • json_key_io (IO) โ€” An IO object containing the JSON key
Returns
  • (Array(String, String, String, String, String)) โ€” An array containing: private_key, client_email, project_id, quota_project_id, and universe_domain
Raises