class OmniAuth::Strategies::Producthunt

Constants

DEFAULT_SCOPES

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/product_hunt.rb, line 20
def authorize_params
  super.tap do |params|
    scope = params[:scope].to_s.split(/\s+/)
    scope = scope.concat(DEFAULT_SCOPES.reject {|s| scope.include?(s) })
    params[:scope] = scope.join(" ")
  end
end
callback_url() click to toggle source
# File lib/omniauth/strategies/product_hunt.rb, line 16
def callback_url
  options[:redirect_uri] || full_host + script_name + callback_path
end
raw_info() click to toggle source
# File lib/omniauth/strategies/product_hunt.rb, line 48
def raw_info
  @raw_info ||= deep_symbolize(access_token.get("/v1/me").parsed)
end