class OmniAuth::Strategies::Geni
Public Instance Methods
build_access_token()
click to toggle source
# File lib/omniauth/strategies/geni.rb, line 30 def build_access_token token_params = { :code => request.params['code'], :redirect_uri => callback_url, :client_id => client.id, :client_secret => client.secret } client.get_token(token_params) end
raw_info()
click to toggle source
# File lib/omniauth/strategies/geni.rb, line 60 def raw_info @raw_info ||= access_token.get('/api/profile').parsed end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/geni.rb, line 26 def request_phase super end
Private Instance Methods
prune!(hash)
click to toggle source
# File lib/omniauth/strategies/geni.rb, line 74 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