Skip to content
Snippets Groups Projects
Commit c8300a9b authored by Andy Brüchert's avatar Andy Brüchert
Browse files

fixed reference to SimpleSAML\Configuration

parent ff96b0c9
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,8 @@ namespace SimpleSAML\Module\pica\Auth\Source; ...@@ -26,6 +26,8 @@ namespace SimpleSAML\Module\pica\Auth\Source;
use HAB\Pica\Auth; use HAB\Pica\Auth;
use SimpleSAML\Configuration;
/** /**
* Authentication source for Pica-based library systems. * Authentication source for Pica-based library systems.
* *
...@@ -60,7 +62,7 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase ...@@ -60,7 +62,7 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase
throw new Exception('Pica authentication source configuration missing: [pica]'); throw new Exception('Pica authentication source configuration missing: [pica]');
} }
$configuration = SimpleSAML_Configuration::loadFromArray($config['pica']); $configuration = Configuration::loadFromArray($config['pica']);
$this->factory = $this->createAuthenticationModuleFactory($configuration); $this->factory = $this->createAuthenticationModuleFactory($configuration);
$this->message = $configuration->getArray('errors', array()); $this->message = $configuration->getArray('errors', array());
$this->attrmap = $configuration->getArray('attrmap', array()); $this->attrmap = $configuration->getArray('attrmap', array());
...@@ -87,10 +89,10 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase ...@@ -87,10 +89,10 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase
/** /**
* Return authentication module factory function. * Return authentication module factory function.
* *
* @param SimpleSAML_Configuration $config * @param Configuration $config
* @return callable * @return callable
*/ */
public function createAuthenticationModuleFactory (SimpleSAML_Configuration $config) public function createAuthenticationModuleFactory (Configuration $config)
{ {
$module = $config->getString('module'); $module = $config->getString('module');
switch ($module) { switch ($module) {
......
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