Gaara86
unread,Feb 24, 2012, 2:14:11 PM2/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Grupo Desarrollo Symfony - La Plata
Comence con un proyecto nuevo de symfony2 la version 2.0.9 y le
incorpore un modulo y y otros elementos para la aplicacion
funcionara ... la autenticacon es mediante http_basic pero cuando
estoy en entorno de produccion no hace nada .. y en desarrollo me
notifica 401 A Token was not found in the SecurityContext . le dejo
el fichero security.yml para ver si me pueden ayudar ...
security:
encoders:
Cqb\InternetBundle\Entity\User: plaintext
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN,
ROLE_ALLOWED_TO_SWITCH]
providers:
users:
entity: { class: Cqb\InternetBundle\Entity\User, property:
username }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
# login:
# pattern: ^/login$
# security: false
secured_area:
pattern: ^/
# 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"
access_control:
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY,
requires_channel: https }
#- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY,
ip: 127.0.0.1 }
#- { path: ^/, roles: ROLE_ADMIN }