Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dmj
simplesamlphp-module-pica
Commits
c8300a9b
Commit
c8300a9b
authored
Jan 11, 2021
by
Andy Brüchert
Browse files
fixed reference to SimpleSAML\Configuration
parent
ff96b0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Auth/Source/Pica.php
View file @
c8300a9b
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment