summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-10-02 14:49:38 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-10-02 14:49:38 +0200
commit0d3da2a02c2ebabb1e6a4ce898308c1989963185 (patch)
tree5fe7bbbd88c6ce6ba814fe82f1bd5edf8e2e3f18 /Http
parentc2d213d3f64a1c7cfaa226626687cce57cb64ba8 (diff)
parentb8517a61435259720592da3029a13ceb4d5558d5 (diff)
downloadsymfony-security-0d3da2a02c2ebabb1e6a4ce898308c1989963185.zip
symfony-security-0d3da2a02c2ebabb1e6a4ce898308c1989963185.tar.gz
symfony-security-0d3da2a02c2ebabb1e6a4ce898308c1989963185.tar.bz2
feature #14721 [Security] Configuring a user checker per firewall (iltar)
This PR was squashed before being merged into the 2.8 branch (closes #14721). Discussion ---------- [Security] Configuring a user checker per firewall _Changed my base branch to avoid issues, closed old PR_ | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed ticket | #11090 and helps #14673 | License | MIT | Doc PR | symfony/symfony-docs/pull/5530 This pull request adds support for a configurable user checker per firewall. An example could be: ```yml services: app.user_checker: class: App\Security\UserChecker arguments: - "@request_stack" security: firewalls: secured_area: pattern: ^/ anonymous: ~ basic_auth: ~ user_checker: app.user_checker ``` The above example will use the `UserChecker` defined as `app.user_checker`. If the `user_checker` option is left empty, `security.user_checker` will be used. If the `user_checkers` option is not defined, it will fall back to the original behavior to not break backwards compatibility and will validate using the existing `UserChecker`: `security.user_checker`. I left the default argument in the service definitions to be `security.user_checker` to include backwards compatibility for people who for some reason don't have the extension executed. You can obtain the checker for a specific firewall by appending the firewall name to it. For the firewall `secured_area`, this would be `security.user_checker.secured_area`. Commits ------- 76bc662 [Security] Configuring a user checker per firewall
Diffstat (limited to 'Http')
0 files changed, 0 insertions, 0 deletions