Class: OmniAuth::Strategies::FreeAgent
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::FreeAgent
- Defined in:
- lib/omniauth/strategies/free_agent.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
46 47 48 |
# File 'lib/omniauth/strategies/free_agent.rb', line 46 def callback_url [:redirect_uri] || full_host + script_name + callback_path end |
#company_info ⇒ Object
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_info ⇒ Object
36 37 38 39 |
# File 'lib/omniauth/strategies/free_agent.rb', line 36 def user_info @user_info ||= access_token.get("/v2/users/me").parsed @user_info["user"] || {} end |