Sha256: b1d204d60627fb0513ce27edc70396b2ec53a7199c1c76cdca0e4f68390995f4

Contents?: true

Size: 320 Bytes

Versions: 4

Compression:

Stored size: 320 Bytes

Contents

module Capcoauth
  module Helpers
    module Controller
      extend ActiveSupport::Concern

      private

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capcoauth-0.1.4 lib/capcoauth/helpers/controller.rb
capcoauth-0.1.3 lib/capcoauth/helpers/controller.rb
capcoauth-0.1.2 lib/capcoauth/helpers/controller.rb
capcoauth-0.1.1 lib/capcoauth/helpers/controller.rb