derfred-rubycas-client 2.0.999

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Manifest.txt ADDED
@@ -0,0 +1,23 @@
1
+ CHANGELOG.txt
2
+ History.txt
3
+ LICENSE.txt
4
+ Manifest.txt
5
+ README.rdoc
6
+ Rakefile
7
+ examples/merb/README.textile
8
+ examples/merb/Rakefile
9
+ examples/merb/merb.thor
10
+ examples/merb/merb_auth_cas.rb
11
+ examples/merb/spec/spec_helper.rb
12
+ init.rb
13
+ lib/casclient.rb
14
+ lib/casclient/client.rb
15
+ lib/casclient/frameworks/merb/filter.rb
16
+ lib/casclient/frameworks/merb/strategy.rb
17
+ lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb
18
+ lib/casclient/frameworks/rails/filter.rb
19
+ lib/casclient/responses.rb
20
+ lib/casclient/tickets.rb
21
+ lib/casclient/version.rb
22
+ lib/rubycas-client.rb
23
+ setup.rb
data/README.rdoc ADDED
@@ -0,0 +1,320 @@
1
+ = RubyCAS-Client
2
+
3
+ Author:: Matt Zukowski <matt AT roughest DOT net>; inspired by code by Ola Bini <ola.bini AT ki DOT se> and Matt Walker <mwalker AT tamu DOT edu>
4
+ Copyright:: (c) 2008 Urbacon Ltd.
5
+ License:: GNU Lesser General Public License v2.1 (LGPL 2.1)
6
+ Websites:: http://code.google.com/p/rubycas-client
7
+ http://github.com/gunark/rubycas-client
8
+ http://rubyforge.org/projects/rubycas-client
9
+
10
+
11
+
12
+ === RubyCAS-Client is a Ruby client library for Yale's Central Authentication Service (CAS) protocol.
13
+
14
+ CAS provides a secure single sign on solution for web-based applications. The user logs in to your
15
+ organization's CAS server, and is automatically authenticated for all other CAS-enabled applications.
16
+
17
+ For general information about the open CAS protocol, please have a look at http://www.ja-sig.org/products/cas.
18
+
19
+ If your organization does not already have a CAS server, you may be interested in RubyCAS-Client's sister project,
20
+ RubyCAS-Server[http://code.google.com/p/rubycas-server/].
21
+
22
+ The RubyCAS-Client package includes adapters for Rails and Merb, although the client library itself can be
23
+ adapted for other frameworks (for example an implementation for Camping is available via the Picnic[http://github.com/zuk/picnic/tree/master]
24
+ library).
25
+
26
+
27
+ == Getting help and reporting problems
28
+
29
+ If you need help, try posting to the RubyCAS discussion group at http://groups.google.com/group/rubycas-server.
30
+
31
+ To report problems, please use the Google Code issue tracker at http://code.google.com/p/rubycas-client/issues/list.
32
+
33
+ API documentation (i.e. the RDocs) are available at http://rubycas-client.rubyforge.org
34
+
35
+
36
+ == Installation
37
+
38
+ You can download the latest version of RubyCAS-Client from the project's rubyforge page at
39
+ http://rubyforge.org/projects/rubycas-client.
40
+
41
+ However, if you're using Rails, it's easier to install the CAS client as a plugin:
42
+
43
+ cd <your rails app>
44
+ ./script/plugin install http://rubycas-client.googlecode.com/svn/trunk/rubycas-client
45
+
46
+ Alternatively, the library is also installable as a RubyGem[http://rubygems.org]:
47
+
48
+ gem install rubycas-client
49
+
50
+ If your Rails application is under Subversion control, you can also install the plugin as an svn:external, ensuring that
51
+ you always have the latest bleeding-edge version of RubyCAS-Client:
52
+
53
+ ./script/plugin install -x http://rubycas-client.googlecode.com/svn/trunk/rubycas-client
54
+
55
+ With Rails 2.1 or newer, it is also possible to install the plugin directly from the bleeding-edge git repository:
56
+
57
+ ./script/plugin install git://github.com/gunark/rubycas-client.git
58
+
59
+ == Usage Examples
60
+
61
+ If you'd rather jump right in, have a look at the example Rails and Merb applications pre-configured for CAS
62
+ authentication:
63
+
64
+ http://github.com/gunark/rubycas-client/tree/master/examples
65
+
66
+
67
+ Otherwise, continue reading for a step-by-step guide for integrating RubyCAS-Client with Rails:
68
+
69
+
70
+ ==== Using RubyCAS-Client in Rails controllers
71
+
72
+ <i>Note that from this point on we are assuming that you have a working CAS server up and running!</i>
73
+
74
+ After installing RubyCAS-Client as a plugin (see above), add the following to your app's <tt>config/environment.rb</tt>
75
+ (make sure that you put it at the bottom of the file, *after* the Rails Initializer):
76
+
77
+ CASClient::Frameworks::Rails::Filter.configure(
78
+ :cas_base_url => "https://cas.example.foo/"
79
+ )
80
+
81
+ (Change the <tt>:cas_base_url</tt> value to your CAS server's base URL; also note that many CAS servers are configured
82
+ with a base URL that looks more like "https://cas.example.foo/cas".)
83
+
84
+ Then, in your <tt>app/controllers/application.rb</tt> (or in whichever controller you want to add the CAS filter for):
85
+
86
+ before_filter CASClient::Frameworks::Rails::Filter
87
+
88
+ That's it. You should now find that you are redirected to your CAS login page whenever you try to access any action
89
+ in your protected controller. You can of course qualify the <tt>before_filter</tt> as you would with any other ActionController
90
+ filter. For example:
91
+
92
+ before_filter CASClient::Frameworks::Rails::Filter, :except => [ :unprotected_action, :another_unprotected_action ]
93
+
94
+ <b>Once the user has been authenticated, their authenticated username is available under <tt>session[:cas_user]</tt>,</b>
95
+ If you want to do something with this username (for example load a user record from the database), you can append another
96
+ filter method that checks for this value and does whatever you need it to do.
97
+
98
+ <b>Note:</b> If Rails complains about missing constants, try adding this before the CASClient configuration:
99
+
100
+ require 'casclient'
101
+ require 'casclient/frameworks/rails/filter'
102
+
103
+
104
+ ==== A more complicated example
105
+
106
+ Here is a more complicated configuration showing most of the configuration options along with their default values
107
+ (this does not show proxy options, which are covered in the next section):
108
+
109
+ # enable detailed CAS logging
110
+ cas_logger = CASClient::Logger.new(RAILS_ROOT+'/log/cas.log')
111
+ cas_logger.level = Logger::DEBUG
112
+
113
+ CASClient::Frameworks::Rails::Filter.configure(
114
+ :cas_base_url => "https://cas.example.foo/",
115
+ :login_url => "https://cas.example.foo/login",
116
+ :logout_url => "https://cas.example.foo/logout",
117
+ :validate_url => "https://cas.example.foo/proxyValidate",
118
+ :username_session_key => :cas_user,
119
+ :extra_attributes_session_key => :cas_extra_attributes,
120
+ :logger => cas_logger,
121
+ :authenticate_on_every_request => true
122
+ )
123
+
124
+ Note that normally it is not necessary to specify <tt>:login_url</tt>, <tt>:logout_url</tt>, and <tt>:validate_url</tt>.
125
+ These values are automatically set to standard CAS defaults based on the given <tt>:cas_base_url</tt>.
126
+
127
+ The <tt>:username_session_key</tt> value determines the key under which you can find the CAS username in the Rails session hash.
128
+
129
+ Any additional info that the CAS server might have supplied about the user during authentication will be found under the
130
+ <tt>:extra_attributes_session_key</tt> value in the Rails session hash (i.e. given the above configuration, you would find this
131
+ info under <tt>session[:cas_extra_attributes]</tt>).
132
+
133
+ An arbitrary Logger instance can be given as the :logger parameter. In the example above we log all CAS activity to a
134
+ <tt>log/cas.log</tt> file in your Rails app's directory.
135
+
136
+ ==== Re-authenticating on every request (i.e. the "single sign-out problem")
137
+
138
+ By default, the Rails filter will only authenticate with the CAS server when no session[:cas_user] value exists. Once the user
139
+ has been authenticated, no further CAS forwarding is done until the user's session is wiped. This saves you
140
+ the trouble of having to do this check yourself (since in most cases it is not advisable to go through the CAS server
141
+ on every request -- this is slow and would potentially lead to problems, for example for AJAX requests). However,
142
+ the disadvantage is that the filter no longer checks to make sure that the user's CAS session is still actually open.
143
+ In other words it is possible for the user's authentication session to be closed on the CAS server without the
144
+ client application knowing about it.
145
+
146
+ To address this, RubyCAS-Client now supports the new "Single Sign-Out" functionality in CAS 3.1, allowing the server to
147
+ notify the client application that the CAS session is closed. The client will automatically intercept Single Sign-Out
148
+ requsts from the CAS server, but in order for this to work you must configure your Rails application as follows:
149
+
150
+ 1. The Rails session store must be set to ActiveRecord: <tt>config.action_controller.session_store = :active_record_store</tt>
151
+ 2. The server must be able to read and write to RAILS_ROOT/tmp/sessions. If you are in a clustered environment,
152
+ the contents of this directory must be shared between all server instances.
153
+ 3. Cross-site request forgery protection must be disabled. In your <tt>application.rb</tt>: <tt>self.allow_forgery_protection = false</tt>.
154
+ (Or rather you may want to disable forgery protection only for actions that are behind the CAS filter.)
155
+
156
+ The best way to debug single-sign out functionality is to configure your CAS client with logging (see above) and then watch the
157
+ log to ensure that single-sign out requests from the server are being processed correctly.
158
+
159
+
160
+ Alternatively, it is possible to disable authentication persistence in the client by setting the <tt>:authenticate_on_every_request</tt>
161
+ configuration option to true as, in the example in the previous section. However, this is not recommended as it will almost
162
+ certainly have a deleterious impact on performance and can interfere with certain HTTP transactions (AJAX requests, for example).
163
+
164
+
165
+ ==== Defining a 'logout' action
166
+
167
+ Your Rails application's controller(s) will probably have some sort of logout function. Here you can do any necessary local
168
+ cleanup, and then call <tt>CASClient::Frameworks::Rails::Filter.logout(controller)</tt>. For example:
169
+
170
+ class ApplicationController < ActionController::Base
171
+
172
+ # ...
173
+
174
+ def logout
175
+ # optionally do some local cleanup here
176
+ # ...
177
+
178
+ CASClient::Frameworks::Rails::Filter.logout(self)
179
+ end
180
+ end
181
+
182
+ By default, the logout method will clear the local Rails session, do some local CAS cleanup, and redirect to the CAS
183
+ logout page. Additionally, the <tt>request.referer</tt> value from the <tt>controller</tt> instance is passed to the
184
+ CAS server as a 'destination' parameter. This allows RubyCAS server to provide a follow-up login page allowing
185
+ the user to log back in to the service they just logged out from using a different username and password. Other
186
+ CAS server implemenations may use this 'destination' parameter in different ways.
187
+
188
+ ==== Gatewayed (i.e. optional) authentication
189
+
190
+ "Gatewaying" essentially allows for optional CAS authentication. Users who already have a pre-existing CAS SSO session
191
+ will be automatically authenticated for the gatewayed service, while those who do not will be allowed to access the service
192
+ without authentication. This is useful for example when you want to show some additional private content on a homepage to
193
+ authenticated users, but also want anonymous users to be able to access the page without first logging in.
194
+
195
+ To allow users to access a page without authenticatin, simply use <tt>CASClient::Frameworks::Rails::GatewayFilter</tt>
196
+ in place of <tt>CASClient::Frameworks::Rails::Filter</tt> in your controller. For example, you may want to require
197
+ CAS authentication for all actions in a controller except the index action:
198
+
199
+ class ExampleController < ApplicationController
200
+ before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :index
201
+ before_filter CASClient::Frameworks::Rails::Filter, :except => :index
202
+
203
+ # ...
204
+ end
205
+
206
+ To provide a login URL for unauthenticated users:
207
+
208
+ <%= link_to("Login", CASClient::Frameworks::Rails::Filter.login_url(controller)) %>
209
+
210
+ ==== How to act as a CAS proxy
211
+
212
+ CAS 2.0 has a built-in mechanism that allows a CAS-authenticated application to pass on its authentication to other applications.
213
+ An example where this is useful might be a portal site, where the user logs in to a central website and then gets forwarded to
214
+ various other sites that run independently of the portal system (but are always accessed via the portal). The exact mechanism
215
+ behind this is rather complicated so I won't go over it here. If you wish to learn more about CAS proxying, a great walkthrough
216
+ is available at http://www.ja-sig.org/wiki/display/CAS/Proxy+CAS+Walkthrough.
217
+
218
+ RubyCAS-Client fully supports proxying, so a CAS-protected Rails application can act as a CAS proxy.
219
+
220
+ Additionally, RubyCAS-Client comes with a controller that can act as a CAS proxy callback receiver. This is necessary because
221
+ when your application requests to act as a CAS proxy, the CAS server must contact your application to deposit the proxy-granting-ticket
222
+ (PGT). Note that in this case the CAS server CONTACTS YOU, rather than you contacting the CAS server (as in all other CAS operations).
223
+
224
+ Confused? Don't worry, you don't really have to understand this to use it. To enable your Rails app to act as a CAS proxy,
225
+ all you need to do is this:
226
+
227
+ In your <tt>config/environment.rb</tt>:
228
+
229
+ # enable detailed CAS logging for easier troubleshooting
230
+ cas_logger = CASClient::Logger.new(RAILS_ROOT+'/log/cas.log')
231
+ cas_logger.level = Logger::DEBUG
232
+
233
+ CASClient::Frameworks::Rails::Filter.configure(
234
+ :cas_base_url => "https://cas.example.foo/",
235
+ :proxy_retrieval_url => "https://cas-proxy-callback.example.foo/cas_proxy_callback/retrieve_pgt",
236
+ :proxy_callback_url => "https://cas-proxy-callback.example.foo/cas_proxy_callback/receive_pgt",
237
+ :logger => cas_logger
238
+ )
239
+
240
+ In <tt>config/routes.rb</tt> make sure that you have a route that will allow requests to /cas_proxy_callback/:action to be routed to the
241
+ CasProxyCallbackController. This should work as-is with the standard Rails routes setup, but if you have disabled the default
242
+ route, you should add the following:
243
+
244
+ map.cas_proxy_callback 'cas_proxy_callback/:action', :controller => 'cas_proxy_callback'
245
+
246
+ Now here's a big giant caveat: <b>your CAS callback application and your CAS proxy application must run on separate Rails servers</b>.
247
+ In other words, if you want a Rails app to act as a CAS ticket-granting proxy, the cas_proxy_callback controller
248
+ must run on a different server. This is because Rails does not properly support handling of concurrent requests. The CAS proxy mechanism
249
+ acts in such a way that if your proxy application and your callback controller were on the same server
250
+ you would end up with a deadlock (the CAS server would be waiting for its callback to be accepted by your Rails server,
251
+ but your Rails server wouldn't respond to the CAS server's callback until the CAS server responded back first).
252
+
253
+ The simplest workaround is this:
254
+
255
+ 1. Create an empty rails app (i.e. something like <tt>rails cas_proxy_callback</tt>)
256
+ 2. Make sure that you have the CAS plugin installed. If you installed it as a gem, you don't have to do anything since
257
+ it is already installed. If you want to install as a plugin, see the instructions in the "Installing" section above.
258
+ 3. Make sure that the server is up and running, and configure your proxy_callback_url and proxy_retrieval_url to point
259
+ to the new server as described above (or rather, make Pound point to the new server, if that's how you're handling https).
260
+
261
+ That's it. The proxy_callback_controller doesn't require any additional configuration. It doesn't access the database
262
+ or anything of that sort.
263
+
264
+ Once your user logs in to CAS via your application, you can do the following to obtain a service ticket that can then be used
265
+ to authenticate another application:
266
+
267
+ service_uri = "http://some-other-application.example.foo"
268
+ proxy_granting_ticket = session[:cas_pgt]
269
+ ticket = CASClient::Frameworks::Rails::Filter.client.request_proxy_ticket(service_uri, proxy_granting_ticket).ticket
270
+
271
+ <tt>ticket</tt> should now contain a valid service ticket. You can use it to authenticate other services by sending it and
272
+ the service URI as parameters to your target application:
273
+
274
+ http://some-other-application.example.foo?service=#{CGI.encode(ticket.target_service)}&ticket=#{ticket.proxy_ticket}
275
+
276
+ This is of course assuming that http://some-other-application.example.foo is also protected by the CAS filter.
277
+ Note that you should always URI-encode your service parameter inside URIs!
278
+
279
+ Note that #request_proxy_ticket returns a CASClient::ProxyTicket object, which is why we need to call #ticket on it
280
+ to retrieve the actual service ticket string.
281
+
282
+ ===== Additional proxying notes and caveats
283
+
284
+ <b>The proxy url must be an https address.</b> Otherwise CAS will refuse to communicate with it. This means that if you are using
285
+ the bundled cas_proxy_callback controller, you will have to host your application on an https-enabled server. This can be a bit
286
+ tricky with Rails. WEBrick's SSL support is difficult to configure, and Mongrel doesn't support SSL at all. One workaround is to
287
+ use a reverse proxy like Pound[http://www.apsis.ch/pound/], which will accept https connections and locally re-route them
288
+ to your Rails application. Also, note that <i>self-signed SSL certificates likely won't work</i>. You will probably need to use
289
+ a real certificate purchased from a trusted CA authority (there are ways around this, but good luck :)
290
+
291
+
292
+ == SSL Support
293
+
294
+ Make sure you have the Ruby OpenSSL library installed. Otherwise you may get errors like:
295
+
296
+ no such file to load -- net/https
297
+
298
+ To install the library on an Debian/Ubuntu system:
299
+
300
+ sudo apt-get install libopenssl-ruby
301
+
302
+ For other platforms you'll have to figure it out yourself.
303
+
304
+
305
+
306
+ == License
307
+
308
+ This program is free software; you can redistribute it and/or modify
309
+ it under the terms of the GNU Lesser General Public License as published by
310
+ the Free Software Foundation; either version 2 of the License, or
311
+ (at your option) any later version.
312
+
313
+ This program is distributed in the hope that it will be useful,
314
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
315
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
316
+ GNU General Public License for more details.
317
+
318
+ You should have received a copy of the GNU Lesser General Public License
319
+ along with this program (see the file called LICENSE); if not, write to the
320
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
data/Rakefile ADDED
@@ -0,0 +1,63 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/clean'
4
+ require 'rake/testtask'
5
+ require 'rake/packagetask'
6
+ require 'rake/gempackagetask'
7
+ require 'rake/rdoctask'
8
+ require 'rake/contrib/rubyforgepublisher'
9
+ require 'fileutils'
10
+ require 'hoe'
11
+ include FileUtils
12
+ require File.join(File.dirname(__FILE__), 'lib', 'casclient', 'version')
13
+
14
+ AUTHOR = ["Matt Zukowski", "Matt Walker"] # can also be an array of Authors
15
+ EMAIL = "matt at roughest dot net"
16
+ DESCRIPTION = "Client library for the Central Authentication Service (CAS) protocol."
17
+ GEM_NAME = "rubycas-client" # what ppl will type to install your gem
18
+ RUBYFORGE_PROJECT = "rubycas-client" # The unix name for your project
19
+ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
20
+
21
+ ENV['NODOT'] = '1'
22
+
23
+ NAME = "rubycas-client"
24
+ REV = nil
25
+ #REV = `svn info`[/Revision: (\d+)/, 1] rescue nil
26
+ VERS = ENV['VERSION'] || (CASClient::VERSION::STRING + (REV ? ".#{REV}" : ""))
27
+ CLEAN.include ['**/.*.sw?', '*.gem', '.config']
28
+ RDOC_OPTS = ['--quiet', '--title', "rubycas-client documentation",
29
+ "--opname", "index.html",
30
+ "--line-numbers",
31
+ "--main", "README",
32
+ "--inline-source"]
33
+
34
+ class Hoe
35
+ def extra_deps
36
+ @extra_deps.reject { |x| Array(x).first == 'hoe' }
37
+ end
38
+ end
39
+
40
+ # Generate all the Rake tasks
41
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
42
+ hoe = Hoe.new(GEM_NAME, VERS) do |p|
43
+ p.author = AUTHOR
44
+ p.description = DESCRIPTION
45
+ p.email = EMAIL
46
+ p.summary = DESCRIPTION
47
+ p.url = HOMEPATH
48
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
49
+ p.test_globs = ["spec/**/*_spec.rb"]
50
+ p.clean_globs = CLEAN #An array of file patterns to delete on clean.
51
+
52
+ # == Optional
53
+ #p.changes - A description of the release's latest changes.
54
+ #p.extra_deps - An array of rubygem dependencies.
55
+ #p.spec_extras - A hash of extra values to set in the gemspec.
56
+ p.extra_deps = ['activesupport']
57
+ end
58
+
59
+ desc 'Build and install rubycas-client'
60
+ task :install do
61
+ system "gem build rubycas-client.gemspec"
62
+ system "sudo gem install rubycas-client-#{VERS}.gem"
63
+ end
data/init.rb ADDED
@@ -0,0 +1,7 @@
1
+ # This file makes it possible to install RubyCAS-Client as a Rails plugin.
2
+
3
+ $: << File.expand_path(File.dirname(__FILE__))+'/lib'
4
+
5
+ require 'casclient'
6
+ require 'casclient/frameworks/rails/request_handler'
7
+ require 'casclient/frameworks/rails/filter'
data/lib/casclient.rb ADDED
@@ -0,0 +1,89 @@
1
+ require 'uri'
2
+ require 'cgi'
3
+ require 'net/https'
4
+ require 'rexml/document'
5
+
6
+ begin
7
+ require 'active_support'
8
+ rescue LoadError
9
+ require 'rubygems'
10
+ require 'active_support'
11
+ end
12
+
13
+ $: << File.expand_path(File.dirname(__FILE__))
14
+
15
+ module CASClient
16
+ class CASException < Exception
17
+ end
18
+
19
+ # Customized logger for the client.
20
+ # This is useful if you're trying to do logging in Rails, since Rails'
21
+ # clean_logger.rb pretty much completely breaks the base Logger class.
22
+ class Logger < ::Logger
23
+ def initialize(logdev, shift_age = 0, shift_size = 1048576)
24
+ @default_formatter = Formatter.new
25
+ super
26
+ end
27
+
28
+ def format_message(severity, datetime, progrname, msg)
29
+ (@formatter || @default_formatter).call(severity, datetime, progname, msg)
30
+ end
31
+
32
+ def break
33
+ self << $/
34
+ end
35
+
36
+ class Formatter < ::Logger::Formatter
37
+ Format = "[%s#%d] %5s -- %s: %s\n"
38
+
39
+ def call(severity, time, progname, msg)
40
+ Format % [format_datetime(time), $$, severity, progname, msg2str(msg)]
41
+ end
42
+ end
43
+ end
44
+
45
+ # Wraps a real Logger. If no real Logger is set, then this wrapper
46
+ # will quietly swallow any logging calls.
47
+ class LoggerWrapper
48
+ def initialize(real_logger=nil)
49
+ set_logger(real_logger)
50
+ end
51
+ # Assign the 'real' Logger instance that this dummy instance wraps around.
52
+ def set_real_logger(real_logger)
53
+ @real_logger = real_logger
54
+ end
55
+ # Log using the appropriate method if we have a logger
56
+ # if we dont' have a logger, gracefully ignore.
57
+ def method_missing(name, *args)
58
+ if @real_logger && @real_logger.respond_to?(name)
59
+ @real_logger.send(name, *args)
60
+ end
61
+ end
62
+ end
63
+ end
64
+
65
+ require 'casclient/tickets'
66
+ require 'casclient/responses'
67
+ require 'casclient/client'
68
+ require 'casclient/version'
69
+
70
+ # Detect legacy configuration and show appropriate error message
71
+ module CAS
72
+ module Filter
73
+ class << self
74
+ def method_missing(method, *args)
75
+ $stderr.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
76
+ $stderr.puts
77
+ $stderr.puts "WARNING: Your RubyCAS-Client configuration is no longer valid!!"
78
+ $stderr.puts
79
+ $stderr.puts "For information on the new configuration format please see: "
80
+ $stderr.puts
81
+ $stderr.puts " http://rubycas-client.googlecode.com/svn/trunk/rubycas-client/README.txt"
82
+ $stderr.puts
83
+ $stderr.puts "After upgrading your configuration you should also clear your application's session store."
84
+ $stderr.puts
85
+ $stderr.puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
86
+ end
87
+ end
88
+ end
89
+ end