In firewalls note this line:

 pattern:    ^/

In access_control note:

^/admin

So in access control any path with ^/ is a firewalled route. Therefore
access is restricted.

On Mon, Jun 6, 2011 at 4:57 PM, Javier Garcia <[email protected]> wrote:

> Hi,
>
> in the section of security of the sf2's manual there is this
> configuration:
>
> security:
>    firewalls:
>        secured_area:
>            pattern:    ^/
>            anonymous: ~
>            http_basic:
>                realm: "Secured Demo Area"
>
>    access_control:
>        - { path: ^/admin, roles: ROLE_ADMIN }
>
>    providers:
>        in_memory:
>            users:
>                ryan:  { password: ryanpass, roles: 'ROLE_USER' }
>                admin: { password: kitten, roles: 'ROLE_ADMIN' }
>
>    encoders:
>        Symfony\Component\Security\Core\User\User: plaintext
>
>
> And about that configuration is written this:
>
> "Any URL matching /admin/* is secured, and only the admin user can
> access it;"
>
> but..where is that define exactly?
>
> Second question: can someone explain me about what is exactly
> "anonymous" parameter?
>
> Regards
>
> Javi
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to