Class: OmniAuth::Strategies::Donorhub

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

Instance Method Summary collapse

Instance Method Details

#clientObject



42
43
44
45
46
47
48
# File 'lib/omniauth/strategies/donorhub.rb', line 42

def client
  return super unless oauth_url
  options.client_options.site = oauth_site
  options.client_options.authorize_url = oauth_path
  options.client_options.token_url = oauth_path
  super
end

#query_stringObject



36
37
38
39
40
# File 'lib/omniauth/strategies/donorhub.rb', line 36

def query_string
  request.delete_param('code')
  request.delete_param('state')
  request.params.to_query ? "?#{request.params.to_query}" : ''
end

#raw_infoObject



32
33
34
# File 'lib/omniauth/strategies/donorhub.rb', line 32

def raw_info
  @raw_info ||= {}
end