aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2020-04-08 15:18:21 +0200
committerGitHub <noreply@github.com>2020-04-08 15:18:21 +0200
commit365b3dd21f7c4f3e7f2b6f1502f284a6190dd918 (patch)
tree4313efbc3102fb5c931f5c01c9debfa5a15e2f32 /app
parent023c8117ec6e8284ee288d5775fc9ab09eab1a2e (diff)
parentd20a8c5fb487fbdd0723bfbd09087513062c0b3f (diff)
downloadwallabag-365b3dd21f7c4f3e7f2b6f1502f284a6190dd918.tar.gz
wallabag-365b3dd21f7c4f3e7f2b6f1502f284a6190dd918.tar.zst
wallabag-365b3dd21f7c4f3e7f2b6f1502f284a6190dd918.zip
Merge pull request #4319 from wallabag/feature/token-lifetime-parameters
Add ability to define lifetime token for the API
Diffstat (limited to 'app')
-rw-r--r--app/config/config.yml3
-rw-r--r--app/config/parameters.yml.dist5
2 files changed, 7 insertions, 1 deletions
diff --git a/app/config/config.yml b/app/config/config.yml
index 0b325afe..4eea0531 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -195,7 +195,8 @@ fos_oauth_server:
195 service: 195 service:
196 user_provider: fos_user.user_provider.username_email 196 user_provider: fos_user.user_provider.username_email
197 options: 197 options:
198 refresh_token_lifetime: 1209600 198 refresh_token_lifetime: "%fos_oauth_server_refresh_token_lifetime%"
199 access_token_lifetime: "%fos_oauth_server_access_token_lifetime%"
199 200
200scheb_two_factor: 201scheb_two_factor:
201 trusted_device: 202 trusted_device:
diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist
index 9948fa46..92047121 100644
--- a/app/config/parameters.yml.dist
+++ b/app/config/parameters.yml.dist
@@ -46,6 +46,11 @@ parameters:
46 fosuser_registration: true 46 fosuser_registration: true
47 fosuser_confirmation: true 47 fosuser_confirmation: true
48 48
49 # how long the access token should live in seconds for the API
50 fos_oauth_server_access_token_lifetime: 3600
51 # how long the refresh token should life in seconds for the API
52 fos_oauth_server_refresh_token_lifetime: 1209600
53
49 from_email: no-reply@wallabag.org 54 from_email: no-reply@wallabag.org
50 55
51 rss_limit: 50 56 rss_limit: 50