From d20a8c5fb487fbdd0723bfbd09087513062c0b3f Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 8 Apr 2020 09:18:17 +0200 Subject: Add ability to define lifetime token for the API It'll allow admin of a wallabag instance to define its own lifetime for the refresh token and the access token. The default value are the recommended one from the wallabag team. --- app/config/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/config/config.yml') 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: service: user_provider: fos_user.user_provider.username_email options: - refresh_token_lifetime: 1209600 + refresh_token_lifetime: "%fos_oauth_server_refresh_token_lifetime%" + access_token_lifetime: "%fos_oauth_server_access_token_lifetime%" scheb_two_factor: trusted_device: -- cgit v1.2.3