Revision: 2275
Author: olavmrk
Date: Wed Apr 28 01:16:22 2010
Log: Session: Remove unnecessary clearNeedAuthFlag function.
http://code.google.com/p/simplesamlphp/source/detail?r=2275

Modified:
 /trunk/lib/SimpleSAML/Session.php

=======================================
--- /trunk/lib/SimpleSAML/Session.php   Mon Apr 26 01:59:58 2010
+++ /trunk/lib/SimpleSAML/Session.php   Wed Apr 28 01:16:22 2010
@@ -382,9 +382,6 @@
                $this->authState = $authState;

                $this->sessionstarted = time();
-
- /* Clear NeedAuthentication flags. This flag is used to implement ForceAuthn. */
-               $this->clearNeedAuthFlag();
        }


@@ -594,30 +591,6 @@
/* We require the logout handlers to register themselves again if they want to be called later. */
                $this->logout_handlers = array();
        }
-
-
-       /**
- * This function iterates over all current authentication requests, and removes any 'NeedAuthentication' flags
-        * from them.
-        */
-       private function clearNeedAuthFlag() {
-
-               foreach(array('AuthnRequest-saml2', 'AuthnRequest-shib13') as 
$type) {
-                       foreach($this->getDataOfType($type) as $id => $request) 
{
-
-                               if(!array_key_exists('NeedAuthentication', 
$request)) {
-                                       continue;
-                               }
-
-                               if($request['NeedAuthentication'] === FALSE) {
-                                       continue;
-                               }
-
-                               $request['NeedAuthentication'] = FALSE;
-                               $this->setData($type, $id, $request);
-                       }
-               }
-       }


        /**

--
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