Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- encoders:
- Symfony\Component\Security\Core\User\User: plaintext
- Trainme\RestBundle\Document\User:
- id: security.encoder.blowfish
- role_hierarchy:
- ROLE_ADMIN: ROLE_USER
- ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
- providers:
- in_memory:
- memory:
- users:
- devuser: { password: olala, roles: [ 'ROLE_USER' ] }
- trainme_admin_provider:
- id: trainme_admin.user_provider
- firewalls:
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
- secured_area:
- pattern: ^/v1
- anonymous: ~
- http_basic:
- realm: "Secured API Area"
- provider: in_memory
- secured_admin:
- pattern: ^/admin/
- form_login:
- check_path: trainme_security_check
- login_path: trainme_login
- logout:
- path: trainme_logout
- target: trainme_redirect_route
- provider: trainme_admin_provider
- access_control:
- - { path: ^/v1, roles: ROLE_USER }
- - { path: ^/admin, roles: ROLE_ADMIN }
Advertisement
Add Comment
Please, Sign In to add comment