Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security/DependencyInjection] updated SecurityBundle's configuration…
…, some bug fixes in DIC config classes
- Loading branch information
1 parent
fc3f56d
commit a5cfc22
Showing
26 changed files
with
168 additions
and
245 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
8 changes: 0 additions & 8 deletions
8
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/access.php
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/container1.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,52 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('security', 'config', array( | ||
'providers' => array( | ||
'default' => array( | ||
'users' => array( | ||
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'), | ||
), | ||
), | ||
'digest' => array( | ||
'users' => array( | ||
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER, ROLE_ADMIN'), | ||
), | ||
), | ||
'basic' => array( | ||
'users' => array( | ||
'foo' => array('password' => '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', 'roles' => 'ROLE_SUPER_ADMIN'), | ||
'bar' => array('password' => '0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', 'roles' => array('ROLE_USER', 'ROLE_ADMIN')), | ||
), | ||
), | ||
'doctrine' => array( | ||
'entity' => array('class' => 'SecurityBundle:User', 'property' => 'username') | ||
), | ||
'service' => array( | ||
'id' => 'user.manager', | ||
), | ||
), | ||
|
||
'firewalls' => array( | ||
'simple' => array('pattern' => '/login', 'security' => false), | ||
'secure' => array('stateless' => true, | ||
'http_basic' => true, | ||
'http_digest' => true, | ||
'form_login' => true, | ||
'anonymous' => true, | ||
'switch_user' => true, | ||
'x509' => true, | ||
'logout' => true, | ||
), | ||
), | ||
|
||
'access_control' => array( | ||
array('path' => '/blog/524', 'role' => 'ROLE_USER', 'requires_channel' => 'https'), | ||
array('path' => '/blog/.*', 'attributes' => array('_controller' => '.*\\BlogBundle\\.*'), 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY'), | ||
), | ||
|
||
'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', | ||
), | ||
)); |
24 changes: 0 additions & 24 deletions
24
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/firewall.php
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/hierarchy.php
This file was deleted.
Oops, something went wrong.
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
24 changes: 0 additions & 24 deletions
24
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/provider.php
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/xml/access.xml
This file was deleted.
Oops, something went wrong.
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
25 changes: 0 additions & 25 deletions
25
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/xml/firewall.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/xml/hierarchy.xml
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/yml/access.yml
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/yml/container1.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,41 @@ | ||
security.config: | ||
providers: | ||
default: | ||
users: | ||
foo: { password: foo, roles: ROLE_USER } | ||
digest: | ||
users: | ||
foo: { password: foo, roles: 'ROLE_USER, ROLE_ADMIN' } | ||
basic: | ||
password_encoder: sha1 | ||
users: | ||
foo: { password: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33, roles: ROLE_SUPER_ADMIN } | ||
bar: { password: 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33, roles: [ROLE_USER, ROLE_ADMIN] } | ||
doctrine: | ||
entity: { class: SecurityBundle:User, property: username } | ||
service: | ||
id: user.manager | ||
|
||
firewalls: | ||
simple: { pattern: /login, security: false } | ||
secure: | ||
stateless: true | ||
http_basic: true | ||
http_digest: true | ||
form_login: true | ||
anonymous: true | ||
switch_user: true | ||
x509: true | ||
logout: true | ||
|
||
role_hierarchy: | ||
ROLE_ADMIN: ROLE_USER | ||
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] | ||
ROLE_REMOTE: ROLE_USER,ROLE_ADMIN | ||
|
||
access_control: | ||
- { path: /blog/524, role: ROLE_USER, requires_channel: https } | ||
- | ||
path: /blog/.* | ||
attributes: { _controller: .*\\BlogBundle\\.* } | ||
role: IS_AUTHENTICATED_ANONYMOUSLY |
17 changes: 0 additions & 17 deletions
17
src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/yml/firewall.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.