Revision: 3124
Author:   olavmrk
Date:     Fri Jun 22 04:36:57 2012
Log: saml: Add support for overriding SAML 2.0 SP authentication request generation.
http://code.google.com/p/simplesamlphp/source/detail?r=3124

Modified:
 /trunk/modules/saml/lib/Auth/Source/SP.php

=======================================
--- /trunk/modules/saml/lib/Auth/Source/SP.php  Thu Dec 22 23:00:45 2011
+++ /trunk/modules/saml/lib/Auth/Source/SP.php  Fri Jun 22 04:36:57 2012
@@ -257,10 +257,25 @@

SimpleSAML_Logger::debug('Sending SAML 2 AuthnRequest to ' . var_export($idpMetadata->getString('entityid'), TRUE));
                $b = new SAML2_HTTPRedirect();
-               $b->send($ar);
+               $this->sendSAML2AuthnRequest($state, $b, $ar);

                assert('FALSE');
        }
+
+
+       /**
+        * Function to actually send the authentication request.
+        *
+        * This function does not return.
+        *
+        * @param array &$state  The state array.
+        * @param SAML2_Binding $binding  The binding.
+        * @param SAML2_AuthnRequest  $ar  The authentication request.
+        */
+ public function sendSAML2AuthnRequest(array &$state, SAML2_Binding $binding, SAML2_AuthnRequest $ar) {
+               $binding->send($ar);
+               assert('FALSE');
+       }


        /**

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

Reply via email to