class OmniAuth::Strategies::VSTS
Public Instance Methods
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