Class: OmniAuth::Strategies::Varejonline

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/varejonline.rb

Constant Summary collapse

DEFAULT_SCOPE =

Possible scopes: userinfo.email,userinfo.profile,plus.me

"all"

Instance Method Summary collapse

Instance Method Details

#build_access_tokenObject



20
21
22
23
24
# File 'lib/omniauth/strategies/varejonline.rb', line 20

def build_access_token
  verifier = request.params["code"]
  
  client.auth_code.get_token(verifier, {:redirect_uri => callback_url.gsub(/\?(.*)/, "")}.merge(token_params.to_hash(:symbolize_keys => true)), deep_symbolize(options.auth_token_params))
end

#raw_infoObject



34
35
36
# File 'lib/omniauth/strategies/varejonline.rb', line 34

def raw_info
  @raw_info ||= build_access_token
end