From d48aa104118e66c47f503305e1de7e3bf7718c2f Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Fri, 13 Sep 2024 14:21:42 +0200 Subject: [PATCH] chore: do not cache unused TTL in id_token object --- pipeline/mutate/mutator_id_token.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pipeline/mutate/mutator_id_token.go b/pipeline/mutate/mutator_id_token.go index 9c7b13d35..358f8b05e 100644 --- a/pipeline/mutate/mutator_id_token.go +++ b/pipeline/mutate/mutator_id_token.go @@ -72,7 +72,6 @@ func (a *MutatorIDToken) WithCache(t *template.Template) { type idTokenCacheContainer struct { ExpiresAt time.Time - TTL time.Duration Token string } @@ -112,7 +111,6 @@ func (a *MutatorIDToken) tokenToCache(config *CredentialsIDTokenConfig, session a.tokenCache.SetWithTTL( key, &idTokenCacheContainer{ - TTL: ttl, ExpiresAt: expiresAt, Token: token, },