aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config
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
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')
-rw-r--r--app/config/config_prod.yml5
-rw-r--r--app/config/security.yml9
2 files changed, 11 insertions, 3 deletions
diff --git a/app/config/config_prod.yml b/app/config/config_prod.yml
index 342837a0..c45f0fa6 100644
--- a/app/config/config_prod.yml
+++ b/app/config/config_prod.yml
@@ -17,6 +17,11 @@ monolog:
17 type: fingers_crossed 17 type: fingers_crossed
18 action_level: error 18 action_level: error
19 handler: nested 19 handler: nested
20 wsse:
21 type: stream
22 path: %kernel.logs_dir%/%kernel.environment%.wsse.log
23 level: error
24 channels: [wsse]
20 nested: 25 nested:
21 type: stream 26 type: stream
22 path: "%kernel.logs_dir%/%kernel.environment%.log" 27 path: "%kernel.logs_dir%/%kernel.environment%.log"
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 }