Minor - WIP update config symfony files

pull/2487/head
jmontoyaa 7 years ago
parent 6eeffc7f11
commit f3365f478d
  1. 2
      config/packages/dev/web_profiler.yaml
  2. 1
      config/packages/framework.yaml
  3. 21
      config/packages/security.yaml
  4. 4
      config/routes.yaml

@ -1,6 +1,6 @@
web_profiler:
toolbar: true
intercept_redirects: true
intercept_redirects: false
framework:
profiler:
only_exceptions: false

@ -14,7 +14,6 @@ framework:
#fragments: ~
php_errors:
log: true
templating:
engines: ['twig', 'php']
session:

@ -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

@ -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

Loading…
Cancel
Save