Class: OmniAuth::Strategies::Feedly
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Feedly
- Defined in:
- lib/omniauth/strategies/feedly.rb
Constant Summary collapse
- DEFAULT_SCOPE =
'https://cloud.feedly.com/subscriptions'
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/omniauth/strategies/feedly.rb', line 43 def # Borrowed from omniauth-orchid who borrowed from omniauth-facebook super.tap do |params| %w[scope].each { |v| params[v.to_sym] = request.params[v] if request.params[v] } params[:scope] ||= DEFAULT_SCOPE # ensure that we're always request *some* default scope end end |
#raw_info ⇒ Object
38 39 40 |
# File 'lib/omniauth/strategies/feedly.rb', line 38 def raw_info @raw_info ||= access_token.get('/v3/profile').parsed end |