class OmniAuth::Strategies::Withings2

Public Instance Methods

basic_auth_header() click to toggle source
# File lib/omniauth/strategies/withings2.rb, line 28
def basic_auth_header
  "Basic " + Base64.strict_encode64("#{options[:client_id]}:#{options[:client_secret]}")
end
build_access_token() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/withings2.rb, line 20
def build_access_token
  options.token_params.merge!(
    action: 'requesttoken',
    headers: { 'Authorization' => basic_auth_header }
  )
  super
end
query_string() click to toggle source
# File lib/omniauth/strategies/withings2.rb, line 32
def query_string
  # Using state and code params in the callback_url causes a mismatch with
  # the value set in the withings2 application configuration, so we're skipping them
  ''
end