Created
March 12, 2013 03:07
-
-
Save jblac/5139999 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
jms_security_extra: | |
secure_all_services: false | |
expressions: true | |
security: | |
encoders: | |
Symfony\Component\Security\Core\User\User: plaintext | |
FOS\UserBundle\Model\UserInterface: sha512 | |
role_hierarchy: | |
ROLE_ADMIN: ROLE_USER | |
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] | |
providers: | |
fos_userbundle: | |
id: fos_user.user_provider.username | |
in_memory: | |
memory: | |
users: | |
user: { password: userpass, roles: [ 'ROLE_USER' ] } | |
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] } | |
firewalls: | |
dev: | |
pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
security: false | |
main: | |
pattern: ^/admin/ | |
switch_user: true | |
form_login: | |
provider: fos_userbundle | |
anonymous: true | |
logout: | |
path: /logout | |
target: / | |
#anonymous: ~ | |
#http_basic: | |
# realm: "Secured Demo Area" | |
access_control: | |
- { path: ^/admin/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/admin/, role: ROLE_USER } | |
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https } | |
# | |
# You must uncomment the two following rules to restrict access to paths | |
# starting with the /_internal prefix to only localhost | |
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 } | |
#- { path: ^/_internal/secure, roles: ROLE_NO_ACCESS } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment