Skip to content

Commit 195a4b7

Browse files
committed
Merge pull request #80 from moofish32/master
Add service url configuration to the list
2 parents b6692b9 + 6386fcf commit 195a4b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.rdoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Here is a more complicated configuration showing most of the configuration optio
122122
:extra_attributes_session_key => :cas_extra_attributes,
123123
:logger => cas_logger,
124124
:enable_single_sign_out => true
125+
:service_url => "https://mysite.service.com"
125126
)
126127

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

140+
The service url sets the service parameter that will be sent to CAS for every authentication. This can be useful if you are
141+
implementing the single logout feature (supported by some CAS Servers) or would like to funnel all authentications through a specific action.
142+
139143
==== Re-authenticating on every request (i.e. the "single sign-out problem")
140144

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

0 commit comments

Comments
 (0)