Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- factories:
- - "%kernel.root_dir%/../vendor/bundles/FOS/FacebookBundle/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:
- fos_facebook:
- id: fos_facebook.auth
- in_memory:
- users:
- user: { password: userpass, roles: [ 'ROLE_USER' ] }
- admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
- firewalls:
- profiler:
- pattern: ^/_profiler
- security: false
- wdt:
- pattern: ^/_wdt
- security: false
- login:
- pattern: ^/demo/secured/login$
- security: false
- secured_area:
- pattern: ^/demo/secured/
- form_login:
- check_path: /demo/secured/login_check
- login_path: /demo/secured/login
- logout:
- path: /demo/secured/logout
- target: /demo/
- #anonymous: ~
- #http_basic:
- # realm: "Secured Demo Area"
- public:
- # since anonymous is allowed users will not be forced to login
- pattern: ^/.*
- fos_facebook: true
- anonymous: true
- logout: true
- access_control:
- #- { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
- - { path: ^/secured/.*, role: [IS_AUTHENTICATED_FULLY] } # This is the route secured with fos_facebook
- - { path: ^/.*, role: [IS_AUTHENTICATED_ANONYMOUSLY] }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement