Class: OmniAuth::Strategies::Applicaster

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

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



30
31
32
# File 'lib/omniauth/strategies/applicaster.rb', line 30

def callback_url
  full_host + script_name + callback_path
end

#clientObject



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

def client
  ::Applicaster::Accounts.oauth_client
end

#raw_infoObject



22
23
24
# File 'lib/omniauth/strategies/applicaster.rb', line 22

def raw_info
  @raw_info ||= access_token.get('/api/v1/users/current.json').parsed
end