Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit ede9601

Browse files
authored
Fix entity ID configuration source in entitlement filters (#152)
* fix: take entity_id from auth proc filter config instead of module config in PerunEntitlement * fix: take entity_id from auth proc filter config instead of module config in PerunEntitlementExtended
1 parent f04012e commit ede9601

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Auth/Process/PerunEntitlement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use SimpleSAML\Error\Exception;
66
use SimpleSAML\Configuration;
7-
use \SimpleSAML\Auth\ProcessingFilter;
7+
use SimpleSAML\Auth\ProcessingFilter;
88
use SimpleSAML\Module\perun\Adapter;
99
use SimpleSAML\Logger;
1010
use SimpleSAML\Module\perun\EntitlementUtils;
@@ -64,7 +64,7 @@ public function __construct($config, $reserved)
6464
$this->groupNameAARC ? Configuration::REQUIRED_OPTION : ''
6565
);
6666

67-
$this->entityId = $modulePerunConfiguration->getString(self::ENTITY_ID, null);
67+
$this->entityId = $configuration->getString(self::ENTITY_ID, null);
6868

6969
$interface = $configuration->getValueValidate(
7070
self::INTERFACE_PROPNAME,

lib/Auth/Process/PerunEntitlementExtended.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use SimpleSAML\Error\Exception;
77
use SimpleSAML\Configuration;
8-
use \SimpleSAML\Auth\ProcessingFilter;
8+
use SimpleSAML\Auth\ProcessingFilter;
99
use SimpleSAML\Module\perun\Adapter;
1010
use SimpleSAML\Logger;
1111
use SimpleSAML\Module\perun\EntitlementUtils;
@@ -64,7 +64,7 @@ public function __construct($config, $reserved)
6464
$this->groupNameAARC ? Configuration::REQUIRED_OPTION : ''
6565
);
6666

67-
$this->entityId = $modulePerunConfiguration->getString(self::ENTITY_ID, null);
67+
$this->entityId = $configuration->getString(self::ENTITY_ID, null);
6868

6969
$interface = $configuration->getValueValidate(
7070
self::INTERFACE_PROPNAME,

0 commit comments

Comments
 (0)