Class: OmniAuth::Strategies::Procore
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Procore
- Defined in:
- lib/omniauth/strategies/procore.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
35 36 37 |
# File 'lib/omniauth/strategies/procore.rb', line 35 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
28 29 30 31 32 33 |
# File 'lib/omniauth/strategies/procore.rb', line 28 def raw_info access_token.client.site = [:client_options][:api_site] version = [:client_options][:version] path = /\Av\d+\.\d+\z/.match?(version) ? "/rest/#{version}" : "/#{version}" @raw_info ||= access_token.get("#{path}/me").parsed end |