-
Notifications
You must be signed in to change notification settings - Fork 33
/
security_auth_manager.yaml
43 lines (32 loc) · 1.29 KB
/
security_auth_manager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# if you're using a different firewall name, you need to enable this parameter
# parameters:
# members.firewall_name: 'your_fw_name'
security:
# symfony default is set to "true".
# you may want to keep it "true" but keep in mind that this hide meaningful exceptions like "acount is disabled"
# instead the BadCredentialsException will be thrown
hide_user_not_found: false
providers:
# [...] other providers
members:
id: MembersBundle\Security\UserProvider
firewalls:
# [...] other firewalls
members_fe:
pattern: ^/(?!(admin)($|/)).*$
provider: members
entry_point: form_login
form_login:
login_path: members_user_security_login
check_path: members_user_security_check
enable_csrf: true
logout:
path: members_user_security_logout
invalidate_session: false
target: /
user_checker: MembersBundle\Security\UserChecker
access_control:
# [...] other access controls
- { path: ^/_locale/members/login$, role: PUBLIC_ACCESS }
- { path: ^/_locale/members/register, role: PUBLIC_ACCESS }
- { path: ^/_locale/members/resetting, role: PUBLIC_ACCESS }