surfnet / stepup-middleware-client-bundle
Symfony 5|6 bundle for consuming the Step-up Middleware API.
Installs: 7 648
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- beberlei/assert: ~2.0
- brick/math: ^0.11.0
- guzzlehttp/guzzle: ^7.8
- psr/log: ~2.0
- ramsey/uuid: ^4.7
- surfnet/stepup-bundle: ^6.0
- symfony/config: ^5.4|^6.3
- symfony/dependency-injection: ^5.4|^6.3
- symfony/framework-bundle: ^5.4|^6.3
- symfony/http-kernel: ^5.4|^6.3
- symfony/validator: ^5.4|^6.3
Requires (Dev)
- matthiasnoback/symfony-config-test: ^4.0|^v5.0.0
- mockery/mockery: ^1.6
- overtrue/phplint: *
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^9.6
- sebastian/phpcpd: ^6.0
- slevomat/coding-standard: ^8.13
- squizlabs/php_codesniffer: ^3.7.1
- symfony/phpunit-bridge: ^5.4|^6.3
- dev-main
- 5.1.0
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-beta
- 4.1.7
- 4.1.6
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.0
- 3.0.20
- 3.0.19
- 3.0.18
- 3.0.17
- 3.0.16
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 0.3.0
- 0.2.0
- 0.1.0
- dev-release/4.1
- dev-feature/sat-self-vet-using-sat-token
- dev-feature/sso-2fa
- dev-feature/move-token
- dev-release/3.0
- dev-release/2.4
This package is auto-updated.
Last update: 2024-10-25 09:46:45 UTC
README
A Symfony 6 bundle to consume the Step-up Middleware API. See Stepup-Deploy for an overview.
Requirements
- PHP 8.2 or higher
- Composer
- A working Gateway
- Working Middleware
Installation
-
Add the package to your Composer file
composer require surfnet/stepup-middleware-client-bundle
-
Add the bundle to your kernel in
app/AppKernel.php
public function registerBundles() { // ... $bundles[] = new Surfnet\StepupMiddlewareClientBundle\SurfnetStepupMiddlewareClientBundle; }
Configuration
surfnet_stepup_middleware_client: authorisation: username: john password: doe url: command_api: http://middleware.tld/command
Usage
Executing commands
# In the context of a Symfony2 controller action $command = new \Surfnet\StepupMiddlewareClientBundle\Identity\Command\CreateIdentityCommand(); $command->id = \Surfnet\StepupMiddlewareClientBundle\Uuid\Uuid::generate(); $command->nameId = \Surfnet\StepupMiddlewareClientBundle\Uuid\Uuid::generate(); /** @var \Surfnet\StepupMiddlewareClientBundle\Service\CommandService $service */ $service = $this->get('surfnet_stepup_middleware_client.service.command'); $result = $service->execute($command);
Reading DTOs
/** @var \Surfnet\StepupMiddlewareClientBundle\Identity\Service\IdentityService $service */ $service = $container->get('surfnet_stepup_middleware_client.identity.service.identity'); /** @var null|\Surfnet\StepupMiddlewareClientBundle\Identity\Dto\Identity */ $identity = $service->get($id);
Release strategy
Please read: https://github.com/OpenConext/Stepup-Deploy/wiki/Release-Management for more information on the release strategy used in Stepup projects.