aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_options.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_options.erl')
-rw-r--r--src/ejabberd_options.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_options.erl b/src/ejabberd_options.erl
index 445a3515b..87d7ff91f 100644
--- a/src/ejabberd_options.erl
+++ b/src/ejabberd_options.erl
@@ -247,6 +247,8 @@ opt_type(oauth_cache_life_time) ->
econf:timeout(second, infinity);
opt_type(oauth_cache_missed) ->
econf:bool();
+opt_type(oauth_cache_rest_failure_life_time) ->
+ econf:timeout(second, infinity);
opt_type(oauth_cache_size) ->
econf:pos_int(infinity);
opt_type(oauth_db_type) ->
@@ -586,6 +588,7 @@ options() ->
fun(Host) -> ejabberd_config:get_option({cache_missed, Host}) end},
{oauth_cache_size,
fun(Host) -> ejabberd_config:get_option({cache_size, Host}) end},
+ {oauth_cache_rest_failure_life_time, infinity},
{oauth_db_type,
fun(Host) -> ejabberd_config:default_db(Host, ejabberd_oauth) end},
{oauth_expire, 4294967},
@@ -726,6 +729,7 @@ globals() ->
oauth_cache_life_time,
oauth_cache_missed,
oauth_cache_size,
+ oauth_cache_rest_failure_life_time,
oauth_db_type,
oauth_expire,
oauth_use_cache,