From f3365f478df86fc84af236db89e05283691306a3 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 18 Jan 2018 10:50:57 +0100 Subject: [PATCH] Minor - WIP update config symfony files --- config/packages/dev/web_profiler.yaml | 2 +- config/packages/framework.yaml | 1 - config/packages/security.yaml | 21 +++++++++++---------- config/routes.yaml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/config/packages/dev/web_profiler.yaml b/config/packages/dev/web_profiler.yaml index 1e44b3592c..805f7b11f5 100644 --- a/config/packages/dev/web_profiler.yaml +++ b/config/packages/dev/web_profiler.yaml @@ -1,6 +1,6 @@ web_profiler: toolbar: true - intercept_redirects: true + intercept_redirects: false framework: profiler: only_exceptions: false diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 7e47bc4894..9c283e1275 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -14,7 +14,6 @@ framework: #fragments: ~ php_errors: log: true - templating: engines: ['twig', 'php'] session: diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 3827dca3ae..5d5aaaa53a 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -5,6 +5,7 @@ security: - {path: ^/administrator, role: ROLE_ADMIN} - {path: ^/efconnect, role: ROLE_USER} - {path: ^/elfinder, role: ROLE_USER} + - {path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY} encoders: FOS\UserBundle\Model\UserInterface: @@ -57,9 +58,9 @@ security: form_login: provider: fos_userbundle csrf_token_generator: security.csrf.token_manager - login_path: /administration/login + login_path: /login use_forward: false - check_path: /administration/login_check + check_path: /login_check success_handler: chamilo_core.listener.login_success_handler failure_path: null remember_me: @@ -67,17 +68,17 @@ security: lifetime: 604800 # 1 week in seconds path: / logout: - path: /administration/logout + path: /logout target: / - anonymous: true + anonymous: ~ + switch_user: false oauth: resource_owners: - facebook: "/administration/login/check-facebook" - google: "/administration/login/check-google" - github: "/administration/login/check-github" - login_path: /oauth/login - check_path: /oauth/login_check - failure_path: /oauth/connect + facebook: "/login/check-facebook" + google: "/login/check-google" + github: "/login/check-github" + login_path: /login + failure_path: /login use_forward: false oauth_user_provider: service: chamilo_user_provider diff --git a/config/routes.yaml b/config/routes.yaml index e4774df9d4..83aac34281 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -8,9 +8,9 @@ # resource: ../src/Controller/ # type: annotation logout: - path: /administration/logout + path: /logout sonata_user_admin_security_logout: - path: /administration/logout + path: /logout _admin: resource: routes/sonata_admin.yaml prefix: /administration