class OmniAuth::Strategies::Donorhub

Public Instance Methods

client() click to toggle source
Calls superclass method
# 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_string() click to toggle source
# 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_info() click to toggle source
# File lib/omniauth/strategies/donorhub.rb, line 32
def raw_info
  @raw_info ||= {}
end

Private Instance Methods

oauth_path() click to toggle source
# File lib/omniauth/strategies/donorhub.rb, line 52
def oauth_path
  @oauth_path ||= URI(oauth_url).request_uri
end
oauth_site() click to toggle source
# File lib/omniauth/strategies/donorhub.rb, line 56
def oauth_site
  return @oauth_site if @oauth_site
  uri = URI(oauth_url)
  uri.path = ''
  uri.query = nil
  @oauth_site = uri.to_s
end
oauth_url() click to toggle source
# File lib/omniauth/strategies/donorhub.rb, line 64
def oauth_url
  return @oauth_url if @oauth_url
  if env.nil?
    @oauth_url = options.oauth_url
  else
    @oauth_url = request.params['oauth_url'] || options.oauth_url
  end
end