update
This commit is contained in:
15
projects/priceservice/config/packages/security.yaml
Normal file
15
projects/priceservice/config/packages/security.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
security:
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: [ ROLE_PRICES, ROLE_USER ]
|
||||
|
||||
password_hashers:
|
||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
||||
firewalls:
|
||||
dev:
|
||||
main:
|
||||
access_control:
|
||||
# api
|
||||
- { path: ^/api/prices, roles: [ PUBLIC_ACCESS ], ips: '%env(MTO_ALLOWED_API_IPS)%' }
|
||||
- { path: ^/api/prices, roles: [ ROLE_NO_ACCESS ] }
|
||||
#- { path: ^/trigger-import, roles: [ PUBLIC_ACCESS ], ips: '%env(MTO_ALLOWED_IMPORT_TRIGGER_IPS)%'}
|
||||
#- { path: ^/trigger-import, roles: [ ROLE_NO_ACCESS ]}
|
||||
Reference in New Issue
Block a user