Skip to content

Instantly share code, notes, and snippets.

@julesbou
Created February 16, 2011 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julesbou/829443 to your computer and use it in GitHub Desktop.
Save julesbou/829443 to your computer and use it in GitHub Desktop.
security:
access_control:
- { path: /admin/.*, role: ROLE_ADMIN }
- { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
encoders:
admin: { algorithm: sha1, class: Sas\CoreBundle\Entity\Account }
providers:
fos_user:
id: fos_user.user_manager
firewalls:
# login_check: { pattern: /login_check, security: true, anonymous: true, form_login: true }
admin:
pattern: /admin/.*
form_login:
default_target_path: /admin/
provider: fos_user
logout: true
security: true
public:
pattern: /.*
security: true
anonymous: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment