1
1
security :
2
2
encoders :
3
3
# Our user class and the algorithm we'll use to encode passwords
4
- # http://symfony.com/doc/current/book/ security.html#encoding-the-user-s-password
4
+ # http://symfony.com/doc/current/security.html#c- encoding-the-user-s-password
5
5
AppBundle\Entity\User : bcrypt
6
6
7
7
providers :
8
- # in this example, users are stored via Doctrine in the database
8
+ # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
9
+ # In this example, users are stored via Doctrine in the database
9
10
# To see the users at src/AppBundle/DataFixtures/ORM/LoadFixtures.php
10
- # To load users from somewhere else: http://symfony.com/doc/current/cookbook/ security/custom_provider.html
11
+ # To load users from somewhere else: http://symfony.com/doc/current/security/custom_provider.html
11
12
database_users :
12
13
entity : { class: AppBundle:User, property: username }
13
14
14
- # http://symfony.com/doc/current/book/ security.html#firewalls -authentication
15
+ # http://symfony.com/doc/current/security.html#initial-security-yml-setup -authentication
15
16
firewalls :
16
17
secured_area :
17
18
# this firewall applies to all URLs
@@ -22,15 +23,15 @@ security:
22
23
anonymous : true
23
24
24
25
# This allows the user to login by submitting a username and password
25
- # Reference: http://symfony.com/doc/current/cookbook/ security/form_login_setup.html
26
+ # Reference: http://symfony.com/doc/current/security/form_login_setup.html
26
27
form_login :
27
28
# The route name that the login form submits to
28
29
check_path : security_login
29
30
# The name of the route where the login form lives
30
31
# When the user tries to access a protected page, they are redirected here
31
32
login_path : security_login
32
33
# Secure the login form against CSRF
33
- # Reference: http://symfony.com/doc/current/cookbook/ security/csrf_in_login_form.html
34
+ # Reference: http://symfony.com/doc/current/security/csrf_in_login_form.html
34
35
csrf_token_generator : security.csrf.token_manager
35
36
# The page users are redirect to when there is no previous page stored in the
36
37
# session (for example when the users access directly to the login page).
0 commit comments