Commit Graph

3717 Commits

Author SHA1 Message Date
Jérémy Derussé
fb22eece5e
Fix CS in changelogs 2020-12-10 22:15:07 +01:00
Nicolas Grekas
e6f1136c2b Merge branch '5.2' into 5.x
* 5.2:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:04:48 +01:00
Nicolas Grekas
555697df61 Merge branch '5.1' into 5.2
* 5.1:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:03:37 +01:00
Nicolas Grekas
a8b992f8a2 Merge branch '4.4' into 5.1
* 4.4:
  Update .php_cs.dist
  Apply "visibility_required" CS rule to constants
2020-12-08 18:02:38 +01:00
Nicolas Grekas
ff22d30cb0 Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
2020-12-08 17:59:59 +01:00
Fabien Potencier
8fa29548e2 feature #39340 [Security] Assert voter returns valid decision (jderusse)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Security] Assert voter returns valid decision

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Tickets       | Fix #39205
| License       | MIT
| Doc PR        |

Replace #39248

Commits
-------

ffdfb4fb53 Assert voter returns valid decision
2020-12-08 08:01:22 +01:00
Alexander M. Turek
e9ab48f349 Merge branch '5.2' into 5.x
* 5.2:
  [HttpFoundation] Removed obsolete test.
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  Fix: Indentation
  Fix: Remove unused sprintf() parameters
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
  Add missing entries in gitattributes
2020-12-07 23:41:29 +01:00
Alexander M. Turek
cd3993ee88 Merge branch '5.1' into 5.2
* 5.1:
  [HttpFoundation] Removed obsolete test.
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:32:31 +01:00
Alexander M. Turek
f8b9ee9333 Merge branch '4.4' into 5.1
* 4.4:
  [HttpFoundation] Fix TypeError: Argument 1 passed to JsonResponse::setJson() must be of the type string, object given
  [Security][Validator] Add missing Portuguese translations
  Add Croatian (hr) translations
2020-12-07 23:18:25 +01:00
Alexander M. Turek
03a072e07c minor #39345 [Security][Validator] Add missing Portuguese translations (NicolasJourdan)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security][Validator] Add missing Portuguese translations

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

Commits
-------

ad4f6f2093 [Security][Validator] Add missing Portuguese translations
2020-12-07 10:01:52 +01:00
Nicolas Jourdan
ad4f6f2093 [Security][Validator] Add missing Portuguese translations 2020-12-07 10:01:46 +01:00
Alexander M. Turek
4404e6a3e9 minor #39332 Add Croatian (hr) translations (jseparovic1)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Add Croatian (hr) translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  |no
| Deprecations? | no
| Tickets       | Fix #38734
| License       | MIT

#SymfonyHackday

Commits
-------

f2dbbd2e58 Add Croatian (hr) translations
2020-12-07 10:00:22 +01:00
Jurica Šeparović
f2dbbd2e58 Add Croatian (hr) translations 2020-12-07 10:00:14 +01:00
Jérémy Derussé
ffdfb4fb53
Assert voter returns valid decision 2020-12-06 23:36:13 +01:00
Wouter de Jong
5134de52f1 Added compatibility with PHPunit 9.5 2020-12-05 16:15:30 +01:00
Fabien Potencier
b07608c0fe Move @experimental annotations to 5.3 2020-12-05 08:36:41 +01:00
Fabien Potencier
07781474bc Fix @experimental annotations 2020-12-05 07:51:44 +01:00
Romaric Drigon
0222ed3a32 [Security] fix #39262, more defensive PasswordMigratingListener 2020-12-01 12:09:46 +01:00
Alexander M. Turek
0d9dd43ecc Merge branch '5.1' into 5.2
* 5.1:
  remove return type definition in order to avoid type juggling
2020-11-30 23:47:11 +01:00
Alexander M. Turek
e4f1b5be56 Merge branch '4.4' into 5.1
* 4.4:
  remove return type definition in order to avoid type juggling
2020-11-30 23:46:30 +01:00
Bernard van der Esch
668431fc09 remove return type definition in order to avoid type juggling 2020-11-30 18:07:19 +01:00
Wouter de Jong
27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator 2020-11-30 06:46:27 +01:00
Alexander M. Turek
fd05da651b Merge branch '5.1' into 5.2
* 5.1:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  adjust KernelBrowser::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 12:24:18 +01:00
Alexander M. Turek
e70ccfe55d Merge branch '4.4' into 5.1
* 4.4:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 11:57:20 +01:00
Fabien Potencier
df7099cb2d feature #39153 [Security] Automatically register custom authenticator as entry_point (if supported) (wouterj)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Security] Automatically register custom authenticator as entry_point (if supported)

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (hopefully?)
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #37068
| License       | MIT
| Doc PR        | -

@weaverryan came up with exactly the same issue as proposed by a contributor before (see referenced ticket). Back then, it was decided impossible to fix: see https://github.com/symfony/symfony/pull/37075. However, after some thinking we came up with a way to fix the issue and improve the DX for custom authenticators.

The new authenticators are no longer required to implement `AuthenticationEntryPointInterface` (required for internal authenticators like the `RememberMeAuthenticator` and pre authenticated ones). This PR uses a compiler pass to check if a custom authenticator is supported:

```yaml
security:
  firewalls:
    main:
      # in any case, if an entry_point is already configured it'll not be overriden
      # (http_basic remains the entry point here)
      http_basic: ~
      custom_authenticator: App\Security\CustomAuthenticator
      entry_point: http_basic

      # if only one custom authenticator implements AuthenticationEntryPointInterface,
      # it's automatically configured as the entry point
      custom_authenticator: App\Security\CustomAuthenticator
      custom_authenticators: [App\Security\CustomAuthenticator, App\Security\NoEntryPointAuthenticator]

      # if no custom authenticator implements AuthenticationEntryPointInterface,
      # an error is thrown
      custom_authenticator: App\Security\NoEntryPointAuthenticator

      # if more than one authenticator implements AuthenticationEntryPointInterface,
      # the entry point must be configured explicitly (or an error is thrown)
      custom_authenticators: [App\Security\CustomAuthenticator, App\Security\AnotherCustomAuthenticator]
      entry_point: App\Security\CustomAuthenticator
```

---

I know this is very late for Symfony 5.2. It would be good to decide whether this can be included in the release, in order to smooth out the biggest struggle for people using custom authenticators for the first time.

Commits
-------

cab0672248 [Security] Automatically register custom authenticator as entry_point (if supported)
2020-11-27 11:24:59 +01:00
Wouter de Jong
cab0672248 [Security] Automatically register custom authenticator as entry_point (if supported) 2020-11-27 11:24:53 +01:00
Fabien Potencier
123fd2e066 minor #39036 Add Romanian missing translations (gabiudrescu)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

   Add Romanian missing translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | kinda
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38758
| License       | MIT
| Doc PR        | n/a

Commits
-------

6aa31a13c7 Add Romanian missing translations
2020-11-27 09:28:28 +01:00
Gabi Udrescu
6aa31a13c7 Add Romanian missing translations 2020-11-27 09:28:00 +01:00
Jérémy Derussé
114b7a543a [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader 2020-11-27 07:35:49 +01:00
Alexander M. Turek
01bea3c085 Support for SwitchUserToken instances serialized with 4.4/5.1. 2020-11-27 02:03:01 +01:00
Ryan Weaver
79571e0e77 Removing AnonymousPassport
This is not used - is leftover from the security component
authenticator changes
2020-11-22 09:22:08 -05:00
Wouter de Jong
e39e844606 Default to user provider, if available, in password upgrader 2020-11-18 22:00:38 +01:00
Alexander M. Turek
5f25a6f980 Merge branch '5.1' into 5.x 2020-11-05 21:05:54 +01:00
Alexander M. Turek
2081035295 Merge branch '4.4' into 5.1 2020-11-05 20:04:46 +01:00
Alexander M. Turek
60e506835a [Security] Fix docblock. 2020-11-05 00:24:50 +01:00
Thomas Lallement
3dd385f319
Rename security.pt_PT.xlf to security.pt.xlf 2020-11-03 17:58:31 +01:00
Nicolas Grekas
5bf6bbe96c Merge branch '5.1' into 5.x
* 5.1:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:47:15 +01:00
Nicolas Grekas
aae9211e7c Merge branch '4.4' into 5.1
* 4.4:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:45:32 +01:00
Ben Hakim
c8ab10f427
Update security.he.xlf 2020-11-02 15:41:03 +02:00
Alexander M. Turek
12a617f2ea Merge branch '5.1' into 5.x 2020-11-02 09:16:52 +01:00
Alexander M. Turek
8d964bda5b Merge branch '4.4' into 5.1 2020-11-02 08:55:38 +01:00
Fabien Potencier
20306a23bf minor #38911 Fix transiant tests in 4.4 (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix transiant tests in 4.4

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

I noticed this week 2 currencies of this failure. in both case the `METADATA_EXPIRY` were 1.5 sec under the expected value

Commits
-------

833029ca7e Fix transiant tests in 4.4
2020-11-02 07:46:39 +01:00
Alexander M. Turek
8bc1c76308 minor #38952 [Security] Add missing Azerbaijani translation (seferov)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Azerbaijani translation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #38725 and #38710
| License       | MIT
| Doc PR        | N/A

Commits
-------

665b25cd1e [Security] Add missing Azerbaijani translations
2020-11-02 01:32:18 +01:00
Alexander M. Turek
8898c0f3b6 minor #38955 Missing translations for Catalan (ca) (rogerguasch)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Missing translations for Catalan (ca)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38731
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
-->

Commits
-------

6efa4ed777 Missing translations for Catalan (ca)
2020-11-02 00:26:16 +01:00
Roger Guasch
6efa4ed777 Missing translations for Catalan (ca) 2020-11-02 00:26:09 +01:00
Jérémy Derussé
833029ca7e
Fix transiant tests in 4.4 2020-11-01 22:34:37 +01:00
Farhad Safarov
665b25cd1e [Security] Add missing Azerbaijani translations 2020-11-01 23:48:39 +03:00
Alexander M. Turek
3a8570e569 Add symfony/translation to the dev dependencies of symfony/security. 2020-11-01 19:34:19 +01:00
Fabien Potencier
86e5c563f1 Merge branch '5.1' into 5.x
* 5.1:
  Validate XLIFF files in tests using the XSD
2020-11-01 18:42:32 +01:00
Fabien Potencier
7539597bbd Merge branch '4.4' into 5.1
* 4.4:
  Validate XLIFF files in tests using the XSD
2020-11-01 18:42:02 +01:00