{"id":23859224,"url":"https://github.com/openconext/stepup-middleware-clientbundle","last_synced_at":"2026-03-07T23:03:26.592Z","repository":{"id":20586691,"uuid":"23867355","full_name":"OpenConext/Stepup-Middleware-clientbundle","owner":"OpenConext","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-07T14:38:53.000Z","size":556,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-05-01T23:57:32.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenConext.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-10T08:47:54.000Z","updated_at":"2024-06-24T14:53:08.607Z","dependencies_parsed_at":"2023-01-13T21:02:38.608Z","dependency_job_id":"2e136786-cf8a-447a-b742-dccb87bba0dd","html_url":"https://github.com/OpenConext/Stepup-Middleware-clientbundle","commit_stats":{"total_commits":313,"total_committers":12,"mean_commits":"26.083333333333332","dds":0.7156549520766773,"last_synced_commit":"2b235362a256f9e0deac82fc55af006b61079b44"},"previous_names":[],"tags_count":67,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FStepup-Middleware-clientbundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FStepup-Middleware-clientbundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FStepup-Middleware-clientbundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenConext%2FStepup-Middleware-clientbundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenConext","download_url":"https://codeload.github.com/OpenConext/Stepup-Middleware-clientbundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242888133,"owners_count":20201921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T03:33:03.438Z","updated_at":"2026-03-07T23:03:26.562Z","avatar_url":"https://github.com/OpenConext.png","language":"PHP","readme":"# Step-up Middleware Client Bundle\n[![Build status](https://github.com/OpenConext/Stepup-Middleware-clientbundle/actions/workflows/test-integration.yml/badge.svg)](https://github.com/OpenConext/Stepup-Middleware-clientbundle/actions/workflows/test-integration.yml)\n\nA Symfony 6 bundle to consume the Step-up Middleware API. See [Stepup-Deploy](https://github.com/OpenConext/Stepup-Deploy) for an overview. \n\n## Requirements\n\n * PHP 8.2 or higher\n * [Composer](https://getcomposer.org/)\n * A working [Gateway](https://github.com/OpenConext/Stepup-Gateway)\n * Working [Middleware](https://github.com/OpenConext/Stepup-Middleware)\n\n## Installation\n\n * Add the package to your Composer file\n    ```sh\n    composer require surfnet/stepup-middleware-client-bundle\n    ```\n\n * Add the bundle to your kernel in `app/AppKernel.php`\n    ```php\n    public function registerBundles()\n    {\n        // ...\n        $bundles[] = new Surfnet\\StepupMiddlewareClientBundle\\SurfnetStepupMiddlewareClientBundle;\n    }\n    ```\n\n## Configuration\n\n```yaml\nsurfnet_stepup_middleware_client:\n    authorisation:\n        username: john\n        password: doe\n    url:\n        command_api: http://middleware.tld/command\n```\n\n## Usage\n\n### Executing commands\n\n```php\n# In the context of a Symfony2 controller action\n$command = new \\Surfnet\\StepupMiddlewareClientBundle\\Identity\\Command\\CreateIdentityCommand();\n$command-\u003eid = \\Surfnet\\StepupMiddlewareClientBundle\\Uuid\\Uuid::generate();\n$command-\u003enameId = \\Surfnet\\StepupMiddlewareClientBundle\\Uuid\\Uuid::generate();\n\n/** @var \\Surfnet\\StepupMiddlewareClientBundle\\Service\\CommandService $service */\n$service = $this-\u003eget('surfnet_stepup_middleware_client.service.command');\n$result = $service-\u003eexecute($command);\n```\n\n### Reading DTOs\n\n```php\n/** @var \\Surfnet\\StepupMiddlewareClientBundle\\Identity\\Service\\IdentityService $service */\n$service = $container-\u003eget('surfnet_stepup_middleware_client.identity.service.identity');\n/** @var null|\\Surfnet\\StepupMiddlewareClientBundle\\Identity\\Dto\\Identity */\n$identity = $service-\u003eget($id);\n```\n\n## Release strategy\nPlease read: https://github.com/OpenConext/Stepup-Deploy/wiki/Release-Management for more information on the release strategy used in Stepup projects.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenconext%2Fstepup-middleware-clientbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenconext%2Fstepup-middleware-clientbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenconext%2Fstepup-middleware-clientbundle/lists"}