Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Stop attempting to get the project from gcloud when applying self-signed JWTs #317

Merged
merged 1 commit into from Apr 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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