framework:
    secret:        test
    csrf_protection:
        enabled: true
    validation:    { enabled: true, enable_annotations: true }
    templating:    { engines: ["twig"] }
    form: ~
    test: ~
    session:
        cookie_lifetime:       3600
        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]
    be_simple.sso_auth.client:
        class: BeSimple\SsoAuthBundle\Tests\HttpClient

twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%
    paths:
        - %kernel.root_dir%/Resources/views

security:
    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:
            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 }
