ConfigurationΒΆ
Hereunder an example of configuration for this bundle.
eu_login_api_authentication:
client_id: foo
client_secret: bar
environment: acceptance
This bundle uses EU Login to authenticate the incoming requests.
In order to authenticate, you need to be able to create valid tokens through your frontend application.
Sometimes, the frontend application is not ready and you still need to be able to authenticate.
Basically, you need to generate and authenticate tokens without relying on EU Login.
In order to do that, follow the following steps:
Edit the content of your application
services.yaml
and add:
when@dev:
services:
EcPhp\EuLoginApiAuthenticationBundle\Service\LocalEuLoginApiCredentials:
decorates: 'eu_login_api_authentication.service'
arguments: ['@.inner']
This will replace the EU Login authentication mechanism by another one which does not require any connection to EU Login.
Warning
Be extremely careful to not enable that for production environment.
Read the official Symfony documentation if you want to enable this only for a particular environment.