forked from BeSimple/BeSimpleSsoAuthBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.yml
44 lines (41 loc) · 1.42 KB
/
common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
framework:
charset: UTF-8
secret: test
csrf_protection:
enabled: true
validation: { enabled: true, enable_annotations: true }
templating: { engines: ["twig"] }
form: ~
test: ~
session:
lifetime: 3600
auto_start: true
storage_id: session.storage.filesystem
services:
logger:
class: Symfony\Component\HttpKernel\Log\NullLogger
be_simple_sso_auth.test_controller.test:
class: BeSimple\SsoAuthBundle\Tests\Controller\TestController
arguments: [@service_container]
be_simple_sso_auth.test_controller.trusted:
class: BeSimple\SsoAuthBundle\Tests\Controller\TrustedSsoController
arguments: [@service_container]
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%
security:
factories:
- "%kernel.root_dir%/../Resources/config/security_factories.xml"
encoders:
Symfony\Component\Security\Core\User\User: plaintext
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
in_memory:
users:
"user": { password: user, roles: ["ROLE_USER"] }
"admin": { password: admin, roles: ["ROLE_ADMIN"] }
access_control:
- { path: ^/secured/user, roles: ROLE_USER }
- { path: ^/secured/admin, roles: ROLE_ADMIN }