Commit Graph

49595 Commits

Author SHA1 Message Date
Tobias Schultze
efbf840715 minor #37208 [FrameworkBundle] convert config/serializer.xml to php (mamontovdmitriy, Tobion)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] convert config/serializer.xml to php

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #37186
| License       | MIT

Hello!

This PR contains a new configuration file `serializer.php` instead of `serializer.xml`.

Commits
-------

62e9788599 make priority integers & fix test checking definition to be private
25df2de0a6 [FrameworkBundle] convert config/serializer.xml to php
2020-06-21 18:28:46 +02:00
Tobias Schultze
62e9788599 make priority integers & fix test checking definition to be private 2020-06-21 17:56:24 +02:00
Dmitriy Mamontov
25df2de0a6 [FrameworkBundle] convert config/serializer.xml to php 2020-06-21 17:56:24 +02:00
Fabien Potencier
0fa01aeda1 feature #37336 [Security] Let security factories add firewall listeners (scheb)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Security] Let security factories add firewall listeners

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| License       | MIT
| Doc PR        | n/a

Hello there, I'm the author of `scheb/two-factor-bundle`, which extends Symfony's security layer with two-factor authentication. I've been closely following the recent changes by @wouterj to rework the security layer with "authenticators" (great work!). While I managed to make my bundle work with authenticators, I see some limitations in the security layer that I'd like to address to make such extensions easier to implement.

With the new authenticator-based security system, it is no longer possible to add a authentication listener to the firewall. The only way to do it is a dirty compiler pass, which extends the argument on the `security.firewall.map.context.[firewallName]` service (like I do in: ed2ce9804b/src/bundle/DependencyInjection/Compiler/AccessListenerCompilerPass.php). This is quite ugly and hacky, so I believe there should be an easier and clean way to add firewall-level listeners. This PR adds an interface, which may be implemented by security factories and lets them add additional listeners to the firewall.

Why would you want to do that? There are certain use-cases that require extra logic to handle a request within the firewall. For example in my bundle, I need to handle the intermediate state between login and the completion of two-factor authentication. So ideally, I'm able to execute some code from the firewall right before `Symfony\Component\Security\Http\Firewall\AccessListener`. In the old security system, I could handle this in my authentication listener, which I had to implement anyways. With the new authenticator-based system this option is gone. In the ideal world, I could add a firewall listener and tell it to execute between `LogoutListener` and `AccessListener`.

This is a draft, so I'd like to hear your opinion on this :)

There's another issue, regarding the order of execution, which I'm addressing with #37337.

Commits
-------

0a4fcea8db Add interface to let security factories add their own firewall listeners
2020-06-20 17:05:14 +02:00
Fabien Potencier
3267e8e66f feature #37318 [Security] Add attributes on Passport (fabpot)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Security] Add attributes on Passport

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | not yet

see https://github.com/symfonycorp/connect/pull/95
/cc @wouterj

Commits
-------

440ada3c5f [Security] Add attributes on Passport
2020-06-20 17:04:28 +02:00
Nicolas Grekas
6ad781c834 Merge branch '5.1'
* 5.1:
  [DI] fix merge
2020-06-20 10:55:06 +02:00
Nicolas Grekas
71b65d4e70 [DI] fix merge 2020-06-20 10:54:56 +02:00
Nicolas Grekas
f0fa3b0702 Merge branch '5.1'
* 5.1:
  [SecurityBundle] Drop cache.security_expression_language definition if invalid
  [DI] disable preload.php on the CLI
  collect all transformation failures
2020-06-20 10:35:01 +02:00
Nicolas Grekas
4e0b7e5d5b Merge branch '5.0' into 5.1
* 5.0:
  [SecurityBundle] Drop cache.security_expression_language definition if invalid
  [DI] disable preload.php on the CLI
  collect all transformation failures
2020-06-20 10:33:33 +02:00
Nicolas Grekas
8afd50ecca Merge branch '4.4' into 5.0
* 4.4:
  [SecurityBundle] Drop cache.security_expression_language definition if invalid
  [DI] disable preload.php on the CLI
  collect all transformation failures
2020-06-20 10:32:35 +02:00
Nicolas Grekas
c815e7632a Merge branch '3.4' into 4.4
* 3.4:
  collect all transformation failures
2020-06-20 10:31:25 +02:00
Fabien Potencier
440ada3c5f [Security] Add attributes on Passport 2020-06-20 09:18:00 +02:00
Fabien Potencier
cc145e2d9c bug #37345 [Form] collect all transformation failures (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] collect all transformation failures

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37262
| License       | MIT
| Doc PR        |

Commits
-------

a9987ce341 collect all transformation failures
2020-06-20 09:14:20 +02:00
Fabien Potencier
00b2f4e786 bug #37362 [SecurityBundle] Drop cache.security_expression_language service if invalid (chalasr)
This PR was merged into the 4.4 branch.

Discussion
----------

[SecurityBundle] Drop cache.security_expression_language service if invalid

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Definition should be removed when its parent (`cache.system`) does not exist.
Spotted in #37337

Commits
-------

bc96693331 [SecurityBundle] Drop cache.security_expression_language definition if invalid
2020-06-20 09:03:12 +02:00
Robin Chalas
bc96693331 [SecurityBundle] Drop cache.security_expression_language definition if invalid 2020-06-19 21:56:07 +02:00
Fabien Potencier
b690a4a352 bug #37353 [DI] disable preload.php on the CLI (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[DI] disable preload.php on the CLI

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37152
| License       | MIT
| Doc PR        | -

See linked issue for a nasty side-effect of preloading on the CLI. Many hosting solutions do not provide a way to set different ini settings for CLI vs FPM. Let's skip preloading anything on the CLI.

Commits
-------

50ccf2f1b2 [DI] disable preload.php on the CLI
2020-06-19 16:51:13 +02:00
Christian Scheb
0a4fcea8db Add interface to let security factories add their own firewall listeners 2020-06-19 15:34:25 +02:00
Nicolas Grekas
50ccf2f1b2 [DI] disable preload.php on the CLI 2020-06-19 15:00:29 +02:00
Tobias Schultze
3e57f1f49f minor #37239 Migrate annotations configuration to PHP (magnetik, Tobion)
This PR was merged into the 5.2-dev branch.

Discussion
----------

Migrate annotations configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | #37186
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

f92fc2054e fix annotations config xml to php migration
8374c35a6a Migration annotations configuration to PHP
2020-06-19 13:42:45 +02:00
Tobias Schultze
f92fc2054e fix annotations config xml to php migration 2020-06-19 13:31:44 +02:00
Baptiste Lafontaine
8374c35a6a Migration annotations configuration to PHP 2020-06-19 12:56:55 +02:00
Tobias Schultze
c04884bee3 minor #37303 Move configuration to PHP (tuanminhgp)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

Move configuration to PHP

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part pf #37186
| License       | MIT
| Doc PR        | -

Commits
-------

1132d404b0 Move configuration to PHP
2020-06-19 12:31:57 +02:00
tuanminh1997
1132d404b0 Move configuration to PHP 2020-06-19 12:31:46 +02:00
Christian Flothmann
a9987ce341 collect all transformation failures 2020-06-19 08:23:51 +02:00
Nicolas Grekas
972fee7395 Merge branch '5.1'
* 5.1:
  fix tests
2020-06-18 23:39:32 +02:00
Nicolas Grekas
d03367766b Merge branch '5.0' into 5.1
* 5.0:
  fix tests
2020-06-18 23:39:28 +02:00
Nicolas Grekas
85b80e66fd Merge branch '4.4' into 5.0
* 4.4:
  fix tests
2020-06-18 23:39:22 +02:00
Nicolas Grekas
a2c2393574 fix tests 2020-06-18 23:39:07 +02:00
Nicolas Grekas
3f91ac04fe Merge branch '5.1'
* 5.1:
  fix
2020-06-18 23:37:39 +02:00
Nicolas Grekas
f768dc7aaf fix 2020-06-18 23:37:09 +02:00
Nicolas Grekas
be34ddd13b Merge branch '5.1'
* 5.1:
  fix test
2020-06-18 23:28:14 +02:00
Nicolas Grekas
12abfeb5f3 Merge branch '5.0' into 5.1
* 5.0:
  fix test
2020-06-18 23:28:10 +02:00
Nicolas Grekas
6c6a0ae855 Merge branch '4.4' into 5.0
* 4.4:
  fix test
2020-06-18 23:28:04 +02:00
Nicolas Grekas
6f3d054f0b fix test 2020-06-18 23:27:56 +02:00
Nicolas Grekas
e14aeddd53 Merge branch '5.1'
* 5.1:
  fix test
  Added Unit tests for php 8 union types.
2020-06-18 23:19:34 +02:00
Nicolas Grekas
eb150febaf Merge branch '5.0' into 5.1
* 5.0:
  fix test
  Added Unit tests for php 8 union types.
2020-06-18 23:19:28 +02:00
Nicolas Grekas
723be72706 Merge branch '4.4' into 5.0
* 4.4:
  fix test
  Added Unit tests for php 8 union types.
2020-06-18 23:17:00 +02:00
Nicolas Grekas
235cc84058 fix test 2020-06-18 23:16:36 +02:00
Nicolas Grekas
64f280586b Merge branch '3.4' into 4.4
* 3.4:
  Added Unit tests for php 8 union types.
2020-06-18 22:41:34 +02:00
Nicolas Grekas
e707967ea8 minor #37346 Added Unit tests for php 8 union types (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

Added Unit tests for php 8 union types

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

The missing test cases for #37340.

Commits
-------

2ca8ecdb74 Added Unit tests for php 8 union types.
2020-06-18 22:40:01 +02:00
Nicolas Grekas
96723297b8 Merge branch '5.1'
* 5.1:
  [Cache] fix test
2020-06-18 22:36:39 +02:00
Nicolas Grekas
8df623e830 [Cache] fix test 2020-06-18 22:36:30 +02:00
Alexander M. Turek
2ca8ecdb74 Added Unit tests for php 8 union types. 2020-06-18 22:30:22 +02:00
Nicolas Grekas
529863a947 Merge branch '5.1'
* 5.1:
  [PropertyAccess] fix typo
2020-06-18 22:06:41 +02:00
Nicolas Grekas
04e6b995d9 [PropertyAccess] fix typo 2020-06-18 22:06:29 +02:00
Nicolas Grekas
092632dc14 Merge branch '5.1'
* 5.1: (28 commits)
  [DI] fix
  Use "composer/package-versions-deprecated" when possible
  Fix
  Small update in our internal terminology
  Fix support for PHP8 union types
  [VarDumper] fix typo
  [Lock][Messenger] Fix precedence of DSN options for 5.1
  Fix support for PHP8 union types
  [FrameworkBundle] preserve dots in query-string when redirecting
  [3.4] Fix support for PHP8 union types
  [PhpUnitBridge] Streamline ansi/no-ansi of composer according to phpunit --colors option
  [3.4] Small update in our internal terminology
  [Cache] fix compat with DBAL v3
  Remove unnecessary null check
  [HttpFoundation] Allow `null` in InputBag@set
  [HttpClient] Convert CurlHttpClient::handlePush() to instance method
  Fix package rename when releasing
  bumped Symfony version to 5.1.3
  updated VERSION for 5.1.2
  updated CHANGELOG for 5.1.2
  ...
2020-06-18 21:55:03 +02:00
Nicolas Grekas
eea6abf318 Merge branch '5.0' into 5.1
* 5.0:
  [DI] fix
  Use "composer/package-versions-deprecated" when possible
  Fix
2020-06-18 21:54:27 +02:00
Nicolas Grekas
f3d9cfe8db Merge branch '4.4' into 5.0
* 4.4:
  [DI] fix
  Use "composer/package-versions-deprecated" when possible
  Fix
2020-06-18 21:53:24 +02:00
Nicolas Grekas
d2efe50eee [DI] fix 2020-06-18 21:50:30 +02:00
Nicolas Grekas
03b9ff177d Use "composer/package-versions-deprecated" when possible 2020-06-18 21:48:48 +02:00