Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #30111 [SecurityBundle] Deprecate the normalization of the co…
…okie names (javiereguiluz) This PR was squashed before being merged into the 4.3-dev branch (closes #30111). Discussion ---------- [SecurityBundle] Deprecate the normalization of the cookie names | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is an alternative solution to #24018 providing a BC layer until Symfony 5.0. Commits ------- 36c5df4 [SecurityBundle] Deprecate the normalization of the cookie names
- Loading branch information
Showing
7 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...ny/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/logout_delete_cookies.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('security', [ | ||
'providers' => [ | ||
'default' => ['id' => 'foo'], | ||
], | ||
|
||
'firewalls' => [ | ||
'main' => [ | ||
'provider' => 'default', | ||
'form_login' => true, | ||
'logout' => [ | ||
'delete_cookies' => [ | ||
'cookie1-name' => true, | ||
'cookie2_name' => true, | ||
'cookie3-long_name' => ['path' => '/'], | ||
], | ||
], | ||
], | ||
], | ||
]); |
22 changes: 22 additions & 0 deletions
22
...ny/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/xml/logout_delete_cookies.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<srv:container xmlns="http://symfony.com/schema/dic/security" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:srv="http://symfony.com/schema/dic/services" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
|
||
<config> | ||
<provider name="default" id="foo" /> | ||
|
||
<firewall name="main" provider="default"> | ||
<form-login /> | ||
<logout> | ||
<delete-cookies> | ||
<cookie1-name/> | ||
<cookie2_name/> | ||
<cookie3-long_name path="/" /> | ||
</delete-cookies> | ||
</logout> | ||
</firewall> | ||
</config> | ||
</srv:container> |
15 changes: 15 additions & 0 deletions
15
...ny/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/yml/logout_delete_cookies.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
security: | ||
providers: | ||
default: | ||
id: foo | ||
|
||
firewalls: | ||
main: | ||
provider: default | ||
form_login: true | ||
logout: | ||
delete_cookies: | ||
cookie1-name: ~ | ||
cookie2_name: ~ | ||
cookie3-long_name: | ||
path: '/' |