-
-
Save tarlepp/3e7f8f83af5eb4f7eaa361531e0e54cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you can read more about security in the related section of the documentation | |
# http://symfony.com/doc/current/book/security.html | |
security: | |
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers | |
providers: | |
our_db_provider: | |
entity: | |
class: GASUserBundle:User | |
property: username | |
property: pass | |
firewalls: | |
default: | |
anonymous: ~ | |
http_basic: ~ | |
form_login: | |
login_path: /login | |
check_path: /login_check | |
# field names for the username and password fields: | |
username_parameter: _username | |
password_parameter: _password | |
# default_target_path: default_security_target | |
# always_use_default_target_path: true | |
logout: | |
path: /logout | |
target: /login | |
# disables authentication for assets and the profiler, adapt it according to your needs | |
dev: | |
pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
security: false | |
# the login page has to be accessible for everybody | |
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 | |
# http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password | |
encoders: | |
GAS\UserBundle\Entity\User: | |
algorithm: bcrypt | |
cost: 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment