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 object containing the JSON key

  • scope (string|array|nil)

    the scope(s) to access



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