parallalax/synchro-bundle

1.3 2022-04-24 23:39 UTC

This package is auto-updated.

Last update: 2024-10-25 05:13:06 UTC


README

####routes.yaml

parallalax_synchro:
    resource: '@ParallalaxSynchroBundle/Resources/config/routes.yaml'

parallalax_synchro.yaml

parallalax_synchro:
    password: "%env(API_PASSWD)%"
    roles: "%env(API_ROLE)%"

####define API_PASSWD and API_ROLE in .env file


####security.yml

security:
    providers:
        api_users:
            memory:
                users:
                    api_user: { password: "%env(API_PASSWD)%", roles: ["%env(API_ROLE)%"] }

Add a firewall :

synchro:
    pattern: ^/synchro/
    provider: api_users
    http_basic:
        realm: Secured Area