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
    
- (Google::Auth::InitializationError) — If client_email or private_key fields are missing from the JSON