From 3304ea3374f54102e8e357e8cca9ec07f6182933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Sun, 18 Jun 2023 08:13:48 +0200 Subject: [PATCH] openid_connect,google_login: increase cache duration to 10 days Because these two plugins implement the refresh of the authentication token (unlike the facebook plugin), we can use a longer cache here. With the previous value of 1 day, when not using the site for more than 1 day, token would expire from cache and user have to authenticate again. Because the scenario of "access is revoked from authorization server" is handled by refreshing the access token, we can use a longer duration here, so that user do not have to login again after not using for two days. --- .../portal_caches/google_server_auth_token_cache_factory.xml | 2 +- .../openid_connect_server_auth_token_cache_factory.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_oauth_google_login/PathTemplateItem/portal_caches/google_server_auth_token_cache_factory.xml b/bt5/erp5_oauth_google_login/PathTemplateItem/portal_caches/google_server_auth_token_cache_factory.xml index caaf8f841c..c52402698e 100644 --- a/bt5/erp5_oauth_google_login/PathTemplateItem/portal_caches/google_server_auth_token_cache_factory.xml +++ b/bt5/erp5_oauth_google_login/PathTemplateItem/portal_caches/google_server_auth_token_cache_factory.xml @@ -26,7 +26,7 @@ </item> <item> <key> <string>cache_duration</string> </key> - <value> <int>86400</int> </value> + <value> <int>864000</int> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_openid_connect_client_login/PathTemplateItem/portal_caches/openid_connect_server_auth_token_cache_factory.xml b/bt5/erp5_openid_connect_client_login/PathTemplateItem/portal_caches/openid_connect_server_auth_token_cache_factory.xml index a082e76f59..023fab7b04 100644 --- a/bt5/erp5_openid_connect_client_login/PathTemplateItem/portal_caches/openid_connect_server_auth_token_cache_factory.xml +++ b/bt5/erp5_openid_connect_client_login/PathTemplateItem/portal_caches/openid_connect_server_auth_token_cache_factory.xml @@ -26,7 +26,7 @@ </item> <item> <key> <string>cache_duration</string> </key> - <value> <int>86400</int> </value> + <value> <int>864000</int> </value> </item> <item> <key> <string>description</string> </key> -- 2.30.9