Revision: 1725
Author: olavmrk
Date: Fri Aug 28 00:47:31 2009
Log: SimpleSAML_Auth_Source: Add getSources()-function.
http://code.google.com/p/simplesamlphp/source/detail?r=1725

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

=======================================
--- /trunk/lib/SimpleSAML/Auth/Source.php       Mon Aug 17 02:04:39 2009
+++ /trunk/lib/SimpleSAML/Auth/Source.php       Fri Aug 28 00:47:31 2009
@@ -247,6 +247,20 @@

                call_user_func($callback, $callbackState);
        }
+
+
+       /**
+        * Retrieve list of authentication sources.
+        *
+        * @param string $authId  The authentication source identifier.
+        * @return array  The id of all authentication sources.
+        */
+       public static function getSources() {
+
+               $config = 
SimpleSAML_Configuration::getOptionalConfig('authsources.php');
+
+               return $config->getOptions();
+       }

  }


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