class OmniAuth::Strategies::Tradier

Constants

DEFAULT_SCOPE

Public Instance Methods

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

    params[:scope] ||= DEFAULT_SCOPE
  end
end
raw_info() click to toggle source
# File lib/omniauth/strategies/tradier.rb, line 39
def raw_info
  @raw_info ||= access_token.get('/v1/user/profile', :headers => { 'Accept' => 'application/json' }).parsed
end