mirror of
https://github.com/republique-et-canton-de-geneve/php-symfony-data-content-bundle.git
synced 2026-08-25 23:04:15 +00:00
A symfony bundle for Tessi Data Content. | Read-only mirror of https://github.com/republique-et-canton-de-geneve/php-symfony-data-content-bundle — République et canton de Genève. Issues & pull requests at the source.
- PHP 98.9%
- Shell 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| .vscode | ||
| cmd | ||
| config/packages | ||
| src | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .php-cs-fixer.php | ||
| composer.json | ||
| coverage_branch.svg | ||
| coverage_line.svg | ||
| LICENSE | ||
| phpstan.neon | ||
| phpunit.xml | ||
| README.md | ||
| rector.php | ||
| SECURITY.md | ||
A Symfony bundle for GED tessi data content .
For Symfony 5.4
Usage
You define one or more headers response in your yaml configuration, for exemple:
---
#config/packages/datacontent.yml
data_content:
checkSSL: true
# Name of application
applicationId: myAppli
# Tenant Id
tenantId: admin
# GED client Id
clientId: clientId
# Ged client secret
clientSecret: '%env(DATA_CONTENT_CLIENT_SECRET)%'
# URL for GED REST request
restUrl: 'http://ged.localhost'
# Base ID
baseId: baseId
# Timeout for DataContent in seconds
timeout: 20
# service for token authentication
tokenAuthenticatorClass: ~
# Username account for get a token
username: 'User'
# Password for get a token
password: '%env(DATA_CONTENT_PASSWORD)%'
# Audience for token request
audience: audience
# URL for get a token
tokenAuthSsoUrl: http://sso.localhost
# Timeout for token in seconds
tokenTimeout: 15
...
| parameter | definition |
|---|---|
| checkSSL | (bool) check the ssl |
| applicationId | Application name Id |
| tenantId | Tenant ID |
| clientId | GED client Id |
| clientSecret | Ged client secret |
| restUrl | URL for GED REST request |
| baseId | Base ID |
| timeout | Timeout for DataContent in seconds |
When using the default service for token authentification
| parameter | definition |
|---|---|
| username | Username account for get a token |
| password | Password for get a token |
| audience | Audience for token request |
| tokenAuthSsoUrl | URL for get a token |
| tokenTimeout | Timeout for token in seconds |
If you want to use your own authentication service instead of the standard one
| parameter | definition |
|---|---|
| tokenAuthenticatorClass | service id for token authentication |
Your service implement class EtatGeneve\DataContentBundle\Service\InterfaceTokenAuthenticator
Installation
The bundle should be automatically enabled by Symfony Flex. If you don't use Flex, you'll need to enable it manually as explained in the docs.
composer config extra.symfony.allow-contrib true
composer require republique-et-canton-de-geneve/php-symfony-data-content-bundle
License Released under the Apache-2.0 license