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