Module: SingleUserOauth::Signature

Extended by:
Signature
Included in:
Signature
Defined in:
lib/single_user_oauth/signature.rb

Constant Summary collapse

UNWANTED_HEADER_KEYS =
[:request_method, :requested_url]

Instance Method Summary collapse

Instance Method Details

#create(options) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/single_user_oauth/signature.rb', line 10

def create(options)
  @options          = options
  @request_method   = @options.fetch(:request_method, '').upcase
  @requested_url    = @options.fetch(:requested_url, '')
  @consumer_secret  = @options.fetch(:oauth_consumer_secret, '')
  @access_secret    = @options.fetch(:oauth_access_secret, '')

  calc_signature
end