parallalax / synchro-bundle
Installs: 384
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1.3
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