Revision: 2019
Author: olavmrk
Date: Thu Dec  3 05:24:10 2009
Log: Auth_Default: Add initLogoutReturn().
http://code.google.com/p/simplesamlphp/source/detail?r=2019

Modified:
  /trunk/lib/SimpleSAML/Auth/Default.php

=======================================
--- /trunk/lib/SimpleSAML/Auth/Default.php      Wed Nov 18 00:14:55 2009
+++ /trunk/lib/SimpleSAML/Auth/Default.php      Thu Dec  3 05:24:10 2009
@@ -103,11 +103,11 @@
         * Start logout.
         *
         * This function starts a logout operation from the current  
authentication source. This function
-        * never returns.
+        * will return if the logout operation does not require a redirect.
         *
         * @param string $returnURL  The URL we should redirect the user to 
after  
logging out.
         */
-       public static function initLogout($returnURL) {
+       public static function initLogoutReturn($returnURL) {
                assert('is_string($returnURL)');

                $session = SimpleSAML_Session::getInstance();
@@ -126,6 +126,21 @@
                }

                $as->logout($state);
+       }
+
+
+       /**
+        * Start logout.
+        *
+        * This function starts a logout operation from the current  
authentication source. This function
+        * never returns.
+        *
+        * @param string $returnURL  The URL we should redirect the user to 
after  
logging out.
+        */
+       public static function initLogout($returnURL) {
+               assert('is_string($returnURL)');
+
+               self::initLogoutReturn($returnURL);
                self::logoutCompleted($state);
        }

--

You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.


Reply via email to