Commit dd44e115 authored by Mat's avatar Mat

notre nouveau fichier de sécurité

parent ad84218c
...@@ -3,6 +3,14 @@ socket: ...@@ -3,6 +3,14 @@ socket:
type: annotation type: annotation
prefix: /socket prefix: /socket
logout:
path: /logout
login_check:
path: /login-check
###
fos_js_routing: fos_js_routing:
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml" resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
...@@ -21,10 +29,10 @@ techno: ...@@ -21,10 +29,10 @@ techno:
### fos_userbundle ### fos_userbundle
fos_user: # fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml" # resource: "@FOSUserBundle/Resources/config/routing/all.xml"
prefix: /user # prefix: /user
#
fos_user_group: # fos_user_group:
resource: "@FOSUserBundle/Resources/config/routing/group.xml" # resource: "@FOSUserBundle/Resources/config/routing/group.xml"
prefix: /group # prefix: /group
security: security:
# fournisseur d'utilisateurs
providers:
main:
entity:
class: SocketBundle\Entity\User
property: username
# quelle est la propriété qui servira de username, typiquement username ou email, doit être unique
# other: ...
# si on a plusieurs fournisseurs
encoders:
SocketBundle\Entity\User:
algorithm: bcrypt
iterations: 4678
# le nbre de fois que le mot de passe est re-crypté lui-même. aujourd'hui on conseille entre 4 et 5000
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: ROLE_ADMIN
firewalls:
login:
pattern: ^/(login|register)$
anonymous: true
dev:
pattern: ^/(_profiler|_wdt|css|images|js)/
security: false
main:
pattern: ^/
anonymous: false;
# un anonyme n'aura accès qu'aux pages login et register
form_login:
login_path: login
check_path: login-check # une route ou un chemin
default_target_path: /chat
# ce sera souvent la page d'accueil
always_use_default_target_path: true
logout:
path: logout
target: /login
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment