surfnet / stepup-middleware-client-bundle
Symfony bundle for consuming the Step-up Middleware API.
Installs: 8 083
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 1
Open Issues: 0
pkg:composer/surfnet/stepup-middleware-client-bundle
Requires
- php: ^8.2
- beberlei/assert: ^3.3
- brick/math: ^0.14.1
- guzzlehttp/guzzle: ^7.8
- psr/log: ^3.0
- ramsey/uuid: ^4.7
- surfnet/stepup-bundle: ^7.0.1
- surfnet/stepup-saml-bundle: ^7.0.1
- symfony/config: ^6.4|^7.4
- symfony/dependency-injection: ^6.4|^7.4
- symfony/framework-bundle: ^6.4|^7.4
- symfony/http-kernel: ^6.4|^7.4
- symfony/validator: ^6.4|^7.4
Requires (Dev)
- malukenho/docheader: ^1.1
- matthiasnoback/symfony-config-test: ^6.1
- mockery/mockery: ^1.6
- overtrue/phplint: ^9.7.1
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^2
- phpstan/phpstan-symfony: ^2
- phpunit/phpunit: ^11.5.46
- rector/rector: ^2
- slevomat/coding-standard: ^8.26
- squizlabs/php_codesniffer: ^4.0
- symfony/phpunit-bridge: ^6.4|^7.4
- dev-main
- 6.0.0
- 5.3.0
- 5.2.0
- 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-feature/update_sf74
- 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: 2026-01-15 15:19:35 UTC
README
A Symfony 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.phppublic 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.