Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
SingleIdPConfigurationLoader | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getConfiguration | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * Configuration loader for single IdP |
5 | * |
6 | * PHP version 8 |
7 | * |
8 | * @category VuFind |
9 | * @package Authentication |
10 | * @author Vaclav Rosecky <vaclav.rosecky@mzk.cz> |
11 | * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
12 | * @link https://vufind.org Main Page |
13 | */ |
14 | |
15 | namespace VuFind\Auth\Shibboleth; |
16 | |
17 | /** |
18 | * Configuration loader for single IdP |
19 | * |
20 | * @category VuFind |
21 | * @package Authentication |
22 | * @author Vaclav Rosecky <vaclav.rosecky@mzk.cz> |
23 | * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
24 | * @link https://vufind.org Main Page |
25 | */ |
26 | class SingleIdPConfigurationLoader implements ConfigurationLoaderInterface |
27 | { |
28 | /** |
29 | * Configured IdPs with entityId and overridden attribute mapping |
30 | * |
31 | * @var \Laminas\Config\Config |
32 | */ |
33 | protected $config; |
34 | |
35 | /** |
36 | * Constructor |
37 | * |
38 | * @param \Laminas\Config\Config $config Configuration |
39 | */ |
40 | public function __construct(\Laminas\Config\Config $config) |
41 | { |
42 | $this->config = $config; |
43 | } |
44 | |
45 | /** |
46 | * Return shibboleth configuration. |
47 | * |
48 | * @param string $entityId entity Id |
49 | * |
50 | * @throws \VuFind\Exception\Auth |
51 | * @return array shibboleth configuration |
52 | */ |
53 | public function getConfiguration($entityId) |
54 | { |
55 | return $this->config->Shibboleth->toArray(); |
56 | } |
57 | } |