Class: OmniAuth::Strategies::Gumroad

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



19
20
21
22
23
24
25
26
27
# File 'lib/omniauth/strategies/gumroad.rb', line 19

def authorize_params
  super.tap do |params|
    %w[scope client_options].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end

#callback_urlObject



29
30
31
# File 'lib/omniauth/strategies/gumroad.rb', line 29

def callback_url
  options[:redirect_uri] || super
end

#raw_infoObject



49
50
51
# File 'lib/omniauth/strategies/gumroad.rb', line 49

def raw_info
  @raw_info ||= access_token.get("/api/v2/user").parsed
end

#request_phaseObject



15
16
17
# File 'lib/omniauth/strategies/gumroad.rb', line 15

def request_phase
  super
end