mirror of
https://github.com/bodyrep/bodyrep-sandpit.git
synced 2026-02-09 05:31:37 +00:00
neh
This commit is contained in:
46
br/app/config/security.yml
Normal file
46
br/app/config/security.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
jms_security_extra:
|
||||
secure_all_services: true
|
||||
expressions: true
|
||||
|
||||
security:
|
||||
encoders:
|
||||
BodyRep\Entity\User:
|
||||
algorithm: sha512
|
||||
encode-as-base64: false
|
||||
iterations: 1
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ADMIN: ROLE_USER
|
||||
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
|
||||
|
||||
providers:
|
||||
user_db:
|
||||
entity: { class: BodyRep\Entity\User, property: username }
|
||||
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
|
||||
login:
|
||||
pattern: ^/u/login$
|
||||
security: false
|
||||
|
||||
landing:
|
||||
pattern: ^/$
|
||||
security: false
|
||||
|
||||
test:
|
||||
pattern: ^/test$
|
||||
security: false
|
||||
|
||||
secured_area:
|
||||
pattern: ^/
|
||||
form_login:
|
||||
check_path: /u/login/check
|
||||
login_path: /u/login
|
||||
default_target_path: /m/
|
||||
|
||||
logout:
|
||||
path: /u/logout
|
||||
target: /
|
||||
Reference in New Issue
Block a user