Skip to content

Commit

Permalink
fix: Stop attempting to get the project from gcloud when applying sel…
Browse files Browse the repository at this point in the history
…f-signed JWTs (#317)
  • Loading branch information
dazuma committed Apr 27, 2021
1 parent 6c291f9 commit 39258ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/googleauth/service_account.rb
Expand Up @@ -123,8 +123,10 @@ def apply! a_hash, opts = {}
def apply_self_signed_jwt! a_hash
# Use the ServiceAccountJwtHeaderCredentials using the same cred values
cred_json = {
private_key: @signing_key.to_s,
client_email: @issuer
private_key: @signing_key.to_s,
client_email: @issuer,
project_id: @project_id,
quota_project_id: @quota_project_id
}
key_io = StringIO.new MultiJson.dump(cred_json)
alt = ServiceAccountJwtHeaderCredentials.make_creds json_key_io: key_io
Expand Down

0 comments on commit 39258ca

Please sign in to comment.