class OmniAuth::Strategies::Scientist

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/scientist.rb, line 16
def authorize_params
  super.tap do |params|
    %w[scope client_options].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end
callback_url() click to toggle source
# File lib/omniauth/strategies/scientist.rb, line 55
def callback_url
  full_host + script_name + callback_path
end
email() click to toggle source
# File lib/omniauth/strategies/scientist.rb, line 51
def email
  user_attribute('email')
end
raw_info() click to toggle source
# File lib/omniauth/strategies/scientist.rb, line 46
def raw_info
  access_token.options[:mode] = :header
  @raw_info ||= { 'user' => access_token['user'] }
end
request_phase() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/scientist.rb, line 12
def request_phase
  super
end

Protected Instance Methods

user_attribute(attribute) click to toggle source
# File lib/omniauth/strategies/scientist.rb, line 61
def user_attribute(attribute)
  raw_info['user'][attribute] if raw_info['user']
end