Skip to content

Commit

Permalink
Merge pull request #80 from moofish32/master
Browse files Browse the repository at this point in the history
Add service url configuration to the list
  • Loading branch information
soupmatt committed Aug 31, 2014
2 parents b6692b9 + 6386fcf commit 195a4b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Here is a more complicated configuration showing most of the configuration optio
:extra_attributes_session_key => :cas_extra_attributes,
:logger => cas_logger,
:enable_single_sign_out => true
:service_url => "https://mysite.service.com"
)

Note that normally it is not necessary to specify <tt>:login_url</tt>, <tt>:logout_url</tt>, and <tt>:validate_url</tt>.
Expand All @@ -136,6 +137,9 @@ info under <tt>session[:cas_extra_attributes]</tt>).
An arbitrary Logger instance can be given as the :logger parameter. In the example above we log all CAS activity to a
<tt>log/cas.log</tt> file in your Rails app's directory.

The service url sets the service parameter that will be sent to CAS for every authentication. This can be useful if you are
implementing the single logout feature (supported by some CAS Servers) or would like to funnel all authentications through a specific action.

==== Re-authenticating on every request (i.e. the "single sign-out problem")

By default, the Rails filter will only authenticate with the CAS server when no session[:cas_user] value exists. Once the user
Expand Down

0 comments on commit 195a4b7

Please sign in to comment.