Class: OmniAuth::Strategies::Snapchat
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Snapchat
- Defined in:
- lib/omniauth/strategies/snapchat.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
38 39 40 |
# File 'lib/omniauth/strategies/snapchat.rb', line 38 def callback_url [:redirect_uri] || full_host + script_name + callback_path end |
#raw_info ⇒ Object
33 34 35 36 |
# File 'lib/omniauth/strategies/snapchat.rb', line 33 def raw_info raw_info_url = "https://adsapi.snapchat.com/v1/me" @raw_info ||= access_token.get(raw_info_url).parsed end |
#token_params ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/omniauth/strategies/snapchat.rb', line 42 def token_params = Base64.strict_encode64("#{.client_id}:#{.client_secret}") super.merge({ headers: { "Authorization" => "Basic #{}" } }) end |