Skip to content

Instantly share code, notes, and snippets.

@pboethig
Created July 10, 2016 11:50
Show Gist options
  • Save pboethig/8b8362ba14b09c5b55acc753453af59b to your computer and use it in GitHub Desktop.
Save pboethig/8b8362ba14b09c5b55acc753453af59b to your computer and use it in GitHub Desktop.
# To get started with security, check out the documentation:
# http://symfony.com/doc/current/book/security.html
security:
encoders:
Blogbundle\Entity\Users:
algorithm: bcrypt
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
in_memory:
memory: ~
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# http_basic: ~
# http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
# form_login: ~
# http://symfony.com/doc/current/cookbook/security/form_login_setup.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment