3 FOS\UserBundle\Model\UserInterface: sha512
7 ROLE_SUPER_ADMIN: [ ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]
11 entity: { class: WallabagUserBundle:User, property: username }
13 id: fos_user.user_provider.username
15 # the main part of the security, where you can set up firewalls
16 # for specific sections of your app
18 # disables authentication for assets and the profiler, adapt it according to your needs
20 pattern: ^/(_(profiler|wdt)|css|images|js)/
24 pattern: ^/oauth/v2/token
40 provider: fos_userbundle
41 csrf_token_generator: security.csrf.token_manager
55 - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
56 - { path: ^/api/version, roles: IS_AUTHENTICATED_ANONYMOUSLY }
57 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
58 - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
59 - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
60 - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
61 - { path: ^/settings, roles: ROLE_SUPER_ADMIN }
62 - { path: ^/annotations, roles: ROLE_USER }
63 - { path: ^/, roles: ROLE_USER }