From f21e924a19ef3290372bfa78a1f98e51bb4d7002 Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 31 Aug 2011 12:21:25 +0800 Subject: [PATCH 1/6] change RAILS_ROOT to Rails.root , RAILS_DEFAULT_LOGGER to Rails.logger --- README.rdoc | 6 +++--- examples/rails/config/boot.rb | 10 +++++----- examples/rails/config/environment.rb | 2 +- lib/casclient/frameworks/rails/filter.rb | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.rdoc b/README.rdoc index 2cd6637e..55769cb4 100644 --- a/README.rdoc +++ b/README.rdoc @@ -107,7 +107,7 @@ Here is a more complicated configuration showing most of the configuration optio (this does not show proxy options, which are covered in the next section): # enable detailed CAS logging - cas_logger = CASClient::Logger.new(RAILS_ROOT+'/log/cas.log') + cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( @@ -148,7 +148,7 @@ notify the client application that the CAS session is closed. The client will au requsts from the CAS server, but in order for this to work you must configure your Rails application as follows: 1. The Rails session store must be set to ActiveRecord: config.action_controller.session_store = :active_record_store -2. The server must be able to read and write to RAILS_ROOT/tmp/sessions. If you are in a clustered environment, +2. The server must be able to read and write to Rails.root/tmp/sessions. If you are in a clustered environment, the contents of this directory must be shared between all server instances. 3. Cross-site request forgery protection must be disabled. In your application.rb: self.allow_forgery_protection = false. (Or rather you may want to disable forgery protection only for actions that are behind the CAS filter.) @@ -229,7 +229,7 @@ all you need to do is this: In your config/environment.rb: # enable detailed CAS logging for easier troubleshooting - cas_logger = CASClient::Logger.new(RAILS_ROOT+'/log/cas.log') + cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( diff --git a/examples/rails/config/boot.rb b/examples/rails/config/boot.rb index 6a30b549..704bfcc3 100644 --- a/examples/rails/config/boot.rb +++ b/examples/rails/config/boot.rb @@ -1,7 +1,7 @@ # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb -RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) +Rails.root = "#{File.dirname(__FILE__)}/.." unless defined?(Rails.root) module Rails class << self @@ -21,7 +21,7 @@ def pick_boot end def vendor_rails? - File.exist?("#{RAILS_ROOT}/vendor/rails") + File.exist?("#{Rails.root}/vendor/rails") end def preinitialize @@ -29,7 +29,7 @@ def preinitialize end def preinitializer_path - "#{RAILS_ROOT}/config/preinitializer.rb" + "#{Rails.root}/config/preinitializer.rb" end end @@ -42,7 +42,7 @@ def run class VendorBoot < Boot def load_initializer - require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" + require "#{Rails.root}/vendor/rails/railties/lib/initializer" Rails::Initializer.run(:install_gem_spec_stubs) end end @@ -99,7 +99,7 @@ def parse_gem_version(text) private def read_environment_rb - File.read("#{RAILS_ROOT}/config/environment.rb") + File.read("#{Rails.root}/config/environment.rb") end end end diff --git a/examples/rails/config/environment.rb b/examples/rails/config/environment.rb index 430e2735..0f0ce831 100644 --- a/examples/rails/config/environment.rb +++ b/examples/rails/config/environment.rb @@ -24,7 +24,7 @@ # More complicated configuration -#cas_logger = CASClient::Logger.new(RAILS_ROOT+'/log/cas.log') +#cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') #cas_logger.level = Logger::DEBUG # #CASClient::Frameworks::Rails::Filter.configure( diff --git a/lib/casclient/frameworks/rails/filter.rb b/lib/casclient/frameworks/rails/filter.rb index bc9eba23..02790edc 100644 --- a/lib/casclient/frameworks/rails/filter.rb +++ b/lib/casclient/frameworks/rails/filter.rb @@ -143,8 +143,8 @@ def configure(config) @@config[:logger] ||= begin if defined?(Rails) && Rails.respond_to?(:logger) Rails.logger - elsif defined?(RAILS_DEFAULT_LOGGER) - RAILS_DEFAULT_LOGGER + elsif defined?(Rails.logger) + Rails.logger end end @@client = CASClient::Client.new(config) @@ -408,7 +408,7 @@ def delete_service_session_lookup(st) # Returns the path and filename of the service session lookup file. def filename_of_service_session_lookup(st) st = st.ticket if st.kind_of? ServiceTicket - return "#{RAILS_ROOT}/tmp/sessions/cas_sess.#{st}" + return "#{Rails.root}/tmp/sessions/cas_sess.#{st}" end end end From d5af32ee49aac7f25033a93e595f94658f6dc82b Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 31 Aug 2011 14:19:38 +0800 Subject: [PATCH 2/6] change gemspec to 2.2. --- rubycas-client.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rubycas-client.gemspec b/rubycas-client.gemspec index 035e5c01..65893ab1 100644 --- a/rubycas-client.gemspec +++ b/rubycas-client.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = %q{rubycas-client} - s.version = "2.1.0" + s.version = "2.2.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Matt Zukowski", "Matt Walker"] From d91beffe55be219a762d3408a62f596db1ef0f44 Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 31 Aug 2011 15:09:22 +0800 Subject: [PATCH 3/6] add :: --- README.rdoc | 6 +++--- examples/rails/config/boot.rb | 10 +++++----- examples/rails/config/environment.rb | 2 +- lib/casclient/frameworks/rails/filter.rb | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.rdoc b/README.rdoc index 55769cb4..ac017864 100644 --- a/README.rdoc +++ b/README.rdoc @@ -107,7 +107,7 @@ Here is a more complicated configuration showing most of the configuration optio (this does not show proxy options, which are covered in the next section): # enable detailed CAS logging - cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') + cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( @@ -148,7 +148,7 @@ notify the client application that the CAS session is closed. The client will au requsts from the CAS server, but in order for this to work you must configure your Rails application as follows: 1. The Rails session store must be set to ActiveRecord: config.action_controller.session_store = :active_record_store -2. The server must be able to read and write to Rails.root/tmp/sessions. If you are in a clustered environment, +2. The server must be able to read and write to ::Rails.root.to_s/tmp/sessions. If you are in a clustered environment, the contents of this directory must be shared between all server instances. 3. Cross-site request forgery protection must be disabled. In your application.rb: self.allow_forgery_protection = false. (Or rather you may want to disable forgery protection only for actions that are behind the CAS filter.) @@ -229,7 +229,7 @@ all you need to do is this: In your config/environment.rb: # enable detailed CAS logging for easier troubleshooting - cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') + cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( diff --git a/examples/rails/config/boot.rb b/examples/rails/config/boot.rb index 704bfcc3..01192fb5 100644 --- a/examples/rails/config/boot.rb +++ b/examples/rails/config/boot.rb @@ -1,7 +1,7 @@ # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb -Rails.root = "#{File.dirname(__FILE__)}/.." unless defined?(Rails.root) +::Rails.root.to_s = "#{File.dirname(__FILE__)}/.." unless defined?(::Rails.root.to_s) module Rails class << self @@ -21,7 +21,7 @@ def pick_boot end def vendor_rails? - File.exist?("#{Rails.root}/vendor/rails") + File.exist?("#{::Rails.root.to_s}/vendor/rails") end def preinitialize @@ -29,7 +29,7 @@ def preinitialize end def preinitializer_path - "#{Rails.root}/config/preinitializer.rb" + "#{::Rails.root.to_s}/config/preinitializer.rb" end end @@ -42,7 +42,7 @@ def run class VendorBoot < Boot def load_initializer - require "#{Rails.root}/vendor/rails/railties/lib/initializer" + require "#{::Rails.root.to_s}/vendor/rails/railties/lib/initializer" Rails::Initializer.run(:install_gem_spec_stubs) end end @@ -99,7 +99,7 @@ def parse_gem_version(text) private def read_environment_rb - File.read("#{Rails.root}/config/environment.rb") + File.read("#{::Rails.root.to_s}/config/environment.rb") end end end diff --git a/examples/rails/config/environment.rb b/examples/rails/config/environment.rb index 0f0ce831..b654ddbe 100644 --- a/examples/rails/config/environment.rb +++ b/examples/rails/config/environment.rb @@ -24,7 +24,7 @@ # More complicated configuration -#cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') +#cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') #cas_logger.level = Logger::DEBUG # #CASClient::Frameworks::Rails::Filter.configure( diff --git a/lib/casclient/frameworks/rails/filter.rb b/lib/casclient/frameworks/rails/filter.rb index 02790edc..e07e78e2 100644 --- a/lib/casclient/frameworks/rails/filter.rb +++ b/lib/casclient/frameworks/rails/filter.rb @@ -142,9 +142,9 @@ def configure(config) @@config = config @@config[:logger] ||= begin if defined?(Rails) && Rails.respond_to?(:logger) - Rails.logger - elsif defined?(Rails.logger) - Rails.logger + ::Rails.logger + elsif defined?(::Rails.logger) + ::Rails.logger end end @@client = CASClient::Client.new(config) @@ -408,7 +408,7 @@ def delete_service_session_lookup(st) # Returns the path and filename of the service session lookup file. def filename_of_service_session_lookup(st) st = st.ticket if st.kind_of? ServiceTicket - return "#{Rails.root}/tmp/sessions/cas_sess.#{st}" + return "#{::Rails.root.to_s}/tmp/sessions/cas_sess.#{st}" end end end From 590c7d0a79aeb19b15c5cb90075c6e3b6c225428 Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 21 Sep 2011 15:21:50 +0800 Subject: [PATCH 4/6] rollback to 2.1.0 and change Rails.logger --- History.txt | 32 +- LICENSE.txt | 528 +++++++++++++++++- README.rdoc | 49 +- lib/casclient.rb | 3 +- lib/casclient/client.rb | 19 +- .../rails/cas_proxy_callback_controller.rb | 2 +- lib/casclient/frameworks/rails/filter.rb | 103 +--- lib/casclient/responses.rb | 15 +- lib/casclient/version.rb | 4 +- 9 files changed, 552 insertions(+), 203 deletions(-) diff --git a/History.txt b/History.txt index 572dd93e..0b636c1a 100644 --- a/History.txt +++ b/History.txt @@ -1,35 +1,5 @@ = RubyCAS-Client Changelog -== Version 2.2.1 :: 2010-06-24 - -* Removed a 3rd party patch to the logging mechanism that broke the client under - some circumstances. Ouch. 2.2.0 should never have made it through QA. - -== Version 2.2.0 :: 2010-06-22 - -RubyCAS-Client is now licensed under the MIT License. -See http://www.opensource.org/licenses/mit-license.php - -* New functionality: - * Added config parameter force_ssl_verification (self explanatory) [Roberto Klein] - * Added explicit SingleSignutFilter for Rails (convenient?) [Adam Elliot] - * Added support for faking out the filter; useful when testing. See - http://github.com/gunark/rubycas-client/commit/1eb10cc285d59193eede3d4406f95cad9db9d93a - [Brian Hogan] - -* Changes to existing functionality: - * Unauthorized requests to URLs ending in .xml now show an XML formatted - response (#{failure_message}) [Roberto Klein] - * Accepts HTTPFound (302) as a successful response from the CAS server (in - addition to HTTPSuccess (2xx) [taryneast] - -* Bug fixes: - * Got rid of warnings if @valid is not initialized in Responses [jamesarosen] - * Fixed warning when setting the logger [jamesarosen] - * Client should no longer crap out when using CAS v1 and extra_attributes is - empty [jorahood] - - == Version 2.1.0 :: 2009-08-18 * New functionality: @@ -189,4 +159,4 @@ See http://www.opensource.org/licenses/mit-license.php passed on by at least some reverse proxies (like Pound), and if you are using the callback controller then you are almost certainly also using a reverse proxy. -* Cleaned up and updated documentation, fixed some example code. +* Cleaned up and updated documentation, fixed some example code. \ No newline at end of file diff --git a/LICENSE.txt b/LICENSE.txt index 637e3152..1837b0ac 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,26 +1,504 @@ -Portions of RubyCAS-Client contributed by Matt Zukowski are copyright (c) 2009 Urbacon Ltd. -Other portions are copyright of their respective authors. - -The MIT License - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + diff --git a/README.rdoc b/README.rdoc index ac017864..19fa6053 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,12 +1,11 @@ = RubyCAS-Client Author:: Matt Zukowski ; inspired by code by Ola Bini and Matt Walker -Copyright:: Portions contributed by Matt Zukowski are copyright (c) 2009 Urbacon Ltd. - Other portions are copyright of their respective authors. -License:: MIT License -Websites:: http://github.com/gunark/rubycas-client - http://code.google.com/p/rubycas-client - http://rubyforge.org/projects/rubycas-client +Copyright:: (c) 2008 Urbacon Ltd. +License:: GNU Lesser General Public License v2.1 (LGPL 2.1) +Websites:: http://code.google.com/p/rubycas-client + http://github.com/gunark/rubycas-client + http://rubyforge.org/projects/rubycas-client @@ -36,15 +35,13 @@ API documentation (i.e. the RDocs) are available at http://rubycas-client.rubyfo == Installation -NOTE: For compatibility with Rails 3 have a look at https://github.com/zuk/rubycas-client-rails - You can download the latest version of RubyCAS-Client from the project's rubyforge page at http://rubyforge.org/projects/rubycas-client. However, if you're using Rails, it's easier to install the CAS client as a plugin: cd - ./script/plugin install git://github.com/gunark/rubycas-client.git + ./script/plugin install http://rubycas-client.googlecode.com/svn/trunk/rubycas-client Alternatively, the library is also installable as a RubyGem[http://rubygems.org]: @@ -53,8 +50,11 @@ Alternatively, the library is also installable as a RubyGem[http://rubygems.org] If your Rails application is under Subversion control, you can also install the plugin as an svn:external, ensuring that you always have the latest bleeding-edge version of RubyCAS-Client: - ./script/plugin install -x http://svn.github.com/gunark/rubycas-client.git + ./script/plugin install -x http://rubycas-client.googlecode.com/svn/trunk/rubycas-client +With Rails 2.1 or newer, it is also possible to install the plugin directly from the bleeding-edge git repository: + + ./script/plugin install git://github.com/gunark/rubycas-client.git == Usage Examples @@ -107,7 +107,7 @@ Here is a more complicated configuration showing most of the configuration optio (this does not show proxy options, which are covered in the next section): # enable detailed CAS logging - cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') + cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( @@ -148,7 +148,7 @@ notify the client application that the CAS session is closed. The client will au requsts from the CAS server, but in order for this to work you must configure your Rails application as follows: 1. The Rails session store must be set to ActiveRecord: config.action_controller.session_store = :active_record_store -2. The server must be able to read and write to ::Rails.root.to_s/tmp/sessions. If you are in a clustered environment, +2. The server must be able to read and write to Rails.root/tmp/sessions. If you are in a clustered environment, the contents of this directory must be shared between all server instances. 3. Cross-site request forgery protection must be disabled. In your application.rb: self.allow_forgery_protection = false. (Or rather you may want to disable forgery protection only for actions that are behind the CAS filter.) @@ -229,7 +229,7 @@ all you need to do is this: In your config/environment.rb: # enable detailed CAS logging for easier troubleshooting - cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') + cas_logger = CASClient::Logger.new(Rails.root+'/log/cas.log') cas_logger.level = Logger::DEBUG CASClient::Frameworks::Rails::Filter.configure( @@ -303,19 +303,20 @@ To install the library on an Debian/Ubuntu system: For other platforms you'll have to figure it out yourself. -== Testing -In some cases, especially those using Cucumber or other tools that simply can't work with -CAS, it may be necessary to work around CAS instead. -In your test or Cucumber step definition, simply fake out CAS. - - CASClient::Frameworks::Rails::Filter.fake("homer") +== License -This functionality was present in the original version of this plugin. -The value of the username is stored in session[:cas_user] (or the user specified field) and session[:casfilteruser] for backwards-compatibility. +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. -== License +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. -RubyCAS-Client is licensed for use under the terms of the MIT License. -See the LICENSE.txt file bundled with the official RubyCAS-Client distribution for details. +You should have received a copy of the GNU Lesser General Public License +along with this program (see the file called LICENSE); if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/lib/casclient.rb b/lib/casclient.rb index a7156c44..81fc85b6 100644 --- a/lib/casclient.rb +++ b/lib/casclient.rb @@ -1,6 +1,5 @@ require 'uri' require 'cgi' -require 'logger' require 'net/https' require 'rexml/document' @@ -87,4 +86,4 @@ def method_missing(method, *args) end end end -end +end \ No newline at end of file diff --git a/lib/casclient/client.rb b/lib/casclient/client.rb index cea4427e..6fc52778 100644 --- a/lib/casclient/client.rb +++ b/lib/casclient/client.rb @@ -22,7 +22,6 @@ def configure(conf) @validate_url = conf[:validate_url] @proxy_url = conf[:proxy_url] @service_url = conf[:service_url] - @force_ssl_verification = conf[:force_ssl_verification] @proxy_callback_url = conf[:proxy_callback_url] @proxy_retrieval_url = conf[:proxy_retrieval_url] @@ -106,7 +105,6 @@ def cas_server_is_up? https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = (uri.scheme == 'https') - https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE) begin raw_res = https.start do |conn| @@ -133,13 +131,7 @@ def login_to_service(credentials, service) ) res = submit_data_to_cas(login_url, data) - response = CASClient::LoginResponse.new(res) - - if response.is_success? - log.info("Login was successful for ticket: #{response.ticket.inspect}.") - end - - return response + CASClient::LoginResponse.new(res) end # Requests a login ticket from the CAS server for use in a login request; @@ -151,7 +143,6 @@ def request_login_ticket uri = URI.parse(login_url+'Ticket') https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = (uri.scheme == 'https') - https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE) res = https.post(uri.path, ';') raise CASException, res.body unless res.kind_of? Net::HTTPSuccess @@ -193,8 +184,6 @@ def retrieve_proxy_granting_ticket(pgt_iou) uri = URI.parse(uri) unless uri.kind_of? URI https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = (uri.scheme == 'https') - https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE) - res = https.start do |conn| conn.get("#{uri.path}?#{uri.query}") end @@ -220,7 +209,6 @@ def request_cas_response(uri, type) uri = URI.parse(uri) unless uri.kind_of? URI https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = (uri.scheme == 'https') - https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE) begin raw_res = https.start do |conn| @@ -251,7 +239,6 @@ def submit_data_to_cas(uri, data) req.set_form_data(data, ';') https = Net::HTTP.new(uri.host, uri.port) https.use_ssl = (uri.scheme == 'https') - https.verify_mode = (@force_ssl_verification ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE) https.start {|conn| conn.request(req) } end @@ -263,9 +250,9 @@ def hash_to_query(hash) pairs = [] hash.each do |k, vals| vals = [vals] unless vals.kind_of? Array - vals.each {|v| pairs << (v.nil? ? CGI.escape(k) : "#{CGI.escape(k)}=#{CGI.escape(v)}")} + vals.each {|v| pairs << "#{CGI.escape(k)}=#{CGI.escape(v)}"} end pairs.join("&") end end -end +end \ No newline at end of file diff --git a/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb b/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb index 59c99f69..01b0e57f 100644 --- a/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb +++ b/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb @@ -71,6 +71,6 @@ def render_error(msg) end def open_pstore - PStore.new("#{RAILS_ROOT}/tmp/cas_pgt.pstore") + PStore.new("#{Rails.root}/tmp/cas_pgt.pstore") end end diff --git a/lib/casclient/frameworks/rails/filter.rb b/lib/casclient/frameworks/rails/filter.rb index e07e78e2..df1d1a2a 100644 --- a/lib/casclient/frameworks/rails/filter.rb +++ b/lib/casclient/frameworks/rails/filter.rb @@ -8,21 +8,11 @@ class Filter @@config = nil @@client = nil @@log = nil - @@fake_user = nil - @@fake_extra_attributes = nil class << self def filter(controller) raise "Cannot use the CASClient filter because it has not yet been configured." if config.nil? - if @@fake_user - controller.session[client.username_session_key] = @@fake_user - controller.session[:casfilteruser] = @@fake_user - controller.session[client.extra_attributes_session_key] = @@fake_extra_attributes - return true - end - - last_st = controller.session[:cas_last_valid_ticket] if single_sign_out(controller) @@ -49,10 +39,8 @@ def filter(controller) # Re-use the previous ticket if the user already has a local CAS session (i.e. if they were already # previously authenticated for this service). This is to prevent redirection to the CAS server on every # request. - # # This behaviour can be disabled (so that every request is routed through the CAS server) by setting - # the :authenticate_on_every_request config option to true. However, this is not desirable since - # it will almost certainly break POST request, AJAX calls, etc. + # the :authenticate_on_every_request config option to false. log.debug "Existing local CAS session detected for #{controller.session[client.username_session_key].inspect}. "+ "Previous ticket #{last_st.ticket.inspect} will be re-used." st = last_st @@ -67,7 +55,7 @@ def filter(controller) if is_new_session log.info("Ticket #{st.ticket.inspect} for service #{st.service.inspect} belonging to user #{vr.user.inspect} is VALID.") controller.session[client.username_session_key] = vr.user.dup - controller.session[client.extra_attributes_session_key] = HashWithIndifferentAccess.new(vr.extra_attributes) if vr.extra_attributes + controller.session[client.extra_attributes_session_key] = HashWithIndifferentAccess.new(vr.extra_attributes.dup) if vr.extra_attributes log.debug("Extra user attributes provided along with ticket #{st.ticket.inspect}: #{vr.extra_attributes.inspect}.") @@ -110,58 +98,36 @@ def filter(controller) return true else log.warn("Ticket #{st.ticket.inspect} failed validation -- #{vr.failure_code}: #{vr.failure_message}") - unauthorized!(controller, vr) + redirect_to_cas_for_authentication(controller) return false end - else # no service ticket was present in the request + else if returning_from_gateway?(controller) log.info "Returning from CAS gateway without authentication." - # unset, to allow for the next request to be authenticated if necessary + # reset, so that we can retry authentication if there is a subsequent request controller.session[:cas_sent_to_gateway] = false if use_gatewaying? log.info "This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication." - controller.session[client.username_session_key] = nil return true else log.warn "The CAS client is NOT configured to allow gatewaying, yet this request was gatewayed. Something is not right!" end end - unauthorized!(controller) + redirect_to_cas_for_authentication(controller) return false end - rescue OpenSSL::SSL::SSLError - log.error("SSL Error: hostname was not match with the server certificate. You can try to disable the ssl verification with a :force_ssl_verification => false in your configurations file.") - unauthorized!(controller) - return false end def configure(config) @@config = config - @@config[:logger] ||= begin - if defined?(Rails) && Rails.respond_to?(:logger) - ::Rails.logger - elsif defined?(::Rails.logger) - ::Rails.logger - end - end + @@config[:logger] = Rails.logger unless @@config[:logger] @@client = CASClient::Client.new(config) @@log = client.log end - # used to allow faking for testing - # with cucumber and other tools. - # use like - # CASClient::Frameworks::Rails::Filter.fake("homer") - # you can also fake extra attributes by including a second parameter - # CASClient::Frameworks::Rails::Filter.fake("homer", {:roles => ['dad', 'husband']}) - def fake(username, extra_attributes = nil) - @@fake_user = username - @@fake_extra_attributes = extra_attributes - end - def use_gatewaying? @@config[:use_gatewaying] end @@ -175,41 +141,6 @@ def login_url(controller) log.debug("Generated login url: #{url}") return url end - - # allow controllers to reuse the existing config to auto-login to - # the service - # - # Use this from within a controller. Pass the controller, the - # login-credentials and the path that you want the user - # resdirected to on success. - # - # When writing a login-action you must check the return-value of - # the response to see if it failed! - # - # If it worked - you need to redirect the user to the service - - # path, because that has the ticket that will *actually* log them - # into your system - # - # example: - # def autologin - # resp = CASClient::Frameworks::Rails::Filter.login_to_service(self, credentials, dashboard_url) - # if resp.is_faiulure? - # flash[:error] = 'Login failed' - # render :action => 'login' - # else - # return redirect_to(@resp.service_redirect_url) - # end - # end - def login_to_service(controller, credentials, return_path) - resp = @@client.login_to_service(credentials, return_path) - if resp.is_failure? - log.info("Validation failed for service #{return_path.inspect} reason: '#{resp.failure_message}'") - else - log.info("Ticket #{resp.ticket.inspect} for service #{return_path.inspect} is VALID.") - end - - resp - end # Clears the given controller's local Rails session, does some local # CAS cleanup, and redirects to the CAS logout page. Additionally, the @@ -230,18 +161,6 @@ def logout(controller, service = nil) controller.send(:redirect_to, client.logout_url(referer)) end - def unauthorized!(controller, vr = nil) - if controller.params[:format] == "xml" - if vr - controller.send(:render, :xml => "#{vr.failure_message}", :status => 401) - else - controller.send(:head, 401) - end - else - redirect_to_cas_for_authentication(controller) - end - end - def redirect_to_cas_for_authentication(controller) redirect_url = login_url(controller) @@ -284,10 +203,8 @@ def single_sign_out(controller) if controller.request.post? && controller.params['logoutRequest'] && - #This next line checks the logoutRequest value for both its regular and URI.escape'd form. I couldn't get - #it to work without URI.escaping it from rubycas server's side, this way it will work either way. - [controller.params['logoutRequest'],URI.unescape(controller.params['logoutRequest'])].find{|xml| xml =~ - %r{^(.*)}m} + controller.params['logoutRequest'] =~ + %r{^(.*)}m # TODO: Maybe check that the request came from the registered CAS server? Although this might be # pointless since it's easily spoofable... si = $~[1] @@ -408,7 +325,7 @@ def delete_service_session_lookup(st) # Returns the path and filename of the service session lookup file. def filename_of_service_session_lookup(st) st = st.ticket if st.kind_of? ServiceTicket - return "#{::Rails.root.to_s}/tmp/sessions/cas_sess.#{st}" + return "#{Rails.root}/tmp/sessions/cas_sess.#{st}" end end end diff --git a/lib/casclient/responses.rb b/lib/casclient/responses.rb index c7faab3d..bae0d16f 100644 --- a/lib/casclient/responses.rb +++ b/lib/casclient/responses.rb @@ -53,8 +53,7 @@ def parse(raw_text) @protocol = 2.0 if is_success? - cas_user = @xml.elements["cas:user"] - @user = cas_user.text.strip if cas_user + @user = @xml.elements["cas:user"].text.strip if @xml.elements["cas:user"] @pgt_iou = @xml.elements["cas:proxyGrantingTicket"].text.strip if @xml.elements["cas:proxyGrantingTicket"] proxy_els = @xml.elements.to_a('//cas:authenticationSuccess/cas:proxies/cas:proxy') @@ -67,9 +66,7 @@ def parse(raw_text) @extra_attributes = {} @xml.elements.to_a('//cas:authenticationSuccess/*').each do |el| - # generating the hash requires prefixes to be defined, so add all of the namespaces - el.namespaces.each {|k,v| el.add_namespace(k,v)} - @extra_attributes.merge!(Hash.from_xml(el.to_s)) unless (el == cas_user) + @extra_attributes.merge!(Hash.from_xml(el.to_s)) unless el.prefix == 'cas' end # unserialize extra attributes @@ -91,11 +88,11 @@ def parse(raw_text) end def is_success? - (instance_variable_defined?(:@valid) && @valid) || (protocol > 1.0 && xml.name == "authenticationSuccess") + @valid == true || (protocol > 1.0 && xml.name == "authenticationSuccess") end def is_failure? - (instance_variable_defined?(:@valid) && !@valid) || (protocol > 1.0 && xml.name == "authenticationFailure" ) + @valid == false || (protocol > 1.0 && xml.name == "authenticationFailure" ) end end @@ -163,7 +160,7 @@ def parse_http_response(http_response) @ticket = $~[1] end - if not ((http_response.kind_of?(Net::HTTPSuccess) || http_response.kind_of?(Net::HTTPFound)) && @ticket.present?) + if !http_response.kind_of?(Net::HTTPSuccess) || ticket.blank? @failure = true # Try to extract the error message -- this only works with RubyCAS-Server. # For other servers we just return the entire response body (i.e. the whole error page). @@ -189,4 +186,4 @@ def is_failure? class BadResponseException < CASException end -end +end \ No newline at end of file diff --git a/lib/casclient/version.rb b/lib/casclient/version.rb index 517c76fd..850038ae 100644 --- a/lib/casclient/version.rb +++ b/lib/casclient/version.rb @@ -1,8 +1,8 @@ module CASClient #:nodoc: module VERSION #:nodoc: MAJOR = 2 - MINOR = 2 - TINY = 1 + MINOR = 1 + TINY = 0 STRING = [MAJOR, MINOR, TINY].join('.') end From 45a45f5afb618615bb0d249f24329ddb55b594d4 Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 21 Sep 2011 15:38:59 +0800 Subject: [PATCH 5/6] Rails.logger --- .gitignore | 4 - examples/merb/.gitignore | 18 - examples/rails/README | 16 - .../advanced_example_controller.rb | 31 - examples/rails/app/controllers/application.rb | 2 - .../controllers/simple_example_controller.rb | 16 - .../app/views/advanced_example/index.html.erb | 13 - .../advanced_example/my_account.html.erb | 11 - .../app/views/simple_example/index.html.erb | 6 - examples/rails/config/boot.rb | 109 -- examples/rails/config/environment.rb | 39 - .../rails/config/environments/development.rb | 17 - .../rails/config/environments/production.rb | 22 - examples/rails/config/environments/test.rb | 22 - .../rails/config/initializers/inflections.rb | 10 - .../rails/config/initializers/mime_types.rb | 5 - .../config/initializers/new_rails_defaults.rb | 17 - examples/rails/config/routes.rb | 4 - examples/rails/log/development.log | 946 ------------------ examples/rails/log/production.log | 0 examples/rails/log/server.log | 0 examples/rails/log/test.log | 0 examples/rails/script/about | 4 - examples/rails/script/console | 3 - examples/rails/script/server | 3 - .../rails/cas_proxy_callback_controller.rb | 2 +- lib/casclient/frameworks/rails/filter.rb | 4 +- rubycas-client.gemspec | 36 - 28 files changed, 3 insertions(+), 1357 deletions(-) delete mode 100644 .gitignore delete mode 100644 examples/merb/.gitignore delete mode 100644 examples/rails/README delete mode 100644 examples/rails/app/controllers/advanced_example_controller.rb delete mode 100644 examples/rails/app/controllers/application.rb delete mode 100644 examples/rails/app/controllers/simple_example_controller.rb delete mode 100644 examples/rails/app/views/advanced_example/index.html.erb delete mode 100644 examples/rails/app/views/advanced_example/my_account.html.erb delete mode 100644 examples/rails/app/views/simple_example/index.html.erb delete mode 100644 examples/rails/config/boot.rb delete mode 100644 examples/rails/config/environment.rb delete mode 100644 examples/rails/config/environments/development.rb delete mode 100644 examples/rails/config/environments/production.rb delete mode 100644 examples/rails/config/environments/test.rb delete mode 100644 examples/rails/config/initializers/inflections.rb delete mode 100644 examples/rails/config/initializers/mime_types.rb delete mode 100644 examples/rails/config/initializers/new_rails_defaults.rb delete mode 100644 examples/rails/config/routes.rb delete mode 100644 examples/rails/log/development.log delete mode 100644 examples/rails/log/production.log delete mode 100644 examples/rails/log/server.log delete mode 100644 examples/rails/log/test.log delete mode 100755 examples/rails/script/about delete mode 100755 examples/rails/script/console delete mode 100755 examples/rails/script/server delete mode 100644 rubycas-client.gemspec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6081faf3..00000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -.svn -pkg -doc -*.swp diff --git a/examples/merb/.gitignore b/examples/merb/.gitignore deleted file mode 100644 index a412f4cb..00000000 --- a/examples/merb/.gitignore +++ /dev/null @@ -1,18 +0,0 @@ -.DS_Store -log/* -tmp/* -TAGS -*~ -.#* -schema/schema.rb -schema/*_structure.sql -schema/*.sqlite3 -schema/*.sqlite -schema/*.db -*.sqlite -*.sqlite3 -*.db -src/* -.hgignore -.hg/* -.svn/* \ No newline at end of file diff --git a/examples/rails/README b/examples/rails/README deleted file mode 100644 index 4ac6a69e..00000000 --- a/examples/rails/README +++ /dev/null @@ -1,16 +0,0 @@ -This is a skeleton Rails application hooked up for CAS authentication. - -To try this out: - -1. If you have an existing CAS server, modify the CAS client settings in - config/environment.rb to point to your server. If you do not yet - have a CAS server, install rubycas-server, and configure it to run on - http://localhost:7777 (or modify environment.rb to your likings). - -2. Run `ruby script/server` - -3. Point your web browser to http://localhost:3000 - -4. Have a look at the source code in app/controllers/simple_example_controller.rb - and app/controllers/advanced_example_controller.rb. The - corresponding views under app/views might also be worth looking at. diff --git a/examples/rails/app/controllers/advanced_example_controller.rb b/examples/rails/app/controllers/advanced_example_controller.rb deleted file mode 100644 index 069c85de..00000000 --- a/examples/rails/app/controllers/advanced_example_controller.rb +++ /dev/null @@ -1,31 +0,0 @@ -# A more advanced example. -# For basic usage see the SimpleExampleController. -class AdvancedExampleController < ApplicationController - # This will allow the user to view the index page without authentication - # but will process CAS authentication data if the user already - # has an SSO session open. - before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :index - - # This requires the user to be authenticated for viewing allother pages. - before_filter CASClient::Frameworks::Rails::Filter, :except => :index - - def index - @username = session[:cas_user] - - @login_url = CASClient::Frameworks::Rails::Filter.login_url(self) - end - - def my_account - @username = session[:cas_user] - - # Additional user attributes are available if your - # CAS server is configured to provide them. - # See http://code.google.com/p/rubycas-server/wiki/HowToSendExtraUserAttributes - @extra_attributes = session[:cas_extra_attributes] - end - - def logout - CASClient::Frameworks::Rails::Filter.logout(self) - end - -end diff --git a/examples/rails/app/controllers/application.rb b/examples/rails/app/controllers/application.rb deleted file mode 100644 index 09705d12..00000000 --- a/examples/rails/app/controllers/application.rb +++ /dev/null @@ -1,2 +0,0 @@ -class ApplicationController < ActionController::Base -end diff --git a/examples/rails/app/controllers/simple_example_controller.rb b/examples/rails/app/controllers/simple_example_controller.rb deleted file mode 100644 index ac7b2ade..00000000 --- a/examples/rails/app/controllers/simple_example_controller.rb +++ /dev/null @@ -1,16 +0,0 @@ -# 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 diff --git a/examples/rails/app/views/advanced_example/index.html.erb b/examples/rails/app/views/advanced_example/index.html.erb deleted file mode 100644 index 73f8b16c..00000000 --- a/examples/rails/app/views/advanced_example/index.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -

AdvancedExample#index

- -<% if @username %> -

Hello, <%= @username %>! You are authenticated.

-<% else %> -

You are not yet authenticated. <%= link_to("Login", @login_url) %> -<% end %> - -

» <%= link_to("Go To My Account", :action => 'my_account') %>

- -<% if @username %> -

[ <%= link_to("Logout", :action => 'logout') %> ]

-<% end %> diff --git a/examples/rails/app/views/advanced_example/my_account.html.erb b/examples/rails/app/views/advanced_example/my_account.html.erb deleted file mode 100644 index 2eb2be59..00000000 --- a/examples/rails/app/views/advanced_example/my_account.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

AdvancedExample#my_account

-

<%= @username %>'s Account page

- -

-Extra Attributes:
-<% unless @extra_attributes.blank? %> - <%= debug(@extra_attributes) %> -<% end %> -

- -

[ <%= link_to("Logout", :action => 'logout') %> ]

diff --git a/examples/rails/app/views/simple_example/index.html.erb b/examples/rails/app/views/simple_example/index.html.erb deleted file mode 100644 index 4338205f..00000000 --- a/examples/rails/app/views/simple_example/index.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

SimpleExample#index

-

Hello, <%= @username %>!

- -

» <%= link_to("Go To AdvancedExample", :controller => 'advanced_example') %>

- -

[ <%= link_to("Logout", :action => 'logout') %> ]

diff --git a/examples/rails/config/boot.rb b/examples/rails/config/boot.rb deleted file mode 100644 index 01192fb5..00000000 --- a/examples/rails/config/boot.rb +++ /dev/null @@ -1,109 +0,0 @@ -# Don't change this file! -# Configure your app in config/environment.rb and config/environments/*.rb - -::Rails.root.to_s = "#{File.dirname(__FILE__)}/.." unless defined?(::Rails.root.to_s) - -module Rails - class << self - def boot! - unless booted? - preinitialize - pick_boot.run - end - end - - def booted? - defined? Rails::Initializer - end - - def pick_boot - (vendor_rails? ? VendorBoot : GemBoot).new - end - - def vendor_rails? - File.exist?("#{::Rails.root.to_s}/vendor/rails") - end - - def preinitialize - load(preinitializer_path) if File.exist?(preinitializer_path) - end - - def preinitializer_path - "#{::Rails.root.to_s}/config/preinitializer.rb" - end - end - - class Boot - def run - load_initializer - Rails::Initializer.run(:set_load_path) - end - end - - class VendorBoot < Boot - def load_initializer - require "#{::Rails.root.to_s}/vendor/rails/railties/lib/initializer" - Rails::Initializer.run(:install_gem_spec_stubs) - end - end - - class GemBoot < Boot - def load_initializer - self.class.load_rubygems - load_rails_gem - require 'initializer' - end - - def load_rails_gem - if version = self.class.gem_version - gem 'rails', version - else - gem 'rails' - end - rescue Gem::LoadError => load_error - $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.) - exit 1 - end - - class << self - def rubygems_version - Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion - end - - def gem_version - if defined? RAILS_GEM_VERSION - RAILS_GEM_VERSION - elsif ENV.include?('RAILS_GEM_VERSION') - ENV['RAILS_GEM_VERSION'] - else - parse_gem_version(read_environment_rb) - end - end - - def load_rubygems - require 'rubygems' - min_version = '1.1.1' - unless rubygems_version >= min_version - $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.) - exit 1 - end - - rescue LoadError - $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org) - exit 1 - end - - def parse_gem_version(text) - $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/ - end - - private - def read_environment_rb - File.read("#{::Rails.root.to_s}/config/environment.rb") - end - end - end -end - -# All that for this: -Rails.boot! diff --git a/examples/rails/config/environment.rb b/examples/rails/config/environment.rb deleted file mode 100644 index b654ddbe..00000000 --- a/examples/rails/config/environment.rb +++ /dev/null @@ -1,39 +0,0 @@ -RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION - -require File.join(File.dirname(__FILE__), 'boot') - -Rails::Initializer.run do |config| - config.time_zone = 'UTC' - config.action_controller.session = { - :session_key => '_rails_session', - :secret => 'e2f5641ab4a3627096a2b6ca8c62cefe53f572906ad6a5fb1c949d183a0' - } - config.frameworks -= [:active_record] -end - - -# Basic CAS client configuration - -require 'casclient' -require 'casclient/frameworks/rails/filter' - -CASClient::Frameworks::Rails::Filter.configure( - :cas_base_url => "https://mzukowski.urbacon.net:6543/cas" -) - - -# More complicated configuration - -#cas_logger = CASClient::Logger.new(::Rails.root.to_s+'/log/cas.log') -#cas_logger.level = Logger::DEBUG -# -#CASClient::Frameworks::Rails::Filter.configure( -# :cas_base_url => "https://localhost:7778/", -# :login_url => "https://localhost:7778/login", -# :logout_url => "https://localhost:7778/logout", -# :validate_url => "https://localhost:7778/proxyValidate", -# :session_username_key => :cas_user, -# :session_extra_attributes_key => :cas_extra_attributes -# :logger => cas_logger, -# :authenticate_on_every_request => true -#) diff --git a/examples/rails/config/environments/development.rb b/examples/rails/config/environments/development.rb deleted file mode 100644 index 85c9a608..00000000 --- a/examples/rails/config/environments/development.rb +++ /dev/null @@ -1,17 +0,0 @@ -# Settings specified here will take precedence over those in config/environment.rb - -# In the development environment your application's code is reloaded on -# every request. This slows down response time but is perfect for development -# since you don't have to restart the webserver when you make code changes. -config.cache_classes = false - -# Log error messages when you accidentally call methods on nil. -config.whiny_nils = true - -# Show full error reports and disable caching -config.action_controller.consider_all_requests_local = true -config.action_view.debug_rjs = true -config.action_controller.perform_caching = false - -# Don't care if the mailer can't send -config.action_mailer.raise_delivery_errors = false \ No newline at end of file diff --git a/examples/rails/config/environments/production.rb b/examples/rails/config/environments/production.rb deleted file mode 100644 index 69c8b9ec..00000000 --- a/examples/rails/config/environments/production.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Settings specified here will take precedence over those in config/environment.rb - -# The production environment is meant for finished, "live" apps. -# Code is not reloaded between requests -config.cache_classes = true - -# Use a different logger for distributed setups -# config.logger = SyslogLogger.new - -# Full error reports are disabled and caching is turned on -config.action_controller.consider_all_requests_local = false -config.action_controller.perform_caching = true -config.action_view.cache_template_loading = true - -# Use a different cache store in production -# config.cache_store = :mem_cache_store - -# Enable serving of images, stylesheets, and javascripts from an asset server -# config.action_controller.asset_host = "http://assets.example.com" - -# Disable delivery errors, bad email addresses will be ignored -# config.action_mailer.raise_delivery_errors = false diff --git a/examples/rails/config/environments/test.rb b/examples/rails/config/environments/test.rb deleted file mode 100644 index 1e709e1d..00000000 --- a/examples/rails/config/environments/test.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Settings specified here will take precedence over those in config/environment.rb - -# The test environment is used exclusively to run your application's -# test suite. You never need to work with it otherwise. Remember that -# your test database is "scratch space" for the test suite and is wiped -# and recreated between test runs. Don't rely on the data there! -config.cache_classes = true - -# Log error messages when you accidentally call methods on nil. -config.whiny_nils = true - -# Show full error reports and disable caching -config.action_controller.consider_all_requests_local = true -config.action_controller.perform_caching = false - -# Disable request forgery protection in test environment -config.action_controller.allow_forgery_protection = false - -# Tell Action Mailer not to deliver emails to the real world. -# The :test delivery method accumulates sent emails in the -# ActionMailer::Base.deliveries array. -config.action_mailer.delivery_method = :test diff --git a/examples/rails/config/initializers/inflections.rb b/examples/rails/config/initializers/inflections.rb deleted file mode 100644 index d531b8bb..00000000 --- a/examples/rails/config/initializers/inflections.rb +++ /dev/null @@ -1,10 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format -# (all these examples are active by default): -# ActiveSupport::Inflector.inflections do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end diff --git a/examples/rails/config/initializers/mime_types.rb b/examples/rails/config/initializers/mime_types.rb deleted file mode 100644 index 72aca7e4..00000000 --- a/examples/rails/config/initializers/mime_types.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf -# Mime::Type.register_alias "text/html", :iphone diff --git a/examples/rails/config/initializers/new_rails_defaults.rb b/examples/rails/config/initializers/new_rails_defaults.rb deleted file mode 100644 index 78e0117c..00000000 --- a/examples/rails/config/initializers/new_rails_defaults.rb +++ /dev/null @@ -1,17 +0,0 @@ -# These settings change the behavior of Rails 2 apps and will be defaults -# for Rails 3. You can remove this initializer when Rails 3 is released. - -if defined?(ActiveRecord) - # Include Active Record class name as root for JSON serialized output. - ActiveRecord::Base.include_root_in_json = true - - # Store the full class name (including module namespace) in STI type column. - ActiveRecord::Base.store_full_sti_class = true -end - -# Use ISO 8601 format for JSON serialized times and dates. -ActiveSupport.use_standard_json_time_format = true - -# Don't escape HTML entities in JSON, leave that for the #json_escape helper. -# if you're including raw json in an HTML page. -ActiveSupport.escape_html_entities_in_json = false \ No newline at end of file diff --git a/examples/rails/config/routes.rb b/examples/rails/config/routes.rb deleted file mode 100644 index efe9b548..00000000 --- a/examples/rails/config/routes.rb +++ /dev/null @@ -1,4 +0,0 @@ -ActionController::Routing::Routes.draw do |map| - map.root :controller => "simple_example" - map.connect ':controller/:action/:id' -end diff --git a/examples/rails/log/development.log b/examples/rails/log/development.log deleted file mode 100644 index fb66e4e0..00000000 --- a/examples/rails/log/development.log +++ /dev/null @@ -1,946 +0,0 @@ - - -Processing SimpleExampleController#index (for 127.0.0.1 at 2008-11-20 12:05:13) [GET] - Session ID: 917a1a0262589e0f5073fd47a17a0743 - Parameters: {"action"=>"index", "controller"=>"simple_example"} -Guessed service url: "http://localhost:3000/" -Redirecting to "https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2F" -Redirected to https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2F -Filter chain halted as [CASClient::Frameworks::Rails::Filter] rendered_or_redirected. -Completed in 0.00075 (1331 reqs/sec) | 302 Found [http://localhost/] - - -Processing SimpleExampleController#index (for 127.0.0.1 at 2008-11-20 12:05:13) [GET] - Session ID: BAh7CTofY2FzX3ZhbGlkYXRpb25fcmV0cnlfY291bnRpADoYY2FzX3NlbnRf -dG9fZ2F0ZXdheUY6HXByZXZpb3VzX3JlZGlyZWN0X3RvX2Nhc0l1OglUaW1l -DZEqG4DJD9QUBjofQG1hcnNoYWxfd2l0aF91dGNfY29lcmNpb25GIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--b3458ca581ced2c4bb7601e00b9dc7e00c91fcc6 - Parameters: {"ticket"=>"ST-1227200713rA9077D6EEE2B0745AF", "action"=>"index", "controller"=>"simple_example"} -Request contains ticket "ST-1227200713rA9077D6EEE2B0745AF". -Guessed service url: "http://localhost:3000/" -Requesting CAS response for URI https://mzukowski.urbacon.net:6543/cas/proxyValidate?ticket=ST-1227200713rA9077D6EEE2B0745AF&service=http%3A%2F%2Flocalhost%3A3000%2F -CAS server responded with #: -mzukowskiMatt Zukowskimzukowski@urbacon.net -Ticket "ST-1227200713rA9077D6EEE2B0745AF" for service "http://localhost:3000/" belonging to user "mzukowski" is VALID. -Extra user attributes provided along with ticket "ST-1227200713rA9077D6EEE2B0745AF": {"cn"=>"Matt Zukowski", "mail"=>"mzukowski@urbacon.net"}. -Wrote service session lookup file to "/home/URBACON/mzukowski/workspace/rubycas-client2/examples/rails/tmp/sessions/cas_sess.ST-1227200713rA9077D6EEE2B0745AF" with session id "BAh7CTofY2FzX3ZhbGlkYXRpb25fcmV0cnlfY291bnRpADoYY2FzX3NlbnRf\ndG9fZ2F0ZXdheUY6HXByZXZpb3VzX3JlZGlyZWN0X3RvX2Nhc0l1OglUaW1l\nDZEqG4DJD9QUBjofQG1hcnNoYWxfd2l0aF91dGNfY29lcmNpb25GIgpmbGFz\naElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA\ndXNlZHsA--b3458ca581ced2c4bb7601e00b9dc7e00c91fcc6". -Rendering simple_example/index -Completed in 0.02824 (35 reqs/sec) | Rendering: 0.00208 (7%) | 200 OK [http://localhost/?ticket=ST-1227200713rA9077D6EEE2B0745AF] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:05:20) [GET] - Session ID: BAh7DTofY2FzX3ZhbGlkYXRpb25fcmV0cnlfY291bnRpADoZY2FzX2V4dHJh -X2F0dHJpYnV0ZXNDOh5IYXNoV2l0aEluZGlmZmVyZW50QWNjZXNzewciB2Nu -IhJNYXR0IFp1a293c2tpIgltYWlsIhptenVrb3dza2lAdXJiYWNvbi5uZXQ6 -GmNhc19sYXN0X3ZhbGlkX3RpY2tldG86HUNBU0NsaWVudDo6U2VydmljZVRp -Y2tldAk6DEB0aWNrZXQiJVNULTEyMjcyMDA3MTNyQTkwNzdENkVFRTJCMDc0 -NUFGOg5AcmVzcG9uc2VvOiJDQVNDbGllbnQ6OlZhbGlkYXRpb25SZXNwb25z -ZQo6FEBwYXJzZV9kYXRldGltZUl1OglUaW1lDZEqG4BX59QUBjofQG1hcnNo -YWxfd2l0aF91dGNfY29lcmNpb25GOgpAdXNlciIObXp1a293c2tpOgl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XM7GSIOeG1sbnM6Y2FzOyAwOyUi -CGNhcwY7FkA2OxkiGGNhczpzZXJ2aWNlUmVzcG9uc2U7GlsGQBA7JEAfOyUi -FHNlcnZpY2VSZXNwb25zZTsjbzoUUkVYTUw6OkRvY3VtZW50DjsTIgA7FG87 -FQY7FkBEOxdJQzsYewAGOxZARDsZIg5VTkRFRklORUQ7GlsGQDY7JEAfOyUi -DlVOREVGSU5FRDsmIgA7IzA6DkBwcm90b2NvbGYGMjoWQGV4dHJhX2F0dHJp -YnV0ZXN7B0AHQAhACUAKOgtAcmVuZXcwOg1Ac2VydmljZSIbaHR0cDovL2xv -Y2FsaG9zdDozMDAwLzoSY2FzZmlsdGVydXNlckAPOhhjYXNfc2VudF90b19n -YXRld2F5RiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZs -YXNoSGFzaHsABjoKQHVzZWR7ADodcHJldmlvdXNfcmVkaXJlY3RfdG9fY2Fz -SXU7Dg2RKhuAyQ/UFAY7D0Y6DWNhc191c2VyIg5tenVrb3dza2k=--e428be7c02bb1bb56e8603775871520420754a92 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227200713rA9077D6EEE2B0745AF" will be re-used. -Rendering advanced_example/index -Completed in 0.00290 (344 reqs/sec) | Rendering: 0.00130 (44%) | 200 OK [http://localhost/advanced_example] - - -Processing AdvancedExampleController#my_account (for 127.0.0.1 at 2008-11-20 12:05:22) [GET] - Session ID: BAh7DTofY2FzX3ZhbGlkYXRpb25fcmV0cnlfY291bnRpADoZY2FzX2V4dHJh -X2F0dHJpYnV0ZXNDOh5IYXNoV2l0aEluZGlmZmVyZW50QWNjZXNzewciB2Nu -IhJNYXR0IFp1a293c2tpIgltYWlsIhptenVrb3dza2lAdXJiYWNvbi5uZXQ6 -GmNhc19sYXN0X3ZhbGlkX3RpY2tldG86HUNBU0NsaWVudDo6U2VydmljZVRp -Y2tldAk6DEB0aW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-HzslIhphdXRoZW50aWNhdGlvblN1Y2Nlc3M7I287Eg07EyIIY2FzOxRvOxUG -OxZANjsXSUM7GHsGIghjYXNvOhVSRVhNTDo6QXR0cmlidXRlDDsWQDY7EyIK -eG1sbnM6C0B2YWx1ZSIfaHR0cDovL3d3dy55YWxlLmVkdS90cC9jYXM7HiIf -aHR0cDovL3d3dy55YWxlLmVkdS90cC9jYXM7GSIOeG1sbnM6Y2FzOyAwOyUi -CGNhcwY7FkA2OxkiGGNhczpzZXJ2aWNlUmVzcG9uc2U7GlsGQBA7JEAfOyUi -FHNlcnZpY2VSZXNwb25zZTsjbzoUUkVYTUw6OkRvY3VtZW50DjsTIgA7FG87 -FQY7FkBEOxdJQzsYewAGOxZARDsZIg5VTkRFRklORUQ7GlsGQDY7JEAfOyYi -ADslIg5VTkRFRklORUQ7IzA6DkBwcm90b2NvbGYGMjoWQGV4dHJhX2F0dHJp -YnV0ZXN7B0AHQAhACUAKOgtAcmVuZXcwOg1Ac2VydmljZSIbaHR0cDovL2xv -Y2FsaG9zdDozMDAwLzoSY2FzZmlsdGVydXNlckAPOhhjYXNfc2VudF90b19n -YXRld2F5RjodcHJldmlvdXNfcmVkaXJlY3RfdG9fY2FzSXU7Dg2RKhuAyQ/U -FAY7D0YiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFz -aEhhc2h7AAY6CkB1c2VkewA6DWNhc191c2VyIg5tenVrb3dza2k=--42885a608a276bbc90475fedf50fe9651d3dbafc - Parameters: {"action"=>"my_account", "controller"=>"advanced_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227200713rA9077D6EEE2B0745AF" will be re-used. -Rendering advanced_example/my_account -Completed in 0.00314 (318 reqs/sec) | Rendering: 0.00153 (48%) | 200 OK [http://localhost/advanced_example/my_account] - - -Processing AdvancedExampleController#logout (for 127.0.0.1 at 2008-11-20 12:05:31) [GET] - Session ID: BAh7DTofY2FzX3ZhbGlkYXRpb25fcmV0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WF0dCBadWtvd3NraTsgMDshMDsiVDsjQCE7JEAfOyUiB2Nu -Og9AbmFtZXNwYWNlIgA7I0AQbzsSEDsTIgA7FG87FQY7FkArOxtGOxdJQzsY -ewAGOxZAKzscVDsZIgltYWlsOxpbBm87HQs7HjA7HyIabXp1a293c2tpQHVy -YmFjb24ubmV0OyAwOyEwOyJUOyNAKzskQB87JSIJbWFpbDsmIgA7I0AQOyRA -HzslIhphdXRoZW50aWNhdGlvblN1Y2Nlc3M7I287Eg07EyIIY2FzOxRvOxUG -OxZANjsXSUM7GHsGIghjYXNvOhVSRVhNTDo6QXR0cmlidXRlDDsTIgp4bWxu -czsWQDY6C0B2YWx1ZSIfaHR0cDovL3d3dy55YWxlLmVkdS90cC9jYXM7HiIf -aHR0cDovL3d3dy55YWxlLmVkdS90cC9jYXM7GSIOeG1sbnM6Y2FzOyAwOyUi -CGNhcwY7FkA2OxkiGGNhczpzZXJ2aWNlUmVzcG9uc2U7GlsGQBA7JEAfOyUi -FHNlcnZpY2VSZXNwb25zZTsjbzoUUkVYTUw6OkRvY3VtZW50DjsTIgA7FG87 -FQY7FkBEOxdJQzsYewAGOxZARDsZIg5VTkRFRklORUQ7GlsGQDY7JEAfOyUi -DlVOREVGSU5FRDsmIgA7IzA6DkBwcm90b2NvbGYGMjoWQGV4dHJhX2F0dHJp -YnV0ZXN7B0AHQAhACUAKOgtAcmVuZXcwOg1Ac2VydmljZSIbaHR0cDovL2xv -Y2FsaG9zdDozMDAwLzoSY2FzZmlsdGVydXNlckAPOhhjYXNfc2VudF90b19n -YXRld2F5RiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZs -YXNoSGFzaHsABjoKQHVzZWR7ADodcHJldmlvdXNfcmVkaXJlY3RfdG9fY2Fz -SXU7Dg2RKhuAyQ/UFAY7D0Y6DWNhc191c2VyIg5tenVrb3dza2k=--e428be7c02bb1bb56e8603775871520420754a92 - Parameters: {"action"=>"logout", "controller"=>"advanced_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227200713rA9077D6EEE2B0745AF" will be re-used. -Redirected to https://mzukowski.urbacon.net:6543/cas/logout?destination=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example%2Fmy_account -Completed in 0.10119 (9 reqs/sec) | 302 Found [http://localhost/advanced_example/logout] - - -Processing SimpleExampleController#index (for 127.0.0.1 at 2008-11-20 12:08:18) [POST] - Session ID: 9dccf65589fd53880e80a8e84608169c - Parameters: {"action"=>"index", "logoutRequest"=>"\n\nST-1227200713rA9077D6EEE2B0745AF\n", "controller"=>"simple_example"} - - -ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:173:in `send' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:173:in `evaluate_method' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:161:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:191:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:591:in `run_before_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:577:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (unprocessable_entity) - - -Processing AdvancedExampleController#my_account (for 127.0.0.1 at 2008-11-20 12:08:23) [GET] - Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo -SGFzaHsABjoKQHVzZWR7AA==--3ac0dad26b5ba8bf00d4a6485f54f64cd01e94a4 - Parameters: {"ticket"=>"ST-1227200903rCC9CF1C7E7B5EF7FA3", "action"=>"my_account", "controller"=>"advanced_example"} -Request contains ticket "ST-1227200903rCC9CF1C7E7B5EF7FA3". -Guessed service url: "http://localhost:3000/advanced_example/my_account" -Requesting CAS response for URI https://mzukowski.urbacon.net:6543/cas/proxyValidate?ticket=ST-1227200903rCC9CF1C7E7B5EF7FA3&service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example%2Fmy_account -CAS server responded with #: -mzukowskiMatt Zukowskimzukowski@urbacon.net -Ticket "ST-1227200903rCC9CF1C7E7B5EF7FA3" for service "http://localhost:3000/advanced_example/my_account" belonging to user "mzukowski" is VALID. -Extra user attributes provided along with ticket "ST-1227200903rCC9CF1C7E7B5EF7FA3": {"cn"=>"Matt Zukowski", "mail"=>"mzukowski@urbacon.net"}. -Wrote service session lookup file to "/home/URBACON/mzukowski/workspace/rubycas-client2/examples/rails/tmp/sessions/cas_sess.ST-1227200903rCC9CF1C7E7B5EF7FA3" with session id "BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo\nSGFzaHsABjoKQHVzZWR7AA==--3ac0dad26b5ba8bf00d4a6485f54f64cd01e94a4". -Rendering advanced_example/my_account -Completed in 0.02754 (36 reqs/sec) | Rendering: 0.00078 (2%) | 200 OK [http://localhost/advanced_example/my_account?ticket=ST-1227200903rCC9CF1C7E7B5EF7FA3] - - -Processing AdvancedExampleController#logout (for 127.0.0.1 at 2008-11-20 12:08:25) [GET] - Session ID: BAh7CjoZY2FzX2V4dHJhX2F0dHJpYnV0ZXNDOh5IYXNoV2l0aEluZGlmZmVy -ZW50QWNjZXNzewciB2NuIhJNYXR0IFp1a293c2tpIgltYWlsIhptenVrb3dz -a2lAdXJiYWNvbi5uZXQ6GmNhc19sYXN0X3ZhbGlkX3RpY2tldG86HUNBU0Ns -aWVudDo6U2VydmljZVRpY2tldAk6DEB0aWNrZXQiJVNULTEyMjcyMDA5MDNy -Q0M5Q0YxQzdFN0I1RUY3RkEzOg5AcmVzcG9uc2VvOiJDQVNDbGllbnQ6OlZh -bGlkYXRpb25SZXNwb25zZQo6FEBwYXJzZV9kYXRldGltZUl1OglUaW1lDZEq -G4BdvXMhBjofQG1hcnNoYWxfd2l0aF91dGNfY29lcmNpb25GOgpAdXNlciIO -bXp1a293c2tpOglAeG1sbzoTUkVYTUw6OkVsZW1lbnQNOgxAcHJlZml4Ighj -YXM6DkBlbGVtZW50c286FFJFWE1MOjpFbGVtZW50cwY6DUBlbGVtZW50QBA6 -EEBhdHRyaWJ1dGVzSUM6FlJFWE1MOjpBdHRyaWJ1dGVzewAGOxVAEDoTQGV4 -cGFuZGVkX25hbWUiHmNhczphdXRoZW50aWNhdGlvblN1Y2Nlc3M6DkBjaGls -ZHJlblsIbzsRDzsSIghjYXM7E287FAY7FUAWOh1AaWdub3JlX3doaXRlc3Bh -Y2Vfbm9kZXNGOxZJQzsXewAGOxVAFjoQQHdoaXRlc3BhY2VUOxgiDWNhczp1 -c2VyOx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kdmFuY2VkX2V4YW1wbGUv -bXlfYWNjb3VudDoSY2FzZmlsdGVydXNlckAPIgpmbGFzaElDOidBY3Rpb25D -b250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAOg1jYXNf -dXNlciIObXp1a293c2tp--26828c4722e9e049cbdad7d8fa0dddb878618630 - Parameters: {"action"=>"logout", "controller"=>"advanced_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227200903rCC9CF1C7E7B5EF7FA3" will be re-used. -Redirected to https://mzukowski.urbacon.net:6543/cas/logout?destination=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example%2Fmy_account -Completed in 0.00290 (344 reqs/sec) | 302 Found [http://localhost/advanced_example/logout] - - -Processing AdvancedExampleController#my_account (for 127.0.0.1 at 2008-11-20 12:08:25) [POST] - Session ID: af9c2c3727f1e3c92c6029fbc68c9973 - Parameters: {"action"=>"my_account", "logoutRequest"=>"\n\nST-1227200903rCC9CF1C7E7B5EF7FA3\n", "controller"=>"advanced_example"} - - -ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:173:in `send' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:173:in `evaluate_method' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:161:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:191:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:591:in `run_before_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:577:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (unprocessable_entity) - - -Processing AdvancedExampleController#my_account (for 127.0.0.1 at 2008-11-20 12:31:32) [GET] - Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo -SGFzaHsABjoKQHVzZWR7AA==--3ac0dad26b5ba8bf00d4a6485f54f64cd01e94a4 - Parameters: {"ticket"=>"ST-1227202292r61123E3CCB49081665", "action"=>"my_account", "controller"=>"advanced_example"} -Request contains ticket "ST-1227202292r61123E3CCB49081665". -Guessed service url: "http://localhost:3000/advanced_example/my_account" -Requesting CAS response for URI https://mzukowski.urbacon.net:6543/cas/proxyValidate?ticket=ST-1227202292r61123E3CCB49081665&service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example%2Fmy_account -CAS server responded with #: -mzukowskiMatt Zukowskimzukowski@urbacon.net -Ticket "ST-1227202292r61123E3CCB49081665" for service "http://localhost:3000/advanced_example/my_account" belonging to user "mzukowski" is VALID. -Extra user attributes provided along with ticket "ST-1227202292r61123E3CCB49081665": {"cn"=>"Matt Zukowski", "mail"=>"mzukowski@urbacon.net"}. -Wrote service session lookup file to "/home/URBACON/mzukowski/workspace/rubycas-client2/examples/rails/tmp/sessions/cas_sess.ST-1227202292r61123E3CCB49081665" with session id "BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo\nSGFzaHsABjoKQHVzZWR7AA==--3ac0dad26b5ba8bf00d4a6485f54f64cd01e94a4". -Rendering advanced_example/my_account -Completed in 0.06489 (15 reqs/sec) | Rendering: 0.00154 (2%) | 200 OK [http://localhost/advanced_example/my_account?ticket=ST-1227202292r61123E3CCB49081665] - - -Processing SimpleExampleController#index (for 127.0.0.1 at 2008-11-20 12:31:38) [GET] - Session ID: BAh7CjoaY2FzX2xhc3RfdmFsaWRfdGlja2V0bzodQ0FTQ2xpZW50OjpTZXJ2 -aWNlVGlja2V0CToLQHJlbmV3MDoOQHJlc3BvbnNlbzoiQ0FTQ2xpZW50OjpW -YWxpZGF0aW9uUmVzcG9uc2UKOgpAdXNlciIObXp1a293c2tpOhZAZXh0cmFf -YXR0cmlidXRlc3sHIgdjbiISTWF0dCBadWtvd3NraSIJbWFpbCIabXp1a293 -c2tpQHVyYmFjb24ubmV0OhRAcGFyc2VfZGF0ZXRpbWVJdToJVGltZQ2RKhuA -ua4CfgY6H0BtYXJzaGFsX3dpdGhfdXRjX2NvZXJjaW9uRjoJQHhtbG86E1JF -WE1MOjpFbGVtZW50DToMQHByZWZpeCIIY2FzOg5AZWxlbWVudHNvOhRSRVhN -TDo6RWxlbWVudHMGOg1AZWxlbWVudEAPOhBAYXR0cmlidXRlc0lDOhZSRVhN -TDo6QXR0cmlidXRlc3sABjsUQA86E0BleHBhbmRlZF9uYW1lIh5jYXM6YXV0 -aGVudGljYXRpb25TdWNjZXNzOg5AY2hpbGRyZW5bCG87EA87ESIIY2FzOxJv -OxMGOxRAFTodQGl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mBjI6DUBzZXJ2aWNlIjZodHRwOi8v -bG9jYWxob3N0OjMwMDAvYWR2YW5jZWRfZXhhbXBsZS9teV9hY2NvdW50OgxA -dGlja2V0IiVTVC0xMjI3MjAyMjkycjYxMTIzRTNDQ0I0OTA4MTY2NToSY2Fz -ZmlsdGVydXNlckAIOg1jYXNfdXNlciIObXp1a293c2tpIgpmbGFzaElDOidB -Y3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA -OhljYXNfZXh0cmFfYXR0cmlidXRlc0M6Hkhhc2hXaXRoSW5kaWZmZXJlbnRB -Y2Nlc3N7B0AKQAtADEAN--e09693932a713df8635d9d1bd844b67e5406b0b0 - Parameters: {"action"=>"index", "controller"=>"simple_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227202292r61123E3CCB49081665" will be re-used. -Rendering simple_example/index -Completed in 0.00278 (359 reqs/sec) | Rendering: 0.00116 (41%) | 200 OK [http://localhost/] - - -Processing SimpleExampleController#logout (for 127.0.0.1 at 2008-11-20 12:31:40) [GET] - Session ID: BAh7CjoaY2FzX2xhc3RfdmFsaWRfdGlja2V0bzodQ0FTQ2xpZW50OjpTZXJ2 -aWNlVGlja2V0CToLQHJlbmV3MDoNQHNlcnZpY2UiNmh0dHA6Ly9sb2NhbGhv -c3Q6MzAwMC9hZHZhbmNlZF9leGFtcGxlL215X2FjY291bnQ6DkByZXNwb25z -ZW86IkNBU0NsaWVudDo6VmFsaWRhdGlvblJlc3BvbnNlCjoKQHVzZXIiDm16 -dWtvd3NraToWQGV4dHJhX2F0dHJpYnV0ZXN7ByIHY24iEk1hdHQgWnVrb3dz -a2kiCW1haWwiGm16dWtvd3NraUB1cmJhY29uLm5ldDoUQHBhcnNlX2RhdGV0 -aW1lSXU6CVRpbWUNkSobgLmuAn4GOh9AbWFyc2hhbF93aXRoX3V0Y19jb2Vy -Y2lvbkY6CUB4bWxvOhNSRVhNTDo6RWxlbWVudA06DEBwcmV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A7JCIIY2FzBjsVQDY7GCIYY2FzOnNlcnZpY2VSZXNwb25zZTsZ -WwZAEDsjQB87JCIUc2VydmljZVJlc3BvbnNlOyJvOhRSRVhNTDo6RG9jdW1l -bnQOOxIiADsTbzsUBjsVQEQ7FklDOxd7AAY7FUBEOxgiDlVOREVGSU5FRDsZ -WwZANjsjQB87JSIAOyQiDlVOREVGSU5FRDsiMDoOQHByb3RvY29sZgYyOgxA -dGlja2V0IiVTVC0xMjI3MjAyMjkycjYxMTIzRTNDQ0I0OTA4MTY2NToSY2Fz -ZmlsdGVydXNlckAJOg1jYXNfdXNlciIObXp1a293c2tpIgpmbGFzaElDOidB -Y3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA -OhljYXNfZXh0cmFfYXR0cmlidXRlc0M6Hkhhc2hXaXRoSW5kaWZmZXJlbnRB -Y2Nlc3N7B0ALQAxADUAO--05ed2abdb70dda36ad8c307bdb9a18dd2d28884a - Parameters: {"action"=>"logout", "controller"=>"simple_example"} -Existing local CAS session detected for "mzukowski". Previous ticket "ST-1227202292r61123E3CCB49081665" will be re-used. -Redirected to https://mzukowski.urbacon.net:6543/cas/logout?destination=http%3A%2F%2Flocalhost%3A3000%2F -Completed in 0.02304 (43 reqs/sec) | 302 Found [http://localhost/simple_example/logout] - - -Processing AdvancedExampleController#my_account (for 127.0.0.1 at 2008-11-20 12:31:40) [POST] - Session ID: 22b93e12d13c98d3d7602555f4bc5db0 - Parameters: {"action"=>"my_account", "logoutRequest"=>"\n\nST-1227202292r61123E3CCB49081665\n", "controller"=>"advanced_example"} -Intercepted single-sign-out request for CAS session "ST-1227202292r61123E3CCB49081665". - - -NameError (uninitialized constant CGI::Session::ActiveRecordStore): - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:493:in `const_missing' - /usr/lib/ruby/gems/1.8/gems/rubycas-client-2.0.99/lib/casclient/frameworks/rails/filter.rb:199:in `single_sign_out' - /usr/lib/ruby/gems/1.8/gems/rubycas-client-2.0.99/lib/casclient/frameworks/rails/filter.rb:18:in `filter' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:180:in `send' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:180:in `evaluate_method' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/callbacks.rb:161:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:191:in `call' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:591:in `run_before_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:577:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error) - - -Processing SimpleExampleController#index (for 127.0.0.1 at 2008-11-20 12:31:48) [GET] - Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo -SGFzaHsABjoKQHVzZWR7AA==--3ac0dad26b5ba8bf00d4a6485f54f64cd01e94a4 - Parameters: {"action"=>"index", "controller"=>"simple_example"} -Guessed service url: "http://localhost:3000/" -Redirecting to "https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2F" -Redirected to https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2F -Filter chain halted as [CASClient::Frameworks::Rails::Filter] rendered_or_redirected. -Completed in 0.00076 (1322 reqs/sec) | 302 Found [http://localhost/] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:32:25) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheUY6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4AAdAF/BjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--06eb7b8f984114f478515d7f7bafc48a6c584e9b - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Guessed service url: "http://localhost:3000/advanced_example" -Redirecting to "https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example&gateway=true" -Redirected to https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example&gateway=true -Filter chain halted as [CASClient::Frameworks::Rails::GatewayFilter] rendered_or_redirected. -Completed in 0.00068 (1459 reqs/sec) | 302 Found [http://localhost/advanced_example/] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:32:25) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. -Rendering advanced_example/index -Completed in 0.00303 (330 reqs/sec) | Rendering: 0.00127 (42%) | 200 OK [http://localhost/advanced_example] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:32:46) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. -Rendering advanced_example/index -Completed in 0.00305 (327 reqs/sec) | Rendering: 0.00128 (41%) | 200 OK [http://localhost/advanced_example] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:38:42) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. - - -NoMethodError (undefined method `login_url' for CASClient::Frameworks::Rails::Filter:Class): - /app/controllers/advanced_example_controller.rb:15:in `index' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error) - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:38:49) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. - - -NoMethodError (undefined method `login_url' for CASClient::Frameworks::Rails::Filter:Class): - /app/controllers/advanced_example_controller.rb:15:in `index' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error) - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:38:51) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. - - -NoMethodError (undefined method `login_url' for CASClient::Frameworks::Rails::Filter:Class): - /app/controllers/advanced_example_controller.rb:15:in `index' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' - /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:76:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `synchronize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/rails.rb:74:in `process' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `process_client' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `initialize' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `each' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in `run' - /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in `load' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/servers/mongrel.rb:64 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new_constants_in' - /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in `require' - /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39 - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' - /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' - script/server:3 - -Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/templates/rescues/layout.erb (internal_server_error) - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:39:28) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"action"=>"index", "controller"=>"advanced_example"} -Returning from CAS gateway without authentication. -This CAS client is configured to use gatewaying, so we will permit the user to continue without authentication. -Guessed service url: "http://localhost:3000/advanced_example" -Generated login url: https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -Rendering advanced_example/index -Completed in 0.00380 (263 reqs/sec) | Rendering: 0.00124 (32%) | 200 OK [http://localhost/advanced_example] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:39:38) [GET] - Session ID: BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz -aElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA -dXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54 - Parameters: {"ticket"=>"ST-1227202778r635C166263A75DC7C1", "action"=>"index", "controller"=>"advanced_example"} -Request contains ticket "ST-1227202778r635C166263A75DC7C1". -Guessed service url: "http://localhost:3000/advanced_example" -Requesting CAS response for URI https://mzukowski.urbacon.net:6543/cas/proxyValidate?ticket=ST-1227202778r635C166263A75DC7C1&service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -CAS server responded with #: -mzukowskiMatt Zukowskimzukowski@urbacon.net -Ticket "ST-1227202778r635C166263A75DC7C1" for service "http://localhost:3000/advanced_example" belonging to user "mzukowski" is VALID. -Extra user attributes provided along with ticket "ST-1227202778r635C166263A75DC7C1": {"cn"=>"Matt Zukowski", "mail"=>"mzukowski@urbacon.net"}. -Wrote service session lookup file to "/home/URBACON/mzukowski/workspace/rubycas-client2/examples/rails/tmp/sessions/cas_sess.ST-1227202778r635C166263A75DC7C1" with session id "BAh7CToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0\nX3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf\nY29lcmNpb25GOh9jYXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFz\naElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpA\ndXNlZHsA--d884e6ed45ef09f8cb038d5e0290d264b2765d54". -Guessed service url: "http://localhost:3000/advanced_example" -Generated login url: https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -Rendering advanced_example/index -Completed in 0.02237 (44 reqs/sec) | Rendering: 0.00058 (2%) | 200 OK [http://localhost/advanced_example?ticket=ST-1227202778r635C166263A75DC7C1] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:47:00) [GET] - Session ID: BAh7DToaY2FzX2xhc3RfdmFsaWRfdGlja2V0bzodQ0FTQ2xpZW50OjpTZXJ2 -aWNlVGlja2V0CToLQHJlbmV3MDoOQHJlc3BvbnNlbzoiQ0FTQ2xpZW50OjpW -YWxpZGF0aW9uUmVzcG9uc2UKOgpAdXNlciIObXp1a293c2tpOhZAZXh0cmFf -YXR0cmlidXRlc3sHIgdjbiISTWF0dCBadWtvd3NraSIJbWFpbCIabXp1a293 -c2tpQHVyYmFjb24ubmV0OhRAcGFyc2VfZGF0ZXRpbWVJdToJVGltZQ2RKhuA -mKhungY6H0BtYXJzaGFsX3dpdGhfdXRjX2NvZXJjaW9uRjoJQHhtbG86E1JF -WE1MOjpFbGVtZW50DToMQHByZWZpeCIIY2FzOg5AZWxlbWVudHNvOhRSRVhN -TDo6RWxlbWVudHMGOg1AZWxlbWVudEAPOhBAYXR0cmlidXRlc0lDOhZSRVhN -TDo6QXR0cmlidXRlc3sABjsUQA86E0BleHBhbmRlZF9uYW1lIh5jYXM6YXV0 -aGVudGljYXRpb25TdWNjZXNzOg5AY2hpbGRyZW5bCG87EA87ESIIY2FzOxJv -OxMGOxRAFTodQGlnbm9yZV93aGl0ZXNwYWNlX25vZGVzRjsVSUM7FnsABjsU -QBU6EEB3aGl0ZXNwYWNlVDsXIg1jYXM6dXNlcjsYWwZvOhBSRVhNTDo6VGV4 -dAs6EkB1bm5vcm1hbGl6ZWQiDm16dWtvd3NraToMQHN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-CDoYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0X3Rv -X2Nhc0l1Ow0NkSobgCHSmIEGOw5GOg1jYXNfdXNlciIObXp1a293c2tpOh9j -YXNfdmFsaWRhdGlvbl9yZXRyeV9jb3VudGkAIgpmbGFzaElDOidBY3Rpb25D -b250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAOhljYXNf -ZXh0cmFfYXR0cmlidXRlc0M6Hkhhc2hXaXRoSW5kaWZmZXJlbnRBY2Nlc3N7 -B0AKQAtADEAN--c3c095f05414d41aeebb5c6cd3630f3995da698e - Parameters: {"ticket"=>"ST-1227202778r635C166263A75DC7C1", "action"=>"index", "controller"=>"advanced_example"} -Request contains ticket "ST-1227202778r635C166263A75DC7C1". -Guessed service url: "http://localhost:3000/advanced_example" -Re-using previously validated ticket since the ticket id and service are the same. -Guessed service url: "http://localhost:3000/advanced_example" -Generated login url: https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -Rendering advanced_example/index -Completed in 0.00501 (199 reqs/sec) | Rendering: 0.00194 (38%) | 200 OK [http://localhost/advanced_example?ticket=ST-1227202778r635C166263A75DC7C1] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:48:47) [GET] - Session ID: BAh7DToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOg1jYXNfdXNlciIObXp1a293c2tpOh9jYXNfdmFsaWRhdGlv -bl9yZXRyeV9jb3VudGkAOhljYXNfZXh0cmFfYXR0cmlidXRlc0M6Hkhhc2hX -aXRoSW5kaWZmZXJlbnRBY2Nlc3N7ByIHY24iEk1hdHQgWnVrb3dza2kiCW1h -aWwiGm16dWtvd3NraUB1cmJhY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7KSIAOygiCW1haWw7JkATOydAIjsoIhphdXRoZW50aWNhdGlvblN1Y2Nl -c3M7Jm87FQ07FiIIY2FzOxdvOxgGOxlAOTsaSUM7G3sGIghjYXNvOhVSRVhN -TDo6QXR0cmlidXRlDDsZQDk7FiIKeG1sbnM6C0B2YWx1ZSIfaHR0cDovL3d3 -dy55YWxlLmVkdS90cC9jYXM7ISIfaHR0cDovL3d3dy55YWxlLmVkdS90cC9j -YXM7HCIOeG1sbnM6Y2FzOyMwOygiCGNhcwY7GUA5OxwiGGNhczpzZXJ2aWNl -UmVzcG9uc2U7HVsGQBM7J0AiOygiFHNlcnZpY2VSZXNwb25zZTsmbzoUUkVY -TUw6OkRvY3VtZW50DjsWIgA7F287GAY7GUBHOxpJQzsbewAGOxlARzscIg5V -TkRFRklORUQ7HVsGQDk7J0AiOykiADsoIg5VTkRFRklORUQ7JjA6FkBleHRy -YV9hdHRyaWJ1dGVzewdACUAKQAtADDoOQHByb3RvY29sZgYyOhRAcGFyc2Vf -ZGF0ZXRpbWVJdTsHDZEqG4CYqG6eBjsIRjoLQHJlbmV3MDoNQHNlcnZpY2Ui -K2h0dHA6Ly9sb2NhbGhvc3Q6MzAwMC9hZHZhbmNlZF9leGFtcGxlOgxAdGlj -a2V0IiVTVC0xMjI3MjAyNzc4cjYzNUMxNjYyNjNBNzVEQzdDMToSY2FzZmls -dGVydXNlckAS--9d74601d600be2c4d5ece518aff1f040923892d8 - Parameters: {"ticket"=>"ST-1227202778r635C166263A75DC7C1", "action"=>"index", "controller"=>"advanced_example"} -Request contains ticket "ST-1227202778r635C166263A75DC7C1". -Guessed service url: "http://localhost:3000/advanced_example" -Re-using previously validated ticket since the ticket id and service are the same. -Guessed service url: "http://localhost:3000/advanced_example" -Generated login url: https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -Rendering advanced_example/index -Completed in 0.00383 (260 reqs/sec) | Rendering: 0.00132 (34%) | 200 OK [http://localhost/advanced_example?ticket=ST-1227202778r635C166263A75DC7C1] - - -Processing AdvancedExampleController#index (for 127.0.0.1 at 2008-11-20 12:49:40) [GET] - Session ID: BAh7DToYY2FzX3NlbnRfdG9fZ2F0ZXdheVQ6HXByZXZpb3VzX3JlZGlyZWN0 -X3RvX2Nhc0l1OglUaW1lDZEqG4Ah0piBBjofQG1hcnNoYWxfd2l0aF91dGNf -Y29lcmNpb25GOg1jYXNfdXNlciIObXp1a293c2tpOh9jYXNfdmFsaWRhdGlv -bl9yZXRyeV9jb3VudGkAOhljYXNfZXh0cmFfYXR0cmlidXRlc0M6Hkhhc2hX -aXRoSW5kaWZmZXJlbnRBY2Nlc3N7ByIHY24iEk1hdHQgWnVrb3dza2kiCW1h -aWwiGm16dWtvd3NraUB1cmJhY29uLm5ldDoaY2FzX2xhc3RfdmFsaWRfdGlj -a2V0bzodQ0FTQ2xpZW50OjpTZXJ2aWNlVGlja2V0CToLQHJlbmV3MDoOQHJl -c3BvbnNlbzoiQ0FTQ2xpZW50OjpWYWxpZGF0aW9uUmVzcG9uc2UKOgpAdXNl -ciIObXp1a293c2tpOhZAZXh0cmFfYXR0cmlidXRlc3sHQAlACkALQAw6CUB4 -bWxvOhNSRVhNTDo6RWxlbWVudA06DEBwcmVmaXgiCGNhczoOQGVsZW1lbnRz -bzoUUkVYTUw6OkVsZW1lbnRzBjoNQGVsZW1lbnRAEToQQGF0dHJpYnV0ZXNJ -QzoWUkVYTUw6OkF0dHJpYnV0ZXN7AAY7GUAROhNAZXhwYW5kZWRfbmFtZSIe -Y2FzOmF1dGhlbnRpY2F0aW9uU3VjY2VzczoOQGNoaWxkcmVuWwhvOxUPOxYi -CGNhczsXbzsYBjsZQBc6HUBpZ25vcmVfd2hpdGVzcGFjZV9ub2Rlc0Y7GklD -Oxt7AAY7GUAXOhBAd2hpdGVzcGFjZVQ7HCINY2FzOnVzZXI7HVsGbzoQUkVY -TUw6OlRleHQLOhJAdW5ub3JtYWxpemVkIg5tenVrb3dza2k6DE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xNjYyNjNBNzVEQzdDMSIKZmxhc2hJQzonQWN0aW9uQ29u -dHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoSY2FzZmls -dGVydXNlckAP--f6abd28027e3ebd81f1197903bf4266e4b3a7a16 - Parameters: {"ticket"=>"ST-1227202778r635C166263A75DC7C1", "action"=>"index", "controller"=>"advanced_example"} -Request contains ticket "ST-1227202778r635C166263A75DC7C1". -Guessed service url: "http://localhost:3000/advanced_example" -Re-using previously validated ticket since the ticket id and service are the same. -Guessed service url: "http://localhost:3000/advanced_example" -Generated login url: https://mzukowski.urbacon.net:6543/cas/login?service=http%3A%2F%2Flocalhost%3A3000%2Fadvanced_example -Rendering advanced_example/index -Completed in 0.00497 (201 reqs/sec) | Rendering: 0.00177 (35%) | 200 OK [http://localhost/advanced_example?ticket=ST-1227202778r635C166263A75DC7C1] diff --git a/examples/rails/log/production.log b/examples/rails/log/production.log deleted file mode 100644 index e69de29b..00000000 diff --git a/examples/rails/log/server.log b/examples/rails/log/server.log deleted file mode 100644 index e69de29b..00000000 diff --git a/examples/rails/log/test.log b/examples/rails/log/test.log deleted file mode 100644 index e69de29b..00000000 diff --git a/examples/rails/script/about b/examples/rails/script/about deleted file mode 100755 index ed8deb0d..00000000 --- a/examples/rails/script/about +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot' -$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" -require 'commands/about' \ No newline at end of file diff --git a/examples/rails/script/console b/examples/rails/script/console deleted file mode 100755 index 498077ab..00000000 --- a/examples/rails/script/console +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot' -require 'commands/console' diff --git a/examples/rails/script/server b/examples/rails/script/server deleted file mode 100755 index 3c67f39b..00000000 --- a/examples/rails/script/server +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot' -require 'commands/server' diff --git a/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb b/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb index 01b0e57f..96623258 100644 --- a/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb +++ b/lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb @@ -71,6 +71,6 @@ def render_error(msg) end def open_pstore - PStore.new("#{Rails.root}/tmp/cas_pgt.pstore") + PStore.new("#{::Rails.root}/tmp/cas_pgt.pstore") end end diff --git a/lib/casclient/frameworks/rails/filter.rb b/lib/casclient/frameworks/rails/filter.rb index df1d1a2a..69ae8712 100644 --- a/lib/casclient/frameworks/rails/filter.rb +++ b/lib/casclient/frameworks/rails/filter.rb @@ -123,7 +123,7 @@ def filter(controller) def configure(config) @@config = config - @@config[:logger] = Rails.logger unless @@config[:logger] + @@config[:logger] = ::Rails.logger unless @@config[:logger] @@client = CASClient::Client.new(config) @@log = client.log end @@ -325,7 +325,7 @@ def delete_service_session_lookup(st) # Returns the path and filename of the service session lookup file. def filename_of_service_session_lookup(st) st = st.ticket if st.kind_of? ServiceTicket - return "#{Rails.root}/tmp/sessions/cas_sess.#{st}" + return "#{::Rails.root}/tmp/sessions/cas_sess.#{st}" end end end diff --git a/rubycas-client.gemspec b/rubycas-client.gemspec deleted file mode 100644 index 65893ab1..00000000 --- a/rubycas-client.gemspec +++ /dev/null @@ -1,36 +0,0 @@ -Gem::Specification.new do |s| - s.name = %q{rubycas-client} - s.version = "2.2.1" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Matt Zukowski", "Matt Walker"] - s.date = %q{2008-11-18} - s.description = %q{Client library for the Central Authentication Service (CAS) protocol.} - s.email = %q{matt at roughest dot net} - s.extra_rdoc_files = ["CHANGELOG.txt", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"] - s.files = ["CHANGELOG.txt", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "init.rb", "lib/casclient.rb", "lib/casclient/client.rb", - "lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb", "lib/casclient/frameworks/rails/filter.rb", "lib/casclient/frameworks/merb/strategy.rb", "lib/casclient/responses.rb", "lib/casclient/tickets.rb", "lib/casclient/version.rb", "lib/rubycas-client.rb", "setup.rb"] - s.has_rdoc = true - s.homepage = %q{http://rubycas-client.rubyforge.org} - s.rdoc_options = ["--main", "README.txt"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{rubycas-client} - s.rubygems_version = %q{1.2.0} - s.summary = %q{Client library for the Central Authentication Service (CAS) protocol.} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 2 - - if current_version >= 3 then - s.add_runtime_dependency(%q, [">= 0"]) - s.add_development_dependency(%q, [">= 1.7.0"]) - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 1.7.0"]) - end - else - s.add_dependency(%q, [">= 0"]) - s.add_dependency(%q, [">= 1.7.0"]) - end -end From e7d78c1d3ee4c7203d3c158f947ff9d88bc4f601 Mon Sep 17 00:00:00 2001 From: xdite Date: Wed, 21 Sep 2011 15:42:36 +0800 Subject: [PATCH 6/6] add gem spec --- rubycas-client.gemspec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 rubycas-client.gemspec diff --git a/rubycas-client.gemspec b/rubycas-client.gemspec new file mode 100644 index 00000000..035e5c01 --- /dev/null +++ b/rubycas-client.gemspec @@ -0,0 +1,36 @@ +Gem::Specification.new do |s| + s.name = %q{rubycas-client} + s.version = "2.1.0" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Matt Zukowski", "Matt Walker"] + s.date = %q{2008-11-18} + s.description = %q{Client library for the Central Authentication Service (CAS) protocol.} + s.email = %q{matt at roughest dot net} + s.extra_rdoc_files = ["CHANGELOG.txt", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"] + s.files = ["CHANGELOG.txt", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "init.rb", "lib/casclient.rb", "lib/casclient/client.rb", + "lib/casclient/frameworks/rails/cas_proxy_callback_controller.rb", "lib/casclient/frameworks/rails/filter.rb", "lib/casclient/frameworks/merb/strategy.rb", "lib/casclient/responses.rb", "lib/casclient/tickets.rb", "lib/casclient/version.rb", "lib/rubycas-client.rb", "setup.rb"] + s.has_rdoc = true + s.homepage = %q{http://rubycas-client.rubyforge.org} + s.rdoc_options = ["--main", "README.txt"] + s.require_paths = ["lib"] + s.rubyforge_project = %q{rubycas-client} + s.rubygems_version = %q{1.2.0} + s.summary = %q{Client library for the Central Authentication Service (CAS) protocol.} + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 2 + + if current_version >= 3 then + s.add_runtime_dependency(%q, [">= 0"]) + s.add_development_dependency(%q, [">= 1.7.0"]) + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 1.7.0"]) + end + else + s.add_dependency(%q, [">= 0"]) + s.add_dependency(%q, [">= 1.7.0"]) + end +end