Class: OmniAuth::Strategies::Mendeley
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Mendeley
- 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_params ⇒ Object
47 48 49 50 51 |
# File 'lib/omniauth/strategies/mendeley.rb', line 47 def super.tap do |params| params[:scope] ||= DEFAULT_SCOPE end end |
#raw_info ⇒ Object
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 |