class OmniAuth::Strategies::Icalia

Constants

INFO_PATH

Public Class Methods

instances() click to toggle source
# File lib/omniauth/strategies/icalia.rb, line 17
def self.instances
  class_variable_get('@@instances')
end
new(*args) click to toggle source
Calls superclass method
# File lib/omniauth/strategies/icalia.rb, line 21
def initialize(*args)
  ret = super
  @@instances << self
  ret
end

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/icalia.rb, line 31
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/icalia.rb, line 68
def callback_url
  full_host + script_name + callback_path
end
raw_info() click to toggle source
# File lib/omniauth/strategies/icalia.rb, line 59
def raw_info
  access_token.options[:mode] = :header
  @raw_info ||= fetch_user_info
end
request_phase() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/icalia.rb, line 27
def request_phase
  super
end
scope() click to toggle source
# File lib/omniauth/strategies/icalia.rb, line 64
def scope
  access_token['scope']
end

Private Instance Methods

fetch_user_info() click to toggle source
# File lib/omniauth/strategies/icalia.rb, line 74
def fetch_user_info
  response_body = access_token.get(INFO_PATH).body
  raw_data = ActiveSupport::JSON.decode(response_body)
  ::Icalia::Event::Deserializer.new(raw_data).perform
end