Module: OAuth::Consumer::ClientCertificateExtensions

Included in:
OAuth::Consumer
Defined in:
lib/oauth/oauth_consumer.rb

Overview

we got Module#prepend, let’s use it

Instance Method Summary collapse

Instance Method Details

#httpObject



8
9
10
11
12
13
# File 'lib/oauth/oauth_consumer.rb', line 8

def http
  super.tap do |http|
    http.cert = options[:ssl_client_cert]
    http.key  = options[:ssl_client_key]
  end
end