Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions lib/googleauth/service_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ def principal

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,
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, scope: scope
alt.logger = logger
alt = ServiceAccountJwtHeaderCredentials.new(
private_key: @signing_key.to_s,
issuer: @issuer,
project_id: @project_id,
quota_project_id: @quota_project_id,
universe_domain: universe_domain,
scope: scope,
logger: logger
)
alt.apply! a_hash
end

Expand Down
Loading