Class: OmniAuth::Strategies::Withings2
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Withings2
- Defined in:
- lib/omniauth/strategies/withings2.rb
Instance Method Summary collapse
Instance Method Details
#basic_auth_header ⇒ Object
28 29 30 |
# File 'lib/omniauth/strategies/withings2.rb', line 28 def basic_auth_header "Basic " + Base64.strict_encode64("#{[:client_id]}:#{[:client_secret]}") end |
#build_access_token ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/withings2.rb', line 20 def build_access_token .token_params.merge!( action: 'requesttoken', headers: { 'Authorization' => basic_auth_header } ) super end |
#query_string ⇒ Object
32 33 34 35 36 |
# 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 |