Revision: 2245
Author: [email protected]
Date: Wed Mar 31 06:17:27 2010
Log: Multiauth: Added functionality to bypass the select source page if the authsource id is known. Append 'source=AUTHSOURCEID' to query to apply.

http://code.google.com/p/simplesamlphp/source/detail?r=2245

Modified:
 /trunk/modules/multiauth/lib/Auth/Source/MultiAuth.php

=======================================
--- /trunk/modules/multiauth/lib/Auth/Source/MultiAuth.php Wed Sep 30 04:04:51 2009 +++ /trunk/modules/multiauth/lib/Auth/Source/MultiAuth.php Wed Mar 31 06:17:27 2010
@@ -81,7 +81,13 @@
                saved state array as a parameter to the login form */
                $url = 
SimpleSAML_Module::getModuleURL('multiauth/selectsource.php');
                $params = array('AuthState' => $id);
-               SimpleSAML_Utilities::redirect($url, $params);
+
+        // Allowes the user to specify the auth souce to be used
+        if(isset($_GET['source'])) {
+            $params['source'] = $_GET['source'];
+        }
+
+        SimpleSAML_Utilities::redirect($url, $params);

                /* The previous function never returns, so this code is never
                executed */

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