aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/security.yml
diff options
context:
space:
mode:
authorJeremy <j0k3r@users.noreply.github.com>2015-02-10 13:49:57 +0100
committerJeremy <j0k3r@users.noreply.github.com>2015-02-10 13:49:57 +0100
commit2c0ffcf3972e2f58267b805a26835f452e016761 (patch)
treeb1146d6a9b98bb2ce238fff10fed4a1bf872c4b4 /app/config/security.yml
parentcbce162b407024882d8c37a7e3298c85175d2651 (diff)
parent92504e0dd489c0d11abc87bee42ffca717db0480 (diff)
downloadwallabag-2c0ffcf3972e2f58267b805a26835f452e016761.tar.gz
wallabag-2c0ffcf3972e2f58267b805a26835f452e016761.tar.zst
wallabag-2c0ffcf3972e2f58267b805a26835f452e016761.zip
Merge pull request #1068 from wallabag/v2-api-authentication
V2 api authentication
Diffstat (limited to 'app/config/security.yml')
-rw-r--r--app/config/security.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/config/security.yml b/app/config/security.yml
index e161c3b5..e06c8967 100644
--- a/app/config/security.yml
+++ b/app/config/security.yml
@@ -16,9 +16,11 @@ security:
16 # the main part of the security, where you can set up firewalls 16 # the main part of the security, where you can set up firewalls
17 # for specific sections of your app 17 # for specific sections of your app
18 firewalls: 18 firewalls:
19 #wsse_secured: 19 wsse_secured:
20 # pattern: /api/.* 20 pattern: /api/.*
21 # wsse: true 21 wsse: true
22 stateless: true
23 anonymous: true
22 login_firewall: 24 login_firewall:
23 pattern: ^/login$ 25 pattern: ^/login$
24 anonymous: ~ 26 anonymous: ~
@@ -54,6 +56,7 @@ security:
54 target: / 56 target: /
55 57
56 access_control: 58 access_control:
59 - { path: ^/api/salt, roles: IS_AUTHENTICATED_ANONYMOUSLY }
57 - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } 60 - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
58 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } 61 - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
59 - { path: ^/, roles: ROLE_USER } 62 - { path: ^/, roles: ROLE_USER }