Module: Capcoauth::Helpers::Controller

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController
Defined in:
lib/capcoauth/helpers/controller.rb

Instance Method Summary collapse

Instance Method Details

#capcoauth_tokenObject



6
7
8
# File 'lib/capcoauth/helpers/controller.rb', line 6

def capcoauth_token
  @capcoauth_token ||= OAuth::AccessToken.new(session[:capcoauth_access_token])
end

#oauth_callback_urlObject



10
11
12
# File 'lib/capcoauth/helpers/controller.rb', line 10

def oauth_callback_url
  "#{root_url}auth/callback"
end