Class: OmniAuth::Strategies::Mendeley
- Inherits:
-
OAuth
- Object
- OAuth
- OmniAuth::Strategies::Mendeley
- Defined in:
- lib/omniauth/strategies/mendeley.rb
Instance Method Summary collapse
-
#callback_phase ⇒ Object
For callback_confirmed to true so omniauth-oauth will set the :oauth_verifier during callback.
- #user_data ⇒ Object
Instance Method Details
#callback_phase ⇒ Object
For callback_confirmed to true so omniauth-oauth will set the :oauth_verifier during callback
35 36 37 38 |
# File 'lib/omniauth/strategies/mendeley.rb', line 35 def callback_phase session['oauth'][name.to_s]['callback_confirmed'] = true super end |
#user_data ⇒ Object
29 30 31 |
# File 'lib/omniauth/strategies/mendeley.rb', line 29 def user_data @info ||= MultiJson.decode(@access_token.get('/oapi/profiles/info/me').body)['main'] end |