Class: OmniAuth::Strategies::Mendeley

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

Constant Summary collapse

DEFAULT_SCOPE =

dev.mendeley.com/html/authentication.html Mendeley currently supports only ‘all’ value

'all'

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



47
48
49
50
51
# File 'lib/omniauth/strategies/mendeley.rb', line 47

def authorize_params
  super.tap do |params|
    params[:scope] ||= DEFAULT_SCOPE
  end
end

#raw_infoObject



42
43
44
# File 'lib/omniauth/strategies/mendeley.rb', line 42

def raw_info
  @raw_info ||= MultiJson.decode(access_token.get('/profiles/me').body)
end