Class: OmniAuth::Strategies::Smarterer
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Smarterer
- Defined in:
- lib/omniauth/strategies/smarterer.rb
Instance Method Summary collapse
Instance Method Details
#callback_phase ⇒ Object
22 23 24 |
# File 'lib/omniauth/strategies/smarterer.rb', line 22 def callback_phase super end |
#raw_info ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/omniauth/strategies/smarterer.rb', line 46 def raw_info if @raw_info.nil? @raw_info = {} params = {access_token: access_token.token} response = RestClient.get('https://smarterer.com/api/users/me', { :params => params }) user = MultiJson.decode(response.to_s) @raw_info.merge!(user) end @raw_info end |
#request_phase ⇒ Object
18 19 20 |
# File 'lib/omniauth/strategies/smarterer.rb', line 18 def request_phase super end |