Class: OmniAuth::Strategies::Mendeley

Inherits:
OAuth
  • Object
show all
Defined in:
lib/omniauth/strategies/mendeley.rb

Instance Method Summary collapse

Instance Method Details

#callback_phaseObject

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_dataObject



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