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.
This commit is contained in:
Jeremy Benoist
2020-04-08 09:18:17 +02:00
parent 023c8117ec
commit d20a8c5fb4
2 changed files with 7 additions and 1 deletions

View File

@ -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: