{"push_id":813259019,"size":3,"distinct_size":1,"ref":"refs/heads/master","head":"6b462b2ac602cfaf459d639f0e344e5aef8d64fa","before":"ad29a3f4f8a6b0ee18973aa149ece2dc8bf453ed","commits":[{"sha":"05be5da1710ab681a04334d58126f8c3d431e3cb","author":{"email":"3c4bce205a8ca4adb6d42a2e6cb10bac9145bc05@hostnet.nl","name":"Iltar van der Berg"},"message":"[Security] Configuring a user checker per firewall","distinct":false,"url":"https://api.github.com/repos/symfony/security-bundle/commits/05be5da1710ab681a04334d58126f8c3d431e3cb"},{"sha":"194ad4cb4dbacb9f2fb77b935d1df47f62cce308","author":{"email":"d4f8dcd89cfe40276c0fbf336903f4a05ab082c9@gmail.com","name":"Fabien Potencier"},"message":"feature #14721 [Security] Configuring a user checker per firewall (iltar)\n\nThis PR was squashed before being merged into the 2.8 branch (closes #14721).\n\nDiscussion\n----------\n\n[Security] Configuring a user checker per firewall\n\n_Changed my base branch to avoid issues, closed old PR_\n\n| Q             | A\n| ------------- | ---\n| Bug fix?      | no\n| New feature?  | yes\n| BC breaks?    | no\n| Deprecations? | no\n| Tests pass?   | yes\n| Fixed ticket | #11090 and helps #14673\n| License       | MIT\n| Doc PR        | symfony/symfony-docs/pull/5530\n\nThis pull request adds support for a configurable user checker per firewall. An example could be:\n\n```yml\nservices:\n    app.user_checker:\n        class: App\\Security\\UserChecker\n        arguments:\n            - \"@request_stack\"\n\nsecurity:\n    firewalls:\n        secured_area:\n            pattern: ^/\n            anonymous: ~\n            basic_auth: ~\n            user_checker: app.user_checker\n\n```\nThe 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`.\n\nI 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`.\n\nCommits\n-------\n\n76bc662 [Security] Configuring a user checker per firewall","distinct":false,"url":"https://api.github.com/repos/symfony/security-bundle/commits/194ad4cb4dbacb9f2fb77b935d1df47f62cce308"},{"sha":"6b462b2ac602cfaf459d639f0e344e5aef8d64fa","author":{"email":"d4f8dcd89cfe40276c0fbf336903f4a05ab082c9@gmail.com","name":"Fabien Potencier"},"message":"Merge branch '2.8'\n\n* 2.8:\n  Updated the stlyes of the YAML commands\n  [Security] Configuring a user checker per firewall\n  [PropertyInfo] Test behavior when an extractor return null.","distinct":true,"url":"https://api.github.com/repos/symfony/security-bundle/commits/6b462b2ac602cfaf459d639f0e344e5aef8d64fa"}]}