Class: OmniAuth::Strategies::FreeAgent

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/free_agent.rb

Direct Known Subclasses

FreeAgentSandbox

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



46
47
48
# File 'lib/omniauth/strategies/free_agent.rb', line 46

def callback_url
  options[:redirect_uri] || full_host + script_name + callback_path
end

#company_infoObject



41
42
43
44
# File 'lib/omniauth/strategies/free_agent.rb', line 41

def company_info
  @company_info ||= access_token.get("/v2/company").parsed
  @company_info["company"] || {}
end

#user_infoObject



36
37
38
39
# File 'lib/omniauth/strategies/free_agent.rb', line 36

def 
  @user_info ||= access_token.get("/v2/users/me").parsed
  @user_info["user"] || {}
end