Class: OmniAuth::Strategies::CronofyServiceAccount

Inherits:
CronofyBase
  • Object
show all
Defined in:
lib/omniauth/strategies/cronofy_service_account.rb

Instance Method Summary collapse

Methods inherited from CronofyBase

#api_url, #app_url, #client, #client_options, #data_center_env, #data_center_url

Instance Method Details

#callback_urlObject



26
27
28
# File 'lib/omniauth/strategies/cronofy_service_account.rb', line 26

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

#raw_infoObject



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

def raw_info
  @raw_info ||= access_token.get("#{client_options[:api_url]}/v1/userinfo").parsed
end

#request_phaseObject



10
11
12
13
# File 'lib/omniauth/strategies/cronofy_service_account.rb', line 10

def request_phase
  options[:authorize_params] = { delegated_scope: options[:delegated_scope]} if options[:delegated_scope]
  super
end