- # GCE credentials are delivered in a JSON file.
- if 'json_credential_file' in auth_kwargs:
- with open(auth_kwargs['json_credential_file']) as jf:
- json_creds = json.load(jf)
- auth_kwargs['user_id'] = json_creds['client_email']
- auth_kwargs['key'] = json_creds['private_key']
-