Skip to content
Snippets Groups Projects
Commit 7f3f502f authored by Olav Morken's avatar Olav Morken
Browse files

SimpleSAML_Auth_Source: Add getSources()-function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1725 44740490-163a-0410-bde0-09ae8108e29a
parent 1da8b395
No related branches found
No related tags found
No related merge requests found
...@@ -248,6 +248,20 @@ abstract class SimpleSAML_Auth_Source { ...@@ -248,6 +248,20 @@ abstract class SimpleSAML_Auth_Source {
call_user_func($callback, $callbackState); 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();
}
} }
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment