googleauth - Module Google::Auth::JsonKeyReader (v1.15.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the googleauth module Google::Auth::JsonKeyReader.
JsonKeyReader contains the behaviour used to read private key andclient email fields from the service account
Methods
#read_json_key
defread_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_keyfields are missing from the JSON
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.