BUGFIX: better security
This commit is contained in:
parent
01f385f6d5
commit
dd0635e35b
@ -11,13 +11,13 @@ security:
|
|||||||
property: email
|
property: email
|
||||||
firewalls:
|
firewalls:
|
||||||
dev:
|
dev:
|
||||||
pattern: ^/(_(profiler|wdt)|css|images|js|health)/
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||||
security: false
|
security: false
|
||||||
login:
|
login:
|
||||||
pattern: ^/?(%enabled_locales%)/(login|login_check|health)(?=.*)
|
pattern: ^/?(%enabled_locales%)?/(health)$
|
||||||
security: false
|
security: false
|
||||||
main:
|
main:
|
||||||
pattern: ^\/(.*)
|
pattern: ^/(.*)
|
||||||
provider: app_user_provider
|
provider: app_user_provider
|
||||||
|
|
||||||
form_login:
|
form_login:
|
||||||
@ -41,5 +41,5 @@ security:
|
|||||||
# Easy way to control access for large sections of your site
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/(?!login|login_check|health)(?=.*), roles: ROLE_USER }
|
- { path: ^/?(%enabled_locales%)?/job, roles: ROLE_USER }
|
||||||
# - { path: ^/profile, roles: ROLE_USER }
|
# - { path: ^/profile, roles: ROLE_USER }
|
||||||
|
@ -3,22 +3,27 @@ default:
|
|||||||
defaults:
|
defaults:
|
||||||
_controller: App\Controller\SecurityController::loginAction
|
_controller: App\Controller\SecurityController::loginAction
|
||||||
|
|
||||||
health:
|
|
||||||
path: '/health'
|
|
||||||
defaults:
|
|
||||||
_controller: App\Controller\SiteController::healthAction
|
|
||||||
|
|
||||||
login:
|
|
||||||
path: '/{_locale}/login'
|
|
||||||
defaults:
|
|
||||||
_controller: App\Controller\SecurityController::loginAction
|
|
||||||
|
|
||||||
login_check:
|
login_check:
|
||||||
path: '/login_check'
|
path: '/login_check'
|
||||||
|
|
||||||
logout:
|
logout:
|
||||||
path: '/logout'
|
path: '/logout'
|
||||||
|
|
||||||
|
health:
|
||||||
|
path: '/health'
|
||||||
|
defaults:
|
||||||
|
_controller: App\Controller\SiteController::healthAction
|
||||||
|
|
||||||
|
default_locale:
|
||||||
|
path: '/{_locale}'
|
||||||
|
defaults:
|
||||||
|
_controller: App\Controller\SecurityController::loginAction
|
||||||
|
|
||||||
|
login:
|
||||||
|
path: '/{_locale}/login'
|
||||||
|
defaults:
|
||||||
|
_controller: App\Controller\SecurityController::loginAction
|
||||||
|
|
||||||
job_index:
|
job_index:
|
||||||
path: '/{_locale}/job'
|
path: '/{_locale}/job'
|
||||||
defaults:
|
defaults:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user