Class: OmniAuth::Strategies::Harvest
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Harvest
- Defined in:
- lib/omniauth/strategies/harvest.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/omniauth/strategies/harvest.rb', line 12 def super.tap do |params| params[:response_type] = "code" params[:client_id] = client.id params[:redirect_uri] ||= callback_url end end |
#build_access_token ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/omniauth/strategies/harvest.rb', line 24 def build_access_token token_params = { :code => request.params['code'], :redirect_uri => callback_url, :client_id => client.id, :client_secret => client.secret, :grant_type => 'authorization_code' } client.get_token(token_params) end |
#request_phase ⇒ Object
20 21 22 |
# File 'lib/omniauth/strategies/harvest.rb', line 20 def request_phase super end |