|
|
@ -1,7 +1,7 @@ |
|
|
|
# To get started with security, check out the documentation: |
|
|
|
# To get started with security, check out the documentation: |
|
|
|
# http://symfony.com/doc/current/book/security.html |
|
|
|
# http://symfony.com/doc/current/book/security.html |
|
|
|
security: |
|
|
|
security: |
|
|
|
#enable_authenticator_manager: true |
|
|
|
enable_authenticator_manager: true |
|
|
|
|
|
|
|
|
|
|
|
password_hashers: |
|
|
|
password_hashers: |
|
|
|
Chamilo\CoreBundle\Entity\User: |
|
|
|
Chamilo\CoreBundle\Entity\User: |
|
|
@ -50,24 +50,23 @@ security: |
|
|
|
# Use to connect via a JWT token |
|
|
|
# Use to connect via a JWT token |
|
|
|
api: |
|
|
|
api: |
|
|
|
pattern: ^/api |
|
|
|
pattern: ^/api |
|
|
|
stateless: false |
|
|
|
stateless: true |
|
|
|
|
|
|
|
jwt: ~ |
|
|
|
context: main |
|
|
|
context: main |
|
|
|
anonymous: true |
|
|
|
|
|
|
|
provider: app_user_provider |
|
|
|
provider: app_user_provider |
|
|
|
json_login: |
|
|
|
json_login: |
|
|
|
check_path: /api/authentication_token |
|
|
|
check_path: authentication_token |
|
|
|
success_handler: lexik_jwt_authentication.handler.authentication_success |
|
|
|
success_handler: lexik_jwt_authentication.handler.authentication_success |
|
|
|
failure_handler: lexik_jwt_authentication.handler.authentication_failure |
|
|
|
failure_handler: lexik_jwt_authentication.handler.authentication_failure |
|
|
|
guard: |
|
|
|
# guard: |
|
|
|
authenticators: |
|
|
|
# authenticators: |
|
|
|
- lexik_jwt_authentication.jwt_token_authenticator |
|
|
|
# - lexik_jwt_authentication.jwt_token_authenticator |
|
|
|
|
|
|
|
|
|
|
|
# Default login via json |
|
|
|
# Default login via json |
|
|
|
main: |
|
|
|
main: |
|
|
|
pattern: ^/ |
|
|
|
pattern: ^/ |
|
|
|
context: main |
|
|
|
context: main |
|
|
|
provider: app_user_provider |
|
|
|
provider: app_user_provider |
|
|
|
anonymous: true |
|
|
|
|
|
|
|
# login_throttling: |
|
|
|
# login_throttling: |
|
|
|
# max_attempts: 5 |
|
|
|
# max_attempts: 5 |
|
|
|
# form_login: |
|
|
|
# form_login: |
|
|
@ -76,11 +75,10 @@ security: |
|
|
|
# use_forward: false |
|
|
|
# use_forward: false |
|
|
|
# check_path: /login |
|
|
|
# check_path: /login |
|
|
|
# failure_path: null |
|
|
|
# failure_path: null |
|
|
|
guard: |
|
|
|
# guard: |
|
|
|
authenticators: |
|
|
|
# authenticators: |
|
|
|
- Chamilo\CoreBundle\Security\LoginFormAuthenticator |
|
|
|
# - Chamilo\CoreBundle\Security\LoginFormAuthenticator |
|
|
|
# - Chamilo\CoreBundle\Security\TokenAuthenticator |
|
|
|
# - Chamilo\CoreBundle\Security\TokenAuthenticator |
|
|
|
|
|
|
|
|
|
|
|
entry_point: Chamilo\CoreBundle\Security\AuthenticationEntryPoint |
|
|
|
entry_point: Chamilo\CoreBundle\Security\AuthenticationEntryPoint |
|
|
|
remember_me: |
|
|
|
remember_me: |
|
|
|
secret: '%secret%' |
|
|
|
secret: '%secret%' |
|
|
@ -97,12 +95,5 @@ security: |
|
|
|
# password_path: security.credentials.password |
|
|
|
# password_path: security.credentials.password |
|
|
|
|
|
|
|
|
|
|
|
access_control: |
|
|
|
access_control: |
|
|
|
# - {path: ^/administrator, role: ROLE_ADMIN} |
|
|
|
|
|
|
|
# - {path: ^/efconnect, role: ROLE_USER} |
|
|
|
|
|
|
|
# - {path: ^/elfinder, role: ROLE_USER} |
|
|
|
|
|
|
|
# - { path: ^/login, roles: PUBLIC_ACCESS } |
|
|
|
|
|
|
|
# - { path: ^/api/authentication_token, roles: PUBLIC_ACCESS } |
|
|
|
|
|
|
|
- {path: ^/login, roles: PUBLIC_ACCESS} |
|
|
|
- {path: ^/login, roles: PUBLIC_ACCESS} |
|
|
|
- {path: ^/api/authentication_token, roles: PUBLIC_ACCESS} |
|
|
|
- {path: ^/api/authentication_token, roles: PUBLIC_ACCESS} |
|
|
|
# - {path: ^/login, roles: PUBLIC_ACCESS} |
|
|
|
|
|
|
|
# - {path: ^/api/authentication_token, roles: PUBLIC_ACCESS} |
|
|
|
|
|
|
|