Class: OmniAuth::Strategies::Varejonline
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Varejonline
- 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_token ⇒ Object
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(.auth_token_params)) end |
#raw_info ⇒ Object
34 35 36 |
# File 'lib/omniauth/strategies/varejonline.rb', line 34 def raw_info @raw_info ||= build_access_token end |