From 7e15813b8188de2272772383cdb432b1573a9e80 Mon Sep 17 00:00:00 2001 From: Findeton Date: Thu, 4 Jul 2024 13:56:50 -0500 Subject: [PATCH] wip --- doc/production/config.auth.yml | 14 ++++++++++++-- doc/production/config.master.yml | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/production/config.auth.yml b/doc/production/config.auth.yml index b9d819e..2fdaabd 100644 --- a/doc/production/config.auth.yml +++ b/doc/production/config.auth.yml @@ -428,6 +428,10 @@ config: # using their certificates as client certificates. ssl_port: 14453 + # Numbers of seconds memcached mantains a cached item (an election) + # in the cache. By default it's 5 seconds. + cache_expiration_seconds: 5 + # Password used to encrypt the authorities' public keys for usage in # ballot-box. keystore_pass: '' @@ -1147,8 +1151,14 @@ config: # default: true allow_deregister: true - # Number of seconds after which an authentication token expires. - auth_token_expiration_seconds: 600 + # Number of seconds after which an smartlink authentication token expires. + smartlink_token_expiration_seconds: 90 + + # Minimum session duration for a voter + access_auth_token_expiration_seconds: 60 + + # Maximum session duration for a voter (after renewing the access token) + refresh_auth_token_expiration_seconds: 600 # Number of seconds after which an authentication token expires for admin # users diff --git a/doc/production/config.master.yml b/doc/production/config.master.yml index 0e0fbd1..052b437 100644 --- a/doc/production/config.master.yml +++ b/doc/production/config.master.yml @@ -428,6 +428,10 @@ config: # using their certificates as client certificates. ssl_port: 14453 + # Numbers of seconds memcached mantains a cached item (an election) + # in the cache. By default it's 5 seconds. + cache_expiration_seconds: 5 + # Password used to encrypt the authorities' public keys for usage in # ballot-box. keystore_pass: '' @@ -1147,8 +1151,14 @@ config: # default: true allow_deregister: true - # Number of seconds after which an authentication token expires. - auth_token_expiration_seconds: 600 + # Number of seconds after which an smartlink authentication token expires. + smartlink_token_expiration_seconds: 90 + + # Minimum session duration for a voter + access_auth_token_expiration_seconds: 60 + + # Maximum session duration for a voter (after renewing the access token) + refresh_auth_token_expiration_seconds: 600 # Number of seconds after which an authentication token expires for admin # users