Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #24335 [Security][SecurityBundle] Deprecate the HTTP digest a…
…uth (ogizanagi) This PR was merged into the 3.4 branch. Discussion ---------- [Security][SecurityBundle] Deprecate the HTTP digest auth | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | yes <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #24325 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A See #24336 for the removal PR on master. Commits ------- 11fe79d [Security][SecurityBundle] Deprecate the HTTP digest auth
- Loading branch information
Showing
22 changed files
with
453 additions
and
9 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
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
105 changes: 105 additions & 0 deletions
105
...y/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/container1_with_digest.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,105 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('security', array( | ||
'acl' => array(), | ||
'encoders' => array( | ||
'JMS\FooBundle\Entity\User1' => 'plaintext', | ||
'JMS\FooBundle\Entity\User2' => array( | ||
'algorithm' => 'sha1', | ||
'encode_as_base64' => false, | ||
'iterations' => 5, | ||
), | ||
'JMS\FooBundle\Entity\User3' => array( | ||
'algorithm' => 'md5', | ||
), | ||
'JMS\FooBundle\Entity\User4' => array( | ||
'id' => 'security.encoder.foo', | ||
), | ||
'JMS\FooBundle\Entity\User5' => array( | ||
'algorithm' => 'pbkdf2', | ||
'hash_algorithm' => 'sha1', | ||
'encode_as_base64' => false, | ||
'iterations' => 5, | ||
'key_length' => 30, | ||
), | ||
'JMS\FooBundle\Entity\User6' => array( | ||
'algorithm' => 'bcrypt', | ||
'cost' => 15, | ||
), | ||
), | ||
'providers' => array( | ||
'default' => array( | ||
'memory' => array( | ||
'users' => array( | ||
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'), | ||
), | ||
), | ||
), | ||
'digest' => array( | ||
'memory' => array( | ||
'users' => array( | ||
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER, ROLE_ADMIN'), | ||
), | ||
), | ||
), | ||
'basic' => array( | ||
'memory' => array( | ||
'users' => array( | ||
'foo' => array('password' => '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', 'roles' => 'ROLE_SUPER_ADMIN'), | ||
'bar' => array('password' => '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', 'roles' => array('ROLE_USER', 'ROLE_ADMIN')), | ||
), | ||
), | ||
), | ||
'service' => array( | ||
'id' => 'user.manager', | ||
), | ||
'chain' => array( | ||
'chain' => array( | ||
'providers' => array('service', 'basic'), | ||
), | ||
), | ||
), | ||
|
||
'firewalls' => array( | ||
'simple' => array('pattern' => '/login', 'security' => false), | ||
'secure' => array('stateless' => true, | ||
'http_basic' => true, | ||
'http_digest' => array('secret' => 'TheSecret'), | ||
'form_login' => true, | ||
'anonymous' => true, | ||
'switch_user' => true, | ||
'x509' => true, | ||
'remote_user' => true, | ||
'logout' => true, | ||
'remember_me' => array('secret' => 'TheSecret'), | ||
'user_checker' => null, | ||
'logout_on_user_change' => true, | ||
), | ||
'host' => array( | ||
'pattern' => '/test', | ||
'host' => 'foo\\.example\\.org', | ||
'methods' => array('GET', 'POST'), | ||
'anonymous' => true, | ||
'http_basic' => true, | ||
'logout_on_user_change' => true, | ||
), | ||
'with_user_checker' => array( | ||
'user_checker' => 'app.user_checker', | ||
'anonymous' => true, | ||
'http_basic' => true, | ||
'logout_on_user_change' => true, | ||
), | ||
), | ||
|
||
'access_control' => array( | ||
array('path' => '/blog/524', 'role' => 'ROLE_USER', 'requires_channel' => 'https', 'methods' => array('get', 'POST')), | ||
array('path' => '/blog/.*', 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY'), | ||
array('path' => '/blog/524', 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY', 'allow_if' => "token.getUsername() matches '/^admin/'"), | ||
), | ||
|
||
'role_hierarchy' => array( | ||
'ROLE_ADMIN' => 'ROLE_USER', | ||
'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'), | ||
'ROLE_REMOTE' => 'ROLE_USER,ROLE_ADMIN', | ||
), | ||
)); |
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
Oops, something went wrong.