class OmniAuth::Strategies::VSTS

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/vsts.rb, line 24
def authorize_params
  super.tap do |params|
    %w[client_options].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end
callback_url() click to toggle source
# File lib/omniauth/strategies/vsts.rb, line 20
def callback_url
  full_host + script_name + callback_path
end
raw_info() click to toggle source
# File lib/omniauth/strategies/vsts.rb, line 48
def raw_info
  @raw_info ||= access_token.get('/_apis/profile/profiles/me?api-version=1.0').parsed
end

Protected Instance Methods

build_access_token() click to toggle source
# File lib/omniauth/strategies/vsts.rb, line 54
def build_access_token
  assertion = request.params["code"]
  client.get_token({:assertion => assertion, :redirect_uri => callback_url}.merge(token_params.to_hash(:symbolize_keys => true)))
end