Skip to content

Instantly share code, notes, and snippets.

@roderik
Created August 17, 2012 09:42
Show Gist options
  • Select an option

  • Save roderik/3377473 to your computer and use it in GitHub Desktop.

Select an option

Save roderik/3377473 to your computer and use it in GitHub Desktop.
jms_security_extra:
secure_all_services: false
expressions: true
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
in_memory:
memory:
users:
user: { password: userpass, roles: [ 'ROLE_USER' ] }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
access_control:
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment