From 858438adaf25931a18cb994fe5d0d748d32f40ab Mon Sep 17 00:00:00 2001 From: espenwaaga Date: Mon, 9 Oct 2023 13:58:36 +0200 Subject: [PATCH] =?UTF-8?q?Reduserer=20levetiden=20p=C3=A5=20cache=20til?= =?UTF-8?q?=2090=20sekunder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vedtak/sikkerhet/oidc/token/impl/TokenXExchangeKlient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/token/impl/TokenXExchangeKlient.java b/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/token/impl/TokenXExchangeKlient.java index f7046f671..bad09cb9b 100644 --- a/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/token/impl/TokenXExchangeKlient.java +++ b/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/token/impl/TokenXExchangeKlient.java @@ -37,7 +37,7 @@ public final class TokenXExchangeKlient { private TokenXExchangeKlient() { var provider = ConfigProvider.getOpenIDConfiguration(OpenIDProvider.TOKENX); this.tokenEndpoint = provider.map(OpenIDConfiguration::tokenEndpoint).orElse(null); - this.obocache = new LRUCache<>(2500, TimeUnit.MILLISECONDS.convert(120, TimeUnit.SECONDS)); + this.obocache = new LRUCache<>(2500, TimeUnit.MILLISECONDS.convert(90, TimeUnit.SECONDS)); } public static synchronized TokenXExchangeKlient instance() {