Method: Google::Auth::ServiceAccountJwtHeaderCredentials.make_creds

Defined in:
lib/googleauth/service_account_jwt_header.rb

.make_creds(options = {}) ⇒ Object

Create a ServiceAccountJwtHeaderCredentials.

Parameters:

  • json_key_io (IO)

    an IO from which the JSON key can be read

  • scope (string|array|nil)

    the scope(s) to access

[View source]

52
53
54
55
# File 'lib/googleauth/service_account_jwt_header.rb', line 52

def self.make_creds options = {}
  json_key_io, scope = options.values_at :json_key_io, :scope
  new json_key_io: json_key_io, scope: scope
end