class OmniAuth::Strategies::Feedly

Constants

DEFAULT_SCOPE

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/feedly.rb, line 43
def authorize_params 
  # 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() click to toggle source
# File lib/omniauth/strategies/feedly.rb, line 38
def raw_info
  @raw_info ||= access_token.get('/v3/profile').parsed
end