Skip to content

Commit

Permalink
adding service url to readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
moofish32 committed Aug 27, 2014
1 parent b6692b9 commit dee83e1
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 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 dee83e1

Please sign in to comment.