class OmniAuth::Strategies::Hubspot

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/hubspot.rb, line 74
def authorize_params
  super.tap do |params|
    %w[scope optional_scope].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end
callback_url() click to toggle source

private

# File lib/omniauth/strategies/hubspot.rb, line 90
def callback_url
  full_host + script_name + callback_path
end
identity() click to toggle source
# File lib/omniauth/strategies/hubspot.rb, line 84
def identity
  @identity ||= access_token.get("/oauth/v1/access-tokens/#{access_token.token}").parsed
end