[Jifty-commit] r4188 - in apps/CASPlus/trunk: lib/CASPlus/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Oct 2 12:04:07 EDT 2007


Author: sterling
Date: Tue Oct  2 12:04:07 2007
New Revision: 4188

Modified:
   apps/CASPlus/trunk/   (props changed)
   apps/CASPlus/trunk/lib/CASPlus/Action/Logout.pm

Log:
 r12779 at dynpc145:  andrew | 2007-10-02 10:54:09 -0500
 Adding a special feature to perform a service logout callback by passing a service parameter to logout containing the URL of the service logout page.


Modified: apps/CASPlus/trunk/lib/CASPlus/Action/Logout.pm
==============================================================================
--- apps/CASPlus/trunk/lib/CASPlus/Action/Logout.pm	(original)
+++ apps/CASPlus/trunk/lib/CASPlus/Action/Logout.pm	Tue Oct  2 12:04:07 2007
@@ -20,7 +20,7 @@
 
 use Jifty::Param::Schema;
 use Jifty::Action schema {
-
+    param 'service';
 };
 
 =head1 METHODS
@@ -54,6 +54,12 @@
     Jifty->web->current_user(CASPlus::CurrentUser->new);
 
     $self->result->success('You have been logged out.');
+
+    my $service = $self->argument_value('service');
+    if ($service && $service =~ m{^https?://}) {
+        $self->log->debug("Following logout, redirecting to $service");
+        Jifty->web->redirect($service);
+    }
 }
 
 =head1 SEE ALSO


More information about the Jifty-commit mailing list