Class: OmniAuth::Strategies::Geoloqi

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/geoloqi.rb

Instance Method Summary collapse

Instance Method Details

#access_token_optionsObject



43
44
45
# File 'lib/omniauth/strategies/geoloqi.rb', line 43

def access_token_options
  options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h }
end

#authorize_paramsObject



47
48
49
50
51
# File 'lib/omniauth/strategies/geoloqi.rb', line 47

def authorize_params
  super.tap do |params|
    params.merge!(:display => request.params['display']) if request.params['display']
  end
end

#build_access_tokenObject



37
38
39
40
41
# File 'lib/omniauth/strategies/geoloqi.rb', line 37

def build_access_token
  super.tap do |token|
    token.options.merge!(access_token_options)
  end
end