X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fconfig%2Fsecurity.yml;h=e161c3b53b911f70f77443f51c30609fa52263ff;hb=cbce162b407024882d8c37a7e3298c85175d2651;hp=f4fefe2e4f24e550ddb4ec11305fd2cf7cdca8c0;hpb=c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/config/security.yml b/app/config/security.yml index f4fefe2e..e161c3b5 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -1,6 +1,6 @@ security: encoders: - Wallabag\CoreBundle\Entity\Users: + Wallabag\CoreBundle\Entity\User: algorithm: sha1 encode_as_base64: false iterations: 1 @@ -11,7 +11,7 @@ security: providers: administrators: - entity: { class: WallabagCoreBundle:Users, property: username } + entity: { class: WallabagCoreBundle:User, property: username } # the main part of the security, where you can set up firewalls # for specific sections of your app @@ -54,5 +54,6 @@ security: target: / access_control: + - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/, roles: ROLE_USER }