Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 2e60a9f

Browse files
committed
Simplified the security.yml configuration
1 parent edc56be commit 2e60a9f

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

app/config/security.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
security:
2-
encoders:
3-
Symfony\Component\Security\Core\User\User: plaintext
4-
5-
role_hierarchy:
6-
ROLE_ADMIN: ROLE_USER
7-
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
82

93
providers:
104
in_memory:
11-
memory:
12-
users:
13-
user: { password: userpass, roles: [ 'ROLE_USER' ] }
14-
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
5+
memory: ~
156

167
firewalls:
178
dev:
18-
pattern: ^/(_(profiler|wdt)|css|images|js)/
9+
pattern: ^/(_(profiler|wdt|error)|css|images|js)/
1910
security: false
2011

21-
access_control:
22-
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
12+
main:
13+
anonymous: ~

0 commit comments

Comments
 (0)