Skip to content

Commit 0ef8a18

Browse files
committed
Integrate upstream consent changes
1 parent e4abbed commit 0ef8a18

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

library/EngineBlock/Application/DiContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getAuthenticationLoopGuard()
152152
}
153153

154154
/**
155-
* @return OpenConext\EngineBlock\Service\ConsentService
155+
* @return OpenConext\EngineBlock\Service\Consent\ConsentService
156156
*/
157157
public function getConsentService()
158158
{

library/EngineBlock/Corto/Model/Consent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
use OpenConext\EngineBlock\Metadata\Entity\ServiceProvider;
2020
use OpenConext\EngineBlock\Authentication\Value\ConsentType;
21-
use OpenConext\EngineBlock\Service\ConsentHashServiceInterface;
21+
use OpenConext\EngineBlock\Service\Consent\ConsentHashServiceInterface;
2222

2323
class EngineBlock_Corto_Model_Consent
2424
{

library/EngineBlock/Corto/Module/Service/ProvideConsent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use OpenConext\EngineBlock\Metadata\Entity\IdentityProvider;
2020
use OpenConext\EngineBlock\Metadata\Entity\ServiceProvider;
2121
use OpenConext\EngineBlock\Service\AuthenticationStateHelperInterface;
22-
use OpenConext\EngineBlock\Service\ConsentServiceInterface;
22+
use OpenConext\EngineBlock\Service\Consent\ConsentServiceInterface;
2323
use OpenConext\EngineBlock\Service\ProcessingStateHelperInterface;
2424
use SAML2\Constants;
2525
use Symfony\Component\HttpFoundation\Request;

src/OpenConext/EngineBlock/Service/Consent/ConsentService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
namespace OpenConext\EngineBlock\Service;
19+
namespace OpenConext\EngineBlock\Service\Consent;
2020

2121
use Exception;
2222
use OpenConext\EngineBlock\Authentication\Dto\Consent;
@@ -25,6 +25,7 @@
2525
use OpenConext\EngineBlock\Authentication\Repository\ConsentRepository;
2626
use OpenConext\EngineBlock\Authentication\Value\CollabPersonId;
2727
use OpenConext\EngineBlock\Exception\RuntimeException;
28+
use OpenConext\EngineBlock\Service\MetadataServiceInterface;
2829
use OpenConext\Value\Saml\EntityId;
2930
use Psr\Log\LoggerInterface;
3031
use function sprintf;
@@ -37,7 +38,7 @@ final class ConsentService implements ConsentServiceInterface
3738
private $consentRepository;
3839

3940
/**
40-
* @var MetadataService
41+
* @var MetadataServiceInterface
4142
*/
4243
private $metadataService;
4344

src/OpenConext/EngineBlock/Service/Consent/ConsentServiceInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
namespace OpenConext\EngineBlock\Service;
19+
namespace OpenConext\EngineBlock\Service\Consent;
2020

2121
use OpenConext\EngineBlock\Authentication\Dto\ConsentList;
2222
use OpenConext\EngineBlock\Authentication\Value\CollabPersonId;

src/OpenConext/EngineBlockBundle/Authentication/Repository/DbalConsentRepository.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ public function deleteOneFor(string $userId, string $serviceProviderEntityId): b
170170
public function hasConsentHash(array $parameters): bool
171171
{
172172
try {
173-
$query = "
174-
SELECT
173+
$query = " SELECT
175174
*
176175
FROM
177-
{$this->_tableName}
176+
consent
178177
WHERE
179178
hashed_user_id = ?
180179
AND

src/OpenConext/EngineBlockBundle/Controller/Api/ConsentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace OpenConext\EngineBlockBundle\Controller\Api;
2020

2121
use OpenConext\EngineBlock\Exception\RuntimeException;
22-
use OpenConext\EngineBlock\Service\ConsentServiceInterface;
22+
use OpenConext\EngineBlock\Service\Consent\ConsentServiceInterface;
2323
use OpenConext\EngineBlockBundle\Configuration\FeatureConfigurationInterface;
2424
use OpenConext\EngineBlockBundle\Exception\InvalidArgumentException as EngineBlockInvalidArgumentException;
2525
use OpenConext\EngineBlockBundle\Factory\CollabPersonIdFactory;

src/OpenConext/EngineBlockBundle/Resources/config/compat.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ services:
4747
class: EngineBlock_Corto_Model_Consent_Factory
4848
arguments:
4949
- "@engineblock.compat.corto_filter_command_factory"
50-
- "@engineblock.compat.database_connection_factory"
5150
- "@engineblock.service.consent.ConsentHashService"
5251

5352
engineblock.compat.saml2_id_generator:

src/OpenConext/EngineBlockBundle/Resources/config/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ services:
7272
- "@engineblock.configuration.stepup.loa_repository"
7373

7474
engineblock.service.consent:
75-
class: OpenConext\EngineBlock\Service\ConsentService
75+
class: OpenConext\EngineBlock\Service\Consent\ConsentService
7676
arguments:
7777
- "@engineblock.repository.consent"
7878
- "@engineblock.service.metadata"

tests/library/EngineBlock/Test/Corto/Model/ConsentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
2020
use OpenConext\EngineBlock\Metadata\Entity\ServiceProvider;
21-
use OpenConext\EngineBlock\Service\ConsentHashServiceInterface;
21+
use OpenConext\EngineBlock\Service\Consent\ConsentHashServiceInterface;
2222
use PHPUnit\Framework\TestCase;
2323

2424
class EngineBlock_Corto_Model_Consent_Test extends TestCase

0 commit comments

Comments
 (0)