Class: OmniAuth::Strategies::University2035

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

Instance Method Summary collapse

Instance Method Details

#environment_urlsObject



41
42
43
44
45
46
47
# File 'lib/omniauth/strategies/university2035.rb', line 41

def environment_urls
  if options.sandbox
    options.sandbox_client_options
  else
    options.production_client_options
  end
end

#raw_infoObject



49
50
51
# File 'lib/omniauth/strategies/university2035.rb', line 49

def raw_info
  @raw_info ||= access_token.get('/users/me').parsed
end

#setup_phaseObject



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

def setup_phase
  options.client_options.merge!(environment_urls)
  super
end