Skip to content

Instantly share code, notes, and snippets.

@henrikbjorn
Forked from julesbou/gist:849110
Created March 1, 2011 13:25
Show Gist options
  • Save henrikbjorn/849116 to your computer and use it in GitHub Desktop.
Save henrikbjorn/849116 to your computer and use it in GitHub Desktop.
security:
acl: ~
access_control:
- { path: /admin/.*, roles: [ROLE_ADMIN] }
- { path: /.*, roles: [IS_AUTHENTICATED_ANONYMOUSLY, ROLE_USER] }
encoders:
admin: { algorithm: sha1, class: Sas\CoreBundle\Entity\Account }
providers:
fos_user:
id: fos_user.user_manager
firewalls:
admin:
pattern: /admin/.*
form_login:
default_target_path: /admin/
provider: fos_user
logout: true
security: true
anonymous: false
login_check:
pattern: /login_check
provider: fos_user
logout: true
form_login:
default_target_path: /admin/
security: true
anonymous: true
public:
pattern: /.*
security: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment