class OmniAuth::Strategies::AngelList

Constants

DEFAULT_SCOPE

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/angellist.rb, line 62
def authorize_params
  super.tap do |params|
    %w(scope state).each do |value|
      next unless request.params[value]

      params[value.to_sym] = request.params[value]

      session['omniauth.state'] = params[:state] if value == 'state'
    end

    params[:scope] ||= DEFAULT_SCOPE
  end
end
raw_info() click to toggle source
# File lib/omniauth/strategies/angellist.rb, line 56
def raw_info
  return {} if skip_info?

  @raw_info ||= access_token.get('https://api.angel.co/1/me').parsed
end
request_phase() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/angellist.rb, line 21
def request_phase
  super
end

Private Instance Methods

prune!(hash) click to toggle source
# File lib/omniauth/strategies/angellist.rb, line 78
def prune!(hash)
  hash.delete_if do |_, value|
    prune!(value) if value.is_a?(Hash)
    value.nil? || (value.respond_to?(:empty?) && value.empty?)
  end
end