Sha256: 3579a784f8bc73d60536beb5ddb31b59999b332b96cfce657ef6aacb4b7e5956

Contents?: true

Size: 454 Bytes

Versions: 19

Compression:

Stored size: 454 Bytes

Contents

# This is the most basic, bare-bones example.
# For advanced usage see the AdvancedExampleController.
class SimpleExampleController < ApplicationController
  # This will force CAS authentication before the user
  # is allowed to access any action in this controller. 
  before_filter CASClient::Frameworks::Rails::Filter

  def index
    @username = session[:cas_user]
  end

  def logout
    CASClient::Frameworks::Rails::Filter.logout(self)
  end

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
rubycas-client-2.3.10.rc1 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.9 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.9.rc1 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.8 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.7 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.6 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.5 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.3 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.2 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.1 examples/rails/app/controllers/simple_example_controller.rb
rubycas-client-2.3.0.rc1 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha8 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha7 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha6 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha5 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha4 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha3 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha2 examples/rails/app/controllers/simple_example_controller.rb
vibes-rubycas-client-2.3.0.alpha examples/rails/app/controllers/simple_example_controller.rb